Package elki.svm.data
Class DoubleWeightedDataSet
- java.lang.Object
-
- elki.svm.data.DoubleWeightedDataSet
-
-
Constructor Summary
Constructors Constructor Description DoubleWeightedDataSet(DataSet inner, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int v, double w)intclassnum(int i)Get the class number of the ith element.voidclear()doublesimilarity(int i, int j)Get the ith element.intsize()Size of data set.voidswap(int i, int j)Swap two elements.doublevalue(int i)Get the value of the ith element.
-
-
-
Field Detail
-
inner
DataSet inner
-
idx
int[] idx
-
weight
double[] weight
-
size
int size
-
-
Constructor Detail
-
DoubleWeightedDataSet
public DoubleWeightedDataSet(DataSet inner, int size)
-
-
Method Detail
-
similarity
public double similarity(int i, int j)Description copied from interface:DataSetGet the ith element.- Specified by:
similarityin interfaceDataSet- Parameters:
i- Element offsetj- Element offset- Returns:
- Element
-
size
public int size()
Description copied from interface:DataSetSize of data set.
-
value
public double value(int i)
Description copied from interface:DataSetGet the value of the ith element.
-
classnum
public int classnum(int i)
Description copied from interface:DataSetGet the class number of the ith element.
-
swap
public void swap(int i, int j)Description copied from interface:DataSetSwap two elements.
-
add
public void add(int v, double w)
-
clear
public void clear()
-
-