Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Eilert Tunheim
Bacheloroppgave_2022
Commits
a0f7be35
Commit
a0f7be35
authored
Jun 01, 2022
by
Eilert Tunheim
Browse files
Minor tweaks for demo-run
parent
e80983d6
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/application/DB/Settings.java
View file @
a0f7be35
...
...
@@ -28,7 +28,7 @@ public final class Settings {
public
static
int
NUMBER_OF_SECONDS_LIVE_DATA
=
60
;
// Confidence interval
public
static
final
double
CONFIDENCE_INTERVAL
=
0.
95
;
public
static
final
double
CONFIDENCE_INTERVAL
=
0.
80
;
// Current sawmill settings;
public
static
final
String
PROJECT_ID
=
"sf-drying-optimization"
;
...
...
src/main/java/com/application/GUI/LineChartFunctionality.java
View file @
a0f7be35
...
...
@@ -439,7 +439,7 @@ public class LineChartFunctionality {
*/
public
static
double
getNonLinearRegression
(
Map
<
Integer
,
ArrayList
<
Double
>>
confidenceIntervalData
,
double
y0
,
double
alpha
,
double
j
,
double
n
)
{
double
beta
=
getDataPointsYAxis
()+
y0
;
return
(((
beta
*
y0
))/(
y0
+((
beta
-
y0
)*
Math
.
exp
(-
alpha
*
j
/
n
/((
alpha
/
10
))))))
-
y0
;
return
(((
beta
*
y0
))/(
y0
+((
beta
-
y0
)*
Math
.
exp
(-
alpha
*
j
/
n
/((
alpha
/
10
))))));
}
// Getters and setters
...
...
src/main/java/com/application/GUI/Panes/CreateSideBar.java
View file @
a0f7be35
...
...
@@ -121,7 +121,7 @@ public class CreateSideBar {
try
{
ringProgressIndicator
.
makeIndeterminate
();
Thread
.
sleep
(
500L
*
NUMBER_OF_SECONDS_LIVE_DATA
);
Thread
.
sleep
(
500L
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
...
...
target/classes/com/application/DB/Settings.class
View file @
a0f7be35
No preview for this file type
target/classes/com/application/GUI/LineChartFunctionality.class
View file @
a0f7be35
No preview for this file type
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment