Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wander TDEV and MTIE Analyzers #38

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

jnunyez
Copy link
Collaborator

@jnunyez jnunyez commented Sep 18, 2023

This PR add Time Deviation calculation for the four points of observations in the system.

@jnunyez jnunyez force-pushed the wander branch 4 times, most recently from 85e7f4a to 9074fbe Compare September 20, 2023 17:44
@jnunyez jnunyez changed the title [DRAFT]: Wander tdev calculation PoC [DRAFT]: Wander tdev and MTIE calculation PoC Sep 20, 2023
@jnunyez jnunyez force-pushed the wander branch 2 times, most recently from 6d779bc to c193655 Compare September 21, 2023 14:57
@jnunyez jnunyez mentioned this pull request Sep 22, 2023
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/gnss.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
if ((low is None or tau > low) and (tau <= high)):
return f(tau) * (self._limit / 100)

def out_of_range(self, taus, samples):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also may be better as a regular function.

src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
src/vse_sync_pp/analyzers/analyzer.py Outdated Show resolved Hide resolved
@jnunyez jnunyez changed the title [DRAFT]: Wander tdev and MTIE calculation PoC [DRAFT]: Wander TDEV and MTIE calculation Sep 27, 2023
@jnunyez jnunyez changed the title [DRAFT]: Wander TDEV and MTIE calculation [DRAFT]: Wander TDEV and MTIE Analyzers Sep 27, 2023
@jnunyez jnunyez force-pushed the wander branch 3 times, most recently from df901d6 to d811478 Compare September 27, 2023 18:40
@jnunyez jnunyez force-pushed the wander branch 2 times, most recently from 30feafd to 504f181 Compare September 28, 2023 14:01
@jnunyez jnunyez changed the title [DRAFT]: Wander TDEV and MTIE Analyzers Wander TDEV and MTIE Analyzers Sep 28, 2023
self._samples = None

def test(self, data):
result = super()._test_common(data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
result = super()._test_common(data)
result = self._test_common(data)

return result

def explain(self, data):
analysis = super()._explain_common(data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
analysis = super()._explain_common(data)
analysis = self._explain_common(data)

self._samples = None

def test(self, data):
result = super()._test_common(data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
result = super()._test_common(data)
result = self._test_common(data)

return result

def explain(self, data):
analysis = super()._explain_common(data)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
analysis = super()._explain_common(data)
analysis = self._explain_common(data)


(a, f1), (c, f2) = REQUIREMENTS['G.8272/PRTC-A']['maximum-time-interval-error-in-locked-mode/us'].items()

self.assertEqual(f1(100), 0.052500000000000005)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.525... is very specific, worth a comment? (For one, I'd like to understand why!)

@jnunyez jnunyez merged commit 680ea98 into redhat-partner-solutions:main Sep 29, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants