public final class Functions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DiscreteFunction<java.lang.Double,java.lang.Double> |
convertToDiscreteFunctionFrom(double[] times,
double[] values) |
static DiscreteFunction<java.lang.Double,java.lang.Double> |
convertToDiscreteFunctionFrom(double[] times,
double[] values,
double[] errors) |
static DiscreteFunction<java.lang.Double,java.lang.Double> |
convertToDiscreteFunctionFrom(java.util.Map<java.lang.Double,java.lang.Double> map,
java.lang.String name) |
static DiscreteFunction<java.lang.Double,java.lang.Double> |
createInterpolatedFunctionFromTwoPoints(double startPoint,
double endPoint,
double length) |
static DiscreteFunction<java.lang.Double,java.lang.Double> |
cutBeginingOfExp(DiscreteFunction<java.lang.Double,java.lang.Double> function,
double yLimit)
Allows to get cut first part of ig exp decay if above limit.
|
static DiscreteFunction<java.lang.Double,java.lang.Double> |
emptyDiscreteFunction() |
static java.util.List<java.lang.Double> |
getXsIntersection(DiscreteFunction<java.lang.Double,?> first,
DiscreteFunction<java.lang.Double,?> second) |
static double |
integrate(DiscreteFunction<java.lang.Double,java.lang.Double> function)
Performs numerical integral of given function within full range of given function.
|
static double |
integrate(DiscreteFunction<java.lang.Double,java.lang.Double> function,
double start,
double end)
performs numerical integral of given function within start and end values.
|
static DiscreteFunction<java.lang.Double,java.lang.Double> |
scaleFunction(DiscreteFunction<java.lang.Double,java.lang.Double> function,
double scale)
Multiplies the Y values of the given function with the value
scale . |
public static DiscreteFunction<java.lang.Double,java.lang.Double> convertToDiscreteFunctionFrom(double[] times, double[] values)
public static java.util.List<java.lang.Double> getXsIntersection(DiscreteFunction<java.lang.Double,?> first, DiscreteFunction<java.lang.Double,?> second)
public static DiscreteFunction<java.lang.Double,java.lang.Double> convertToDiscreteFunctionFrom(double[] times, double[] values, double[] errors)
public static DiscreteFunction<java.lang.Double,java.lang.Double> convertToDiscreteFunctionFrom(java.util.Map<java.lang.Double,java.lang.Double> map, java.lang.String name)
public static DiscreteFunction<java.lang.Double,java.lang.Double> emptyDiscreteFunction()
public static DiscreteFunction<java.lang.Double,java.lang.Double> createInterpolatedFunctionFromTwoPoints(double startPoint, double endPoint, double length)
public static DiscreteFunction<java.lang.Double,java.lang.Double> scaleFunction(DiscreteFunction<java.lang.Double,java.lang.Double> function, double scale)
scale
.function
- the function to scalescale
- the factor, by which to multiply the function Y valuespublic static double integrate(DiscreteFunction<java.lang.Double,java.lang.Double> function)
function
- the function to treatpublic static double integrate(DiscreteFunction<java.lang.Double,java.lang.Double> function, double start, double end)
function
- the function to integratestart
- the lower border of the integrationend
- the upper border of the integrationpublic static DiscreteFunction<java.lang.Double,java.lang.Double> cutBeginingOfExp(DiscreteFunction<java.lang.Double,java.lang.Double> function, double yLimit)
function
- function to treatyLimit
- UPPER limit, above which original values are omitted