Skip to content

Conversation

@pasabanov
Copy link
Member

@pasabanov pasabanov commented Feb 2, 2025

Types of changes

  • Feature

Related: #1 #3

Description

Added quadratic and cubic distributions data.

The "quadratic" distribution is given by:

$$ \mathrm{quadratic}(x) = \begin{cases} (x+1)^2 - 1, & x \leq 0 \\ -(x-1)^2 + 1, & x > 0 \end{cases} $$

The "cubic" distribution is given by:

$$ \mathrm{cubic}(x) = -0.5x^3 + 1.5x $$

The distribution of points is generated by applying these functions to the uniformly distributed points on the $[-1, 1]$ segment.

You can interact with these distributions on this Desmos graph: https://www.desmos.com/calculator/qdse58hzhp.

@pasabanov pasabanov added the feature New feature or request label Feb 2, 2025
@pasabanov pasabanov self-assigned this Feb 2, 2025
@pasabanov pasabanov merged commit 183aff9 into main Feb 2, 2025
4 checks passed
@pasabanov pasabanov deleted the dist branch February 2, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants