> ## Documentation Index
> Fetch the complete documentation index at: https://pulse-hook.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Hook Math Intro

This section is a detailed walk-through of the hook's internal math, calculation flow, and key design decisions. It's the heart of the hook. This is where all the magic happens.

The contract is built so that all calculations live in separate modules. We hope this breakdown of the math, the alternatives considered, the modular library structure, and the MIT license make it easy to either contribute to the project or freely adapt it to any needs.

The Median, Snapshot, and Curve pages cover the solutions we chose.

The Alternatives pages cover the other approaches we considered but rejected, and why.

## Pages in this section

<CardGroup cols={2}>
  <Card title="Frugal2U Median" href="/math/frugal2u-median">
    Specifies the Frugal2U median approach used in the Hook.
  </Card>

  <Card title="Median: Comparison with Other Options" href="/math/median-comparison">
    Compares the selected median approach against alternative methods.
  </Card>

  <Card title="Penalty Curve" href="/math/penalty-curve">
    Defines the penalty-curve model and its role in Hook calculations.
  </Card>

  <Card title="Penalty Curve: Comparison" href="/math/penalty-curve-comparison">
    Compares the selected penalty curve against alternative curve designs.
  </Card>
</CardGroup>
