running_stat_bones.hpp
Go to the documentation of this file.
1 // Copyright (C) 2009-2011 NICTA (www.nicta.com.au)
2 // Copyright (C) 2009-2011 Conrad Sanderson
3 //
4 // This file is part of the Armadillo C++ library.
5 // It is provided without any warranty of fitness
6 // for any purpose. You can redistribute this file
7 // and/or modify it under the terms of the GNU
8 // Lesser General Public License (LGPL) as published
9 // by the Free Software Foundation, either version 3
10 // of the License or (at your option) any later version.
11 // (see http://www.opensource.org/licenses for more info)
12 
13 
16 
17 
18 
19 template<typename eT>
21  {
22  public:
23 
24  inline ~arma_counter();
25  inline arma_counter();
26 
27  inline const arma_counter& operator++();
28  inline void operator++(int);
29 
30  inline void reset();
31  inline eT value() const;
32  inline eT value_plus_1() const;
33  inline eT value_minus_1() const;
34 
35 
36  private:
37 
40  };
41 
42 
43 
48 template<typename eT>
50  {
51  public:
52 
53  typedef typename get_pod_type<eT>::result T;
54 
55 
56  inline ~running_stat();
57  inline running_stat();
58 
59  inline void operator() (const T sample);
60  inline void operator() (const std::complex<T>& sample);
61 
62  inline void reset();
63 
64  inline eT mean() const;
65 
66  inline T var (const uword norm_type = 0) const;
67  inline T stddev(const uword norm_type = 0) const;
68 
69  inline eT min() const;
70  inline eT max() const;
71 
72  inline T count() const;
73 
74  //
75  //
76 
77  private:
78 
80 
83 
86 
89 
90 
91  friend class running_stat_aux;
92  };
93 
94 
95 
97  {
98  public:
99 
100  template<typename eT>
101  inline static void update_stats(running_stat<eT>& x, const eT sample);
102 
103  template<typename T>
104  inline static void update_stats(running_stat< std::complex<T> >& x, const T sample);
105 
106  template<typename T>
107  inline static void update_stats(running_stat< std::complex<T> >& x, const std::complex<T>& sample);
108 
109  };
110 
111 
112 
eT value() const
eT value_minus_1() const
const mtOp< typename T1::pod_type, T1, op_stddev > stddev(const Base< typename T1::elem_type, T1 > &X, const uword norm_type=0, const uword dim=0)
Definition: fn_stddev.hpp:22
const arma_counter & operator++()
arma_aligned eT max_val
arma_inline const Op< T1, op_max > max(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed &#39;maximum values&#39; operation. The dimension, along which the maxima are found, is set via &#39;dim&#39;. For dim = 0, the maximum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the maximum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
Definition: fn_max.hpp:28
arma_inline const Op< T1, op_mean > mean(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Definition: fn_mean.hpp:22
arma_aligned eT d_count
arma_inline const Op< T1, op_min > min(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed &#39;minimum values&#39; operation. The dimension, along which the minima are found, is set via &#39;dim&#39;. For dim = 0, the minimum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the minimum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
Definition: fn_min.hpp:27
u32 uword
Definition: typedef.hpp:85
arma_aligned T max_val_norm
get_pod_type< eT >::result T
#define arma_aligned
arma_aligned eT min_val
eT value_plus_1() const
arma_aligned arma_counter< T > counter
const mtOp< typename T1::pod_type, T1, op_var > var(const Base< typename T1::elem_type, T1 > &X, const uword norm_type=0, const uword dim=0)
Definition: fn_var.hpp:22
arma_aligned T r_var
arma_aligned T min_val_norm
arma_aligned uword i_count
arma_aligned eT r_mean


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:31:58