Skip to content

Commit

Permalink
UPDATE GRAPH
Browse files Browse the repository at this point in the history
  • Loading branch information
Germanki committed Sep 28, 2023
1 parent 305ce21 commit dcdc3ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/js/complex_function_SepDoE.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function match(value, option1, result1, option2, result2) {
DNA * SodiumChloride * -392.663015606317 + DNA * RecBCD * 9711.3302767037 +
match(pH, "6", SodiumChloride * -1644.97155854136, "8", SodiumChloride * 0) +
match(pH, "6", RecBCD * -189884.065204169, "8", RecBCD * 0) +
2806.62184544295 * SodiumChloride + RecBCD
2806.62184544295 * SodiumChloride + RecBCD)

let param2 = (64451.911892955 + -11478.129987588 * BSA + BSA * BSA * 2612.68983981746 +
BSA * DNA * 1103.15069131127 + BSA * match(pH, "6", -8125.84329071797, "8", 0) +
Expand Down Expand Up @@ -66,7 +66,7 @@ function match(value, option1, result1, option2, result2) {

return mean_curve_interp(time) + shape1_interp(time) * param1 + shape2_interp(time) * param2 + shape3_interp(time) * param3 + shape4_interp(time) * param4
}

// Initialize Plotly graph
function initPlot() {
// Test data and layout
Expand Down
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Paradigm Shift</h1>
<!-- Section -->
<section id="first">
<header>
<h2>Magna sed nullam nisl adipiscing</h2>
<h2>Five Factor DoE</h2>
</header>
<div class="content">
<p><strong>A 5 factor DoE</strong> Ask me any questions on how to use!</p>
Expand All @@ -49,12 +49,12 @@ <h2>Magna sed nullam nisl adipiscing</h2>
}
</script>
<!-- BSA Slider -->
<input type="range" id="BSA_slider" min="0" max="100" step="1" value="50" oninput="updateGraph()">
<input type="range" id="BSA_slider" min="0" max="5" step="1" value="5" oninput="updateGraph()">
<label for="BSA_slider">BSA: </label>
<output id="BSA_value">50</output>
<output id="BSA_value">0</output>

<!-- DNA Slider -->
<input type="range" id="DNA_slider" min="0" max="100" step="1" value="50" oninput="updateGraph()">
<input type="range" id="DNA_slider" min="3" max="5" step="1" value="5" oninput="updateGraph()">
<label for="DNA_slider">DNA: </label>
<output id="DNA_value">5</output>

Expand Down

0 comments on commit dcdc3ec

Please sign in to comment.