Home > Objects > @iData > plus.m

iFit/plus

PURPOSE ^

c = plus(a,b) : computes the sum of iData objects

SYNOPSIS ^

function c = plus(a,b)

DESCRIPTION ^

 c = plus(a,b) : computes the sum of iData objects

   @iData/plus (+) function to compute the sum of data sets 

     the sum is defined as the normalised sum:
       (M1+M2)*(S1/M1+S2/M2) over monitor(M1+M2)
     where S1,M1 and S2,M2 and the Signal and Monitor of the two objects.

     To get the 'conventional' sum which is the sum S1+S2, set one of the
     monitors to 0, e.g.:
       a.Monitor=0;

 input:  a: object or array (iData or numeric)
         b: object or array (iData or numeric)
 output: c: object or array (iData)
 ex:     c=a+1;

 Version: oct.. 23, 2018
 See also iData, iData/minus, iData/plus, iData/times, iData/rdivide, iData/combine

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 23-Oct-2018 22:44:35 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1