NEST  2.6.0,not_revisioned_source_dir@0
Public Member Functions | Private Attributes | List of all members
nest::Parameter Class Referenceabstract

Abstract base class for parameters. More...

#include <parameter.h>

Inheritance diagram for nest::Parameter:
nest::AnchoredParameter< D > nest::ConstantParameter nest::ConverseParameter nest::DifferenceParameter nest::Gaussian2DParameter nest::LognormalParameter nest::NormalParameter nest::ProductParameter nest::QuotientParameter nest::RadialParameter nest::SumParameter nest::UniformParameter

Public Member Functions

 Parameter ()
 Default constructor. More...
 
 Parameter (double_t cutoff)
 Constructor. More...
 
 Parameter (const DictionaryDatum &d)
 Constructor Parameter that can be set in the Dictionary: cutoff - Values less than the cutoff are set to zero. More...
 
virtual ~Parameter ()
 Virtual destructor. More...
 
double_t value (const Position< 2 > &p, librandom::RngPtr &rng) const
 
double_t value (const Position< 3 > &p, librandom::RngPtr &rng) const
 
virtual double_t raw_value (const Position< 2 > &, librandom::RngPtr &) const
 Raw value disregarding cutoff. More...
 
virtual double_t raw_value (const Position< 3 > &, librandom::RngPtr &) const
 Raw value disregarding cutoff. More...
 
double_t value (const std::vector< double_t > &pt, librandom::RngPtr &rng) const
 
virtual Parameterclone () const =0
 Clone method. More...
 
virtual Parametermultiply_parameter (const Parameter &other) const
 Create the product of this parameter with another. More...
 
virtual Parameterdivide_parameter (const Parameter &other) const
 Create the quotient of this parameter with another. More...
 
virtual Parameteradd_parameter (const Parameter &other) const
 Create the sum of this parameter with another. More...
 
virtual Parametersubtract_parameter (const Parameter &other) const
 Create the difference of this parameter with another. More...
 

Private Attributes

double_t cutoff_
 

Detailed Description

Abstract base class for parameters.

Constructor & Destructor Documentation

nest::Parameter::Parameter ( )
inline

Default constructor.

nest::Parameter::Parameter ( double_t  cutoff)
inline

Constructor.

Parameters
cutoffValues less than the cutoff are set to zero.
nest::Parameter::Parameter ( const DictionaryDatum d)
inline

Constructor Parameter that can be set in the Dictionary: cutoff - Values less than the cutoff are set to zero.

Parameters
ddictionary with parameter values

References nest::names::cutoff, cutoff_, and nest::names::d.

virtual nest::Parameter::~Parameter ( )
inlinevirtual

Virtual destructor.

Member Function Documentation

Parameter * nest::Parameter::add_parameter ( const Parameter other) const
inlinevirtual

Create the sum of this parameter with another.

Returns
a new dynamically allocated parameter.
virtual Parameter* nest::Parameter::clone ( ) const
pure virtual
Parameter * nest::Parameter::divide_parameter ( const Parameter other) const
inlinevirtual

Create the quotient of this parameter with another.

Returns
a new dynamically allocated parameter.
Parameter * nest::Parameter::multiply_parameter ( const Parameter other) const
inlinevirtual

Create the product of this parameter with another.

Returns
a new dynamically allocated parameter.
virtual double_t nest::Parameter::raw_value ( const Position< 2 > &  ,
librandom::RngPtr  
) const
inlinevirtual
virtual double_t nest::Parameter::raw_value ( const Position< 3 > &  ,
librandom::RngPtr  
) const
inlinevirtual
Parameter * nest::Parameter::subtract_parameter ( const Parameter other) const
inlinevirtual

Create the difference of this parameter with another.

Returns
a new dynamically allocated parameter.
double_t nest::Parameter::value ( const Position< 2 > &  p,
librandom::RngPtr rng 
) const
inline
double_t nest::Parameter::value ( const Position< 3 > &  p,
librandom::RngPtr rng 
) const
inline
Returns
the value of the parameter at the given point.

References cutoff_, and raw_value().

double_t nest::Parameter::value ( const std::vector< double_t > &  pt,
librandom::RngPtr rng 
) const
Returns
the value of the parameter at the given point.

References value().

Member Data Documentation

double_t nest::Parameter::cutoff_
private

Referenced by Parameter(), and value().


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