Functions Class Reference

#include <Functions.h>


Public Member Functions

 Functions (const DString &bean)

Static Public Member Functions

static bool isFunction (const DString &bean)
static DString doFunction (const DString &bean, DString *parameters, int numberOfParameters, double *gparameters, int numberOfGparameters, DHashMap< Plane< Double > > *storedStuff, DString *currentDirectory)
 Returns the result of a function Object[] uses the follow structure: os[0] = Object[LTree[]], os[1] = LinAl, os[2] = misc.
static DString listFunctions ()
static DString getHelp (const DString &)
static double * PlaneToComplexArray (Plane< Double > *dPlane)
static Plane< Double > * ComplexArrayToPlane (double *cPlane, int rows, int columns, double normalizationConst=1)
static std::vector< Double > matrixMultiply (std::vector< Double > a, std::vector< Double > b, int I, int J, int K)
static Plane< Double > * directProduct (Plane< Double > *a, Plane< Double > *b)
static std::vector< Double > addMatrices (std::vector< Double > A, std::vector< Double > B, int rows, int columns) throw (DavidException)
static Plane< Double > * squarePlane (Plane< Double > *oldPlane, int newWidth=-1)
static void writePlotableData (Plane< Double > *plane, DString fileName, int writeParameter)
static Plane< Double > * convertComplexPlaneToDoublePlane (Plane< math::Complex > *oldPlane)
static Plane< math::Complex > * convertDoublePlaneToComplexPlane (Plane< Double > *oldPlane)
static utils::DArray< DString > * getFunctions ()
static Plane< Double > * floorMe (Plane< Double > *original, double floor, bool useAbs=false, bool inverseFloor=false)
static Plane< math::Complex > * complexConjugate (Plane< math::Complex > *original)
static Plane< math::Complex > * getRealPart (const Plane< math::Complex > *original)
static Plane< math::Complex > * getImaginaryPart (const Plane< math::Complex > *original)
static Plane< math::Complex > * extractPortion (const Plane< math::Complex > *original, utils::DArray< DString > &parameters) throw (DavidException)
static DString fullFilename (DString fileName, DString *currentDirectory)
 Creates an absolute file name.

Static Public Attributes

static const int PARAMETER_USE_SM = 1
static const int PARAMETER_FLIP_COORDINATES = 2

Private Attributes

DString * functionType


Constructor & Destructor Documentation

Functions::Functions ( const DString &  bean  ) 


Member Function Documentation

std::vector< Double > Functions::addMatrices ( std::vector< Double >  A,
std::vector< Double >  B,
int  rows,
int  columns 
) throw (DavidException) [static]

Referenced by doFunction().

Plane< Double > * Functions::ComplexArrayToPlane ( double *  cPlane,
int  rows,
int  columns,
double  normalizationConst = 1 
) [static]

Referenced by doFunction().

Plane< math::Complex > * Functions::complexConjugate ( Plane< math::Complex > *  original  )  [static]

Referenced by doFunction().

Plane< Double > * Functions::convertComplexPlaneToDoublePlane ( Plane< math::Complex > *  oldPlane  )  [static]

Plane< math::Complex > * Functions::convertDoublePlaneToComplexPlane ( Plane< Double > *  oldPlane  )  [static]

Plane< Double > * Functions::directProduct ( Plane< Double > *  a,
Plane< Double > *  b 
) [static]

Referenced by doFunction().

DString Functions::doFunction ( const DString &  bean_,
DString *  parameters,
int  numberOfParameters,
double *  gparameters,
int  numberOfGparameters,
DHashMap< Plane< Double > > *  storedStuff,
DString *  currentDirectory 
) [static]

Returns the result of a function Object[] uses the follow structure: os[0] = Object[LTree[]], os[1] = LinAl, os[2] = misc.

Parameters:
bean String name of function
os Object[] parameters of function(see above)
Returns:
LTree result
Exceptions:
DavidException 

References a, addMatrices(), b, ComplexArrayToPlane(), complexConjugate(), convertComplexPlaneToDoublePlane(), convertDoublePlaneToComplexPlane(), DEBUG_PRINT, directProduct(), Utilities::drawEllipse(), Utilities::drawHistogram(), extractPortion(), floorMe(), fullFilename(), isFunction(), matrixMultiply(), PARAMETER_FLIP_COORDINATES, PARAMETER_USE_SM, Flatten::parseClusterFile(), PlaneToComplexArray(), sigma(), squarePlane(), VERBOSE_PRINT, and writePlotableData().

Referenced by Command::print().

Plane< math::Complex > * Functions::extractPortion ( const Plane< math::Complex > *  original,
utils::DArray< DString > &  parameters 
) throw (DavidException) [static]

Referenced by doFunction().

Plane< Double > * Functions::floorMe ( Plane< Double > *  original,
double  floor,
bool  useAbs = false,
bool  inverseFloor = false 
) [static]

Referenced by doFunction().

DString Functions::fullFilename ( DString  fileName,
DString *  currentDirectory 
) [static]

Creates an absolute file name.

Referenced by doFunction().

utils::DArray< DString > * Functions::getFunctions (  )  [static]

References FunctionHelp::getHelp().

Referenced by isFunction(), and listFunctions().

DString Functions::getHelp ( const DString &  bean  )  [static]

Plane< math::Complex > * Functions::getImaginaryPart ( const Plane< math::Complex > *  original  )  [static]

Plane< math::Complex > * Functions::getRealPart ( const Plane< math::Complex > *  original  )  [static]

bool Functions::isFunction ( const DString &  bean  )  [static]

DString Functions::listFunctions (  )  [static]

References getFunctions().

Referenced by getHelp().

std::vector< Double > Functions::matrixMultiply ( std::vector< Double >  a,
std::vector< Double >  b,
int  I,
int  J,
int  K 
) [static]

Referenced by doFunction().

double * Functions::PlaneToComplexArray ( Plane< Double > *  dPlane  )  [static]

Referenced by doFunction().

Plane< Double > * Functions::squarePlane ( Plane< Double > *  oldPlane,
int  newWidth = -1 
) [static]

Referenced by doFunction().

void Functions::writePlotableData ( Plane< Double > *  plane,
DString  fileName,
int  writeParameter 
) [static]

References PARAMETER_FLIP_COORDINATES, and PARAMETER_USE_SM.

Referenced by doFunction().


Field Documentation

DString* Functions::functionType [private]

const int Functions::PARAMETER_FLIP_COORDINATES = 2 [static]

Referenced by doFunction(), and writePlotableData().

const int Functions::PARAMETER_USE_SM = 1 [static]

Referenced by doFunction(), and writePlotableData().


The documentation for this class was generated from the following files:

Generated on Sat Feb 6 13:04:50 2010 by  doxygen 1.5.7.1