Close

Experimental:Histogram POP

Summary

The Histogram POP takes an attribute from its input, creates an output with one attribute (Count attribute) and a specified number of points (Number of Bins parameter), and for each input point, adds 1 to one of the bins. This gives a "frequency distribution".

It divides the entire range of values (Input Range parameter) into a series of intervals, and then counts how many values fall into each interval (bin).

Values of the input that are outside the lower and upper range of the bins can be ignored, clamped to the min or max, or added to two extra bins that count values out of range.

It can also output the interval start values into a separate attribute BinValue.

By it nature, it works on a single component of a vector attribute, such as P(1). You may want to first convert a vector to a float using length() in an Math POP.

You can histogram point attributes or primitive attributes.

The result is often viewed with a POP to CHOP, or with the popViewer component which can show an attribute as a graph.

The Histogram POP takes all the values of a single component attribute, for example P(1) and for each input point, adds 1 to a bin of the output. The output has N bins which is actually N points with one attribute Count. The user specifies the value that the first bin represents, and the value that the last bin represents, and using N, the Histogram POP determines the low and high values represented by each bin. Count starts at 0 for all bins, and the appropriate bin gets incremented by 1 for each input points.

See also: Accumulate POP, Analyze POP, ReRange POP

PythonIcon.pnghistogramPOP_Class


Parameters - Histogram Page

Attribute Class attrclass - -
  • Point point -
  • Vertex vertex -
  • Primitive primitive -

Input Attribute inputattr -

Use Input Range useinputrange -

Input Range inputrange - -
  • Input Range inputrange1 -
  • Input Range inputrange2 -

Output Bin Value outputbinval -

Quantize quantize - -
  • Floor floor -
  • Round round -
  • Ceiling ceiling -

Outside Range outsiderange - -
  • Clamp clamp -
  • Discard discard -
  • Extra Out-of-Range Bins extrabins -

Number of Bins numbins -

Count Attribute countattr -


Parameters - Common Page

Bypass bypass -

Delete Input Attributes delinputattrs -


Operator Inputs

  • Input 0: -


Info CHOP Channels

Extra Information for the Histogram POP can be accessed via an Info CHOP.

Common POP Info Channels

Common Operator Info Channels

  • total_cooks - Number of times the operator has cooked since the process started.
  • cook_time - Duration of the last cook in milliseconds.
  • cook_frame - Frame number when this operator was last cooked relative to the component timeline.
  • cook_abs_frame - Frame number when this operator was last cooked relative to the absolute time.
  • cook_start_time - Time in milliseconds at which the operator started cooking in the frame it was cooked.
  • cook_end_time - Time in milliseconds at which the operator finished cooking in the frame it was cooked.
  • cooked_this_frame - 1 if operator was cooked this frame.
  • warnings - Number of warnings in this operator if any.
  • errors - Number of errors in this operator if any.


TouchDesigner Build: