/dports/audio/libsamplerate/libsamplerate-0.2.2/tests/ |
H A D | calc_snr.c | 78 { PEAK_DATA peaks [2] ; in smooth_mag_spectrum() local 82 memset (peaks, 0, sizeof (peaks)) ; in smooth_mag_spectrum() 87 { peaks [0].peak = mag [k] ; in smooth_mag_spectrum() 88 peaks [0].index = k ; in smooth_mag_spectrum() 97 peaks [1].index = k ; in smooth_mag_spectrum() 99 if (peaks [1].peak > peaks [0].peak) in smooth_mag_spectrum() 100 linear_smooth (mag, &peaks [1], &peaks [0]) ; in smooth_mag_spectrum() 102 linear_smooth (mag, &peaks [0], &peaks [1]) ; in smooth_mag_spectrum() 103 peaks [0] = peaks [1] ; in smooth_mag_spectrum() 144 memset (peaks, 0, sizeof (peaks)) ; in find_snr() [all …]
|
/dports/science/gabedit/GabeditSrc251_300720/src/IsotopeDistribution/ |
H A D | IsotopeDistributionCalculator.c | 160 while(peaks && peaks->next) in cut_peaks() 165 peaks = g_list_remove(peaks, data); in cut_peaks() 169 else peaks=peaks->next; in cut_peaks() 234 while(peaks) in free_isotope_distribution() 237 peaks = peaks->next; in free_isotope_distribution() 259 if(!peaks) in compute_peaks() 316 return peaks; in compute_peaks() 336 return peaks; in compute_isotope_distribution() 482 return peaks; in compute_isotope_distribution_from_formula() 489 peaks = add_peak(peaks, is); in get_example_isotope_distribution() [all …]
|
/dports/science/py-scipy/scipy-1.7.1/scipy/signal/ |
H A D | _peak_finding.py | 457 peaks = _arg_peaks_as_expected(peaks) 582 peaks = _arg_peaks_as_expected(peaks) 710 stacked_thresholds = np.vstack([x[peaks] - x[peaks - 1], 711 x[peaks] - x[peaks + 1]]) 944 peaks = peaks[keep] 955 peaks = peaks[keep] 964 peaks = peaks[keep] 971 keep = _select_by_peak_distance(peaks, x[peaks], distance) 972 peaks = peaks[keep] 987 peaks = peaks[keep] [all …]
|
H A D | _peak_finding_utils.pyx | 98 peaks : ndarray 124 peaks_size = peaks.shape[0] 130 # for `peaks` sorted by position). This allows to iterate `peaks` and `keep` 147 while 0 <= k and peaks[j] - peaks[k] < distance_: 153 while k < peaks_size and peaks[k] - peaks[j] < distance_: 174 A signal with peaks. 175 peaks : ndarray 176 Indices of peaks in `x`. 275 A signal with peaks. 276 peaks : ndarray [all …]
|
/dports/net/py-haproxy-log-analysis/haproxy_log_analysis-2.0/haproxy/tests/ |
H A D | test_log_file.py | 170 self.assertEqual(len(peaks), 4) 183 self.assertTrue(peaks[0]['first'] < peaks[1]['first']) 184 self.assertTrue(peaks[1]['first'] < peaks[2]['first']) 185 self.assertTrue(peaks[2]['first'] < peaks[3]['first']) 187 self.assertTrue(peaks[0]['last'] < peaks[1]['last']) 188 self.assertTrue(peaks[1]['last'] < peaks[2]['last']) 189 self.assertTrue(peaks[2]['last'] < peaks[3]['last']) 210 self.assertTrue(peaks[0]['first'] < peaks[1]['first']) 211 self.assertTrue(peaks[1]['first'] < peaks[2]['first']) 213 self.assertTrue(peaks[0]['last'] < peaks[1]['last']) [all …]
|
/dports/biology/bbmap/bbmap/current/jgi/ |
H A D | CallPeaks.java | 146 peaks=null; in process() 502 if(peaks.size()<2){return peaks.size()-1;} in biggestPeak() 518 if(peaks.size()<2){return peaks.size()-1;} in secondBiggestPeak() 549 if(peaks.size()<2){return peaks.size()-1;} in homozygousPeak() 574 final Peak biggest=peaks.get(biggestPeak(peaks)); in calcPloidy() 581 final Peak second=peaks.get(secondBiggestPeak(peaks)); in calcPloidy() 682 peaks.add(p); in callPeaks() 724 peaks.add(p); in callPeaks() 736 peaks=condense(peaks, maxPeakCount); in callPeaks() 748 Peak biggest=peaks.get(biggestPeak(peaks)); in callPeaks() [all …]
|
/dports/audio/aubio/aubio-0.4.9/src/pitch/ |
H A D | pitchfcomb.c | 75 aubio_fpeak_t peaks[MAX_PEAKS]; in aubio_pitchfcomb_do() local 78 peaks[k].db = -200.; in aubio_pitchfcomb_do() 79 peaks[k].bin = 0.; in aubio_pitchfcomb_do() 110 memmove (peaks + 1, peaks, sizeof (aubio_fpeak_t) * (MAX_PEAKS - 1)); in aubio_pitchfcomb_do() 111 peaks[0].bin = bin; in aubio_pitchfcomb_do() 112 peaks[0].db = magnitude; in aubio_pitchfcomb_do() 120 if (peaks[0].bin / peaks[l].bin < harmonic + .02 && in aubio_pitchfcomb_do() 121 peaks[0].bin / peaks[l].bin > harmonic - .02) { in aubio_pitchfcomb_do() 122 if (harmonic > (sint_t) maxharm && peaks[0].db < peaks[l].db / 2) { in aubio_pitchfcomb_do() 129 output->data[0] = peaks[k].bin; in aubio_pitchfcomb_do() [all …]
|
H A D | pitchmcomb.c | 191 aubio_spectralpeak_t *peaks = (aubio_spectralpeak_t *) p->peaks; in aubio_pitchmcomb_spectral_pp() local 196 peaks[j].mag = newmag->data[peaks[j].bin]; in aubio_pitchmcomb_spectral_pp() 199 peaks[j].mag = 0.; in aubio_pitchmcomb_spectral_pp() 200 p->peaks = peaks; in aubio_pitchmcomb_spectral_pp() 208 aubio_spectralpeak_t *peaks = (aubio_spectralpeak_t *) p->peaks; in aubio_pitchmcomb_combdet() local 315 if (tmp <= peaks[i].mag) { in aubio_pitchmcomb_get_root_peak() 317 tmp = peaks[i].mag; in aubio_pitchmcomb_get_root_peak() 400 p->peaks[i].bin = 0.; in new_aubio_pitchmcomb() 401 p->peaks[i].ebin = 0.; in new_aubio_pitchmcomb() 402 p->peaks[i].mag = 0.; in new_aubio_pitchmcomb() [all …]
|
/dports/audio/py-aubio/aubio-0.4.9/src/pitch/ |
H A D | pitchfcomb.c | 75 aubio_fpeak_t peaks[MAX_PEAKS]; in aubio_pitchfcomb_do() local 78 peaks[k].db = -200.; in aubio_pitchfcomb_do() 79 peaks[k].bin = 0.; in aubio_pitchfcomb_do() 110 memmove (peaks + 1, peaks, sizeof (aubio_fpeak_t) * (MAX_PEAKS - 1)); in aubio_pitchfcomb_do() 111 peaks[0].bin = bin; in aubio_pitchfcomb_do() 112 peaks[0].db = magnitude; in aubio_pitchfcomb_do() 120 if (peaks[0].bin / peaks[l].bin < harmonic + .02 && in aubio_pitchfcomb_do() 121 peaks[0].bin / peaks[l].bin > harmonic - .02) { in aubio_pitchfcomb_do() 122 if (harmonic > (sint_t) maxharm && peaks[0].db < peaks[l].db / 2) { in aubio_pitchfcomb_do() 129 output->data[0] = peaks[k].bin; in aubio_pitchfcomb_do() [all …]
|
H A D | pitchmcomb.c | 191 aubio_spectralpeak_t *peaks = (aubio_spectralpeak_t *) p->peaks; 196 peaks[j].mag = newmag->data[peaks[j].bin]; 199 peaks[j].mag = 0.; 200 p->peaks = peaks; 208 aubio_spectralpeak_t *peaks = (aubio_spectralpeak_t *) p->peaks; 315 if (tmp <= peaks[i].mag) { 317 tmp = peaks[i].mag; 400 p->peaks[i].bin = 0.; 401 p->peaks[i].ebin = 0.; 402 p->peaks[i].mag = 0.; [all …]
|
/dports/audio/praat/praat-6.2.03/external/espeak/ |
H A D | klatt.cpp | 883 peaks[pk].bw1 += peaks[pk].bw_inc; 884 peaks[pk].bw = (int)peaks[pk].bw1; 885 peaks[pk].bp1 += peaks[pk].bp_inc; 886 peaks[pk].bp = (int)peaks[pk].bp1; 887 peaks[pk].ap1 += peaks[pk].ap_inc; 888 peaks[pk].ap = (int)peaks[pk].ap1; 1005 peaks[ix].freq = (int)peaks[ix].freq1; 1012 peaks[ix].bw = (int)peaks[ix].bw1; 1023 peaks[0].freq = (int)peaks[0].freq1; 1038 peaks[ix].bp = (int)peaks[ix].bp1; [all …]
|
H A D | wavegen.cpp | 558 peaks[ix].freq1 += peaks[ix].freq_inc; in AdvanceParameters() 559 peaks[ix].freq = (int)peaks[ix].freq1; in AdvanceParameters() 563 peaks[ix].left1 += peaks[ix].left_inc; in AdvanceParameters() 564 peaks[ix].left = (int)peaks[ix].left1; in AdvanceParameters() 566 peaks[ix].right1 += peaks[ix].right_inc; in AdvanceParameters() 569 peaks[ix].right = peaks[ix].left; in AdvanceParameters() 574 peaks[ix].freq1 += peaks[ix].freq_inc; in AdvanceParameters() 575 peaks[ix].freq = (int)peaks[ix].freq1; in AdvanceParameters() 1203 peaks[ix].freq = (int)peaks[ix].freq1; in SetSynth() 1215 peaks[ix].left = (int)peaks[ix].left1; in SetSynth() [all …]
|
/dports/science/py-dipy/dipy-1.4.1/dipy/reconst/tests/ |
H A D | test_eudx_dg.py | 6 from dipy.direction.peaks import default_sphere, peaks_from_model 33 peaks = peaks_from_model(SillyModel(), data, default_sphere, 36 peaks._initialize() 48 peaks.ang_thr = 0. 49 state, nd = get_direction(peaks, point, up) 54 peaks.ang_thr = 90. 55 state, nd = get_direction(peaks, point, up) 57 expected_dir = peaks.peak_dirs[i, j, k, 0] 59 state, nd = get_direction(peaks, point, down) 64 state, nd = get_direction(peaks, point, up) [all …]
|
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/parasites/peaks/ |
H A D | makefile | 41 TARGET = peaks 42 PACKAGES = peaks \ 43 peaks/drivers \ 44 peaks/drums \ 45 peaks/modulations \ 46 peaks/number_station \ 47 peaks/pulse_processor \ 50 RESOURCES = peaks/resources
|
/dports/audio/lenticular-lv2/lenticular_lv2-0.5.0-14-g14d8075/eurorack/peaks/ |
H A D | makefile | 41 TARGET = peaks 42 PACKAGES = peaks \ 43 peaks/drivers \ 44 peaks/drums \ 45 peaks/modulations \ 46 peaks/number_station \ 47 peaks/pulse_processor \ 50 RESOURCES = peaks/resources
|
/dports/audio/spectmorph/spectmorph-0.5.2/tools/ |
H A D | imiscutter.cc | 131 peaks.clear(); in compute_peaks() 184 peaks.push_back (peak); in compute_peaks() 189 for (size_t i = 0; i < peaks.size(); i++) in compute_peaks() 190 max_peak = max (max_peak, peaks[i]); in compute_peaks() 192 for (size_t i = 0; i < peaks.size(); i++) in compute_peaks() 194 peaks[i] = db_from_factor (peaks[i] / max_peak, -500); in compute_peaks() 227 vector<double> peaks; in main() local 235 peaks.clear(); in main() 242 peaks[peak] = max (peaks[peak], channel_peaks[peak]); in main() 246 while (pi < peaks.size() && peaks[pi] < options.signal_threshold) in main() [all …]
|
/dports/audio/lv2/lv2-1.18.2/plugins/eg-sampler.lv2/ |
H A D | peaks.h | 76 float* peaks; ///< Received peaks, or zeroes member 212 free(receiver->peaks); in peaks_receiver_clear() 213 receiver->peaks = NULL; in peaks_receiver_clear() 233 const LV2_Atom_Vector* peaks = NULL; in peaks_receiver_receive() local 243 if (!offset || !total || !peaks || in peaks_receiver_receive() 244 peaks->body.child_type != uris->atom_Float) { in peaks_receiver_receive() 251 receiver->peaks = (float*)realloc(receiver->peaks, n * sizeof(float)); in peaks_receiver_receive() 260 receiver->peaks[i] = receiver->peaks[i / n_per]; in peaks_receiver_receive() 266 receiver->peaks[i] = receiver->peaks[i * n_per]; in peaks_receiver_receive() 273 memcpy(receiver->peaks + offset->body, in peaks_receiver_receive() [all …]
|
/dports/audio/audacity/audacity-Audacity-3.1.3/lib-src/lv2/lv2/plugins/eg-sampler.lv2/ |
H A D | peaks.h | 70 float* peaks; ///< Received peaks, or zeroes member 206 free(receiver->peaks); in peaks_receiver_clear() 207 receiver->peaks = NULL; in peaks_receiver_clear() 227 const LV2_Atom_Vector* peaks = NULL; in peaks_receiver_receive() local 234 if (!offset || !total || !peaks || in peaks_receiver_receive() 235 peaks->body.child_type != uris->atom_Float) { in peaks_receiver_receive() 242 receiver->peaks = (float*)realloc(receiver->peaks, n * sizeof(float)); in peaks_receiver_receive() 251 receiver->peaks[i] = receiver->peaks[i / n_per]; in peaks_receiver_receive() 257 receiver->peaks[i] = receiver->peaks[i * n_per]; in peaks_receiver_receive() 264 memcpy(receiver->peaks + offset->body, in peaks_receiver_receive() [all …]
|
/dports/audio/espeak/espeak-1.48.04-source/src/ |
H A D | wavegen.cpp | 1018 peaks[ix].freq1 += peaks[ix].freq_inc; in AdvanceParameters() 1019 peaks[ix].freq = (int)peaks[ix].freq1; in AdvanceParameters() 1023 peaks[ix].left1 += peaks[ix].left_inc; in AdvanceParameters() 1024 peaks[ix].left = (int)peaks[ix].left1; in AdvanceParameters() 1027 peaks[ix].right1 += peaks[ix].right_inc; in AdvanceParameters() 1032 peaks[ix].right = peaks[ix].left; in AdvanceParameters() 1040 peaks[ix].freq1 += peaks[ix].freq_inc; in AdvanceParameters() 1041 peaks[ix].freq = (int)peaks[ix].freq1; in AdvanceParameters() 1810 peaks[ix].freq = (int)peaks[ix].freq1; in SetSynth() 1823 peaks[ix].left = (int)peaks[ix].left1; in SetSynth() [all …]
|
H A D | klatt.cpp | 1111 peaks[pk].bw1 += peaks[pk].bw_inc; in Wavegen_Klatt() 1112 peaks[pk].bw = (int)peaks[pk].bw1; in Wavegen_Klatt() 1113 peaks[pk].bp1 += peaks[pk].bp_inc; in Wavegen_Klatt() 1114 peaks[pk].bp = (int)peaks[pk].bp1; in Wavegen_Klatt() 1115 peaks[pk].ap1 += peaks[pk].ap_inc; in Wavegen_Klatt() 1116 peaks[pk].ap = (int)peaks[pk].ap1; in Wavegen_Klatt() 1299 peaks[ix].freq = (int)peaks[ix].freq1; in SetSynth_Klatt() 1307 peaks[ix].bw = (int)peaks[ix].bw1; in SetSynth_Klatt() 1318 peaks[0].freq = (int)peaks[0].freq1; in SetSynth_Klatt() 1335 peaks[ix].bp = (int)peaks[ix].bp1; in SetSynth_Klatt() [all …]
|
/dports/astro/astrometry/astrometry.net-0.85/util/ |
H A D | dpeaks.c | 43 int *peaks = NULL; in dpeaks() local 86 Unused float pk = smooth[peaks[i]]; in dpeaks() 87 assert((peaks[i] % nx) >= 1); in dpeaks() 88 assert((peaks[i] % nx) <= (nx-2)); in dpeaks() 89 assert((peaks[i] / nx) >= 1); in dpeaks() 90 assert((peaks[i] / nx) <= (ny-2)); in dpeaks() 92 assert(pk >= smooth[peaks[i]-1]); in dpeaks() 93 assert(pk >= smooth[peaks[i]+1]); in dpeaks() 94 assert(pk >= smooth[peaks[i]-nx]); in dpeaks() 95 assert(pk >= smooth[peaks[i]+nx]); in dpeaks() [all …]
|
/dports/devel/p5-Algorithm-Evolutionary/Algorithm-Evolutionary-0.82.1/lib/Algorithm/Evolutionary/Fitness/ |
H A D | P_Peaks.pm | 62 my ($peaks, $bits ) = @_; 63 croak "No peaks" if !$peaks; 68 my @peaks; 73 for my $p ( 1..$peaks ) { 74 push( @peaks, $generator->randregex($regex)); 76 $self->{'peaks'} = \@peaks; 112 my @peaks = @{$self->{'peaks'}}; 119 my @distances = sort {$b <=> $a} map($bits - hamming( $string, $_), @peaks);
|
/dports/multimedia/audacious-plugins/audacious-plugins-4.1/src/compressor/ |
H A D | compressor.cc | 89 static RingBuf<float> buffer, peaks; variable 135 peaks.destroy (); in cleanup() 147 peaks.alloc (CHUNKS); in start() 171 while (peaks.len () < CHUNKS) in process() 172 peaks.push (calc_peak (& buffer[chunk_size * peaks.len ()], chunk_size)); in process() 177 current_peak = aud::max (current_peak, peaks[i]); in process() 180 float new_peak = aud::max (peaks[0], current_peak * (1.0f - DECAY)); in process() 183 new_peak = aud::max (new_peak, current_peak + (peaks[count] - current_peak) / count); in process() 190 peaks.pop (); in process() 199 peaks.discard (); in flush() [all …]
|
/dports/science/py-scipy/scipy-1.7.1/scipy/signal/tests/ |
H A D | test_peak_finding.py | 343 peaks = np.array([1, 2, 4, 6]) 359 peaks = [1, 3, 5] 367 peaks = np.array([1, 3, 5]) 370 assert_equal(lbases, peaks - 1) 483 peaks = np.repeat([1], 3) 581 peaks = amin_true[1::2] 617 assert_(peaks.size == 0) 723 assert_equal(peaks.size, 1) 724 assert_equal(peaks, 7) 736 peaks, props = find_peaks(x, [all …]
|
/dports/biology/py-macs2/MACS-2.2.7.1/MACS2/IO/ |
H A D | PeakIO.pyx | 172 peaks = self.peaks 183 peaks = self.peaks 197 peaks = self.peaks 210 peaks = self.peaks 233 peaks = self.peaks 513 peaks = self.peaks 840 peaks = self.peaks 856 peaks = self.peaks 877 peaks = self.peaks 896 peaks = self.peaks [all …]
|