Back to Adaptive Vision Library website

You are here: Start » Function Reference » Profile Combinators » AccumulateProfile

AccumulateProfile


Header:AVL.h
Namespace:avl

Returns a profile of most recent values.

Syntax

C++
C#
 
void avl::AccumulateProfile
(
	AccumulateProfileState& ioState,
	const float inValue,
	atl::Optional<int> inMaxCount,
	bool inReset,
	avl::Profile& outProfile
)

Parameters

Name Type Range Default Description
ioState AccumulateProfileState& Object used to maintain state of the function.
inValue const float
inMaxCount Optional<int> 0 - NIL Number of last values that are remembered
inReset bool Reset accumulator state
outProfile Profile& Output profile

Errors

List of possible exceptions:

Error type Description
DomainError inMaxCount cannot be negative in AccumulateProfile.