This commit is contained in:
@ -4,12 +4,20 @@ namespace OutputServiceTSDB.Models
|
||||
{
|
||||
public class ApiObject
|
||||
{
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
public string Tag { get; set; }
|
||||
|
||||
public bool Decision { get; set; }
|
||||
private double _probability;
|
||||
|
||||
public double Confidence { get; set; }
|
||||
public double Probability
|
||||
{ get => _probability;
|
||||
set
|
||||
{
|
||||
if (value > 1.0 || value < 0.0)
|
||||
throw new ArgumentOutOfRangeException(
|
||||
$"{nameof(value)} must be between 0 and 1.");
|
||||
else
|
||||
_probability = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user