expyriment.misc.statistics

The statistics module.

This module contains miscellaneous stastistical functions for expyriment.

expyriment.misc.statistics.frequence_table(data)[source]

Returns the frequency table of the data as dictionary.

Parameters :

data : list

list of numerical data

Returns :

out : dict

dict.keys : values, dict.values : frequencies

expyriment.misc.statistics.mean(data)[source]

Returns the mean of data.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

Notes

The function ignores all non-numerical elements in the data and returns None if no numerical element has been found. In contrast to standard math and numpy functions, this function is robust against type violations.

expyriment.misc.statistics.median(data)[source]

Returns the median of data.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

Notes

The function ignores all non-numerical elements in the data and returns None if no numerical element has been found. In contrast to standard math and numpy functions, this function is robust against type violations.

expyriment.misc.statistics.mode(data)[source]

Returns the mode, that is, the most frequent value in data.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

expyriment.misc.statistics.sum(data)[source]

Returns the sum of data.

The function ignores all non-numerical elements in the data and returns None if no numerical element has been found. In contrast to standard math and numpy functions, this function is robust against type violations.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

Functions

expyriment.misc.statistics.frequence_table(data)[source]

Returns the frequency table of the data as dictionary.

Parameters :

data : list

list of numerical data

Returns :

out : dict

dict.keys : values, dict.values : frequencies

expyriment.misc.statistics.mean(data)[source]

Returns the mean of data.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

Notes

The function ignores all non-numerical elements in the data and returns None if no numerical element has been found. In contrast to standard math and numpy functions, this function is robust against type violations.

expyriment.misc.statistics.median(data)[source]

Returns the median of data.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

Notes

The function ignores all non-numerical elements in the data and returns None if no numerical element has been found. In contrast to standard math and numpy functions, this function is robust against type violations.

expyriment.misc.statistics.mode(data)[source]

Returns the mode, that is, the most frequent value in data.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

expyriment.misc.statistics.sum(data)[source]

Returns the sum of data.

The function ignores all non-numerical elements in the data and returns None if no numerical element has been found. In contrast to standard math and numpy functions, this function is robust against type violations.

Parameters :

data : list

list of numerical data

Returns :

out : float or None

Table Of Contents

Previous topic

expyriment.misc.geometry.XYPoint

Next topic

expyriment.misc.Buffer

This Page