Starting A New Filter
The KBF program always has a current filter that is being modified.
Thus, when creating a new filter,
you must load an existing filter and save it under a different
name that corresponds to the new filter.
If you have a similar filter to the one you are creating,
you should load that one,
otherwise the filter defined in
EXAMPLE.KBF
is a good place to start.
Save the new study after each of the steps listed below
so that your work is backed up.
The steps below are named by the window or command
that they correspond to.
It does not matter what order the steps are executed in.
Once the steps are completed, the
Fit command
can be used to fit the filter to the data.
Notes Window
Modify the Notes window
to contain a description of the new filter.
The contents of this window are just comments and are intended
to help you remember how the filter works.
It is useful to include a definition
for each of the components of the state and data vectors in this window.
Data Window
Create a new data file in which the line number corresponds
to time index and column number corresponds to the component
of the State Vector x
.
If you are going to simulate a data set,
this file need only have one line.
Change the file name following
DATA VALUES
in the Data window
to the new data file.
Also modify the
bad data value,
initial state estimate,
covariance of the initial estimate,
and the modulo values in the Data window.
Simulation Window
If you are going to simulate a data set,
modify the Simulation window
so that it returns state vector values corresponding to the new simulation.
Then use the Compile command
to link this simulation into KBF.
Use the Simulation command
to simulate the data set after the other steps below are completed and before
you use the Fit command
.
Measurement Window
Modify the Measurement window
to contain the proper measurement model for the new filter.
Then use the Compile command
to link the new model into KBF.
Transition Window
Modify the Transition window
to contain the proper Transition model for the new filter.
Then use the Compile command
to link the new model into KBF.
Plotting
Use the Plot command
to delete, create or modify
the plots and tables so that they are displayed for the new filter.