Catalano.MachineLearning.FeatureScaling
Class PowerNormalization
- java.lang.Object
-
- Catalano.MachineLearning.FeatureScaling.PowerNormalization
-
- All Implemented Interfaces:
- IFeatureScaling, java.io.Serializable
public class PowerNormalization extends java.lang.Object implements IFeatureScaling
Power normalization. f(x) = sign(x)|x|^p- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PowerNormalization()Initializes a new instance of the PowerNormalization class.PowerNormalization(double power)Initializes a new instance of the PowerNormalization class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[][]Apply(DecisionVariable[] variables, double[][] data)Apply the normalization.double[][]Apply(double[][] data)Apply the normalization.voidApplyInPlace(DecisionVariable[] variables, double[][] data)Apply the normalization in place of the original data.voidApplyInPlace(double[][] data)Apply the normalization in place of the original data.double[]Compute(DecisionVariable[] variables, double[] feature)Normalize the feature.double[]Compute(double[] feature)Normalize the feature.doublegetPower()Get power.voidsetPower(double power)Set power.
-
-
-
Constructor Detail
-
PowerNormalization
public PowerNormalization()
Initializes a new instance of the PowerNormalization class.
-
PowerNormalization
public PowerNormalization(double power)
Initializes a new instance of the PowerNormalization class.- Parameters:
power- Power.
-
-
Method Detail
-
getPower
public double getPower()
Get power.- Returns:
- Power.
-
setPower
public void setPower(double power)
Set power.- Parameters:
power- Power.
-
Apply
public double[][] Apply(double[][] data)
Description copied from interface:IFeatureScalingApply the normalization.- Specified by:
Applyin interfaceIFeatureScaling- Parameters:
data- Data to be normalized.- Returns:
- Normalized data.
-
Apply
public double[][] Apply(DecisionVariable[] variables, double[][] data)
Description copied from interface:IFeatureScalingApply the normalization.- Specified by:
Applyin interfaceIFeatureScaling- Parameters:
variables- Decision variables.data- Data to be normalized.- Returns:
- Normalized. data.
-
ApplyInPlace
public void ApplyInPlace(double[][] data)
Description copied from interface:IFeatureScalingApply the normalization in place of the original data.- Specified by:
ApplyInPlacein interfaceIFeatureScaling- Parameters:
data- Data to be normalized.
-
ApplyInPlace
public void ApplyInPlace(DecisionVariable[] variables, double[][] data)
Description copied from interface:IFeatureScalingApply the normalization in place of the original data.- Specified by:
ApplyInPlacein interfaceIFeatureScaling- Parameters:
variables- Decision variables.data- Data to be normalized.
-
Compute
public double[] Compute(double[] feature)
Description copied from interface:IFeatureScalingNormalize the feature.- Specified by:
Computein interfaceIFeatureScaling- Parameters:
feature- Feature to be normalized.- Returns:
- Normalized feature.
-
Compute
public double[] Compute(DecisionVariable[] variables, double[] feature)
Description copied from interface:IFeatureScalingNormalize the feature.- Specified by:
Computein interfaceIFeatureScaling- Parameters:
variables- Decision variables.feature- Feature.- Returns:
- Normalized feature.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG