Home
last modified time | relevance | path

Searched refs:slope (Results 1 – 25 of 153) sorted by relevance

1234567

/external/guava/guava/src/com/google/common/math/
DLinearTransformation.java89 public LinearTransformation withSlope(double slope) { in withSlope() argument
90 checkArgument(!Double.isNaN(slope)); in withSlope()
91 if (isFinite(slope)) { in withSlope()
92 double yIntercept = y1 - x1 * slope; in withSlope()
93 return new RegularLinearTransformation(slope, yIntercept); in withSlope()
115 double slope = 0.0; in horizontal() local
116 return new RegularLinearTransformation(slope, y); in horizontal()
140 public abstract double slope(); in slope() method in LinearTransformation
161 final double slope; field in LinearTransformation.RegularLinearTransformation
166 RegularLinearTransformation(double slope, double yIntercept) { in RegularLinearTransformation() argument
[all …]
/external/guava/android/guava/src/com/google/common/math/
DLinearTransformation.java89 public LinearTransformation withSlope(double slope) { in withSlope() argument
90 checkArgument(!Double.isNaN(slope)); in withSlope()
91 if (isFinite(slope)) { in withSlope()
92 double yIntercept = y1 - x1 * slope; in withSlope()
93 return new RegularLinearTransformation(slope, yIntercept); in withSlope()
115 double slope = 0.0; in horizontal() local
116 return new RegularLinearTransformation(slope, y); in horizontal()
140 public abstract double slope(); in slope() method in LinearTransformation
161 final double slope; field in LinearTransformation.RegularLinearTransformation
166 RegularLinearTransformation(double slope, double yIntercept) { in RegularLinearTransformation() argument
[all …]
/external/XNNPACK/test/
Df32-vlrelu.cc65 TEST(F32_VLRELU__NEON_X4, slope) { in TEST() argument
67 for (float slope : std::vector<float>({-0.7f, 0.3f, 1.3f})) { in TEST() local
71 .slope(slope) in TEST()
124 TEST(F32_VLRELU__NEON_X8, slope) { in TEST() argument
126 for (float slope : std::vector<float>({-0.7f, 0.3f, 1.3f})) { in TEST() local
130 .slope(slope) in TEST()
183 TEST(F32_VLRELU__SSE_X4, slope) { in TEST() argument
185 for (float slope : std::vector<float>({-0.7f, 0.3f, 1.3f})) { in TEST() local
189 .slope(slope) in TEST()
242 TEST(F32_VLRELU__SSE_X8, slope) { in TEST() argument
[all …]
Dvunary-microkernel-tester.h64 inline VUnOpMicrokernelTester& slope(float slope) { in slope() function
65 this->slope_ = slope; in slope()
69 inline float slope() const { in slope() function
167 y_ref[i] = std::signbit(x_data[i]) ? x_data[i] * slope() : x_data[i];
236 params.lrelu = xnn_init_f32_lrelu_params(slope());
239 params.lrelu = xnn_init_scalar_f32_lrelu_params(slope());
/external/skqp/src/core/
DSkAnalyticEdge.cpp261 SkFixed slope = quick_div(dx, dy); in setLine() local
262 SkFixed absSlope = SkAbs32(slope); in setLine()
265 fDX = slope; in setLine()
270 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
309 SkASSERT(slope < SK_MaxS32); in updateLine()
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
313 fDX = slope; in updateLine()
318 fDY = (dx == 0 || slope == 0) in updateLine()
377 SkFixed slope; in updateQuadratic() local
[all …]
DSkScan_Antihair.cpp102 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
103 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
111 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument
133 SkFixed slope) override { in drawLine() argument
339 SkFixed fstart, slope; in do_anti_hairline() local
358 slope = 0; in do_anti_hairline()
361 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
362 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
363 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
383 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
/external/skia/src/core/
DSkAnalyticEdge.cpp261 SkFixed slope = quick_div(dx, dy); in setLine() local
262 SkFixed absSlope = SkAbs32(slope); in setLine()
265 fDX = slope; in setLine()
270 fDY = dx == 0 || slope == 0 ? SK_MaxS32 : absSlope < kInverseTableSize in setLine()
283 bool SkAnalyticEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1, SkFixed slope) { in updateLine() argument
309 SkASSERT(slope < SK_MaxS32); in updateLine()
311 SkFDot6 absSlope = SkAbs32(SkFixedToFDot6(slope)); in updateLine()
313 fDX = slope; in updateLine()
318 fDY = (dx == 0 || slope == 0) in updateLine()
377 SkFixed slope; in updateQuadratic() local
[all …]
DSkScan_Antihair.cpp108 virtual SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) = 0;
109 virtual SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) = 0;
117 SkFixed drawCap(int x, SkFixed fy, SkFixed slope, int mod64) override { in drawCap() argument
138 SkFixed drawLine(int x, int stopx, SkFixed fy, SkFixed slope) override { in drawLine() argument
344 SkFixed fstart, slope; in do_anti_hairline() local
363 slope = 0; in do_anti_hairline()
366 slope = fastfixdiv(y1 - y0, x1 - x0); in do_anti_hairline()
367 SkASSERT(slope >= -SK_Fixed1 && slope <= SK_Fixed1); in do_anti_hairline()
368 fstart += (slope * (32 - (x0 & 63)) + 32) >> 6; in do_anti_hairline()
388 fstart += slope * (clip->fLeft - istart); in do_anti_hairline()
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DLinearTransformationTest.java142 double slope = -7.8; in testMappingWithSlope_regular() local
143 LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); in testMappingWithSlope_regular()
144 assertDiagonalLinearTransformation(transformation, x1, y1, xDelta, xDelta * slope); in testMappingWithSlope_regular()
165 double slope = Double.MIN_VALUE; in testMappingWithSlope_minimalSlope() local
166 LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); in testMappingWithSlope_minimalSlope()
169 assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope); in testMappingWithSlope_minimalSlope()
177 double slope = Double.MAX_VALUE; in testMappingWithSlope_maximalSlope() local
178 LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); in testMappingWithSlope_maximalSlope()
181 assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope); in testMappingWithSlope_maximalSlope()
/external/guava/android/guava-tests/test/com/google/common/math/
DLinearTransformationTest.java142 double slope = -7.8; in testMappingWithSlope_regular() local
143 LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); in testMappingWithSlope_regular()
144 assertDiagonalLinearTransformation(transformation, x1, y1, xDelta, xDelta * slope); in testMappingWithSlope_regular()
165 double slope = Double.MIN_VALUE; in testMappingWithSlope_minimalSlope() local
166 LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); in testMappingWithSlope_minimalSlope()
169 assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope); in testMappingWithSlope_minimalSlope()
177 double slope = Double.MAX_VALUE; in testMappingWithSlope_maximalSlope() local
178 LinearTransformation transformation = LinearTransformation.mapping(x1, y1).withSlope(slope); in testMappingWithSlope_maximalSlope()
181 assertThat(transformation.slope()).isWithin(ALLOWED_ERROR).of(slope); in testMappingWithSlope_maximalSlope()
/external/linux-kselftest/tools/testing/selftests/timers/
Dfreq-step.c112 double *slope, double *r_stddev, double *r_max) in regress() argument
129 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress()
130 *intercept = (y_sum - *slope * x_sum) / n; in regress()
137 r = fabs(x * *slope + *intercept - y); in regress()
149 double intercept, slope, stddev1, max1, stddev2, max2; in run_test() local
173 regress(samples, SAMPLES, &intercept, &slope, &stddev1, &max1); in run_test()
174 mono_freq_offset = slope; in run_test()
180 regress(samples, SAMPLES / 2, &intercept, &slope, &stddev1, &max1); in run_test()
181 freq_error1 = slope * (1.0 - mono_freq_offset) - mono_freq_offset - in run_test()
184 regress(samples + SAMPLES / 2, SAMPLES / 2, &intercept, &slope, in run_test()
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/vision/utils/
Dscore_calibration.h40 Sigmoid(std::string label, float slope, float offset, float scale = 1.0,
43 slope(slope), in label()
49 return label == other.label && slope == other.slope &&
56 float slope; member
/external/webrtc/modules/audio_coding/audio_network_adaptor/util/
Dthreshold_curve.h50 slope(b.x - a.x == 0.0f ? 0.0f : (b.y - a.y) / (b.x - a.x)), in ThresholdCurve()
51 offset(a.y - slope * a.x) { in ThresholdCurve()
67 return p.y < offset + slope * p.x; in IsBelowCurve()
78 return p.y > offset + slope * p.x; in IsAboveCurve()
112 const float slope; variable
/external/rust/crates/criterion/src/
Destimate.rs68 slope: None, in build_estimates()
110 pub slope: Option<Estimate>, field
115 self.slope.as_ref().unwrap_or(&self.mean) in typical()
122 Statistic::Slope => self.slope.as_ref(), in get()
133 pub slope: Option<Distribution<f64>>, field
138 self.slope.as_ref().unwrap_or(&self.mean) in typical()
145 Statistic::Slope => self.slope.as_ref(), in get()
/external/deqp-deps/amber/tests/cases/
Dopencl_set_arg.amber17 kernel void line(global int* in, global int* out, int slope, int offset) {
18 *out = *in * slope + offset;
34 SET KERNEL ARG_NAME slope AS int32 2
53 SET KERNEL ARG_NAME slope AS int32 3
62 SET KERNEL ARG_NAME slope AS int32 3
/external/XNNPACK/bench/
Dprelu.cc40 std::vector<float> slope(channels); in xnnpack_prelu_f32() local
41 std::generate(slope.begin(), slope.end(), std::ref(f32wrng)); in xnnpack_prelu_f32()
53 slope.data(), in xnnpack_prelu_f32()
111 std::vector<float> slope(channels); in tflite_prelu_f32() local
112 std::generate(slope.begin(), slope.end(), std::ref(f32wrng)); in tflite_prelu_f32()
121 reinterpret_cast<const uint8_t*>(slope.data()), in tflite_prelu_f32()
122 sizeof(float) * slope.size())), in tflite_prelu_f32()
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/regression/
DSimpleRegression.java610 private double getIntercept(double slope) { in getIntercept() argument
611 return (sumY - slope * sumX) / n; in getIntercept()
620 private double getRegressionSumSquares(double slope) { in getRegressionSumSquares() argument
621 return slope * slope * sumXX; in getRegressionSumSquares()
/external/skia/src/shaders/gradients/
DSkSweepGradient.cpp70 slope = min(xabs, yabs) / max(xabs, yabs); in transformT() local
71 skvm::F32 s = slope * slope; in transformT()
77 skvm::F32 phi = slope * poly(s, -7.0547382347285747528076171875e-3f, in transformT()
/external/deqp/external/vulkancts/modules/vulkan/clipping/
DvktClippingTests.cpp117 …ector<Vec4> genVertices (const VkPrimitiveTopology topology, const Vec4& offset, const float slope) in genVertices() argument
131 vertices.push_back(offset + Vec4(0.0f, 0.0f, slope/2.0f + z, w)); in genVertices()
133 vertices.push_back(offset + Vec4( hp, -hp, slope + z, w)); in genVertices()
135 vertices.push_back(offset + Vec4( hp, hp, slope + z, w)); in genVertices()
140 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
141 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
142 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); // line 1 in genVertices()
143 vertices.push_back(offset + Vec4( p, -p, slope + z, w)); in genVertices()
150 vertices.push_back(offset + Vec4( p, p, slope + z, w)); // line 0 in genVertices()
153 vertices.push_back(offset + Vec4( p, p, slope + z, w)); in genVertices()
[all …]
/external/dng_sdk/source/
Ddng_1d_table.cpp165 real64 slope = (y1 - y0) * 65535.0; in Expand16() local
173 table16 [j] = (uint16) (base + slope * fract); in Expand16()
187 slope = (y1 - y0) * 65535.0; in Expand16()
/external/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_shader_fragment.cpp450 GPRVector slope = get_temp_vec4(); in emit_interp_deref_at_sample() local
452 auto fetch = new FetchInstruction(vc_fetch, no_index_offset, slope, in emit_interp_deref_at_sample()
488 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(0), {grad.reg_i(0), slope.reg_i(2), in… in emit_interp_deref_at_sample()
489 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(1), {grad.reg_i(1), slope.reg_i(2), in… in emit_interp_deref_at_sample()
491 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(0), {grad.reg_i(2), slope.reg_i(3), sl… in emit_interp_deref_at_sample()
492 …emit_instruction(new AluInstruction(op3_muladd, slope.reg_i(1), {grad.reg_i(3), slope.reg_i(3), sl… in emit_interp_deref_at_sample()
494 Interpolator ip = {true, 0, slope.reg_i(1), slope.reg_i(0)}; in emit_interp_deref_at_sample()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DSmoothRateLimiter.java210 private double slope; field in SmoothRateLimiter.SmoothWarmingUp
229 slope = (coldIntervalMicros - stableIntervalMicros) / (maxPermits - thresholdPermits); in doSetRate()
261 return stableIntervalMicros + permits * slope; in permitsToTime()
/external/guava/guava/src/com/google/common/util/concurrent/
DSmoothRateLimiter.java210 private double slope; field in SmoothRateLimiter.SmoothWarmingUp
229 slope = (coldIntervalMicros - stableIntervalMicros) / (maxPermits - thresholdPermits); in doSetRate()
261 return stableIntervalMicros + permits * slope; in permitsToTime()
/external/skqp/src/pathops/
DSkPathOpsWinding.cpp139 SkDVector slope; in rayCheck() local
141 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck()
159 slope = this->dSlopeAtT(t); in rayCheck()
168 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck()
182 newHit->fSlope = slope; in rayCheck()
/external/skia/src/pathops/
DSkPathOpsWinding.cpp140 SkDVector slope; in rayCheck() local
142 SkDEBUGCODE(sk_bzero(&slope, sizeof(slope))); in rayCheck()
160 slope = this->dSlopeAtT(t); in rayCheck()
169 if (fabs(pt_dydx(slope, dir) * 10000) > fabs(pt_dxdy(slope, dir))) { in rayCheck()
183 newHit->fSlope = slope; in rayCheck()

1234567