blog.distrib
Class VectorInRect

java.lang.Object
  extended by blog.AbstractFunctionInterp
      extended by blog.distrib.VectorInRect
All Implemented Interfaces:
FunctionInterp

public class VectorInRect
extends AbstractFunctionInterp

Function that takes a column vector as an argument and returns true if the vector is in a certain rectangle. The rectangle is specified by the parameters to the constructor. These parameters should be a list of real numbers (min_1, max_1, min_2, max_2, ..., min_d, max_d). Then the function returns true on (x_1, x_2, ..., x_d) if min_1 ≤ x_1 ≤ max_1, ..., and min_d ≤ x_d ≤ max_d.


Constructor Summary
VectorInRect(java.util.List params)
          Creates a new VectorInRect function interpretation with min and max values for each dimension specified by the given parameter list.
 
Method Summary
 java.lang.Object getValue(java.util.List args)
          Returns Boolean.TRUE if the first element of args is a column vector (i.e., a Matrix with one column) in the specified rectangle; otherwise returns Boolean.FALSE.
 
Methods inherited from class blog.AbstractFunctionInterp
getInverseArgs, getInverseTuples
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorInRect

public VectorInRect(java.util.List params)
Creates a new VectorInRect function interpretation with min and max values for each dimension specified by the given parameter list.

Parameters:
params - list of Number objects
Method Detail

getValue

public java.lang.Object getValue(java.util.List args)
Returns Boolean.TRUE if the first element of args is a column vector (i.e., a Matrix with one column) in the specified rectangle; otherwise returns Boolean.FALSE.