Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cluster
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
cluster
Commits
6eae285b
Commit
6eae285b
authored
23 years ago
by
Mark Jenkinson
Browse files
Options
Downloads
Patches
Plain Diff
Put in a function num() to allow numbers to be printed correctly,
regardless of volume type. [previous problem with chars]
parent
38a73346
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cluster.cc
+17
-10
17 additions, 10 deletions
cluster.cc
with
17 additions
and
10 deletions
cluster.cc
+
17
−
10
View file @
6eae285b
...
@@ -90,6 +90,13 @@ Option<string> talvolname(string("--talvol"), string(""),
...
@@ -90,6 +90,13 @@ Option<string> talvolname(string("--talvol"), string(""),
int
num
(
const
char
x
)
{
return
(
int
)
x
;
}
short
int
num
(
const
short
int
x
)
{
return
x
;
}
int
num
(
const
int
x
)
{
return
x
;
}
float
num
(
const
float
x
)
{
return
x
;
}
double
num
(
const
double
x
)
{
return
x
;
}
template
<
class
T
>
template
<
class
T
>
struct
triple
{
T
x
;
T
y
;
T
z
;
};
struct
triple
{
T
x
;
T
y
;
T
z
;
};
...
@@ -342,17 +349,17 @@ void print_results(const vector<int>& idx,
...
@@ -342,17 +349,17 @@ void print_results(const vector<int>& idx,
if
(
pthreshindex
[
index
]
>
0
)
{
if
(
pthreshindex
[
index
]
>
0
)
{
float
mlog10p
;
float
mlog10p
;
mlog10p
=
-
logpvals
[
index
];
mlog10p
=
-
logpvals
[
index
];
cout
<<
setprecision
(
3
)
<<
pthreshindex
[
index
]
<<
"
\t
"
<<
k
<<
"
\t
"
;
cout
<<
setprecision
(
3
)
<<
num
(
pthreshindex
[
index
]
)
<<
"
\t
"
<<
k
<<
"
\t
"
;
if
(
!
pthresh
.
unset
())
{
cout
<<
p
<<
"
\t
"
<<
mlog10p
<<
"
\t
"
;
}
if
(
!
pthresh
.
unset
())
{
cout
<<
num
(
p
)
<<
"
\t
"
<<
num
(
mlog10p
)
<<
"
\t
"
;
}
cout
<<
maxvals
[
index
]
<<
"
\t
"
cout
<<
num
(
maxvals
[
index
]
)
<<
"
\t
"
<<
fmaxpos
[
index
].
x
<<
"
\t
"
<<
fmaxpos
[
index
].
y
<<
"
\t
"
<<
num
(
fmaxpos
[
index
].
x
)
<<
"
\t
"
<<
num
(
fmaxpos
[
index
].
y
)
<<
"
\t
"
<<
fmaxpos
[
index
].
z
<<
"
\t
"
<<
num
(
fmaxpos
[
index
].
z
)
<<
"
\t
"
<<
fcog
[
index
].
x
<<
"
\t
"
<<
fcog
[
index
].
y
<<
"
\t
"
<<
num
(
fcog
[
index
].
x
)
<<
"
\t
"
<<
num
(
fcog
[
index
].
y
)
<<
"
\t
"
<<
fcog
[
index
].
z
;
<<
num
(
fcog
[
index
].
z
)
;
if
(
!
copename
.
unset
())
{
if
(
!
copename
.
unset
())
{
cout
<<
"
\t
"
<<
copemaxval
[
index
]
<<
"
\t
"
cout
<<
"
\t
"
<<
num
(
copemaxval
[
index
]
)
<<
"
\t
"
<<
fcopemaxpos
[
index
].
x
<<
"
\t
"
<<
fcopemaxpos
[
index
].
y
<<
"
\t
"
<<
num
(
fcopemaxpos
[
index
].
x
)
<<
"
\t
"
<<
num
(
fcopemaxpos
[
index
].
y
)
<<
"
\t
"
<<
fcopemaxpos
[
index
].
z
<<
"
\t
"
<<
copemean
[
index
];
<<
num
(
fcopemaxpos
[
index
].
z
)
<<
"
\t
"
<<
num
(
copemean
[
index
]
)
;
}
}
cout
<<
endl
;
cout
<<
endl
;
}
}
...
...
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