AmberImproperTorsionType(RealType v2) : PolynomialInversionType(), v2_(v2) { //convert AmberImproper Torsion Type to Polynomial Inversion type RealType c0 = v2; RealType c2 = -v2; setCoefficient(0, c0); setCoefficient(2, c2); }
//Initalize static void init(void) { init_mpi(); allocateMemories(); setCoefficient(); initDebug(); }
//The rest of these follow a very simple pattern: create and configure filter, make node, put node in. void NestedAllpassNetwork::appendAllpass(int delay, float coefficient) { auto f = new AllpassFilter<InterpolatedDelayLine>((delay+1)/(double)sr, sr); f->setCoefficient(coefficient); f->line.setDelayInSamples(delay); auto n = new NestedAllpassNetworkASTNode(this, NestedAllpassNetworkASTTypes::ALLPASS, f); hookupAST(n); if(slave) slave->appendAllpass(delay, coefficient); }
static void init() { allocateMemories(); setCoefficient(); #ifdef USE_FILE_DATA // readDataAndFinish(); #endif ntff3D_Init(); }
void NestedAllpassNetwork::beginNesting(int delay, float coefficient) { auto filter = new AllpassFilter<InterpolatedDelayLine>((delay+1)/(double)sr, sr); filter->line.setDelayInSamples(delay); filter->setCoefficient(coefficient); auto node = new NestedAllpassNetworkASTNode(this, NestedAllpassNetworkASTTypes::NESTED_ALLPASS, filter); hookupAST(node); //Now move current to the stack and kill it. stack.push_back(current); current = nullptr; if(slave) slave->beginNesting(delay, coefficient); }
Maths::Regression::Linear::Linear(double m_b_arg, double m_a_arg, double m_coeff_arg) { //! Returns the slope of the regression line setSlope(m_b_arg); //! Returns the intercept on the Y axis of the regression line setIntercept(m_a_arg); //! Returns the linear regression coefficient setCoefficient(m_coeff_arg); }