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: Mar. 22, 2017
 See also iData, iData/plus, iData/prod, iData/cumprod, iData/mean

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1