class InitVarSnippet::Exponential

Overview

Initialises variable by sampling from the exponential distribution. More…

#include <initVarSnippet.h>

class Exponential: public InitVarSnippet::Base
{
public:
    // methods

    DECLARE_SNIPPET(
        InitVarSnippet::Exponential,
        1
        );

    SET_CODE();
    virtual StringVec getParamNames() const;
};

Inherited Members

public:
    // typedefs

    typedef std::vector<std::string> StringVec;
    typedef std::vector<EGP> EGPVec;
    typedef std::vector<ParamVal> ParamValVec;
    typedef std::vector<DerivedParam> DerivedParamVec;

    // structs

    struct DerivedParam;
    struct EGP;
    struct ParamVal;

    // methods

    virtual ~Base();
    virtual StringVec getParamNames() const;
    virtual DerivedParamVec getDerivedParams() const;
    virtual std::string getCode() const;

Detailed Documentation

Initialises variable by sampling from the exponential distribution.

This snippet takes 1 parameter:

  • lambda - mean event rate (events per unit time/distance)

Methods

virtual StringVec getParamNames() const

Gets names of of (independent) model parameters.