Struct RatingConfiguration
Defines how a condition's match rating will be evaluated
Namespace: Unity.MARS.Conditions
Syntax
public struct RatingConfiguration
Constructors
RatingConfiguration(Single, Single)
Defines how a condition's match rating will be evaluated
Declaration
public RatingConfiguration(float deadZone, float center = 0.5F)
Parameters
Type | Name | Description |
---|---|---|
Single | deadZone | Defines a portion of the range around the center, inside which the data is considered a perfect match |
Single | center | Defines the point in the 0-1 range which will receive the highest possible match rating |
Fields
center
Defines the point in the 0-1 range which will receive the highest possible match rating
Declaration
public readonly float center
Field Value
Type | Description |
---|---|
Single |
deadZone
Defines a portion of the range around the center, inside which the data is considered a perfect match
Declaration
public readonly float deadZone
Field Value
Type | Description |
---|---|
Single |
MaxDeadZone
Maximum value for the dead zone in a ratings configuration.
Declaration
public const float MaxDeadZone = null
Field Value
Type | Description |
---|---|
Single |
MaximumCenter
Maximum value for the center of a ratings configuration
Declaration
public const float MaximumCenter = null
Field Value
Type | Description |
---|---|
Single |
MinimumCenter
Minimum value for the center of a ratings configuration. If the center is 0 it can mess up the calculation and produce NaN errors, so prevent that
Declaration
public const float MinimumCenter = null
Field Value
Type | Description |
---|---|
Single |