Package smile.util.function
Interface IntArrayElementFunction
public interface IntArrayElementFunction
Represents a function that accepts an array element of integer value
and produces a result.
-
Method Summary
Modifier and TypeMethodDescriptionint
apply
(int i, int x) Performs this operation on the given element.
-
Method Details
-
apply
int apply(int i, int 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.
-