Skip to main content
POST
/
quantlib
/
physics
/
entropy
/
tsallis
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/physics/entropy/tsallis \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "probabilities": [
    0.7,
    0.15,
    0.1,
    0.05
  ],
  "q": 1.5
}
'
{
  "success": true,
  "data": {
    "tsallis_entropy": 0.7845,
    "q": 1.5
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
probabilities
number[]
required

Discrete probability distribution (must sum to 1)

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

Tsallis parameter (q<1: super-extensive, q=1: Shannon entropy, q>1: sub-extensive)

Example:

1.5

Response

Tsallis entropy calculated successfully

success
boolean
Example:

true

data
object