public class KVector extends Object
Constructor and Description |
---|
KVector(double[] values) |
KVector(int size) |
Modifier and Type | Method and Description |
---|---|
double |
distanceFrom(KVector otherVector)
Calculates and returns euclidean distance of this vector from the given cluster
|
Cluster |
getCluster() |
double |
getDistance() |
double |
getIntensity()
Calculates and returns intensity of this vector
|
double |
getValueAt(int idx) |
double[] |
getValues() |
void |
setCluster(Cluster cluster) |
void |
setDistance(double distance) |
void |
setValueAt(int idx,
double value) |
void |
setValues(double[] values) |
int |
size() |
String |
toString() |
public void setValueAt(int idx, double value)
public double getValueAt(int idx)
public double[] getValues()
public void setValues(double[] values)
public Cluster getCluster()
public void setCluster(Cluster cluster)
public double getIntensity()
public double distanceFrom(KVector otherVector)
cluster
- public int size()
public double getDistance()
public void setDistance(double distance)
Copyright © 2019 Neuroph Project. All rights reserved.