3.7.5.25 Integ

LabTalk Object Type:

Utility

The integration results from the integrate command are placed in the following integ object properties .

Please see the integ1 X-Function.

Properties:

Property Access Description
integ.area Read only
numeric

Area of the integration.

integ.dx Read only
numeric

Half width of the peak.

integ.x0 Read only
numeric

X value of y0.

integ.x1 Read only
numeric

Beginning X.

integ.x2 Read only
numeric

Ending X.

integ.y0 Read only
numeric

Maximum height (measured from the baseline if present, otherwise measured from zero).

Examples:

The following script performs an integration from zero on the active data plot. The integration results are printed to the Script window.

 
integ %C;
if (mks1 >= 0)
{
      i1 = mks1;
      i2 = mks2;
}
else
{
      get %C -b i1;
      get %C -e i2;
}
type -a "Integ of %C from zero";
type "i = $(i1) --> $(i2)";
type "x = $(integ.x1) --> $(integ.x2)";
type "Area\tPeak at\tWidth\tHeight";
type "$(integ.area)\t$(integ.x0)\t$(integ.dx)\t$(integ.y0)";