Package edu.kit.mcda.core.normalization
Class PeakLinear
java.lang.Object
edu.kit.mcda.core.normalization.AbstractNormalization
edu.kit.mcda.core.normalization.PeakLinear
- All Implemented Interfaces:
Invertible
- Author:
- tim
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
org.jdom2.Element
Export data structure to a XML node.double[]
getDomainRange
(Criterion _criterion) Get the actual range of the domain to which the values are normalised.double
getPeak()
void
importFromXML
(org.jdom2.Element _masterNode) Imports the normalisation parameters from a specified XML node.boolean
double
Normalize a single values according to the values contained in the passed criterion.void
setInverse
(boolean _inverse) void
setPeak
(double _peak) Methods inherited from class edu.kit.mcda.core.normalization.AbstractNormalization
clearChanged, doNormalize, getNodeTag, getPlot, hasChanged, isHarmonise, normalize, normalize, rankIndex, rankIndex, rankValues, rankValues, setChanged, setHarmonise, toString
-
Constructor Details
-
PeakLinear
public PeakLinear()Beanstyle constructor of AbstractNormalize. No parameters required. Calls preInit(), init() and postInit();
-
-
Method Details
-
clone
- Specified by:
clone
in classAbstractNormalization
-
importFromXML
public void importFromXML(org.jdom2.Element _masterNode) Description copied from class:AbstractNormalization
Imports the normalisation parameters from a specified XML node.- Specified by:
importFromXML
in classAbstractNormalization
- Parameters:
_masterNode
- the XML node to import the paramters from
-
exportToXML
public org.jdom2.Element exportToXML()Export data structure to a XML node. Missing data, see class javadoc for details Returns null if an error occured during export- Specified by:
exportToXML
in classAbstractNormalization
- Returns:
- the master node where the data structure values are anchored
-
getPeak
public double getPeak()- Returns:
- the minimum
-
setPeak
public void setPeak(double _peak) - Parameters:
_peak
- the minimum to set
-
isInverse
public boolean isInverse()- Specified by:
isInverse
in interfaceInvertible
- Returns:
- the inverse
-
setInverse
public void setInverse(boolean _inverse) - Specified by:
setInverse
in interfaceInvertible
- Parameters:
_inverse
- the inverse to set
-
normalize
Description copied from class:AbstractNormalization
Normalize a single values according to the values contained in the passed criterion.- Specified by:
normalize
in classAbstractNormalization
- Parameters:
_criterion
- the criterion which is referred to for normalisation_value
- the value to be normalised- Returns:
- the normalised value according to the the values of the criterion
-
getDomainRange
Description copied from class:AbstractNormalization
Get the actual range of the domain to which the values are normalised. This is sometimes explicitly set and sometimes computed from the criteria values themselves.- Specified by:
getDomainRange
in classAbstractNormalization
- Parameters:
_criterion
- the criterion for which the domain range is requested- Returns:
- an array containing the lower and upper bound of the domain
-