Package smile.util.function
Interface ArrayElementFunction
public interface ArrayElementFunction
Represents a function that accepts an array element of double value
and produces a result.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
apply
(int i, double x) Performs this operation on the given element.
-
Method Details
-
apply
double apply(int i, double x) Performs this operation on the given element.- Parameters:
i
- the index of array element.x
- the value of array element.- Returns:
- the function result.
-