Class AbstractWeightedComposedMetric
java.lang.Object
org.somox.metrics.abstractmetrics.AbstractMetric
org.somox.metrics.abstractmetrics.AbstractComposedMetric
org.somox.metrics.abstractmetrics.AbstractWeightedComposedMetric
- All Implemented Interfaces:
IMetric
- Direct Known Subclasses:
ConfigurableWeightedComposedMetric
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ICompositionFunction
getCompositionFunction
(SoMoXConfiguration somoxConfiguration) Return the function used to compose the set of child metricsprotected abstract double[]
boolean
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractComposedMetric
getAllChildMetrics, getChildMetrics, initialize, internalComputeDirected, isCommutative, metricIDToIMetric
Methods inherited from class org.somox.metrics.abstractmetrics.AbstractMetric
calculateUnion, calculateUnion, checkMetricPostCondition, checkMetricPreCondition, computeDirected, getAccessGraphCache, getComponentToClassHelper, getLaunchConfigurationTab, getMetric, getMetricParameters
-
Constructor Details
-
AbstractWeightedComposedMetric
public AbstractWeightedComposedMetric()
-
-
Method Details
-
getCompositionFunction
Description copied from class:AbstractComposedMetric
Return the function used to compose the set of child metrics- Specified by:
getCompositionFunction
in classAbstractComposedMetric
- Parameters:
somoxConfiguration
- The somox configuration object used to initialize the function- Returns:
- The function used to compute the composed metric
-
getWeigths
protected abstract double[] getWeigths() -
isNormalised
public boolean isNormalised()- Returns:
- whether the metric is normalized. If it is normalized, values of this metric must be between 0.0 and 1.0.
-