From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../doxygen/nel/classNLMISC_1_1CValueSmoother.html | 398 +++++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 docs/doxygen/nel/classNLMISC_1_1CValueSmoother.html (limited to 'docs/doxygen/nel/classNLMISC_1_1CValueSmoother.html') diff --git a/docs/doxygen/nel/classNLMISC_1_1CValueSmoother.html b/docs/doxygen/nel/classNLMISC_1_1CValueSmoother.html new file mode 100644 index 00000000..7881bbaa --- /dev/null +++ b/docs/doxygen/nel/classNLMISC_1_1CValueSmoother.html @@ -0,0 +1,398 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLMISC::CValueSmoother Class Reference

A smoother of values. +More... +

+#include <value_smoother.h> +

+List of all members. + + + + + + + + + + + + + + + + +

Public Methods

 CValueSmoother (uint n=16)
 Constructor. More...

void init (uint n)
 reset the ValueSmoother, and set the number of frame to smooth. More...

void reset ()
 reset only the ValueSmoother. More...

void addValue (float dt)
 add a new value to be smoothed. More...

float getSmoothValue ()
 get the smoothed value. More...


Private Attributes

std::vector< float > _LastFrames
uint _CurFrame
uint _NumFrame
float _FrameSum
+


Detailed Description

+A smoother of values. +

+

+Author:
+Lionel Berenguier , Nevrax France
+Date:
+2001
+

+ +

+Definition at line 44 of file value_smoother.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NLMISC::CValueSmoother::CValueSmoother uint   n = 16
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 38 of file value_smoother.cpp. +

+References init, and nlassert.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
void NLMISC::CValueSmoother::addValue float   dt
+
+ + + + + +
+   + + +

+add a new value to be smoothed. +

+ +

+Definition at line 66 of file value_smoother.cpp. +

+References _CurFrame, _FrameSum, _LastFrames, _NumFrame, and min. +

+Referenced by NL3D::CCloudScape::anim, NL3D::CLoadBalancingGroup::computeRatioAndSmooth, and NL3D::CCloudScape::init.

+

+ + + + +
+ + + + + + + + + +
float NLMISC::CValueSmoother::getSmoothValue  
+
+ + + + + +
+   + + +

+get the smoothed value. +

+ +

+Definition at line 84 of file value_smoother.cpp. +

+References _FrameSum, and _NumFrame. +

+Referenced by NL3D::CLoadBalancingGroup::computeRatioAndSmooth.

+

+ + + + +
+ + + + + + + + + + +
void NLMISC::CValueSmoother::init uint   n
+
+ + + + + +
+   + + +

+reset the ValueSmoother, and set the number of frame to smooth. +

+ +

+Definition at line 53 of file value_smoother.cpp. +

+References _CurFrame, _FrameSum, _LastFrames, _NumFrame, and nlassert. +

+Referenced by NL3D::CLoadBalancingGroup::CLoadBalancingGroup, NL3D::CLoadBalancingGroup::computeRatioAndSmooth, CValueSmoother, and NL3D::CCloudScape::init.

+

+ + + + +
+ + + + + + + + + +
void NLMISC::CValueSmoother::reset  
+
+ + + + + +
+   + + +

+reset only the ValueSmoother. +

+ +

+Definition at line 44 of file value_smoother.cpp. +

+References _CurFrame, _FrameSum, _LastFrames, and _NumFrame. +

+Referenced by NL3D::CLoadBalancingGroup::computeRatioAndSmooth.

+


Member Data Documentation

+

+ + + + +
+ + +
uint NLMISC::CValueSmoother::_CurFrame [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 65 of file value_smoother.h. +

+Referenced by addValue, init, and reset.

+

+ + + + +
+ + +
float NLMISC::CValueSmoother::_FrameSum [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 67 of file value_smoother.h. +

+Referenced by addValue, getSmoothValue, init, and reset.

+

+ + + + +
+ + +
std::vector<float> NLMISC::CValueSmoother::_LastFrames [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 64 of file value_smoother.h. +

+Referenced by addValue, init, and reset.

+

+ + + + +
+ + +
uint NLMISC::CValueSmoother::_NumFrame [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 66 of file value_smoother.h. +

+Referenced by addValue, getSmoothValue, init, and reset.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1