fitnessDist: This is the function that will call for draws from...

Description Usage Arguments Value Examples

View source: R/sourceSHAPE.R

Description

This is the function that will call for draws from distributions.

Usage

1
fitnessDist(tmpDraws, tmpDistribution, tmpParameters)

Arguments

tmpDraws

This is the number of draws sought from the distribution being called

tmpDistribution

This is the character string that represents the implemented distribution you want called. It must be one of: Fixed, Gamma, Uniform, Normal, Chi2, beta, exp, evd, rweibull, frechet, skewNorm

tmpParameters

This is the ordered vector of parameters to be passed in order to parameterise the distribution from which you want to draw

Value

A vector of values with length equal to tmpDraws

Examples

1
2
3
4
# This draws from distributions
fitnessDist(10, "Uniform", c(0,1))
fitnessDist(10, "Normal", c(0,1))
fitnessDist(10, "exp", 1)

rSHAPE documentation built on July 19, 2019, 5:05 p.m.

Related to fitnessDist in rSHAPE...