BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_ Class Reference

#include <BALL/NMR/empiricalHSShiftProcessor.h>

List of all members.

Public Types

typedef std::map< String,
std::map< String, float > > 
tabletype

Enums and Constants



enum  HYPERSURFACE__TYPE {
  REAL__REAL, REAL__DISCRETE, DISCRETE__REAL, DISCRETE__DISCRETE,
  CHI__REAL, REAL__CHI, CHI__DISCRETE, DISCRETE__CHI,
  CHI__CHI, SINGLE__REAL, SINGLE__DISCRETE, SINGLE__CHI
}
int type_
String first_property_
String second_property_
CubicSpline2D s2d_
std::map< String, CubicSpline1Ds1d_
std::map< String, std::map
< String, float > > 
table_
std::map< String, floatrow_averages_
std::map< String, floatcol_averages_
float row_spacing_
float col_spacing_
bool invalid_
float average_
int verbosity_
vector< Stringy_axis_values_
vector< vector< String > > x_axis_values_
vector< vector< float > > sample_values_
 ShiftHyperSurface_ (int verbosity=EmpiricalHSShiftProcessor::VERBOSITY_LEVEL_CRITICAL) throw ()
 ShiftHyperSurface_ (String filename, String atomtype, String firstproperty, String secondproperty, int verbosity=EmpiricalHSShiftProcessor::VERBOSITY_LEVEL_CRITICAL) throw (Exception::FileNotFound)
virtual ~ShiftHyperSurface_ () throw ()
float operator() (PropertiesForShift_ &properties) throw ()
bool isvalid () throw ()
float getTotalAverage () throw ()
float getTableAverage_ () throw ()
float getTableRowAverage_ (const std::map< String, float > &row) throw ()
float getTableColumnAverage_ (const String &name) throw ()
bool tableHasColumn_ (const String &name) throw ()
void parseDataFile_ (BALL::File &file, String filename) throw ()
void convertToReal_ (const vector< String > &input, vector< float > &output) throw ()
void setType_ (String firstproperty, String secondproperty) throw ()

Detailed Description

Definition at line 289 of file empiricalHSShiftProcessor.h.


Member Typedef Documentation

Definition at line 292 of file empiricalHSShiftProcessor.h.


Member Enumeration Documentation

Enumerator:
REAL__REAL 
REAL__DISCRETE 
DISCRETE__REAL 
DISCRETE__DISCRETE 
CHI__REAL 
REAL__CHI 
CHI__DISCRETE 
DISCRETE__CHI 
CHI__CHI 
SINGLE__REAL 
SINGLE__DISCRETE 
SINGLE__CHI 

Definition at line 298 of file empiricalHSShiftProcessor.h.


Constructor & Destructor Documentation

BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::ShiftHyperSurface_ ( int  verbosity = EmpiricalHSShiftProcessor::VERBOSITY_LEVEL_CRITICAL  )  throw ()
BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::ShiftHyperSurface_ ( String  filename,
String  atomtype,
String  firstproperty,
String  secondproperty,
int  verbosity = EmpiricalHSShiftProcessor::VERBOSITY_LEVEL_CRITICAL 
) throw (Exception::FileNotFound)
virtual BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::~ShiftHyperSurface_ (  )  throw () [virtual]

Destructor.


Member Function Documentation

void BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::convertToReal_ ( const vector< String > &  input,
vector< float > &  output 
) throw () [private]
float BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::getTableAverage_ (  )  throw () [private]
float BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::getTableColumnAverage_ ( const String name  )  throw () [private]
float BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::getTableRowAverage_ ( const std::map< String, float > &  row  )  throw () [private]
float BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::getTotalAverage (  )  throw () [inline]

Definition at line 367 of file empiricalHSShiftProcessor.h.

bool BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::isvalid (  )  throw () [inline]

Method to check if the hypersurface is valid.

Returns:
bool, false if hypersurface is invalid.

Definition at line 364 of file empiricalHSShiftProcessor.h.

float BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::operator() ( PropertiesForShift_ properties  )  throw ()

Method to evaluate the empirical hypersurface given the properties of an atom. In case of a SINGLE__?? property type, the property type string works as first accessor. If only one factor is out of bounds {/tt FLOAT_VALUE_NA} or {/tt STRING_VALUE_NA}, we return the all-values average. (We tried to simulate the SHIFTX behaviour)

If one of the property values is set to { /tt FLOAT_VALUE_IGNORE}, zero is returned.

void BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::parseDataFile_ ( BALL::File file,
String  filename 
) throw () [private]

Method to read the datafile of a shift hypersurface.

We assume the datafile to have the following structure:

atomtype factorx factory total_average (row_average_1;row_average_2;...;row_average_n|N/A) (col_averages_1;col_averages_2;...;col_averages_n|N/A) (row_spacing|N/A) (col_spacing|N/A) (y_axis_1;...;y_axis_n|N/A) x_axis_11;...;x_axis_1m value_11;...;value_1m ... x_axis_n1;...;x_axis_nm value_n1;...;value_nm

where ( | ) denotes alternatives and "N/A" an empty entry.

void BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::setType_ ( String  firstproperty,
String  secondproperty 
) throw () [private]

Method to set the type of the hypersurface according to two input property types (see { HYPERSURFACE__TYPE()} )

bool BALL::EmpiricalHSShiftProcessor::ShiftHyperSurface_::tableHasColumn_ ( const String name  )  throw () [private]

Method to check if the hypersurface's look--up table has a column named "name".

Returns:
bool, false if the look-up table has no column "name".

Member Data Documentation

Definition at line 442 of file empiricalHSShiftProcessor.h.

Definition at line 431 of file empiricalHSShiftProcessor.h.

Definition at line 435 of file empiricalHSShiftProcessor.h.

Definition at line 419 of file empiricalHSShiftProcessor.h.

Definition at line 438 of file empiricalHSShiftProcessor.h.

Definition at line 430 of file empiricalHSShiftProcessor.h.

Definition at line 434 of file empiricalHSShiftProcessor.h.

Definition at line 424 of file empiricalHSShiftProcessor.h.

Definition at line 423 of file empiricalHSShiftProcessor.h.

Definition at line 450 of file empiricalHSShiftProcessor.h.

Definition at line 420 of file empiricalHSShiftProcessor.h.

Definition at line 426 of file empiricalHSShiftProcessor.h.

Definition at line 416 of file empiricalHSShiftProcessor.h.

Definition at line 445 of file empiricalHSShiftProcessor.h.

Definition at line 449 of file empiricalHSShiftProcessor.h.

Definition at line 448 of file empiricalHSShiftProcessor.h.

Generated by  doxygen 1.6.3