C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
CustomDistribution.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2
5
7{
10 public abstract class CustomDistribution : Distribution,
12 {
15 [DataMember(Order = 13)]
16 public bool interpolate { get; set; }
17
18 #region IAPIResource_WithDataEndpoint Implementation
20 private LargeDataSubResource _dataEndpoint;
21
24 public LargeDataSubResource data => _dataEndpoint ??
25 (_dataEndpoint = new LargeDataSubResource(this));
26
31 [DataMember(Name = "data", Order = 97)]
33 public IReference<DataFile> data_file { get; set; }
34
36 [DataMember(Order = 98)]
38 public TaskStatus status { get; set; }
39
41 [DataMember(Order = 99)]
43 public string status_message { get; set; }
44
46 protected override void AfterMembersCloned(APIType _)
47 {
48 base.AfterMembersCloned(_);
49 _dataEndpoint = null;
50 }
51 #endregion IAPIResource_WithDataEndpoint Implementation
52 }
53}
Base class used by all types and resources.
Definition APIType.cs:8
Describes an endpoint off of some types of resources from which an associated "large data file" can b...
Describes a collection of resources which can be listed.
Specifies that a property is generated by the server and should not be specified on the client side d...
Indicates that the property, if left null, will have a default value generated and filled in by the s...
Abstract representation of a distribution, used for parametric loss sets.
Custom Distribution that allows the user to upload CSV data. Can be treated as a Discrete or Continuo...
IReference< DataFile > data_file
A reference to the data attached to this resource. This field will automatically be created if you in...
TaskStatus status
Status of the data file associated with this resource.
override void AfterMembersCloned(APIType _)
Invoked following construction if the current instance has been created using a member-wise clone of ...
string status_message
Status message of the data file associated with this resource.
bool interpolate
Determines whether linear interpolation should be used for probabilities between those that appear in...
LargeDataSubResource data
An endpoint for accessing or modifying the data file attached to this resource.
Describes an APIResource class that adds a "/data" sub-resource, since this functionality is common t...
Represents any distribution that is continuous. With a continuous probability distribution,...
Represents any distribution that is discrete. With a discrete probability distribution,...
TaskStatus
The status of a data upload which may be in progress.
Definition TaskStatus.cs:9