# Difference between revisions of "Classes Command"

From GeoGebra Manual

m |
Noel Lambert (talk | contribs) |
||

Line 1: | Line 1: | ||

<noinclude>{{Manual Page|version=5.0}}</noinclude> | <noinclude>{{Manual Page|version=5.0}}</noinclude> | ||

{{command|statistics}} | {{command|statistics}} | ||

− | ;Classes[ | + | ;Classes[ <List of Data>, <Start>, <Width of Classes> ] |

:Gives a list of class boundaries. The first boundary (min) is equal to ''Start'', the last boundary (max) will be at least the maximum of the ''List'' and the boundaries will be equally spaced between min and max. | :Gives a list of class boundaries. The first boundary (min) is equal to ''Start'', the last boundary (max) will be at least the maximum of the ''List'' and the boundaries will be equally spaced between min and max. | ||

:{{Example|1=<code>Classes[{0.1, 0.2, 0.4, 1.1}, 0, 1]</code> gives {0, 1, 2} }} | :{{Example|1=<code>Classes[{0.1, 0.2, 0.4, 1.1}, 0, 1]</code> gives {0, 1, 2} }} | ||

− | ;Classes[ | + | ;Classes[ <List of Data>, <Number of Classes> ] |

:Gives a list of class boundaries. The first boundary (min) is equal to the minimum of the ''List'', the last boundary (max) will be the maximum of the ''List'' and the boundaries will be equally spaced between min and max. | :Gives a list of class boundaries. The first boundary (min) is equal to the minimum of the ''List'', the last boundary (max) will be the maximum of the ''List'' and the boundaries will be equally spaced between min and max. | ||

:{{Example|1=<code>Classes[{1, 3, 5, 7, 8, 9, 10}, 3]</code> gives {1, 4, 7, 10} }} | :{{Example|1=<code>Classes[{1, 3, 5, 7, 8, 9, 10}, 3]</code> gives {1, 4, 7, 10} }} | ||

{{Note| By convention this uses the a ≤ x < b rule for each class except for the last class which is a ≤ x ≤ b }} | {{Note| By convention this uses the a ≤ x < b rule for each class except for the last class which is a ≤ x ≤ b }} |

## Revision as of 14:24, 22 August 2015

- Classes[ <List of Data>, <Start>, <Width of Classes> ]
- Gives a list of class boundaries. The first boundary (min) is equal to
*Start*, the last boundary (max) will be at least the maximum of the*List*and the boundaries will be equally spaced between min and max. **Example:**`Classes[{0.1, 0.2, 0.4, 1.1}, 0, 1]`

gives {0, 1, 2}

- Classes[ <List of Data>, <Number of Classes> ]
- Gives a list of class boundaries. The first boundary (min) is equal to the minimum of the
*List*, the last boundary (max) will be the maximum of the*List*and the boundaries will be equally spaced between min and max. **Example:**`Classes[{1, 3, 5, 7, 8, 9, 10}, 3]`

gives {1, 4, 7, 10}

**Note:**By convention this uses the a ≤ x < b rule for each class except for the last class which is a ≤ x ≤ b