> For the complete documentation index, see [llms.txt](https://myty.gitbook.io/products/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://myty.gitbook.io/products/kit/make-animation/9.-apply-motion-tracking/advanced-documentation/stabilizing-method.md).

# Stabilizing method

## The new stabilizing method

### The problems with the older method (in MYTY Kit v0.1)

1. It takes the average of the input history, and it caused delayed and slow motion.
2. In stabilizing process, the method relies on the fixed time interval to stabilize, but it is not a good choice for low-end PC.

### New method

#### Damping

Now, we introduced the damping factor to remedy the first problem. The damping algorithm is following:

$$
output = {\sum\_{i=1}^{n} {{x\_i} \over {d^i} } \over {\sum\_{i=1}^{n} {{1}\over {d^i}}}}
$$

d is equal to or greater than 1, and n is the damping window size. The latest input has index 1. If d=1, then the algorithm is just average. If d becomes larger, it means that the latest input becomes more dominant than the older input.

#### Stabilizing

We converted the motion pipeline into an event-driven model. It enables to detection of the moment of arrival of new data, and it makes the stabilization process much more rigorous. In the older method, we should poll every new data so we should rely on the fixed time interval, and it caused some problems. The problems are completely removed by using an event-driven model.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://myty.gitbook.io/products/kit/make-animation/9.-apply-motion-tracking/advanced-documentation/stabilizing-method.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
