-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
function square_wave_problem() | ||
|
||
g = kron([1, -1, 1, -1, 1], ones(5)) | ||
|
||
M_bf = 5 | ||
|
||
ζvec = [100, 30, 10, 3, 1, 0.3, 0.1, 0.03, 0.01] | ||
|
||
# For each m there are many non-unique solution | ||
I_sols = | ||
[Vector{Int}() for m=1:24] | ||
|
||
f_sols = | ||
[[24.0, | ||
18.10194908759502, | ||
15.757575757575758, | ||
6.602807597027249, | ||
4.84848484848485, | ||
4.285714285714288, | ||
2.4242424242424248, | ||
2.1356521739130434]; | ||
zeros(Float64, 16)] | ||
|
||
return g, M_bf, ζvec, I_sols, f_sols | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function straight_line_problem() | ||
|
||
g = 0:0.02:1 | ||
|
||
M_bf = 2 | ||
|
||
ζvec = [100, 30, 10, 3, 1, 0.3, 0.1, 0.03, 0.01] | ||
|
||
# For each m there are many non-unique solution | ||
I_sols = | ||
[[[1, length(g)]]; | ||
[Vector{Int}() for m=1:9]] | ||
|
||
f_sols = zeros(Float64, 10) | ||
|
||
return g, M_bf, ζvec, I_sols, f_sols | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters