jsat.math
Interface IndexFunction
-
- All Superinterfaces:
- Function, java.io.Serializable
- All Known Subinterfaces:
- WordWeighting
- All Known Implementing Classes:
- BinaryWordPresent, OkapiBM25, TfIdf, WordCount
public interface IndexFunction extends Function
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method and Description default doublef(Vec x, boolean parallel)Evaluates the given function for the specified input vector.doubleindexFunc(double value, int index)An index function, meant to be applied to vectors where the value to be computed may vary based on the position in the vector of the value.-
Methods inherited from interface jsat.math.Function
f, f, forwardDifference
-
-
-
-
Method Detail
-
indexFunc
double indexFunc(double value, int index)An index function, meant to be applied to vectors where the value to be computed may vary based on the position in the vector of the value.- Parameters:
value- the value at the specified indexindex- the index the value is from- Returns:
- the computed result. If a negative index was given, the function should return 0.0 if indexFunc(0,indx) would return zero for all valid indices. If this is not the case, any non zero value should be returned.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG