Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
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
Oleksandr Barabash
df-aggregator
Commits
674c8794
Commit
674c8794
authored
Oct 09, 2022
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip ellipse processing if covariance = 0
parent
92c80a6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
df-aggregator.py
df-aggregator.py
+5
-0
No files found.
df-aggregator.py
View file @
674c8794
...
...
@@ -367,6 +367,11 @@ def process_data(database_name, epsilon, min_samp):
a
=
cov
[
0
,
0
]
b
=
cov
[
0
,
1
]
c
=
cov
[
1
,
1
]
if
(
a
==
0.0
or
b
==
0.0
or
c
==
0.0
):
if
debugging
:
print
(
f
"A: {a} B: {b} C: {c}"
)
print
(
"Unable to resolve ellipse."
)
break
lam1
=
a
+
c
/
2
+
np
.
sqrt
((
a
-
c
/
2
)
**
2
+
b
**
2
)
# lam2 = a+c/2 - np.sqrt((a-c/2)**2 + b**2)
# print([lam1, lam2, a, c])
...
...
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