T
- public abstract class InformationLoss<T> extends java.lang.Object implements java.lang.Comparable<InformationLoss<?>>, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
abstract InformationLoss<T> |
clone()
Returns a clone of this object.
|
abstract int |
compareTo(InformationLoss<?> other)
Compares the loss to the other.
|
static InformationLoss<?> |
createInformationLoss(InformationLoss<?> loss,
Metric<?> metric,
int minLevel,
int maxLevel)
Converter method, converting information loss from version 1 to information loss from version 2,
if necessary.
|
abstract boolean |
equals(java.lang.Object obj) |
java.util.List<QualityMetadata<?>> |
getMetadata()
Adds new metadata
|
abstract T |
getValue()
Returns the value
|
abstract int |
hashCode() |
abstract void |
max(InformationLoss<?> other)
Retains the maximum of this and other.
|
abstract void |
min(InformationLoss<?> other)
Retains the minimum of this and other.
|
abstract double |
relativeTo(InformationLoss<?> min,
InformationLoss<?> max)
Returns the value relative to the other instance.
|
abstract java.lang.String |
toString()
Returns a string representation.
|
public static InformationLoss<?> createInformationLoss(InformationLoss<?> loss, Metric<?> metric, int minLevel, int maxLevel)
loss
- metric
- minLevel
- maxLevel
- public abstract InformationLoss<T> clone()
clone
in class java.lang.Object
public abstract int compareTo(InformationLoss<?> other)
compareTo
in interface java.lang.Comparable<InformationLoss<?>>
other
- public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.List<QualityMetadata<?>> getMetadata()
metadata
- public abstract T getValue()
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract void max(InformationLoss<?> other)
other
- public abstract void min(InformationLoss<?> other)
other
- public abstract double relativeTo(InformationLoss<?> min, InformationLoss<?> max)
min
- max
- public abstract java.lang.String toString()
toString
in class java.lang.Object