Documentation of 'medusa.georgios.enhanced_mcl.Instance' Java class
Instance
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.Serializable
    The interface for instances in a data set.
    See Also:
    Dataset
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K,V>
    • 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:
        size in interface java.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)
      • 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

You see the box below because you did not login.