Difference between revisions of "Classes Command"

From GeoGebra Manual
Jump to: navigation, search
Line 3: Line 3:
 
;Classes[ <List of Data L>, <Start S>, <Width of Classes w> ]
 
;Classes[ <List of Data L>, <Start S>, <Width of Classes w> ]
 
:Gives a list of class boundaries. The first boundary (min) is equal  to ''S'', the last boundary (max) will be at least the maximum of ''L'' and the boundaries will be equally spaced between min and max.
 
:Gives a list of class boundaries. The first boundary (min) is equal  to ''S'', the last boundary (max) will be at least the maximum of ''L'' 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} }}
 
;Classes[ <List of Data L>, <Number of Classes n> ]
 
;Classes[ <List of Data L>, <Number of Classes n> ]
 
:Gives a list of class boundaries. The first boundary (min) is equal to the minimum of ''L'', the last boundary (max) will be the maximum of ''L'' 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 ''L'', the last boundary (max) will be the maximum of ''L'' 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} }}

Revision as of 15:50, 2 August 2012



Classes[ <List of Data L>, <Start S>, <Width of Classes w> ]
Gives a list of class boundaries. The first boundary (min) is equal to S, the last boundary (max) will be at least the maximum of L 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 L>, <Number of Classes n> ]
Gives a list of class boundaries. The first boundary (min) is equal to the minimum of L, the last boundary (max) will be the maximum of L 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}
© 2024 International GeoGebra Institute