Click or drag to resize
Accord.NET (logo)

DiscretizationOptionsSymmetric Property

Gets or sets whether the discretization threshold is symmetric.

Namespace:  Accord.Statistics.Filters
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public bool Symmetric { get; set; }
Request Example View Source

Property Value

Type: Boolean
Remarks

If a symmetric threshold of 0.4 is used, for example, a real value of 0.5 will be rounded to 1.0 and a real value of -0.5 will be rounded to -1.0.

If a non-symmetric threshold of 0.4 is used, a real value of 0.5 will be rounded towards 1.0, but a real value of -0.5 will be rounded to 0.0 (because |-0.5| is higher than the threshold of 0.4).

See Also