Mercurial > hg > aimc
annotate src/CAR.h @ 483:3673e3e67bab carfac_cpp
style
author | Ulf.Hammarqvist@gmail.com |
---|---|
date | Thu, 29 Mar 2012 19:43:36 +0000 |
parents | cad69634b411 |
children | 715fc47a965e |
rev | line source |
---|---|
Ulf@477 | 1 #ifndef CAR_H_ |
Ulf@477 | 2 #define CAR_H_ |
Ulf@477 | 3 |
Ulf@477 | 4 #include "CARFAC_common_typedefs.h" |
Ulf@483 | 5 #include <cmath> |
Ulf@477 | 6 |
Ulf@477 | 7 class CAR_parameters { |
Ulf@477 | 8 public: |
Ulf@483 | 9 CAR_parameters() |
Ulf@483 | 10 { |
Ulf@483 | 11 velocity_scale_ = 0.2; |
Ulf@483 | 12 v_offset_ = 0.01; |
Ulf@483 | 13 v2_corner_ = 0.2; |
Ulf@483 | 14 v_damp_max_ = 0.01; |
Ulf@483 | 15 min_zeta_ = 0.10; |
Ulf@483 | 16 first_pole_theta_ = 0.085*kPi; |
Ulf@483 | 17 zero_ratio_ = sqrt(2); |
Ulf@483 | 18 high_f_damping_compression_ = 0.5; |
Ulf@483 | 19 erb_per_step_ = 0.5; |
Ulf@483 | 20 min_pole_Hz_ = 30; |
Ulf@483 | 21 } |
Ulf@479 | 22 |
Ulf@483 | 23 virtual ~CAR_parameters(){} |
Ulf@479 | 24 |
Ulf@483 | 25 float velocity_scale_; |
Ulf@483 | 26 float v_offset_; |
Ulf@483 | 27 float v2_corner_; |
Ulf@483 | 28 float v_damp_max_; |
Ulf@483 | 29 float min_zeta_; |
Ulf@483 | 30 float first_pole_theta_; |
Ulf@483 | 31 float zero_ratio_; |
Ulf@483 | 32 float high_f_damping_compression_; |
Ulf@483 | 33 float erb_per_step_; |
Ulf@483 | 34 float min_pole_Hz_; |
Ulf@477 | 35 }; |
Ulf@477 | 36 |
Ulf@477 | 37 class CAR_coefficients{ |
Ulf@477 | 38 public: |
Ulf@483 | 39 CAR_coefficients(CAR_parameters*, float, FloatArray); |
Ulf@483 | 40 virtual ~CAR_coefficients(); |
Ulf@478 | 41 private: |
Ulf@483 | 42 CAR_coefficients(){} |
Ulf@477 | 43 }; |
Ulf@477 | 44 |
Ulf@477 | 45 #endif /* CAR_H_ */ |