Overview:
This VI finds the mode of an array of integers.
Description:
Since the current VIs used for finding the mode do so on a set of double values, they don't take the exact value of each element into account. Instead they use buckets to find the mode. However, this can give odd results when wiring an array of integers to these VIs. The value will generally come out as a decimal value close to the true mode, which may not be expected. Here is a VI that finds the true mode(s) of an array of integers:
Requirements:
Steps to Implement or Execute Code:
Additional Information or References:
"**This document has been updated to meet the current required format for the NI Code Exchange.**"
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.