Public Member Functions

PsiGrid Class Reference

scalable and shiftable grid object used for the gridsearch More...

#include <getstart.h>

List of all members.

Public Member Functions

 PsiGrid (void)
 an empty grid
 PsiGrid (const std::vector< double > &xmin, const std::vector< double > &xmax, unsigned int gridsize)
 Generate a proper grid.
PsiGrid shift (const std::vector< double > &newposition) const
 shift the grid to be centered on newposition
PsiGrid shrink (const std::vector< double > &newposition) const
 shrink the grid around newposition
PsiGrid subgrid (void) const
 return a subgrid with the first dimension eliminated
unsigned int get_gridsize (void) const
 return the size of the grid in every dimension
bool empty (void) const
 check whether the grid is empty i.e. does not have any grid points
const std::vector< double > & front (void) const
 return the values along the first dimension of the grid
unsigned int dimension (void) const
 get dimension of the grid i.e. how many parameters are varied
double get_lower (unsigned int i) const
 get lower bound for parameter i
double get_upper (unsigned int i) const
 get upper bound for parameter i
double get_incr (unsigned int i) const
 Get increment on dimension i.
double operator() (unsigned int i, unsigned int j) const

Detailed Description

scalable and shiftable grid object used for the gridsearch


Constructor & Destructor Documentation

PsiGrid::PsiGrid ( const std::vector< double > &  xmin,
const std::vector< double > &  xmax,
unsigned int  gridsize 
)

Generate a proper grid.

Parameters:
xmin lowest values for the parameters --- this should have the same length as the parameters we want to feed into the model
xmax highest values for the parameres --- this should have the same length as the parameters we want to feed into the model
gridsize size of the grid in every dimension

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