# ClockedMax

Samples a stream of values over an infinite interval, then returns the maximum value sampled from the stream during that interval.

## ClockedMax Inputs

Parameter | Description
Event | Specifies the event that forces an update. This parameter needs to be a reference to any event with a timestamp, for example an InputPointCloud function.
Value | A reference to the source cell for the data stream on which a maximum is sought. (-9999999 to 9999999; default = 0).
Reset | Forces the function to reset its internal register to the value specified by Preset.
0 = OFF (default) | The function will continue to sample Value in the current data stream.
1 = ON | The function will reset the maximum value it returns, and begin a new data stream from which to sample.
Preset | Specifies the maximum value to which the function is reset (-9999999 to 9999999; default = -9999999).

## ClockedMax Outputs

Returns | A value representing the maximum of a data stream over an interval from Reset to current.