Skip to content

Conversation

@pavelkomarov
Copy link
Collaborator

…d an oddity that has spawned #92

@pavelkomarov
Copy link
Collaborator Author

In the process of trying to rewrite unit tests to address #90, I found it difficult to call lineardiff successfully, because the test uses the CVXOPT solver, but the default is MOSEK (see #91), and my new test code, if it uses the old params relies on default options. So I decided to rationalize a bit before I continue with that.

# polyfit
r = np.polyfit(t, x, order, w=w)[::-1]
r = np.polyfit(t, x, polynomial_order, w=weights) # polyfit returns highest order first
dr = np.polyder(r) # power rule already implemented for us
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Numpy truly is a deep well of useful functions.

@pavelkomarov pavelkomarov mentioned this pull request Jun 6, 2025
:param epsilon:
:param rows_of_interest:
:return:
"""Given state and the derivative, find the system evolution and measurement matrices.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I hope this description isn't wildly wrong.

@pavelkomarov pavelkomarov merged commit 4f0f771 into master Jun 23, 2025
1 check passed
@pavelkomarov pavelkomarov deleted the params-as-dictionary branch June 23, 2025 20:48
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.

2 participants