Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corr_matrixpi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
corr_matrixpi
Commits
266f9f6d
Commit
266f9f6d
authored
Jul 4, 2024
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
fix(sim): simulation dataset
parent
b9c9fb19
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
sim/bpmdata.txt
+200
-200
200 additions, 200 deletions
sim/bpmdata.txt
sim/corrout.txt
+200
-200
200 additions, 200 deletions
sim/corrout.txt
sim/generate_datasim.py
+6
-6
6 additions, 6 deletions
sim/generate_datasim.py
with
406 additions
and
406 deletions
sim/bpmdata.txt
+
200
−
200
View file @
266f9f6d
This diff is collapsed.
Click to expand it.
sim/corrout.txt
+
200
−
200
View file @
266f9f6d
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
sim/generate_datasim.py
+
6
−
6
View file @
266f9f6d
...
...
@@ -70,10 +70,10 @@ C_N_A_RND = 8
SUMSAT
=
36
K_A
=
2
18
K_B
=
-
186
K_iC
=
325
K_D
=
-
3225
K_A
=
2
56
K_B
=
0
K_iC
=
64
K_D
=
-
16300
## -----------------------
...
...
@@ -92,10 +92,10 @@ for i in range(size):
# Step 3: correction computation
corr
=
np
.
zeros
((
N_PSC
,
size
),
dtype
=
"
int64
"
)
_corr
=
(
np
.
round
(
mm
[:,
0
].
astype
(
'
i8
'
)
*
K_A
*
2
**-
C_N_RND
)
*
K_iC
).
astype
(
"
int64
"
)
_corr
=
(
np
.
round
(
mm
[:,
0
].
astype
(
'
i8
'
)
*
K_A
*
2
**-
C_N_
A_
RND
)
*
K_iC
).
astype
(
"
int64
"
)
corr
[:,
0
]
=
np
.
clip
(
np
.
round
(
_corr
/
2
**
C_N_RND
),
-
2
**
15
,
2
**
15
-
1
).
astype
(
'
i8
'
)
for
i
in
range
(
1
,
size
):
_sum
=
(
np
.
round
(
mm
[:,
i
].
astype
(
'
i8
'
)
*
K_A
*
2
**-
C_N_RND
)).
astype
(
'
i8
'
)
+
mm
[:,
i
-
1
].
astype
(
'
i8
'
)
*
K_B
+
corr
[:,
i
-
1
]
*
K_D
_sum
=
(
np
.
round
(
mm
[:,
i
].
astype
(
'
i8
'
)
*
K_A
*
2
**-
C_N_
A_
RND
)).
astype
(
'
i8
'
)
+
mm
[:,
i
-
1
].
astype
(
'
i8
'
)
*
K_B
+
corr
[:,
i
-
1
]
*
K_D
_corr
=
np
.
clip
(
_sum
,
-
2
**
(
SUMSAT
-
1
),
2
**
(
SUMSAT
-
1
)
-
1
)
*
K_iC
corr
[:,
i
]
=
np
.
clip
(
np
.
round
(
_corr
/
2
**
C_N_RND
),
-
2
**
15
,
2
**
15
-
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment