//=========================================================================== TFloat TDiagram::Get_RelayValue(TFloat aValue) { if ( aValue < 0 ) return aValue; TFloat s1, s2; // ------ Вставить релеевскле распределение -------- s1 = RandG(0,*fpFarParam->Sigma2); s2 = RandG(0,*fpFarParam->Sigma2); // ---- aValue = sqrt(sqr(s1) + sqr(fpFarParam->fNormValue*aValue + s2)); return aValue; }
//=========================================================================== void TTargetMove::Run() { if (!isEnabledCalc()) return; TElement::Run(); // -------------- TargetTraektory->Run(); oPoints->Items[0]->Queue[0] = TargetTraektory->D + RandG(0, sigma1); oPoints->Items[1]->Queue[0] = TargetTraektory->K + RandG(0, sigma2); oPoints->Items[2]->Queue[0] = TargetTraektory->Eps + RandG(0, sigma3); oPoints->Items[3]->Queue[0] = oPoints->Items[0]->Queue[0] * cos(oPoints->Items[1]->Queue[0]); oPoints->Items[4]->Queue[0] = oPoints->Items[0]->Queue[0] * sin(oPoints->Items[1]->Queue[0]); oPoints->Items[5]->Queue[0] = oPoints->Items[0]->Queue[0] * sin(oPoints->Items[2]->Queue[0]); }