Package io.jenetics.prog.regression
Class Sampling.Result<T>
- java.lang.Object
-
- io.jenetics.prog.regression.Sampling.Result<T>
-
- Type Parameters:
T
- the sample result type
public static final class Sampling.Result<T> extends Object
This class represents the result of a sample calculation, which contains the array of calculated values and a corresponding array with expected sample values. This two arrays can then be used for calculating the error between modeled regression function and actual sample values.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T[]
calculated()
Return the the calculated result values.T[]
expected()
Return the expected sample result values.static <T> Sampling.Result<T>
of(T[] calculated, T[] expected)
Create a new sampling result object.
-
-
-
Method Detail
-
calculated
public T[] calculated()
Return the the calculated result values.- Returns:
- the the calculated result values
-
expected
public T[] expected()
Return the expected sample result values.- Returns:
- the expected sample result values
-
of
public static <T> Sampling.Result<T> of(T[] calculated, T[] expected)
Create a new sampling result object.- Type Parameters:
T
- the sample type- Parameters:
calculated
- the calculated valuesexpected
- the expected sample values- Returns:
- a new sampling result object
- Throws:
NullPointerException
- if one of the arguments isnull
-
-