Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
market
Commits
51be5f09
Commit
51be5f09
authored
Jul 08, 2021
by
Juste Raimbault
Browse files
Saltelli: minor editt
parent
ce0c0a97
Changes
2
Hide whitespace changes
Inline
Side-by-side
sensitivity/saltelli/.gitignore
0 → 100644
View file @
51be5f09
sensitivity
sensitivity/saltelli/globalSI.oms
View file @
51be5f09
...
...
@@ -25,27 +25,6 @@ SensitivitySaltelli(
inputs = Seq(x1 in (0.0, 1.0), x2 in (0.0, 1.0)),
outputs = Seq(y1, y2)
) hook display
// use this hook to get indices in a timestamped directory
// hook (workDirectory / "sensitivity" /((new java.text.SimpleDateFormat("yyyyMMdd_HHmmss")).format(new java.util.Date())))
/*val mySeed = Val[Int]
val mean = ScalaTask("""
def sumTerms(a: Array[Array[Double]], b: Array[Array[Double]]): Array[Array[Double]] =
(a zip b).map{case (ai, bi) =>
(ai zip bi).map {case (aij, bij) =>
aij + bij
}
}
val reps = fosi.size
val fosiMean = fosi.reduce(sumTerms).map{_.map{_/reps}}
val tosiMean = tosi.reduce(sumTerms).map{_.map{_/reps}}
""") set (
inputs += (fosi.toArray, tosi.toArray),
outputs += (fosiMean, tosiMean)
)
val rep = Replication(
evaluation = sen,
replications = 1,
seed = mySeed,
aggregation = mean
)*/
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