Skip to main content
POST
/
quantlib
/
physics
/
entropy
/
joint
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/physics/entropy/joint \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "joint_prob": [
    [
      0.3,
      0.1,
      0.05
    ],
    [
      0.1,
      0.25,
      0.1
    ],
    [
      0.05,
      0.03,
      0.02
    ]
  ],
  "base": 2.718281828459045
}
'
{
  "success": true,
  "data": {
    "joint_entropy": 1.8965
  }
}

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
joint_prob
number[][]
required

Joint probability matrix (must sum to 1 across all elements)

Example:
[
[0.2, 0.1, 0.05],
[0.15, 0.25, 0.1],
[0.05, 0.05, 0.05]
]
base
number
default:2.718281828459045

Logarithm base for entropy calculation

Example:

2.718281828459045

Response

Joint entropy calculated successfully

success
boolean
Example:

true

data
object