Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dynamicsystems
Project
Project
Details
Activity
Releases
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
Paul-Lucas Gruener
dynamicsystems
Commits
7c6af884
Commit
7c6af884
authored
Jan 11, 2018
by
Christoph Saffer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compute x and y seperately in pixel function
parent
68fa4733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.cpp
main.cpp
+3
-1
No files found.
main.cpp
View file @
7c6af884
...
...
@@ -22,6 +22,8 @@ int pixel(double alpha, double beta, std::vector<double> seed_x, std::vector<dou
for
(
int
i
=
0
;
i
<
num_iterations
&&
d
<
1
;
i
++
)
{
for
(
int
s
=
0
;
s
<
num_seeds
;
s
++
)
{
y
[
s
]
=
y
[
s
]
+
beta
*
std
::
sin
(
TWO_PI
*
x
[
s
]);
}
for
(
int
s
=
0
;
s
<
num_seeds
;
s
++
){
x
[
s
]
=
x
[
s
]
+
alpha
*
std
::
sin
(
TWO_PI
*
y
[
s
]);
}
...
...
@@ -41,7 +43,7 @@ int main(int argc, char* argv[]) {
// Default parameters
int
num_iterations
=
100
;
int
num_intervals
=
1
000
;
int
num_intervals
=
2
000
;
int
num_params
=
num_intervals
+
1
;
double
alphabetamin
=
0
;
...
...
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