Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
rapid-mix
RAPID-MIX_API
Commits
d59022aa
Commit
d59022aa
authored
Oct 06, 2017
by
Michael Zbyszyński
Browse files
adjusting to templated class alias
parent
5cc56129
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/JUCE/regression_synth/Source/MainComponent.cpp
View file @
d59022aa
...
...
@@ -329,7 +329,7 @@ public:
if
(
KeyPress
::
isKeyCurrentlyDown
(
KeyPress
::
spaceKey
))
{
std
::
vector
<
double
>
input
=
normaliseMouseSpace
(
_event
.
position
.
roundToInt
(),
drawingArea
);
trainingExample
<
double
>
example
;
trainingExample
example
;
example
.
input
=
{
input
[
0
],
input
[
1
]
};
example
.
output
=
{
modulationFrequency
,
modulationDepth
,
centreFrequency
,
resonance
};
trainingSet
.
push_back
(
example
);
...
...
@@ -424,8 +424,8 @@ private:
/*** MACHINE LEARNING ***/
// Rapid regression
regression
<
double
>
rapidRegression
;
std
::
vector
<
trainingExample
<
double
>
>
trainingSet
;
regression
rapidRegression
;
std
::
vector
<
trainingExample
>
trainingSet
;
// Program state
bool
trained
;
...
...
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