HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_Lag Class Reference

#include <CL_Lag.h>

Static Public Member Functions

static void solve (const fpreal *data, fpreal *result, int size, fpreal lag_up, fpreal lag_down, fpreal overshoot_up, fpreal overshoot_down, bool sclamp=false, bool aclamp=false, fpreal sclamp_up=0.0, fpreal sclamp_down=0.0, fpreal aclamp_up=0.0, fpreal aclamp_down=0.0, bool use_value_method=false)
 
template<class F , class FR , class FP >
static void solveRealtimeMagnitude (const F &get_data, const FR &set_results, int start, int end, bool sclamp, bool aclamp, const FP &get_params, UT_VectorR &v0, UT_VectorR &p0)
 
template<class F , class FP >
static bool solveRealtime (const F &get_data, fpreal *result, int start, int end, bool sclamp, bool aclamp, const FP &get_params, fpreal &v0, fpreal &p0, bool use_value_method=false)
 

Detailed Description

Definition at line 24 of file CL_Lag.h.

Member Function Documentation

void CL_Lag::solve ( const fpreal data,
fpreal result,
int  size,
fpreal  lag_up,
fpreal  lag_down,
fpreal  overshoot_up,
fpreal  overshoot_down,
bool  sclamp = false,
bool  aclamp = false,
fpreal  sclamp_up = 0.0,
fpreal  sclamp_down = 0.0,
fpreal  aclamp_up = 0.0,
fpreal  aclamp_down = 0.0,
bool  use_value_method = false 
)
inlinestatic

Apply a lag filter data and result must both be of length size

Definition at line 190 of file CL_Lag.h.

template<class F , class FP >
bool CL_Lag::solveRealtime ( const F &  get_data,
fpreal result,
int  start,
int  end,
bool  sclamp,
bool  aclamp,
const FP &  get_params,
fpreal v0,
fpreal p0,
bool  use_value_method = false 
)
inlinestatic

Apply a lag filter to realtime data using using the value or amplitude methods Must provide a lambda function for computing the p1 value from the data

Definition at line 228 of file CL_Lag.h.

template<class F , class FR , class FP >
void CL_Lag::solveRealtimeMagnitude ( const F &  get_data,
const FR &  set_results,
int  start,
int  end,
bool  sclamp,
bool  aclamp,
const FP &  get_params,
UT_VectorR v0,
UT_VectorR p0 
)
static

Apply a lag filter using the magnitude method Must provide lambda functions for getting the data (the p1 value) and setting the results (based on the index and resulting p1 and)

Definition at line 272 of file CL_Lag.h.


The documentation for this class was generated from the following file: