Back to Aurora Vision Library website
You are here: Start » Function Reference » Profile » Profile Features » ProfileAverage
![](../../img/icon/ProfileAnalysis.png)
ProfileAverage
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Computes the average value of a profile.
Syntax
C++
C#
void avl::ProfileAverage ( const avl::Profile& inProfile, atl::Optional<const avl::Range&> inRange, float& outAverage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inProfile | const Profile& | Input profile | |
![]() |
inRange | Optional<const Range&> | NIL | |
![]() |
outAverage | float& |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty profile in ProfileAverage. |
DomainError | Empty profile range in ProfileAverage. |
DomainError | Range exceeds the input profile in ProfileAverage. |