-
- All Implemented Interfaces:
public final class Math
-
-
Method Summary
Modifier and Type Method Description final static Double
snz(Double x)
final static Double
clamp(Double x, Double lo, Double hi)
final static List<Double>
range(Double begin, Double end, Integer samples)
final static List<Double>
rangeMiddle(Double begin, Double end, Integer samples)
final static Double
lerp(Double x, Double fromLo, Double fromHi, Double toLo, Double toHi)
final static IntegralScanResult
integralScan(Double a, Double b, Double eps, Function1<Double, Double> f)
-
-
Method Detail
-
range
final static List<Double> range(Double begin, Double end, Integer samples)
- Parameters:
begin
- \(a\)end
- \(b\)samples
- \(n\)
-
rangeMiddle
final static List<Double> rangeMiddle(Double begin, Double end, Integer samples)
- Parameters:
begin
- \(a\)end
- \(b\)samples
- \(n\)
-
integralScan
final static IntegralScanResult integralScan(Double a, Double b, Double eps, Function1<Double, Double> f)
- Parameters:
a
- \(a\)b
- \(b\)eps
- desired error in the length approximation \(g(b)\)f
- \(f(x)\)
-
-
-
-