Mercurial > hg > svcore
comparison data/model/RangeSummarisableTimeValueModel.h @ 1766:85b9b466a59f
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:24:51 +0100 |
parents | c3b5564cfb78 |
children |
comparison
equal
deleted
inserted
replaced
1730:649ac57c5a2d | 1766:85b9b466a59f |
---|---|
39 class Range | 39 class Range |
40 { | 40 { |
41 public: | 41 public: |
42 Range() : | 42 Range() : |
43 m_new(true), m_min(0.f), m_max(0.f), m_absmean(0.f) { } | 43 m_new(true), m_min(0.f), m_max(0.f), m_absmean(0.f) { } |
44 Range(const Range &r) : | |
45 m_new(true), m_min(r.m_min), m_max(r.m_max), m_absmean(r.m_absmean) { } | |
46 Range(float min, float max, float absmean) : | 44 Range(float min, float max, float absmean) : |
47 m_new(true), m_min(min), m_max(max), m_absmean(absmean) { } | 45 m_new(false), m_min(min), m_max(max), m_absmean(absmean) { } |
46 | |
47 Range(const Range &r) =default; | |
48 Range &operator=(const Range &) =default; | |
48 | 49 |
49 float min() const { return m_min; } | 50 float min() const { return m_min; } |
50 float max() const { return m_max; } | 51 float max() const { return m_max; } |
51 float absmean() const { return m_absmean; } | 52 float absmean() const { return m_absmean; } |
52 | 53 |