klhztrader/KLHZ.Trader.Core.Math/Declisions/Dtos/FFT/FFTAnalyzeResult.cs

20 lines
720 B
C#

namespace KLHZ.Trader.Core.Math.Declisions.Dtos.FFT
{
public class FFTAnalyzeResult
{
public required string Key { get; init; }
public Harmonic[] Harmonics { get; init; } = [];
public decimal Max { get; init; }
public decimal Min { get; init; }
public decimal Mediana { get; init; }
public decimal Upper30Decil { get; init; }
public decimal Lower30Decil { get; init; }
public int Length { get; init; }
public DateTime LastTime { get; init; }
public DateTime StartTime { get; init; }
public bool IsEmpty => this == Empty;
public static FFTAnalyzeResult Empty = new() { Key = "empty" };
}
}