medusa.georgios.enhanced_mcl
Interface Instance
-
- All Superinterfaces:
- java.lang.Iterable<java.lang.Double>, java.util.Map<java.lang.Integer,java.lang.Double>, java.io.Serializable
public interface Instance extends java.util.Map<java.lang.Integer,java.lang.Double>, java.lang.Iterable<java.lang.Double>, java.io.SerializableThe interface for instances in a data set.- See Also:
Dataset
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description java.lang.ObjectclassValue()Returns the class value for this instance.Instancedivide(double value)Instancedivide(Instance currentRange)intgetID()Return unique identifier for this instance.Instanceminus(double value)Subtract an scalar from this instance and returns the results.Instanceminus(Instance min)Subtract an instance from this instance and returns the results.Instancemultiply(double value)Instancemultiply(Instance value)intnoAttributes()Returns the number of attributes this instance has.Instanceplus(double value)Instanceplus(Instance max)voidremoveAttribute(int i)Removes attribute from the instancevoidsetClassValue(java.lang.Object value)intsize()Deprecated.Instancesqrt()Take square root of all attributes.doublevalue(int pos)
-
-
-
Method Detail
-
classValue
java.lang.Object classValue()
Returns the class value for this instance.- Returns:
- class value of this instance, or null if the class is not set
-
setClassValue
void setClassValue(java.lang.Object value)
-
noAttributes
int noAttributes()
Returns the number of attributes this instance has.- Returns:
-
size
@Deprecated int size()
Deprecated.- Specified by:
sizein interfacejava.util.Map<java.lang.Integer,java.lang.Double>
-
value
double value(int pos)
-
minus
Instance minus(Instance min)
Subtract an instance from this instance and returns the results. This method does not modify this instance, but returns the result.- Parameters:
the- result of the subtraction
-
minus
Instance minus(double value)
Subtract an scalar from this instance and returns the results. This method does not modify this instance, but returns the result.- Parameters:
the- result of the subtraction
-
divide
Instance divide(double value)
-
plus
Instance plus(double value)
-
multiply
Instance multiply(double value)
-
removeAttribute
void removeAttribute(int i)
Removes attribute from the instance- Parameters:
i-
-
sqrt
Instance sqrt()
Take square root of all attributes.- Returns:
- instance with a the square root for all attributes
-
getID
int getID()
Return unique identifier for this instance.- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG