Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
miscmaths
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
miscmaths
Commits
5d383e87
Commit
5d383e87
authored
18 years ago
by
Christian Beckmann
Browse files
Options
Downloads
Patches
Plain Diff
changes to f2z and t2z to allow for voxel-specific dofs
parent
00250fb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
f2z.cc
+27
-0
27 additions, 0 deletions
f2z.cc
f2z.h
+1
-0
1 addition, 0 deletions
f2z.h
with
28 additions
and
0 deletions
f2z.cc
+
27
−
0
View file @
5d383e87
...
...
@@ -156,6 +156,33 @@ namespace MISCMATHS {
}
}
}
void
F2z
::
ComputeFStats
(
const
ColumnVector
&
p_fs
,
const
ColumnVector
&
p_dof1
,
const
ColumnVector
&
p_dof2
,
ColumnVector
&
p_zs
)
{
Tracer_Plus
ts
(
"F2z::ComputeFStats"
);
int
numTS
=
p_fs
.
Nrows
();
p_zs
.
ReSize
(
numTS
);
F2z
&
f2z
=
F2z
::
getInstance
();
for
(
int
i
=
1
;
i
<=
numTS
;
i
++
)
{
if
(
p_fs
(
i
)
>
0.0
)
{
// cerr << "i=" << i;
// cerr << ",p_fs(i)=" << p_fs(i);
// cerr << ",p_dof1=" << p_dof1;
// cerr << ",p_dof2=" << p_dof2(i) << endl;
p_zs
(
i
)
=
f2z
.
convert
(
p_fs
(
i
),
int
(
p_dof1
(
i
)),
int
(
p_dof2
(
i
)));
}
else
{
p_zs
(
i
)
=
0.0
;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
f2z.h
+
1
−
0
View file @
5d383e87
...
...
@@ -30,6 +30,7 @@ namespace MISCMATHS {
static
void
ComputeFStats
(
const
ColumnVector
&
p_fs
,
int
p_dof1
,
int
p_dof2
,
ColumnVector
&
p_zs
);
static
void
ComputeFStats
(
const
ColumnVector
&
p_fs
,
int
p_dof1
,
const
ColumnVector
&
p_dof2
,
ColumnVector
&
p_zs
);
static
void
ComputeFStats
(
const
ColumnVector
&
p_fs
,
const
ColumnVector
&
p_dof1
,
const
ColumnVector
&
p_dof2
,
ColumnVector
&
p_zs
);
private
:
F2z
()
:
Base2z
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment