forked from AmbaPant/mantid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
FrequencyStandardDeviations.h
54 lines (46 loc) · 2.34 KB
/
FrequencyStandardDeviations.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Mantid Repository : https://github.com/mantidproject/mantid
//
// Copyright © 2016 ISIS Rutherford Appleton Laboratory UKRI,
// NScD Oak Ridge National Laboratory, European Spallation Source,
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
// SPDX - License - Identifier: GPL - 3.0 +
#pragma once
#include "MantidHistogramData/DllConfig.h"
#include "MantidHistogramData/HistogramE.h"
#include "MantidHistogramData/StandardDeviationVectorOf.h"
namespace Mantid {
namespace HistogramData {
class BinEdges;
class CountStandardDeviations;
class FrequencyVariances;
/** FrequencyStandardDeviations
Container for the standard deviations of the frequencies in a histogram. A
copy-on-write mechanism saves memory and makes copying cheap. The
implementation is based on detail::StandardDeviationVectorOf, which provides
conversion from the corresponding variance type, FrequencyVariances.
@author Simon Heybrock
@date 2016
*/
class MANTID_HISTOGRAMDATA_DLL FrequencyStandardDeviations
: public detail::StandardDeviationVectorOf<FrequencyStandardDeviations, HistogramE, FrequencyVariances> {
public:
using StandardDeviationVectorOf<FrequencyStandardDeviations, HistogramE,
FrequencyVariances>::StandardDeviationVectorOf;
using StandardDeviationVectorOf<FrequencyStandardDeviations, HistogramE, FrequencyVariances>::operator=;
/// Default constructor, creates a NULL object.
FrequencyStandardDeviations() = default;
// The copy and move constructor and assignment are not captured properly by
// the using declaration above, so we need them here explicitly.
/// Copy constructor. Lightweight, internal data will be shared.
FrequencyStandardDeviations(const FrequencyStandardDeviations &) = default;
/// Move constructor.
FrequencyStandardDeviations(FrequencyStandardDeviations &&) = default;
/// Copy assignment. Lightweight, internal data will be shared.
FrequencyStandardDeviations &operator=(const FrequencyStandardDeviations &) & = default;
/// Move assignment.
FrequencyStandardDeviations &operator=(FrequencyStandardDeviations &&) & = default;
FrequencyStandardDeviations(const CountStandardDeviations &counts, const BinEdges &edges);
FrequencyStandardDeviations(CountStandardDeviations &&counts, const BinEdges &edges);
};
} // namespace HistogramData
} // namespace Mantid