class MultinomialVertex extends VertexImpl<IntegerTensor, IntegerVertex> implements IntegerVertex, ProbabilisticInteger, SamplableWithManyScalars<IntegerTensor> {

    @Override
    public double logProb(IntegerTensor x) {
        return Multinomial.withParameters(n.getValue(), p.getValue(), validationEnabled).logProb(x).sumNumber();
    }

    public  MultinomialVertex(@LoadShape long[] tensorShape,
                             @LoadVertexParam(N_NAME) Vertex<IntegerTensor, ?> n,
                             @LoadVertexParam(P_NAME) Vertex<DoubleTensor, ?> p);
    @ExportVertexToPythonBindings public  MultinomialVertex(Vertex<IntegerTensor, ?> n, Vertex<DoubleTensor, ?> p);
    public  MultinomialVertex(int n, Vertex<DoubleTensor, ?> p);
    public  MultinomialVertex(int n, DoubleTensor p);
    public  MultinomialVertex(IntegerTensor n, Vertex<DoubleTensor, ?> p);
    public  MultinomialVertex(IntegerTensor n, DoubleTensor p);

}