10#include "MantidHistogramData/Histogram.h"
29 const std::string
name()
const override {
return "WeightedMean"; }
31 const std::string
summary()
const override {
32 return "An algorithm to calculate the weighted mean of two workspaces.";
35 int version()
const override {
return (1); }
36 const std::vector<std::string>
seeAlso()
const override {
return {
"Mean"}; }
38 const std::string
category()
const override {
return "Arithmetic"; }
42 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const HistogramData::Histogram &
rhs,
43 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
44 void performBinaryOperation(
const HistogramData::Histogram &lhs,
const double rhsY,
const double rhsE,
45 HistogramData::HistogramY &YOut, HistogramData::HistogramE &EOut)
override;
const std::vector< double > & rhs
CommutativeBinaryOperation supports commutative binary operations on two input workspaces.
An algorithm to calculate the weighted mean of two workspaces.
int version() const override
function to return a version of the algorithm, must be overridden in all algorithms
const std::vector< std::string > seeAlso() const override
Function to return all of the seeAlso algorithms related to this algorithm.
const std::string summary() const override
Summary of algorithms purpose.
const std::string name() const override
function to return a name of the algorithm, must be overridden in all algorithms
std::string inputPropName1() const override
The name of the first input workspace property for BinaryOperation.
const std::string category() const override
Algorithm's category for identification overriding a virtual method.
std::string inputPropName2() const override
The name of the second input workspace property for BinaryOperation.
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.