Home
last modified time | relevance | path

Searched full:cosine (Results 1 – 25 of 455) sorted by relevance

12345678910>>...19

/external/rust/android-crates-io/crates/textdistance/src/algorithms/
Dcosine.rs1 //! Cosine similarity
6 /// [Cosine similarity] is the cosine of the angle between two vectors.
11 /// [Cosine similarity]: https://en.wikipedia.org/wiki/Cosine_similarity
13 pub struct Cosine {} struct
15 impl Algorithm<f64> for Cosine { implementation
45 use crate::str::cosine;
61 let act = cosine(s1, s2); in function_str()
63 assert!(ok, "cosine({}, {}) is {}, not {}", s1, s2, act, exp); in function_str()
/external/aac/libFDK/include/
DFDK_trigFcts.h157 FIXP_DBL *cosine) { in fixp_sin_cos_residual_inline() argument
175 /* Cosine sign symmetry */ in fixp_sin_cos_residual_inline()
193 /* Cosine/Sine simetry for angles greater than PI/4 */ in fixp_sin_cos_residual_inline()
207 *cosine = (FIXP_DBL)((cl * csign) << (DFRACT_BITS - FRACT_BITS)); in fixp_sin_cos_residual_inline()
212 *cosine = (FIXP_DBL)(cl * csign) >> 1; in fixp_sin_cos_residual_inline()
220 * \brief Calculate cosine and sine value each of 2 angles different angle
230 FIXP_DBL residual, error0, error1, sine, cosine; in inline_fixp_cos_sin() local
231 residual = fixp_sin_cos_residual_inline(x1, scale, &sine, &cosine); in inline_fixp_cos_sin()
233 error1 = fMultDiv2(cosine, residual); in inline_fixp_cos_sin()
236 *out++ = cosine - (error0 << 1); in inline_fixp_cos_sin()
[all …]
/external/libxaac/decoder/armv7/
Dixheaacd_eld_decoder_sbr_pre_twiddle.s16 …LDR r6, [r2], #4 @Load and increment pointer *pTwiddles++ Lower - cosine , high…
19 SMULWB r8, r4, r6 @mult32x16in32(Xre, cosine)
24 …ADD r12, r8, r10, LSL #1 @mac32x16in32_shl( mult32x16in32_shl(Xre, cosine) , mult32x16…
30 SMULWB r9, r5, r6 @mult32x16in32(Xim, cosine)
37 …SUB r14, r9, r7, LSL #1 @sub32(mult32x16in32_shl(Xim, cosine) , mult32x16in32_shl(Xre,…
/external/tensorflow/tensorflow/lite/g3doc/inference_with_metadata/task_library/
Dimage_embedder.md23 [cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity) between
57 // Compute cosine similarity.
92 # Compute cosine similarity.
105 Cosine similarity between normalized feature vectors return a score between -1
106 and 1. Higher is better, i.e. a cosine similarity of 1 means the two vectors are
110 Cosine similarity: 0.954312
Dtext_embedder.md24 [cosine similarity](https://en.wikipedia.org/wiki/Cosine_similarity) between
50 // Compute cosine similarity.
83 # Compute cosine similarity.
96 Cosine similarity between normalized feature vectors return a score between -1
97 and 1. Higher is better, i.e. a cosine similarity of 1 means the two vectors are
101 Cosine similarity: 0.954312
/external/aac/libFDK/src/
DFDK_trigFcts.cpp300 FIXP_DBL residual, error, sine, cosine; in fixp_cos() local
302 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_cos()
306 return cosine - error; in fixp_cos()
309 return SATURATE_LEFT_SHIFT(cosine - error, 1, DFRACT_BITS); in fixp_cos()
314 FIXP_DBL residual, error, sine, cosine; in fixp_sin() local
316 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_sin()
317 error = fMult(cosine, residual); in fixp_sin()
327 FIXP_DBL residual, error0, error1, sine, cosine; in fixp_cos_sin() local
329 residual = fixp_sin_cos_residual_inline(x, scale, &sine, &cosine); in fixp_cos_sin()
331 error1 = fMult(cosine, residual); in fixp_cos_sin()
[all …]
/external/arm-optimized-routines/math/
Dsincosf.h17 /* The constants and polynomials for sine and cosine. */
23 double c0, c1, c2, c3, c4; /* Cosine polynomial. */
27 /* Polynomial data (the cosine polynomial is negated in the 2nd entry). */
37 /* Compute the sine and cosine of inputs X and X2 (X squared), using the
39 if odd the cosine and sine polynomials are swapped. */
68 N is the quadrant, and if odd the cosine polynomial is used. */
/external/pytorch/benchmarks/dynamo/
Dtorchbench.py410 cosine = self.args.cosine
414 return 1e-2, cosine
416 return 8 * 1e-2, cosine
417 return 1e-3, cosine
421 return 1e-2, cosine
425 if name in self._tolerance["cosine"]:
426 cosine = True
431 return tolerance, cosine
Dhuggingface.py492 cosine = self.args.cosine
500 return 2e-2, cosine
502 return 1e-2, cosine
505 return 4e-3, cosine
510 return 4e-3, cosine
511 return 1e-3, cosine
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Dlegacy_learning_rate_decay.py456 """Applies cosine decay to the learning rate.
459 the training progresses. This function applies a cosine decay function
525 """Applies cosine decay with restarts to the learning rate.
528 the training progresses. This function applies a cosine decay function with
602 """Applies linear cosine decay to the learning rate.
604 Note that linear cosine decay is more aggressive than cosine decay and
608 the training progresses. This function applies a linear cosine decay function
636 num_periods: Number of periods in the cosine part of the decay. See
689 """Applies noisy linear cosine decay to the learning rate.
691 Note that linear cosine decay is more aggressive than cosine decay and
[all …]
Dlearning_rate_schedule.py556 """A LearningRateSchedule that uses a cosine decay schedule.
562 the training progresses. This schedule applies a cosine decay function
604 """Applies cosine decay to the learning rate.
650 """A LearningRateSchedule that uses a cosine decay schedule with restarts.
656 the training progresses. This schedule applies a cosine decay function with
698 """Applies cosine decay with restarts to the learning rate.
776 """A LearningRateSchedule that uses a linear cosine decay schedule.
785 Note that linear cosine decay is more aggressive than cosine decay and
789 the training progresses. This schedule applies a linear cosine decay
836 """Applies linear cosine decay to the learning rate.
[all …]
/external/pytorch/torch/signal/windows/
Dwindows.py14 'cosine',
168 Computes a window with a simple cosine waveform, following the same implementation as SciPy.
171 The cosine window is defined as follows:
176 This formula differs from the typical cosine window formula by incorporating a 0.5 term in the nume…
196 >>> # Generates a symmetric cosine window.
197 >>> torch.signal.windows.cosine(10)
200 >>> # Generates a periodic cosine window.
201 >>> torch.signal.windows.cosine(10, sym=False)
207 def cosine( function
219 _window_function_checks('cosine', M, dtype, layout)
[all …]
D__init__.py4 cosine,
19 'cosine',
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dwindow_ops_test.py41 """A simple implementation of a raised cosine window that matches SciPy.
49 a: The alpha parameter of the raised cosine window.
50 b: The beta parameter of the raised cosine window.
53 A raised cosine window of length `length`.
113 # The Hann window is a raised cosine window with parameters alpha=0.5 and
127 # The Hamming window is a raised cosine window with parameters alpha=0.54
/external/googleapis/google/cloud/aiplatform/v1beta1/
Dfeature_view.proto82 // Cosine Distance. Defined as 1 - cosine similarity.
85 // of COSINE distance. Our algorithms have been more optimized for
87 // mathematically equivalent to COSINE distance and results in the same
161 // Cosine Distance. Defined as 1 - cosine similarity.
164 // of COSINE distance. Our algorithms have been more optimized for
166 // mathematically equivalent to COSINE distance and results in the same
/external/webrtc/common_audio/third_party/ooura/
DREADME.chromium1 Name: General Purpose FFT (Fast Fourier/Cosine/Sine Transform) Package
11 This is a package to calculate Discrete Fourier/Cosine/Sine Transforms of
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_Acosh.pbtxt3 summary: "Computes inverse hyperbolic cosine of x element-wise."
5 Given an input tensor, the function computes inverse hyperbolic cosine of every element.
Dapi_def_Cosh.pbtxt3 summary: "Computes hyperbolic cosine of x element-wise."
5 Given an input tensor, this function computes hyperbolic cosine of every
/external/fft2d/src/fft2d/fft2d/
Dreadme2d.txt41 ddct2d: 2-dim Discrete Cosine Transform
47 ddct3d: 3-dim Discrete Cosine Transform
53 ddct: 1-dim Discrete Cosine Transform
/external/apache-commons-math/src/main/java/org/apache/commons/math3/transform/
DFastCosineTransformer.java30 * Implements the Fast Cosine Transform for transformation of one-dimensional real data sets. For
33 * <p>There are several variants of the discrete cosine transform. The present implementation
38 * if x<sub>0</sub>, &hellip;, x<sub>N-1</sub> is the data set to be cosine transformed, the
54 * <p>The present implementation of the discrete cosine transform as a fast cosine transform
/external/rust/android-crates-io/crates/libm/src/math/
Dcos.rs15 // Return cosine function of x.
19 // k_cos ... cosine function on [-pi/4,pi/4]
45 /// The cosine of `x` (f64).
Dacoshf.rs5 /// Inverse hyperbolic cosine (f32)
7 /// Calculates the inverse hyperbolic cosine of `x`.
Dcosh.rs3 /// Hyperbolic cosine (f64)
5 /// Computes the hyperbolic cosine of the argument x.
Dacosh.rs5 /// Inverse hyperbolic cosine (f64)
7 /// Calculates the inverse hyperbolic cosine of `x`.
Dcoshf.rs3 /// Hyperbolic cosine (f64)
5 /// Computes the hyperbolic cosine of the argument x.

12345678910>>...19