Mode

Block Group: Statistical Functions
Icon:Mode block icon

The Mode block returns the most common value in a list of arguments.

Notes

  • If the greatest number of appearances is shared by two or more values, the Mode block returns the value that first reached that number of appearances.
  • If none of the input n values is a number, the block outputs null.

For information on using dataflow blocks, see Dataflow.

For accepted and excluded arguments of Statistical Functions blocks, see Statistical Functions.


Input/Output Property

The following property of the Mode block can take input and give output.

  • input n (number)

input n specifies one of the input values for the statistical function.


Output Property

The following property of the Mode block can give output but cannot take input.

  • output (number)

output returns the mode of all input values.


Example

The following image shows an example of the Mode block.

Mode block example