Documentation of 'org.neuroph.nnet.learning.kmeans.KVector' Java class
KVector
org.neuroph.nnet.learning.kmeans

Class KVector



  • public class KVector
    extends java.lang.Object
    Represents feature vector used in k-means clustering algorithm
    • Constructor Detail

      • KVector

        public KVector(int size)
      • KVector

        public KVector(double[] values)
    • Method Detail

      • setValueAt

        public void setValueAt(int idx,
                               double value)
      • getValueAt

        public double getValueAt(int idx)
      • getValues

        public double[] getValues()
      • setValues

        public void setValues(double[] values)
      • getCluster

        public Cluster getCluster()
      • setCluster

        public void setCluster(Cluster cluster)
      • getIntensity

        public double getIntensity()
        Calculates and returns intensity of this vector
        Returns:
        intensity of this vector
      • distanceFrom

        public double distanceFrom(KVector otherVector)
        Calculates and returns euclidean distance of this vector from the given cluster
        Parameters:
        cluster -
        Returns:
        euclidean distance of this vector from given cluster
      • size

        public int size()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDistance

        public double getDistance()
      • setDistance

        public void setDistance(double distance)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.