PowerMD v1

Summary

Raise a MDHistoWorkspace to a power

See Also

MinusMD, MultiplyMD, DivideMD, PlusMD, LogarithmMD, ExponentialMD

Properties

Name

Direction

Type

Default

Description

InputWorkspace

Input

IMDWorkspace

Mandatory

A MDEventWorkspace or MDHistoWorkspace on which to apply the operation.

OutputWorkspace

Output

IMDWorkspace

Mandatory

Name of the output MDEventWorkspace or MDHistoWorkspace.

Exponent

Input

number

2

Power to which to raise the values. Default 2.0.

Description

This executes the power function on a MDHistoWorkspace.

The signal a becomes f=ab

The error da becomes df2=f2b2(da2/a2)

This algorithm cannot be run on a MDEventWorkspace. Its equivalent on a MatrixWorkspace is called Power v1.

Categories: AlgorithmIndex | MDAlgorithms\MDArithmetic

Source

C++ header: PowerMD.h

C++ source: PowerMD.cpp