Skip to main content
POST
/
quantlib
/
physics
/
entropy
/
renyi
curl --request POST \ --url https://api.fincept.in/quantlib/physics/entropy/renyi \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "probabilities": [ 0.5, 0.3, 0.15, 0.05 ], "alpha": 2, "base": 2.718281828459045 } '
{
  "success": true,
  "data": {
    "renyi_entropy": 0.9562,
    "alpha": 2
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://api.fincept.in/auth/register

Body

application/json
probabilities
number[]
required

Discrete probability distribution (must sum to 1)

Example:
[0.5, 0.3, 0.15, 0.05]
alpha
number
required

Renyi parameter (α=0: max-entropy, α=1: Shannon, α=2: collision entropy, α→∞: min-entropy)

Example:

2

base
number
default:2.718281828459045

Logarithm base for entropy calculation

Example:

2.718281828459045

Response

Renyi entropy calculated successfully

success
boolean
Example:

true

data
object