Skip to contents

List of individuals used in a population simulation

Super classes

rSharp::NetObject -> DotNetWrapper -> Population

Active bindings

count

the number of individual in the population

allCovariateNames

the names of all covariates defined in the population

allParameterPaths

the paths of all parameters defined in the population

allIndividualIds

Ids of individuals defined in the population

Methods

Inherited methods


Population$has()

Returns TRUE if the population has variability defined for parameterOrPath otherwise FALSE

Usage

Population$has(parameterOrPath)

Arguments

parameterOrPath

Parameter instance of parameter path


Population$setParameterValues()

Updates or adds the variability values in the population for parameterOrPath.

Usage

Population$setParameterValues(parameterOrPath, values)

Arguments

parameterOrPath

Parameter instance of parameter path. If an entry already exists for this parameter by path, its values be overwritten, otherwise it will be created.

values

double vector containing the value to set for the parameterOrPath


Population$getParameterValues()

Returns the variability values defined in the population for parameterOrPath

Usage

Population$getParameterValues(parameterOrPath)

Arguments

parameterOrPath

Parameter instance of parameter path


Population$getCovariateValues()

Returns the values defined in the population for the covariate named covariateName

Usage

Population$getCovariateValues(covariateName)

Arguments

covariateName

Name of covariate for which values should be retrieved


Population$getCovariateValue()

Returns the values defined in the population for the covariate named covariateName and individual with id individualId

Usage

Population$getCovariateValue(covariateName, individualId)

Arguments

covariateName

Name of covariate for which values should be retrieved

individualId

Id of individual for which the value for covariate covariateName should be retrieved


Population$getParameterValuesForIndividual()

Returns all values defined in the population the individual with id individualId

Usage

Population$getParameterValuesForIndividual(individualId)

Arguments

individualId

Id of individual for which all values should be returned


Population$remove()

Removes the value of a parameter by path

Usage

Population$remove(parameterPath)

Arguments

parameterPath

Path of the parameter values to remove


Population$print()

Print the object to the console

Usage

Population$print(...)

Arguments

...

Rest arguments.