Package ai.libs.jaicore.basic.metric
Class AWeightedTrigometricDistance
- java.lang.Object
-
- ai.libs.jaicore.basic.metric.AWeightedTrigometricDistance
-
- All Implemented Interfaces:
org.api4.java.common.math.IMetric<double[]>,IDistanceMetric
- Direct Known Subclasses:
DerivateDistance,TransformDistance
public abstract class AWeightedTrigometricDistance extends java.lang.Object implements IDistanceMetric
-
-
Constructor Summary
Constructors Constructor Description AWeightedTrigometricDistance(double alpha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetA()Getter for theaparameter.doublegetAlpha()Getter for the alpha value.doublegetB()Getter for theaparameter.voidsetAlpha(double alpha)Sets the alpha value and adjusts the measurement parametersa = cos(alpha)andb = sin(alpha)accordingly.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.api4.java.common.metric.IDistanceMetric
distance, getDistance
-
-
-
-
Method Detail
-
setAlpha
public void setAlpha(double alpha)
Sets the alpha value and adjusts the measurement parametersa = cos(alpha)andb = sin(alpha)accordingly.- Parameters:
alpha- The alpha value,0 <= alpha <= pi/2.
-
getAlpha
public double getAlpha()
Getter for the alpha value. It holds, that0 <= alpha <= pi/2.
-
getA
public double getA()
Getter for theaparameter. @see #a
-
getB
public double getB()
Getter for theaparameter. @see #b
-
-