tf.keras.ops.gammainc
Stay organized with collections
Save and categorize content based on your preferences.
Computes the regularized lower incomplete gamma function.
tf.keras.ops.gammainc(
x1, x2
)
The regularized lower incomplete gamma function is defined as:
P(x1, x2) = 1 / Γ(x1) * ∫₀ˣ² t^(x1 - 1) e^(-t) dt
where Γ(x1) is the gamma function.
Args |
x1
|
A tensor containing the shape parameter.
|
x2
|
A tensor containing the upper limit of integration. Must be
broadcast-compatible with x1.
|
Returns |
|
A tensor containing the regularized lower incomplete gamma function
evaluated elementwise.
|
Example:
x1 = keras.ops.convert_to_tensor([1.0, 2.0, 3.0])
x2 = keras.ops.convert_to_tensor([0.5, 1.0, 2.0])
keras.ops.gammainc(x1, x2)
array([0.39346936, 0.26424113, 0.3233236 ], dtype=float32)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2026-10-31 UTC.
[null,null,["Last updated 2026-10-31 UTC."],[],[]]