Developer documentation
Version 3.0.3-105-gd3941f44
cfe.h
Go to the documentation of this file.
1/* Copyright (c) 2008-2022 the MRtrix3 contributors.
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 *
7 * Covered Software is provided under this License on an "as is"
8 * basis, without warranty of any kind, either expressed, implied, or
9 * statutory, including, without limitation, warranties that the
10 * Covered Software is free of defects, merchantable, fit for a
11 * particular purpose or non-infringing.
12 * See the Mozilla Public License v. 2.0 for more details.
13 *
14 * For more details, see http://www.mrtrix.org/.
15 */
16
17#ifndef __stats_cfe_h__
18#define __stats_cfe_h__
19
20#include "types.h"
21#include "math/stats/typedefs.h"
22#include "stats/enhance.h"
23
24#include "fixel/matrix.h"
25
26namespace MR
27{
28 namespace Stats
29 {
30
31
33 using direction_type = Eigen::Matrix<value_type, 3, 1>;
34
35
36
38 public:
39 CFE (const Fixel::Matrix::Reader& connectivity_matrix,
40 const value_type dh, const value_type E, const value_type H, const value_type C,
41 const bool norm);
42 virtual ~CFE() { }
43
44 protected:
46 const value_type dh, E, H, C;
47 const bool normalise;
48
50
52 };
53
54
55
56 }
57}
58
59#endif
const value_type C
Definition: cfe.h:46
const value_type H
Definition: cfe.h:46
const value_type E
Definition: cfe.h:46
vector< value_type > h_pow_H
Definition: cfe.h:49
void operator()(in_column_type, out_column_type) const override
const value_type dh
Definition: cfe.h:46
const bool normalise
Definition: cfe.h:47
Fixel::Matrix::Reader matrix
Definition: cfe.h:45
Math::Stats::matrix_type::ConstColXpr in_column_type
Definition: enhance.h:46
Math::Stats::matrix_type::ColXpr out_column_type
Definition: enhance.h:47
MR::default_type value_type
Definition: typedefs.h:33
default_type value_type
Definition: stats.h:35
Eigen::Matrix< value_type, 3, 1 > direction_type
Definition: cfe.h:33
Definition: base.h:24
#define MEMALIGN(...)
Definition: types.h:185