What equation inside in iMA and iMAOnArray?

How do I calculate iMA and iMAOnArray for random Array variables?