histo Reference

Create a histogram of numbers received

histo

Description

Records and outputs histogram data of the numbers it receives.

Examples

Store a histogram of the numbers received display it in a table

Arguments

size [int]

Optional

histo takes an optional argument to set the size of the histogram. The default size is 128 (0-127).

Attributes

Common Box Attributes

Messages

bang

Using the number most recently received in the left inlet, histo reports out the right outlet how many times that number has been received, and sends the number itself out the left outlet. If no number has been previously received in the left inlet, 0 is sent out both outlets.

int

Arguments

count [int]
In left inlet: histo keeps count of how many times it has received a number between 0 and 127 in the left inlet. When a number is received, histo includes it in the count, sends the number of times that number has been received out the right outlet, and passes the number itself out the left outlet. Numbers outside the range 0-127 are ignored.

  (inlet1)

Arguments

count [int]
In right inlet: Has the same effect as a number in the left inlet, except that the number is not counted by histo.

clear

Erases the memory of histo, to begin a new histogram.

Output

int

Out left outlet: The number received in the inlet.

Out right outlet: The count of the number of times that number has been received.

See Also

Name Description
anal
itable
prob
table