Exemplo n.º 1
0
 public SpectrumData(float res, WaveData wave)
 {
     WaveRpm    = wave.Rpm;
     Resolution = res;
     ChannelId  = wave.ChannelId;
     YValues    = Array.ConvertAll(NadaMath.PositiveFFT(wave.AsyncData), x => (float)x);
     XValues    = YValues.Select((x, i) => (float)i / res).ToArray();
     TimeStamp  = wave.DateTime;
 }