/external/fio/lib/ |
zipf.h | 9 double theta; member in struct:zipf_state 17 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
|
zipf.c | 29 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); 42 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, 47 zs->theta = theta; 48 zs->zeta2 = pow(1.0, zs->theta) + pow(0.5, zs->theta); 59 alpha = 1.0 / (1.0 - zs->theta); 60 eta = (1.0 - pow(2.0 / n, 1.0 - zs->theta)) / (1.0 - zs->zeta2 / zs->zetan); 67 else if (rand_z < (1.0 + pow(0.5, zs->theta)))
|
/external/libcxx/test/numerics/complex.number/complex.value.ops/ |
polar.pass.cpp | 14 // polar(const T& rho, const T& theta = 0); 30 test(const T& rho, const T& theta, std::complex<T> x) 32 assert(std::polar(rho, theta) == x); 53 double theta = imag(x[i]); local 54 std::complex<double> z = std::polar(r, theta); 58 if (std::signbit(r) || classify(theta) == inf || classify(theta) == NaN) 69 if (std::signbit(r) || classify(theta) == inf || classify(theta) == NaN) 88 if (classify(theta) != NaN && classify(theta) != inf [all...] |
/external/eigen/bench/ |
quat_slerp.cpp | 32 // theta is the angle between the 2 quaternions 33 Scalar theta = std::acos(absD); 34 Scalar sinTheta = internal::sin(theta); 36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; 37 Scalar scale1 = internal::sin( ( t * theta) ) / sinTheta; 62 // theta is the angle between the 2 quaternions 63 Scalar theta = std::acos(absD); local 64 Scalar sinTheta = internal::sin(theta); 66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; 67 scale1 = internal::sin( ( t * theta) ) / sinTheta 90 Scalar theta; local 114 Scalar theta; local [all...] |
eig33.cpp | 77 Scalar theta = std::atan2(internal::sqrt(-q),half_b)*s_inv3; local 78 Scalar cos_theta = internal::cos(theta); 79 Scalar sin_theta = internal::sin(theta);
|
/external/chromium_org/third_party/freetype/src/base/ |
fttrigon.c | 146 FT_Angle theta ) 157 while ( theta < -FT_ANGLE_PI4 ) 162 theta += FT_ANGLE_PI2; 165 while ( theta > FT_ANGLE_PI4 ) 170 theta -= FT_ANGLE_PI2; 178 if ( theta < 0 ) 183 theta += *arctanptr++; 190 theta -= *arctanptr++; 202 FT_Angle theta; local 216 theta = FT_ANGLE_PI2 [all...] |
ftstroke.c | 103 FT_Angle theta; local 142 theta = ft_pos_abs( FT_Angle_Diff( *angle_in, *angle_out ) ); 144 return FT_BOOL( theta < FT_SMALL_CONIC_THRESHOLD ); 531 FT_Angle total, angle, step, rotate, next, theta; local 556 theta = step; 557 if ( theta < 0 ) 558 theta = -theta; 560 theta >>= 1; 568 length = FT_MulDiv( radius, FT_Sin( theta ) * 4 983 FT_Angle phi, theta, rotate; local 1055 FT_Angle theta = 0, phi = 0; local 1433 FT_Angle theta, phi, rotate, alpha0 = 0; local [all...] |
/external/freetype/src/base/ |
fttrigon.c | 146 FT_Angle theta ) 157 while ( theta < -FT_ANGLE_PI4 ) 162 theta += FT_ANGLE_PI2; 165 while ( theta > FT_ANGLE_PI4 ) 170 theta -= FT_ANGLE_PI2; 178 if ( theta < 0 ) 183 theta += *arctanptr++; 190 theta -= *arctanptr++; 202 FT_Angle theta; local 216 theta = FT_ANGLE_PI2 [all...] |
ftstroke.c | 103 FT_Angle theta; local 142 theta = ft_pos_abs( FT_Angle_Diff( *angle_in, *angle_out ) ); 144 return FT_BOOL( theta < FT_SMALL_CONIC_THRESHOLD ); 531 FT_Angle total, angle, step, rotate, next, theta; local 556 theta = step; 557 if ( theta < 0 ) 558 theta = -theta; 560 theta >>= 1; 568 length = FT_MulDiv( radius, FT_Sin( theta ) * 4 983 FT_Angle phi, theta, rotate; local 1055 FT_Angle theta = 0, phi = 0; local 1433 FT_Angle theta, phi, rotate, alpha0 = 0; local [all...] |
/external/ceres-solver/internal/ceres/ |
rotation_test.cc | 210 double theta = 1.0e-2; local 211 double axis_angle[3] = { theta, 0, 0 }; 213 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; 222 double theta = pow(numeric_limits<double>::min(), 0.75); local 223 double axis_angle[3] = { theta, 0, 0 }; 225 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; 272 double theta = 1.0e-2; local 273 double quaternion[4] = { cos(theta/2), sin(theta/2.0), 0, 0 } 283 double theta = pow(numeric_limits<double>::min(), 0.75); local 326 double theta = kPi * 2 * RandDouble() - kPi; local 436 double theta = kPi - kMaxSmallAngle * RandDouble(); local 534 double theta = kPi * 2 * RandDouble() - kPi; local 567 double theta = 1e-16 * (kPi * 2 * RandDouble() - kPi); local 730 double theta = pow(10.0, i); local 750 double theta = pow(10.0, i); local 786 double theta = pow(10.0, i); local 806 double theta = pow(10.0, i); local 929 double theta = (2.0 * i * 0.0011 - 1.0) * kPi; local 978 double theta = (2.0 * i * 0.0001 - 1.0) * 1e-16; local [all...] |
trust_region_minimizer_test.cc | 380 double theta = i * 2. * pi/ static_cast< double >(N); local 382 y[i][0] = cos(theta); 383 y[i][1] = sin(theta);
|
/external/libvpx/libvpx/vp9/common/ |
vp9_tapify.py | 38 theta = angle / 57.2957795; 39 affine = [[math.cos(theta),-math.sin(theta)], 40 [math.sin(theta),math.cos(theta)]]
|
/external/ceres-solver/include/ceres/ |
rotation.h | 231 const T theta = sqrt(theta_squared); local 232 const T half_theta = theta * T(0.5); 233 const T k = sin(half_theta) / theta; 264 // If cos_theta is negative, theta is greater than pi/2, which 265 // means that angle for the angle_axis vector which is 2 * theta 271 // In that case we observe that 2 * theta ~ 2 * theta - 2 * pi, 274 // theta - pi = atan(sin(theta - pi), cos(theta - pi) 333 const T theta = atan2(sintheta, costheta); local 402 const T theta = sqrt(theta2); local 595 const T theta = sqrt(theta2); local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
arc.h | 44 VGfloat theta; member in struct:arc
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
arc.h | 44 VGfloat theta; member in struct:arc
|
/external/opencv/cv/src/ |
cvcamshift.cpp | 175 double theta = 0, square; local 235 theta = atan2( 2 * b, a - c + square ); 238 cs = cos( theta ); 239 sn = sin( theta ); 253 theta = CV_PI*0.5 - theta; 292 box->angle = (float)(theta*180./CV_PI);
|
cvhough.cpp | 78 rho and theta are discretization steps (in pixels and radians correspondingly). 81 array of (rho, theta) pairs. linesMax is the buffer size (number of pairs). 85 icvHoughLinesStandard( const CvMat* img, float rho, float theta, 114 numangle = cvRound(CV_PI / theta); 123 for( ang = 0, n = 0; n < numangle; ang += theta, n++ ) 166 line.angle = n * theta; 192 float rho, float theta, int threshold, 211 int rn, tn; /* number of rho and theta discrete values */ 215 float r, t; /* Current rho and theta */ 238 CV_ASSERT( linesMax > 0 && rho > 0 && theta > 0 ) [all...] |
/development/perftests/panorama/feature_mos/src/mosaic/ |
MosaicTypes.h | 136 double theta; member in struct:__anon2565
|
Blend.cpp | [all...] |
/external/chromium_org/third_party/webrtc/modules/video_coding/main/test/ |
plotJitterEstimate.m | 35 title('theta(1)*x+theta(2), (dT-dTS)/dL');
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
Biquad.cpp | 224 double theta = piDouble * cutoff; 225 double sn = 0.5 * d * sin(theta); 227 double gamma = (0.5 + beta) * cos(theta); 260 double theta = piDouble * cutoff; 261 double sn = 0.5 * d * sin(theta); 263 double gamma = (0.5 + beta) * cos(theta);
|
/external/chromium_org/third_party/skia/experimental/Intersection/ |
CubicUtilities.cpp | 130 double theta = acos(R / sqrt(Q3)); 133 r = neg2RootQ * cos(theta / 3) - adiv3; 137 r = neg2RootQ * cos((theta + 2 * PI) / 3) - adiv3; 141 r = neg2RootQ * cos((theta - 2 * PI) / 3) - adiv3; 240 double theta = acos(R / sqrt(Q3)); local 243 r = neg2RootQ * cos(theta / 3) - adiv3; 246 r = neg2RootQ * cos((theta + 2 * PI) / 3) - adiv3; 250 r = neg2RootQ * cos((theta - 2 * PI) / 3) - adiv3;
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
Matrix2fTest.java | 183 float theta = 30.0f * (float)(java.lang.Math.PI / 180.0f); local 184 float cosTheta = (float)Math.cos((float)theta); 185 float sinTheta = (float)Math.sin((float)theta);
|
/development/perftests/panorama/feature_stab/db_vlvm/ |
db_utilities_poly.cpp | 31 double r2_min_q3,theta,bp_through3,theta_through3; local 56 theta=acos(db_maxd(-1.0,db_mind(1.0,r/(q*srq)))); 58 theta_through3=theta/3.0;
|
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/ |
CanvasPathMethods.cpp | 174 inline FloatPoint getPointOnEllipse(float radiusX, float radiusY, float theta) 176 return FloatPoint(radiusX * cosf(theta), radiusY * sinf(theta));
|