class InitVarSnippet::Uniform

Overview

Initialises variable by sampling from the uniform distribution. More…

#include <initVarSnippet.h>

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

    DECLARE_SNIPPET(
        InitVarSnippet::Uniform,
        2
        );

    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 uniform distribution.

This snippet takes 2 parameters:

  • min - The minimum value
  • max - The maximum value

Methods

virtual StringVec getParamNames() const

Gets names of of (independent) model parameters.