Mantid
Loading...
Searching...
No Matches
CreateBootstrapWorkspaces.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2025 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include <random>
10
11#include "MantidAPI/Algorithm.h"
12#include "MantidAlgorithms/DllConfig.h"
13#include "MantidHistogramData/HistogramY.h"
14
15namespace Mantid::Algorithms {
16
23class MANTID_ALGORITHMS_DLL CreateBootstrapWorkspaces : public API::Algorithm {
24public:
25 const std::string name() const override;
26 int version() const override;
27 const std::string category() const override;
28 const std::string summary() const override;
29
30 static HistogramData::HistogramY sampleHistogramFromGaussian(const HistogramData::HistogramY &dataY,
31 const HistogramData::HistogramE &dataE,
32 std::mt19937 &gen);
33
34private:
35 void init() override;
36 void exec() override;
37};
38
39} // namespace Mantid::Algorithms
std::string name
Definition Run.cpp:60
Base class from which all concrete algorithm classes should be derived.
Definition Algorithm.h:76
CreateBootstrapWorkspaces: The algorithm generates several simulated workspaces by sampling randomly ...