Home > Objects > @iData > prod.m

iFit/prod

PURPOSE ^

s = prod(a,dim) : computes the product of iData objects elements

SYNOPSIS ^

function [s,sigma] = prod(a,dim)

DESCRIPTION ^

 s = prod(a,dim) : computes the product of iData objects elements

   @iData/prod function to compute the product of the elements of the data set
     prod(a,dim) operates along axis of rank dim. The axis is then removed.
       If dim=0, product is done on all axes and the total is returned as a scalar value. 
         In this case, a second output argument holds the error bar.
       prod(a,1) operates on first dimension (columns)

 input:  a: object or array (iData/array of)
         dim: dimension to operate (int//array of)
 output: s: product of elements (iData/scalar)
 ex:     c=prod(a);

 Version: Nov. 27, 2018
 See also iData, iData/plus, iData/prod, iData/cumprod, iData/mean

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1