Xceed DataGrid for Silverlight Documentation
ModeFunction Class
Members 


Class that represents the Mode statistical function, which is the value that has the largest number of observations, namely the most frequent value or values. The mode is not necessarily unique, unlike the arithmetic mean.

The Mode function is not supported when using a remote data source.

Object Model
ModeFunction ClassStatFunction Class
Syntax
'Declaration
 
Public Class ModeFunction 
   Inherits StatFunction
'Usage
 
Dim instance As ModeFunction
public class ModeFunction : StatFunction 
Remarks

By default, the result will be unimodal. To enable multimodal results, the AllowMultimodal property must be set to true.

In the case where AllowMultimodal is set to true, a MultimodalResultConverter must be used to display the result, which will always be an array, even if the result is not multimodal. If AllowMultiModal is set to false and a multimodal result occurs, only one of the mode will be returned. Ex. : [1, 2, 2, 6, 6] is bimodal (2 and 6) and the function will return either 2 or 6. a null reference (Nothing in Visual Basic) will be returned if all the items in the set are unique.

null (Nothing in Visual Basic) and DBNull values will be ignored.

Inheritance Hierarchy

System.Object
   Xceed.Silverlight.Data.Stats.StatFunction
      Xceed.Silverlight.Data.Stats.ModeFunction

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

ModeFunction Members
Xceed.Silverlight.Data.Stats Namespace

Send Feedback