public void CalibrateCletchingCombinations() { RAM.CletchingCombinations.ClearCletchingCombinations(); int kilToch = adcInst.dac.schvn.kilTochnux; for (int ik = kilToch; ik < adcInst.dac.schvn.n; ik++) { var valueLow = (int[])adcInst.ConvertBySARMethod(GetAkalLow(ik), ik).polinom.Clone(); var valueHigh = (int[])adcInst.ConvertBySARMethod(GetAkalHigh(ik)).polinom.Clone(); RAM.CletchingCombinations.AddCletchingCombination(valueHigh, valueLow); } }
void CalibrateFirstStrategy() { RAM.Weights.InitRAMWeights(adcInst.dac.schvn); int kilToch = adcInst.dac.schvn.kilTochnux; for (int ik = kilToch; ik < adcInst.dac.schvn.n; ik++) { double q1 = adcInst.dac.ZnachenyaC(adcInst.ConvertBySARMethod(GetAkalFirstDtrategy(ik))); double q2 = adcInst.dac.ZnachenyaC(adcInst.ConvertBySARMethod(GetAkalFirstDtrategy(ik), ik)); RAM.Weights.SetCalibrated(ik, q2 - q1); } }