public class DataProcessors extends Object
Transformation2D
instances in
this class assume columns represent variables, and rows samples.Modifier and Type | Field and Description |
---|---|
static Transformation2D<Double> |
CENTER
Variables centered so that their average will be 0.0
|
static Transformation2D<Double> |
CENTER_AND_SCALE
Variables will be centered around 0.0 AND scaled to be [-1.0,1.0].
|
static Transformation2D<Double> |
SCALE
Variables scaled to be within [-1.0,1.0] (divide by largest magnitude regardless of sign).
|
static Transformation2D<Double> |
STANDARD_SCORE
Will normalise each variable - replace each value with its standard score.
|
Constructor and Description |
---|
DataProcessors() |
Modifier and Type | Method and Description |
---|---|
static <D extends Access2D<?> & Access2D.Sliceable<?>,M extends Mutate2D> |
covariances(Factory2D<M> factory,
D data)
Variables in columns and samples in rows
|
static <M extends PhysicalStore<Double>> |
covariances(Factory2D<M> factory,
SingularValue<Double> svd) |
static <M extends PhysicalStore<Double>> |
covariances(Factory2D<M> factory,
SingularValue<Double> svd,
double threshold) |
static <M extends PhysicalStore<Double>> |
covariances(Factory2D<M> factory,
SingularValue<Double> svd,
int complexity) |
static Transformation2D<Double> |
newTransformation2D(Function<SampleSet,UnaryFunction<Double>> definition) |
public static final Transformation2D<Double> CENTER
public static final Transformation2D<Double> CENTER_AND_SCALE
public static final Transformation2D<Double> SCALE
public static final Transformation2D<Double> STANDARD_SCORE
public static <D extends Access2D<?> & Access2D.Sliceable<?>,M extends Mutate2D> M covariances(Factory2D<M> factory, D data)
public static <M extends PhysicalStore<Double>> M covariances(Factory2D<M> factory, SingularValue<Double> svd)
public static <M extends PhysicalStore<Double>> M covariances(Factory2D<M> factory, SingularValue<Double> svd, double threshold)
public static <M extends PhysicalStore<Double>> M covariances(Factory2D<M> factory, SingularValue<Double> svd, int complexity)
factory
- A factory that will produce the returned covariance matrixsvd
- A pre-decomposed SVD instance. The original matrix is assumed to have centered data in its
columnscomplexity
- The maximum number of singular values that should be consideredpublic static Transformation2D<Double> newTransformation2D(Function<SampleSet,UnaryFunction<Double>> definition)
Copyright © 2019 Optimatika. All rights reserved.