# spynnaker.pyNN.utilities.random_stats package¶

## Module contents¶

class spynnaker.pyNN.utilities.random_stats.AbstractRandomStats[source]

Bases: object

Statistics about PyNN RandomDistribution objects

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsBinomialImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for binomial distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsExponentialImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for exponential distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsGammaImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for gamma distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsLogNormalImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for log normal distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the variance of the distribution

low(dist)[source]

Return the variance of the distribution

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsNormalClippedImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for normal distributions that are clipped to a boundary (redrawn)

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsNormalImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for normal distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsPoissonImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for poisson distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsRandIntImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for uniform distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsScipyImpl(distribution_type)[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

A Random Statistics object that uses scipy directly

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsUniformImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for uniform distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution

class spynnaker.pyNN.utilities.random_stats.RandomStatsVonmisesImpl[source]

Bases: spynnaker.pyNN.utilities.random_stats.abstract_random_stats.AbstractRandomStats

An implementation of AbstractRandomStats for vonmises distributions

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v

high(dist)[source]

Return the high cutoff value of the distribution, or None if the distribution is unbounded

low(dist)[source]

Return the low cutoff value of the distribution, or None if the distribution is unbounded

mean(dist)[source]

Return the mean of the distribution

ppf(dist, p)[source]

Return the percent point function value for the probability p

std(dist)[source]

Return the standard deviation of the distribution

var(dist)[source]

Return the variance of the distribution