Package smile.util
Interface ToFloatFunction<T>
public interface ToFloatFunction<T>
Represents a function that produces an float-valued result.
This is the float-producing primitive specialization for Function.
Java 8 doesn't have ToFloatFunction interface in java.util.function.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
applyAsFloat
(T o) Applies this function to the given argument.
-
Method Details
-
applyAsFloat
Applies this function to the given argument.- Parameters:
o
- the input object.- Returns:
- the function value.
-