Computes the Bimodality Amplitude of [Zhang et al., 2003]
BimodalityAmplitude(x, PlotIt=FALSE)
Arguments
x: Data vector.
PlotIt: FALSE, TRUE if a figure with the antimodes and peaks is plotted
Details
This function calculates the Bimodality Ampltiude of a data vector. This is a measure of the proportion of bimodality and the existence of bimodality. The value lies between zero and one (that is: [0,1]) where the value of zero implies that the data is unimodal and the value of one implies the data is two point masses.
Zhang, C., Mapes, B., & Soden, B.: Bimodality in tropical water vapour, Quarterly Journal of the Royal Meteorological Society, Vol. 129(594), pp. 2847-2866, 2003.
Author(s)
Michael Thrun
Note
function was rewritten after the flow of a function of Sathish Deevi because the original function was incorrect.