spynnaker.pyNN.utilities.random_stats package

Module contents

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

Bases: object

Statistics about PyNN ~spynnaker.pyNN.RandomDistribution objects.

abstract cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

abstract high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

abstract low(distribution)[source]

Return the low cut-off value of the distribution, or None if the distribution is unbounded.

abstract mean(dist)[source]

Return the mean of the distribution.

abstract ppf(dist, p)[source]

Return the percent point function value for the probability p.

abstract std(dist)[source]

Return the standard deviation of the distribution.

abstract var(dist)[source]

Return the variance of the distribution.

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

Bases: AbstractRandomStats

An implementation of AbstractRandomStats for binomial distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for exponential distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for gamma distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for log normal distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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.RandomStatsNormalClippedImpl[source]

Bases: 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(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for normal distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for Poisson distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for uniform distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

A Random Statistics object that uses scipy directly.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for uniform distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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: AbstractRandomStats

An implementation of AbstractRandomStats for von Mises distributions.

cdf(dist, v)[source]

Return the cumulative distribution function value for the value v.

high(distribution)[source]

Return the high cut-off value of the distribution, or None if the distribution is unbounded.

low(distribution)[source]

Return the low cut-off 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.