modFactor was cahged

develop
Aleksey_K 2024-07-03 09:45:56 +09:00
parent a125cc0fc5
commit abdddc307a
1 changed files with 5 additions and 5 deletions

View File

@ -248,12 +248,12 @@ export function specSquare(spec, L, R) {
}; };
}; //определение площадей спектра }; //определение площадей спектра
export function modFactor(ampl, base) { export function modFactor(options) {
let dl = (ampl - base); //разность уровней гармонической и случайной составляющей вибрации let dl = (options.ampl - options.base); //разность уровней гармонической и случайной составляющей вибрации
let df = specParams().frequency / bpWidth(); //отношение частотному разрешению спектра к ширине фильтра let df = options.spec.frequency / options.fltr.width; //отношение граничной частоты спектра к ширине фильтра
let mod = Math.sqrt((10 ** (dl / 10) - 1) * df) * 100; let mod = Math.sqrt((10 ** (dl / 10) - 1) * df);
return mod; return mod;
}; //определение условной глубины модуляции }; //определение глубины модуляции ВЧ составляющих
export function deepFactor(ampl, base) { export function deepFactor(ampl, base) {
let deep = (ampl - base) / (ampl + base) * 100; let deep = (ampl - base) / (ampl + base) * 100;