All Packages  This Package  Class Hierarchy  Class Search  Index

Class aima.math.Function

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[]);
}



Constructors


Function

   public Function() 

Default constructor




Methods


max

   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)


argmax

   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  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4