Home
last modified time | relevance | path

Searched refs:kPi (Results 1 – 20 of 20) sorted by relevance

/external/webrtc/webrtc/modules/audio_processing/transient/
Dfile_utils_unittest.cc35 static const double kPi = 3.14159265358979323846; variable
70 EXPECT_FLOAT_EQ(kPi, value); in TEST_F()
88 EXPECT_DOUBLE_EQ(kPi, value); in TEST_F()
105 EXPECT_EQ(0, ConvertFloatToByteArray(kPi, bytes.get())); in TEST_F()
123 EXPECT_EQ(0, ConvertDoubleToByteArray(kPi, bytes.get())); in TEST_F()
292 EXPECT_FLOAT_EQ(kPi, buffer[0]); in TEST_F()
306 EXPECT_FLOAT_EQ(kPi, buffer[0]); in TEST_F()
334 EXPECT_DOUBLE_EQ(kPi, buffer[0]); in TEST_F()
348 EXPECT_DOUBLE_EQ(kPi, buffer[0]); in TEST_F()
422 written_buffer[0] = kPi; in TEST_F()
[all …]
Dtransient_detector.cc122 const float horizontal_scaling = ts::kPi / kDetectThreshold; in Detect()
123 const float kHorizontalShift = ts::kPi; in Detect()
Dcommon.h16 static const float kPi = 3.14159265358979323846f; variable
Dtransient_suppressor.cc377 const float phase = 2 * ts::kPi * WebRtcSpl_RandU(&seed_) / in HardRestoration()
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/simple_features/
Dsimple_features_generator.cc36 constexpr float kPi = 3.14159265358979323846f; variable
54 real += time_series[j] * cos(j * i * kPi * 2 / time_series_size); in CalculateDiscreteFourierTransform()
58 imaginary -= time_series[j] * sin(j * i * kPi * 2 / time_series_size); in CalculateDiscreteFourierTransform()
69 window_function[i] = 0.5 - 0.5 * cos((2 * kPi * i) / window_length); in CalculatePeriodicHann()
/external/webrtc/webrtc/base/
Drandom.cc75 const double kPi = 3.14159265358979323846; in Gaussian() local
78 return mean + standard_deviation * sqrt(-2 * log(u1)) * cos(2 * kPi * u2); in Gaussian()
Drandom_unittest.cc286 const double kPi = 3.14159265358979323846; in TEST() local
287 const double kScale = 1 / (kStddev * sqrt(2.0 * kPi)); in TEST()
/external/libvpx/libvpx/test/
Didct8x8_test.cc27 const double kPi = 3.141592653589793238462643383279502884; in reference_dct_1d() local
32 output[k] += input[n] * cos(kPi * (2 * n + 1) * k / 16.0); in reference_dct_1d()
Ddct32x32_test.cc37 const double kPi = 3.141592653589793238462643383279502884; variable
43 out[k] += in[n] * cos(kPi * (2 * n + 1) * k / 64.0); in reference_32x32_dct_1d()
Dfdct8x8_test.cc35 const double kPi = 3.141592653589793238462643383279502884; variable
56 out[k] += in[n] * cos(kPi * (2 * n + 1) * k / 16.0); in reference_8x8_dct_1d()
/external/webrtc/webrtc/test/
Dfake_network_pipe.cc23 const double kPi = 3.14159265; variable
31 sqrt(-2 * log(uniform1)) * cos(2 * kPi * uniform2)); in GaussianRandom()
/external/v8/tools/clang/rewrite_to_chrome_style/tests/
Dconstants-expected.cc15 const float kPi = 3.141592654; variable
Dconstants-original.cc15 const float kPi = 3.141592654; variable
/external/tensorflow/tensorflow/compiler/xla/tests/
Dexhaustive_op_test.cc111 float kPi = M_PI; in HostDigamma() local
134 reflection = kPi / std::tan(kPi * reflection); in HostDigamma()
/external/skia/src/effects/imagefilters/
DSkBlurImageFilter.cpp32 static constexpr double kPi = 3.14159265358979323846264338327950288; variable
166 auto possibleWindow = static_cast<int>(floor(sigma * 3 * sqrt(2 * kPi) / 4 + 0.5)); in calculate_window()
/external/skqp/src/effects/imagefilters/
DSkBlurImageFilter.cpp32 static constexpr double kPi = 3.14159265358979323846264338327950288; variable
166 auto possibleWindow = static_cast<int>(floor(sigma * 3 * sqrt(2 * kPi) / 4 + 0.5)); in calculate_window()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_framework.cc424 const double kPi = 3.1415926535897932; in MeanUs() local
427 static_cast<double>(stddev_jitter_us_) / sqrt(kPi / 2.0); in MeanUs()
/external/skia/src/core/
DSkMaskBlurFilter.cpp22 static const double kPi = 3.14159265358979323846264338327950288; variable
27 auto possibleWindow = static_cast<int>(floor(sigma * 3 * sqrt(2 * kPi) / 4 + 0.5)); in PlanGauss()
/external/skqp/src/core/
DSkMaskBlurFilter.cpp22 static const double kPi = 3.14159265358979323846264338327950288; variable
27 auto possibleWindow = static_cast<int>(floor(sigma * 3 * sqrt(2 * kPi) / 4 + 0.5)); in PlanGauss()
/external/flatbuffers/src/
Didl_parser.cpp28 const double kPi = 3.14159265358979323846; variable
1419 FLATBUFFERS_FN_DOUBLE("deg", x / kPi * 180); in ParseSingleValue()
1420 FLATBUFFERS_FN_DOUBLE("rad", x * kPi / 180); in ParseSingleValue()