Class Property
Concrete property. Used to convert any given data type to a number.
Inheritance
Inherited Members
Namespace:numl.Model
Assembly:numl.dll
Syntax
public class Property
              Constructors
View SourceProperty()
Default constructor.
Declaration
public Property()
              Properties
View SourceDiscrete
Discrete or continuous value.
Declaration
public virtual bool Discrete { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Boolean | true if discrete, false if not.  | 
                  
Length
Length of property.
Declaration
public virtual int Length { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | The length.  | 
                  
Name
Property Name - Maps to object property or dictionary lookup.
Declaration
public string Name { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The name.  | 
                  
Start
Start position in array.
Declaration
public int Start { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | The start.  | 
                  
Type
Type of property.
Declaration
public virtual Type Type { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Type | The type.  | 
                  
Methods
View SourceConvert(Double)
Convert the numeric representation back to the original type.
Declaration
public virtual object Convert(double val)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Double | val | .  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Object | An object.  | 
                  
Convert(Object)
Convert an object to a list of numbers.
Declaration
public virtual IEnumerable<double> Convert(object o)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | o | Object.  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.Double> | Lazy list of doubles.  | 
                  
Exceptions
| Type | Condition | 
|---|---|
| System.InvalidOperationException | Thrown when the requested operation is invalid.  | 
                  
Equals(Object)
Equality test
Declaration
public override bool Equals(object obj)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | object to compare  | 
                  
Returns
| Type | Description | 
|---|---|
| System.Boolean | equality  | 
                  
Overrides
GetColumns()
Retrieve the list of expanded columns. If there is a one-to-one correspondence between the type and its expansion it will return a single value/.
Declaration
public virtual IEnumerable<string> GetColumns()
              Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<System.String> | An enumerator that allows foreach to be used to process the columns in this collection.  | 
                  
GetHashCode()
Return hash
Declaration
public override int GetHashCode()
              Returns
| Type | Description | 
|---|---|
| System.Int32 | hash  | 
                  
Overrides
PostProcess(IEnumerable<Object>)
Used as a postprocessing step when overridden. Can be used to look at the entire data set as a whole after converting single elements.
Declaration
public virtual void PostProcess(IEnumerable<object> examples)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Object> | examples | Examples.  | 
                  
PostProcess(Object)
Used as a postprocessing step when overriden. Can be used to look at the current object in question fater converting single elements.
Declaration
public virtual void PostProcess(object example)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | example | .  | 
                  
PreProcess(IEnumerable<Object>)
Used as a preprocessing step when overridden. Can be used to look at the entire data set as a whole before converting single elements.
Declaration
public virtual void PreProcess(IEnumerable<object> examples)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<System.Object> | examples | Examples.  | 
                  
PreProcess(Object)
Used as a preprocessing step when overriden. Can be used to look at the current object in question before converting single elements.
Declaration
public virtual void PreProcess(object example)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | example | Example.  | 
                  
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
              Returns
| Type | Description | 
|---|---|
| System.String | A string that represents the current object.  |