### Navigation

- index
- modules |
- next |
- previous |
- Pyevolve 0.6 final documentation »
- Modules »
- `pyevolve` – the main pyevolve namespace »

# `Statistics` – statistical structure module

This module have the class which is reponsible to keep statistics of each generation. This class is used by the adapters and other statistics dump objects.

class `Statistics.``Statistics`

  Statistics Class - A class bean-like to store the statistics

  The statistics hold by this class are:

  rawMax, rawMin, rawAve
    Maximum, minimum and average of raw scores
  rawDev, rawVar
    Standard Deviation and Variance of raw scores
  fitMax, fitMin, fitAve
    Maximum, mininum and average of fitness scores
  rawTot, fitTot
    The total (sum) of raw scores and the fitness scores
  Example:

        >>> stats = ga_engine.getStatistics()
        >>> st["rawMax"]
        10.2

  `asTuple`()

    Returns the stats as a python tuple

  `clear`()

    Set all statistics to zero

  `clone`()

    Instantiate a new Statistic class with the same contents

  `copy`(obj)

    Copy the values to the obj variable of the same class

    Parameters: | obj – the Statistics object destination

  `items`()

    Return a tuple (name, value) for all stored statistics

### Navigation

- index
- modules |
- next |
- previous |
- Pyevolve 0.6 final documentation »
- Modules »
- `pyevolve` – the main pyevolve namespace »