All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----aima.math.Function
Math functions. Simple math functions to augment those in java.lang.Math.
public class Function extends java.lang.Object { // Constructors 1 public Function(); // Methods 2 public static int argmax(double[]); public static double max(double[]); }
public Function()
Default constructor
public static double max(double[] x)
Computes the max of an array of doubles.
Parameter Description x An array of doubles. x = {x_1, x_2, ... x_n}.
- Returns:
- max_i(x)
public static int argmax(double[] x)
Computes the index of the max element in an array of doubles.
Parameter Description x An array of doubles. x = {x_1, x_2, ... x_n}.
- Returns:
- argmax_i(x)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4