Package smile.util

Interface ToFloatFunction<T>

Type Parameters:
T - the type of the input to the function.

public interface ToFloatFunction<T>
Represents a function that produces a float-valued result. This is the float-producing primitive specialization for Function.

There is no ToFloatFunction interface in java.util.function.

  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Applies this function to the given argument.
  • Method Details

    • applyAsFloat

      float applyAsFloat(T o)
      Applies this function to the given argument.
      Parameters:
      o - the input object.
      Returns:
      the function value.