mindspore.ops.igammac

查看源文件
mindspore.ops.igammac(input, other)[源代码]

计算正则化的上层不完全伽马函数。

input 记作 aother 记作 x ,则正则化的上层不完全伽马函数可以表示为:

Q(a,x)=Gamma(a,x)/Gamma(a)=1P(a,x)

其中,

Gamma(a,x)=xta1exp(t)dt

表示上层不完全伽马函数。

P(a,x) 表示正则化的下层不完全伽马函数。

警告

这是一个实验性API,后续可能修改或删除。

参数:
  • input (Tensor) - 第一个输入tensor。

  • other (Tensor) - 第二个输入tensor。

返回:

Tensor,数据类型与 inputother 相同。

支持平台:

Ascend GPU CPU

样例:

>>> import mindspore
>>> input = mindspore.tensor([2.0, 4.0, 6.0, 8.0])
>>> other = mindspore.tensor([2.0, 3.0, 4.0, 5.0])
>>> output = mindspore.ops.igammac(input, other)
>>> print(output)
[0.40600574 0.6472322  0.78513044 0.8666282 ]