tensorflow :: ops :: RandomPoissonV2
#include <random_ops.h>
비율로 설명되는 푸 아송 분포에서 임의 값을 출력합니다.
요약
이 작업은 속도에 따라 두 가지 알고리즘을 사용합니다. 속도가 10보다 크면 Hormann의 알고리즘을 사용하여 변환 거부를 통해 샘플을 수집합니다. http://www.sciencedirect.com/science/article/pii/0167668793909974를 참조 하세요 .
그렇지 않으면 Knuth의 알고리즘을 사용하여 균일 랜덤 변수를 곱하여 샘플을 획득합니다. Donald E. Knuth (1969) 참조. 반 숫자 알고리즘. 컴퓨터 프로그래밍의 기술, 2 권. Addison Wesley
인수 :
- 범위 : 범위 개체
- 모양 : 1 차원 정수 텐서. 비율로 주어진 모양 매개 변수로 설명되는 각 분포에서 추출 할 독립 샘플의 모양.
- 비율 : 각 스칼라가 연관된 포아송 분포를 설명하는 "비율"매개 변수 인 텐서.
선택적 속성 ( Attrs
참조) :
- seed :
seed
또는seed2
가 0이 아닌 값으로 설정된 경우, 난수 생성기는 주어진 seed에 의해 seed됩니다. 그렇지 않으면 임의의 시드로 시드됩니다. - seed2 : 시드 충돌을 피하기위한 두 번째 시드.
보고:
-
Output
: 모양shape + shape(rate)
텐서. 각 슬라이스[:, ..., :, i0, i1, ...iN]
에는rate[i0, i1, ...iN]
대해 그려진 샘플이 포함됩니다.
생성자와 소멸자 | |
---|---|
RandomPoissonV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input rate) | |
RandomPoissonV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input rate, const RandomPoissonV2::Attrs & attrs) |
공용 속성 | |
---|---|
operation | |
output |
공공 기능 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
공개 정적 함수 | |
---|---|
Dtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) |
구조체 | |
---|---|
tensorflow :: ops :: RandomPoissonV2 :: 속성 | RandomPoissonV2에 대한 선택적 속성 설정자. |
공용 속성
조작
Operation operation
산출
::tensorflow::Output output
공공 기능
RandomPoissonV2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate )
RandomPoissonV2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate, const RandomPoissonV2::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const
공개 정적 함수
D 타입
Attrs Dtype( DataType x )
씨
Attrs Seed( int64 x )
Seed2
Attrs Seed2( int64 x )