Skip to content

Commit fbe8032

Browse files
committed
fit the data using the compute operator method
1 parent 0975115 commit fbe8032

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pydmd/bopdmd.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,14 @@ def fit_econ(self, s, V, t):
15531553
**self._varpro_opts_dict,
15541554
)
15551555

1556+
# Define the snapshots that will be used for fitting.
1557+
snp = np.diag(s).dot(V)
1558+
1559+
# Fit the data.
1560+
self._b = self.operator.compute_operator(snp.T, self._time)
1561+
1562+
return self
1563+
15561564
def forecast(self, t):
15571565
"""
15581566
Predict the output X given the input time t using the fitted DMD model.

0 commit comments

Comments
 (0)