# Discrete Bayes Filter

The discrete Bayes filter is a special case of the general Bayes filter. Because the states are discrete, the integral in the general Bayes filter becomes a summation. The implementation is straightforward and is given as follows:

<figure><img src="/files/25L1DBS65P89KLDcbAXw" alt=""><figcaption><p>(source: Probabilistic Robotics)</p></figcaption></figure>

The key is to define the states. If the physical states are continuous, discretization is required. The number of the states is obviously an important parameter. The larger the state number,  the more accurate the estimation is. On the other hand, with large state number, it's expensive to compute.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.learnros2.com/probabilistic-robotics/discrete-bayes-filter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
