Package edu.gsu.cs.dmlab.imageproc
Class ImgParamNormalizer
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.ImgParamNormalizer
-
- All Implemented Interfaces:
IImgParamNormalizer
public class ImgParamNormalizer extends Object implements IImgParamNormalizer
ImgParamNormalizer class simply does min-max normalization on the passed in array of parameter values.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description ImgParamNormalizer(HashMap<Integer,double[]> rangeMap)
Constructor that takes in the set of min-max pair for each dimension the parameter arrays this object is meant to normalize.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
void
normalizeParameterValues(double[][][] parameters)
Normalizes the parameter values to have a range between 0..1 inclusive, based upon the range of values expected for the particular parameter and not the values seen in the given input.
-
-
-
Constructor Detail
-
ImgParamNormalizer
public ImgParamNormalizer(HashMap<Integer,double[]> rangeMap)
Constructor that takes in the set of min-max pair for each dimension the parameter arrays this object is meant to normalize. Any values will be clipped to outside the ranges will be clipped to be the edge value.- Parameters:
rangeMap
- The set of min-max pairs for each dimension of the passed in parameter arrays.
-
-
Method Detail
-
finalize
public void finalize() throws Throwable
-
normalizeParameterValues
public void normalizeParameterValues(double[][][] parameters)
Description copied from interface:IImgParamNormalizer
Normalizes the parameter values to have a range between 0..1 inclusive, based upon the range of values expected for the particular parameter and not the values seen in the given input.- Specified by:
normalizeParameterValues
in interfaceIImgParamNormalizer
- Parameters:
parameters
- The input to normalize.
-
-