Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PRESCOTT
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mustafa Tekpinar
PRESCOTT
Commits
e197ed88
Commit
e197ed88
authored
May 09, 2022
by
Mustafa Tekpinar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more user error flexibility to normWeightMode variable in computePred.R
parent
4c796a06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
computePred.R
computePred.R
+3
-3
No files found.
computePred.R
View file @
e197ed88
...
...
@@ -99,7 +99,7 @@ normWeightMode="trace"
#This part of the code obtains max values of Trace, PC, or CV for weighting the
#normalized results.
trace
=
c
()
if
(
normWeightMode
==
"trace+pc"
){
if
(
(
normWeightMode
==
"trace+pc"
)
|
(
normWeightMode
==
"pc+trace"
)
){
print
(
paste
(
"Using "
,
normWeightMode
))
for
(
row
in
1
:
nrow
(
jet
))
{
if
(
sum
(
colnames
(
jet
)
==
"traceMax"
)
==
1
){
...
...
@@ -108,7 +108,7 @@ if(normWeightMode=="trace+pc"){
trace
<-
append
(
trace
,
max
(
jet
[
row
,
"trace"
],
jet
[
row
,
"pc"
]))
}
}
}
else
if
(
normWeightMode
==
"trace+cv"
){
}
else
if
(
(
normWeightMode
==
"trace+cv"
)
|
(
normWeightMode
==
"cv+trace"
)
){
print
(
paste
(
"Using "
,
normWeightMode
))
for
(
row
in
1
:
nrow
(
jet
))
{
if
(
sum
(
colnames
(
jet
)
==
"traceMax"
)
==
1
){
...
...
@@ -117,7 +117,7 @@ if(normWeightMode=="trace+pc"){
trace
<-
append
(
trace
,
max
(
jet
[
row
,
"trace"
],
jet
[
row
,
"cv"
]))
}
}
}
else
if
(
normWeightMode
==
"trace+pc+cv"
){
}
else
if
(
(
normWeightMode
==
"trace+pc+cv"
)
|
(
normWeightMode
==
"trace+cv+pc"
)
){
print
(
paste
(
"Using "
,
normWeightMode
))
for
(
row
in
1
:
nrow
(
jet
))
{
if
(
sum
(
colnames
(
jet
)
==
"traceMax"
)
==
1
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment