public class Triplet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
error
Error obtained.
|
int |
k
Number of neightbours.
|
double[][] |
w
Tripel weights.
|
public double[][] w
public int k
public double error
public Triplet(int size, int classes)
size
- Matrix w size.classes
- Number of classes.public Triplet(double[][] wMatrix)
wMatrix
- matrix to be set.public Triplet(Triplet other)
other
- given Triplet to copy.