\(\renewcommand\AA{\unicode{x212B}}\)

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 = a^b\)

The error \(da\) becomes \(df^2 = f^2 * b^2 * (da^2 / a^2)\)

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