public static int HighestDatapoint(AudiogramDataset audiogramDataset)
        {
            var list = new List <int>
            {
                audiogramDataset.F125?.Value ?? 0,
                audiogramDataset.F250?.Value ?? 0,
                audiogramDataset.F500?.Value ?? 0,
                audiogramDataset.F1000?.Value ?? 0,
                audiogramDataset.F2000?.Value ?? 0,
                audiogramDataset.F3000?.Value ?? 0,
                audiogramDataset.F4000?.Value ?? 0,
                audiogramDataset.F6000?.Value ?? 0,
                audiogramDataset.F8000?.Value ?? 0
            };

            return(list.Max());
        }
예제 #2
0
 public AudiogramClassification(Audiogram audiogram)
 {
     _left  = audiogram.Left;
     _right = audiogram.Right;
 }
 public AudiogramDatasetClassification(AudiogramDataset dataset)
 {
     _audiogramDataset = dataset ?? throw new ArgumentNullException(nameof(dataset));
 }