Class ImputeKNN
- java.lang.Object
-
- org.ujmp.core.calculation.AbstractCalculation
-
- org.ujmp.core.doublematrix.calculation.AbstractDoubleCalculation
-
- org.ujmp.core.doublematrix.calculation.general.missingvalues.ImputeKNN
-
- All Implemented Interfaces:
java.io.Serializable
,Calculation
,DoubleCalculation
public class ImputeKNN extends AbstractDoubleCalculation
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ujmp.core.calculation.Calculation
Calculation.Ret
-
-
Field Summary
Fields Modifier and Type Field Description private Matrix
distanceMatrix
private int
k
private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<java.lang.Integer>
getCandidates(long... coordinates)
private Matrix
getDistanceMatrix()
double
getDouble(long... coordinates)
private java.util.List<Sortable<java.lang.Double,Matrix>>
getSortedNeighbors(long... coordinates)
-
Methods inherited from class org.ujmp.core.doublematrix.calculation.AbstractDoubleCalculation
calcLink, calcNew, calcOrig, getValueType, setDouble
-
Methods inherited from class org.ujmp.core.calculation.AbstractCalculation
availableCoordinates, calc, containsCoordinates, getColumnCount, getDimension, getMetaData, getRowCount, getSize, getSource, getSources, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ujmp.core.calculation.Calculation
availableCoordinates, calc, containsCoordinates, getColumnCount, getDimension, getMetaData, getRowCount, getSize, getSource, getSources, setMetaData
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
distanceMatrix
private Matrix distanceMatrix
-
k
private int k
-
-
Constructor Detail
-
ImputeKNN
public ImputeKNN(Matrix matrix, java.lang.Object... parameters)
-
-
Method Detail
-
getCandidates
private java.util.List<java.lang.Integer> getCandidates(long... coordinates)
-
getDistanceMatrix
private Matrix getDistanceMatrix()
-
getSortedNeighbors
private java.util.List<Sortable<java.lang.Double,Matrix>> getSortedNeighbors(long... coordinates)
-
getDouble
public double getDouble(long... coordinates)
-
-