/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavfilter/ |
H A D | vaf_spectrumsynth.c | 55 AVFrame *magnitude, *phase; member 108 AVFilterLink *magnitude = ctx->inputs[0]; in query_formats() local 233 float magnitude, phase; in read16_fft_bin() local 237 magnitude = m[x] / (double)UINT16_MAX; in read16_fft_bin() 247 s->fft_data[ch][f].re = magnitude * cos(phase); in read16_fft_bin() 258 float magnitude, phase; in read8_fft_bin() local 262 magnitude = m[x] / (double)UINT8_MAX; in read8_fft_bin() 386 av_frame_free(&s->magnitude); in try_push_frame() 421 if (!(s->magnitude && s->phase)) in try_push_frames() 450 av_frame_free(&s->magnitude); in try_push_frames() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavfilter/ |
H A D | vaf_spectrumsynth.c | 55 AVFrame *magnitude, *phase; member 108 AVFilterLink *magnitude = ctx->inputs[0]; in query_formats() local 233 float magnitude, phase; in read16_fft_bin() local 237 magnitude = m[x] / (double)UINT16_MAX; in read16_fft_bin() 247 s->fft_data[ch][f].re = magnitude * cos(phase); in read16_fft_bin() 258 float magnitude, phase; in read8_fft_bin() local 262 magnitude = m[x] / (double)UINT8_MAX; in read8_fft_bin() 386 av_frame_free(&s->magnitude); in try_push_frame() 421 if (!(s->magnitude && s->phase)) in try_push_frames() 450 av_frame_free(&s->magnitude); in try_push_frames() [all …]
|
/dports/audio/gsequencer/gsequencer-3.10.4/ags/X/machine/ |
H A D | ags_spectrometer.c | 256 ags_audio_buffer_util_clear_double(spectrometer->magnitude, 1, in ags_spectrometer_init() 415 spectrometer->magnitude = (double *) g_realloc(spectrometer->magnitude, in ags_spectrometer_buffer_size_changed_callback() 422 g_free(spectrometer->magnitude); in ags_spectrometer_buffer_size_changed_callback() 425 spectrometer->magnitude = NULL; in ags_spectrometer_buffer_size_changed_callback() 688 double magnitude; in ags_spectrometer_cartesian_queue_draw_timeout() local 712 ags_audio_buffer_util_clear_double(spectrometer->magnitude, 1, in ags_spectrometer_cartesian_queue_draw_timeout() 791 magnitude = 0.0; in ags_spectrometer_cartesian_queue_draw_timeout() 809 magnitude = 0.0; in ags_spectrometer_cartesian_queue_draw_timeout() 814 magnitude += spectrometer->magnitude[j]; in ags_spectrometer_cartesian_queue_draw_timeout() 817 if(magnitude < 0.0){ in ags_spectrometer_cartesian_queue_draw_timeout() [all …]
|
/dports/graphics/processing/processing-1.5.1/modes/java/examples/Books/Processing Handbook/Synthesis/_02_waves/_05_waves/ |
H A D | _05_waves.pde | 17 int magnitude = 3; 19 for(int i = -magnitude; i < height+magnitude; i = i+12) { 26 float y = i + (sin(angle)* magnitude); 28 float y2 = i+4 + (sin(angle+PI/12)* magnitude);
|
/dports/lang/halide/Halide-release_2019_08_27-2654-g664dc4993/apps/fft/ |
H A D | fft_aot_test.cpp | 81 float magnitude = sqrt(real * real + imaginary * imaginary); in main() local 82 if (fabs(magnitude - .5f) > .001) { in main() 83 … std::cerr << "fft_forward_r2c bad magnitude for horizontal bin " << i << ":" << magnitude << "\n"; in main() 94 magnitude = sqrt(real * real + imaginary * imaginary); in main() 95 if (fabs(magnitude - .5f) > .001) { in main() 96 … std::cerr << "fft_forward_r2c bad magnitude for vertical bin " << i << ":" << magnitude << "\n"; in main() 205 float magnitude = sqrt(real * real + imaginary * imaginary); in main() local 206 if (fabs(magnitude - 1.0f) > .001) { in main() 218 magnitude = sqrt(real * real + imaginary * imaginary); in main() 219 if (fabs(magnitude - 1.0f) > .001) { in main() [all …]
|
/dports/math/py-matplotlib/matplotlib-3.4.3/lib/matplotlib/tests/ |
H A D | test_units.py | 16 self.magnitude = data 25 return Quantity(mult * self.magnitude, new_units) 27 return Quantity(self.magnitude, self.units) 30 return getattr(self.magnitude, attr) 33 if np.iterable(self.magnitude): 34 return Quantity(self.magnitude[item], self.units) 36 return Quantity(self.magnitude, self.units) 39 return np.asarray(self.magnitude) 50 return value.to(unit).magnitude 53 return [v.to(unit).magnitude for v in value] [all …]
|
/dports/audio/libkeyfinder/libkeyfinder-2.2.4/tests/ |
H A D | lowpassfiltertest.cpp | 25 float magnitude = 32768.0; variable 29 float tolerance = 0.05 * magnitude; 103 a.setSample(i, sine_wave(i, highFrequency, frameRate, magnitude)); in TEST() 124 a.setSample(i, sine_wave(i, lowFrequency, frameRate, magnitude)); in TEST() 134 float expected = sine_wave(i, lowFrequency, frameRate, magnitude); in TEST() 147 sample += sine_wave(i, highFrequency, frameRate, magnitude); // high freq in TEST() 148 sample += sine_wave(i, lowFrequency, frameRate, magnitude); // low freq in TEST() 159 float expected = sine_wave(i, lowFrequency, frameRate, magnitude); in TEST() 173 sample += sine_wave(i, highFrequency, frameRate, magnitude); // high freq in TEST() 174 sample += sine_wave(i, lowFrequency, frameRate, magnitude); // low freq in TEST() [all …]
|
/dports/devel/py-pint/Pint-0.18/docs/ |
H A D | performance.rst | 29 In [7]: %timeit (q1.magnitude-q2.magnitude) 44 # compare the two quantities, then take their magnitude because 46 return (qx - q2).magnitude 51 # don't bother converting x to a quantity, just compare it with q2's magnitude 52 return x - q2.magnitude 54 In [4]: %timeit brentq(foobar_with_quantity,0,q2.magnitude) 57 In [5]: %timeit brentq(foobar_with_magnitude,0,q2.magnitude) 64 …y the magnitude of an argument to the function body according to units you specify. As such this m…
|
/dports/emulators/dolphin-emu/dolphin-3152428/Source/Core/InputCommon/ControllerInterface/ForceFeedback/ |
H A D | ForceFeedbackDevice.cpp | 177 bool ForceFeedbackDevice::ForceConstant::UpdateParameters(int magnitude) in UpdateParameters() argument 181 m_params.lMagnitude = magnitude; in UpdateParameters() 187 bool ForceFeedbackDevice::ForceRamp::UpdateParameters(int magnitude) in UpdateParameters() argument 193 m_params.lStart = m_params.lEnd = magnitude; in UpdateParameters() 199 bool ForceFeedbackDevice::ForcePeriodic::UpdateParameters(int magnitude) in UpdateParameters() argument 203 m_params.dwMagnitude = magnitude; in UpdateParameters() 216 void ForceFeedbackDevice::TypedForce<P>::UpdateEffect(int magnitude) in UpdateEffect() argument 218 if (UpdateParameters(magnitude)) in UpdateEffect() 220 if (magnitude) in UpdateEffect()
|
/dports/devel/volk/volk-2.2.1/kernels/volk/ |
H A D | volk_32fc_s32f_power_32fc.h | 90 __m128 cplxValue1, cplxValue2, magnitude, phase, iValue, qValue; in volk_32fc_s32f_power_32fc_a_sse() local 108 …magnitude = _mm_sqrt_ps(_mm_add_ps(_mm_mul_ps(iValue, iValue), _mm_mul_ps(qValue, qValue))); // Ca… in volk_32fc_s32f_power_32fc_a_sse() 111 magnitude = powf4(magnitude, vPower); // Take the magnitude to the specified power in volk_32fc_s32f_power_32fc_a_sse() 116 iValue = _mm_mul_ps( cosf4(phase), magnitude); // Multiply the cos of the phase by the magnitude in volk_32fc_s32f_power_32fc_a_sse() 117 qValue = _mm_mul_ps( sinf4(phase), magnitude); // Multiply the sin of the phase by the magnitude in volk_32fc_s32f_power_32fc_a_sse()
|
/dports/science/py-pymatgen/pymatgen-2022.0.15/pymatgen/analysis/magnetism/ |
H A D | jahnteller.py | 173 … magnitude = self.get_magnitude_of_effect_from_species(site.specie, spin_state, motif) 175 if magnitude != "none": 192 "strength": magnitude, 395 magnitude = "none" 408 … magnitude = JahnTellerAnalyzer.get_magnitude_of_effect_from_spin_config(motif, spin_config) 412 return magnitude 430 magnitude = "none" 435 magnitude = "weak" 437 magnitude = "strong" 442 magnitude = "weak" [all …]
|
/dports/x11-toolkits/ctk/CTK-2018-10-29/Libs/Core/ |
H A D | ctkUtils.cpp | 243 double magnitude = 1.00000000000000001; in orderOfMagnitude() local 257 while ( (magnitudeStep > 0 && value >= magnitude) || in orderOfMagnitude() 258 (magnitudeStep < 0 && value < magnitude - epsilon)) in orderOfMagnitude() 260 magnitude *= magnitudeFactor; in orderOfMagnitude() 281 double magnitude = 1.; in closestPowerOfTen() local 282 double nextMagnitude = magnitude; in closestPowerOfTen() 288 magnitude = nextMagnitude; in closestPowerOfTen() 291 while ( (value - magnitude) > (nextMagnitude - value) ); in closestPowerOfTen() 297 magnitude = nextMagnitude; in closestPowerOfTen() 300 while ( (value - magnitude) < (nextMagnitude - value) ); in closestPowerOfTen() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/icu/source/i18n/ |
H A D | number_decimalquantity.cpp | 169 if (maxInt <= magnitude) { in applyMaxInteger() 287 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 296 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 297 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 528 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local 539 int32_t magnitude = -1; in toFractionLong() local 544 for (; magnitude >= lowerMagnitude && result <= 1e18L; magnitude--) { in toFractionLong() 566 int magnitude = getMagnitude(); in fitsInLong() local 567 if (magnitude < 18) { in fitsInLong() 570 if (magnitude > 18) { in fitsInLong() [all …]
|
/dports/www/node10/node-v10.24.1/deps/icu-small/source/i18n/ |
H A D | number_decimalquantity.cpp | 169 if (maxInt <= magnitude) { in applyMaxInteger() 287 int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude; in getUpperDisplayMagnitude() 296 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 297 int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude; in getLowerDisplayMagnitude() 522 for (int32_t magnitude = upperMagnitude; magnitude >= 0; magnitude--) { in toLong() local 533 int32_t magnitude = -1; in toFractionLong() local 538 for (; magnitude >= lowerMagnitude && result <= 1e18L; magnitude--) { in toFractionLong() 557 int magnitude = getMagnitude(); in fitsInLong() local 558 if (magnitude < 18) { in fitsInLong() 561 if (magnitude > 18) { in fitsInLong() [all …]
|
/dports/misc/tvm/incubator-tvm-0.6.1/nnvm/python/nnvm/testing/ |
H A D | init.py | 92 def __init__(self, rnd_type="uniform", factor_type="avg", magnitude=3): argument 95 magnitude=magnitude) 98 self.magnitude = float(magnitude) 121 scale = np.sqrt(self.magnitude / factor)
|
/dports/audio/faust/faust-2.37.3/architecture/smartKeyboard/android/app/oboe/apps/OboeTester/app/src/main/cpp/analyzer/ |
H A D | BaseSineAnalyzer.h | 44 void setMagnitude(double magnitude) { in setMagnitude() argument 45 mMagnitude = magnitude; in setMagnitude() 130 double magnitude = 2.0 * sqrt((sinMean * sinMean) + (cosMean * cosMean)); variable 135 return magnitude; 147 double magnitude = calculateMagnitudePhase(&mPhaseOffset); in transformSample() local 149 setMagnitude((mMagnitude * (1.0 - coefficient)) + (magnitude * coefficient)); in transformSample()
|
/dports/misc/py-tvm/incubator-tvm-0.6.1/nnvm/python/nnvm/testing/ |
H A D | init.py | 92 def __init__(self, rnd_type="uniform", factor_type="avg", magnitude=3): argument 95 magnitude=magnitude) 98 self.magnitude = float(magnitude) 121 scale = np.sqrt(self.magnitude / factor)
|
/dports/math/py-pytorchvideo/pytorchvideo-0.1.3/pytorchvideo/transforms/ |
H A D | augmix.py | 69 magnitude: int = 3, 91 assert isinstance(magnitude, int), "magnitude must be an int" 93 magnitude >= 1 and magnitude <= _AUGMENTATION_MAX_LEVEL 98 self._magnitude = magnitude 108 magnitude=self._magnitude,
|
/dports/math/py-or-tools/or-tools-9.2/ortools/lp_data/ |
H A D | matrix_scaler.cc | 190 const Fractional magnitude = fabs(e.coefficient()); in VarianceOfAbsoluteValueOfNonZeros() local 191 if (magnitude != 0.0) { in VarianceOfAbsoluteValueOfNonZeros() 192 sigma_square += magnitude * magnitude; in VarianceOfAbsoluteValueOfNonZeros() 193 sigma_abs += magnitude; in VarianceOfAbsoluteValueOfNonZeros() 219 const Fractional magnitude = fabs(e.coefficient()); in ScaleRowsGeometrically() local 221 if (magnitude != 0.0) { in ScaleRowsGeometrically() 248 const Fractional magnitude = fabs(e.coefficient()); in ScaleColumnsGeometrically() local 249 if (magnitude != 0.0) { in ScaleColumnsGeometrically() 250 max_in_col = std::max(max_in_col, magnitude); in ScaleColumnsGeometrically() 251 min_in_col = std::min(min_in_col, magnitude); in ScaleColumnsGeometrically() [all …]
|
/dports/devel/cgit/cgit-1.2.3/git/t/ |
H A D | t0040-parse-options.sh | 24 -m, --magnitude <n> get a magnitude 130 magnitude: 16384 150 magnitude: 16384 178 magnitude: 0 201 magnitude: 0 272 magnitude: 0 297 magnitude: 0 338 magnitude: 0
|
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/recognition/include/pcl/recognition/ |
H A D | point_types.h | 61 float magnitude; member 69 return (magnitude > rhs.magnitude); 74 os << "(" << p.x << "," << p.y << " - " << p.magnitude << ")";
|
/dports/graphics/ossim/ossim-OrchidIsland-2.11.1/include/ossim/base/ |
H A D | ossimEcefVector.h | 110 inline double magnitude() const; // meters 273 double mag_product = theData.magnitude() * v.theData.magnitude(); in angleTo() 292 return ossimEcefVector(theData/theData.magnitude()); in unitVector() 298 inline double ossimEcefVector::magnitude() const in magnitude() function 300 return theData.magnitude(); in magnitude() 316 return theData.magnitude(); in length() 325 double result = theData.magnitude(); in normalize()
|
/dports/lang/spidermonkey60/firefox-60.9.0/intl/icu/source/i18n/ |
H A D | number_decimalquantity.cpp | 233 int32_t magnitude = scale + precision; in getUpperDisplayMagnitude() local 234 int32_t result = (lReqPos > magnitude) ? lReqPos : (lOptPos < magnitude) ? lOptPos : magnitude; in getUpperDisplayMagnitude() 243 int32_t magnitude = scale; in getLowerDisplayMagnitude() local 244 int32_t result = (rReqPos < magnitude) ? rReqPos : (rOptPos > magnitude) ? rOptPos : magnitude; in getLowerDisplayMagnitude() 253 return getDigitPos(magnitude - scale); in getDigit() 449 for (int32_t magnitude = scale + precision - 1; magnitude >= 0; magnitude--) { in toLong() local 457 int32_t magnitude = -1; in toFractionLong() local 458 for (; (magnitude >= scale || (includeTrailingZeros && magnitude >= rReqPos)) && in toFractionLong() 459 magnitude >= rOptPos; magnitude--) { in toFractionLong() 519 int position = safeSubtract(magnitude, scale); in roundToMagnitude() [all …]
|
/dports/graphics/opendx/dx-4.4.4/help/ |
H A D | dxall775 | 21 arrow is drawn, representing the magnitude of the data. The default 23 of the glyphs is always directly proportional to the magnitude of 24 the data (or the magnitude of the eigenvector). If you set 26 with a magnitude smaller than #!F-adobe-times-bold-r-normal--18* min #!EF are represented by 31 with a magnitude smaller than #!F-adobe-times-bold-r-normal--18* ratio #!EF * #!F-adobe-times-b… 34 see only those vectors with a magnitude greater than half of 38 Compute module to normalize all the vectors to unit magnitude before
|
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/input/joysticks/generic/ |
H A D | FeatureHandling.h | 61 virtual bool OnAnalogMotion(const CDriverPrimitive& source, float magnitude) = 0; 119 bool OnAnalogMotion(const CDriverPrimitive& source, float magnitude) override; 124 bool OnAnalogMotion(float magnitude); 228 bool OnAnalogMotion(const CDriverPrimitive& source, float magnitude) override; 238 bool OnAnalogMotion(const CDriverPrimitive& source, float magnitude) override; 249 bool OnAnalogMotion(const CDriverPrimitive& source, float magnitude) override; 268 bool OnAnalogMotion(const CDriverPrimitive& source, float magnitude) override;
|