class ChiSquaredVertex extends VertexImpl<DoubleTensor, DoubleVertex> implements DoubleVertex, Differentiable, ProbabilisticDouble, SamplableWithManyScalars<DoubleTensor>, LogProbGraphSupplier {

    @Override
    public LogProbGraph logProbGraph() {
        final DoublePlaceholderVertex xPlaceHolder = new DoublePlaceholderVertex(this.getShape());
        final IntegerPlaceholderVertex kPlaceHolder = new IntegerPlaceholderVertex(k.getShape());

        return LogProbGraph.builder()
            .input(this, xPlaceHolder)
            .input(k, kPlaceHolder)
            .logProbOutput(ChiSquared.logProbOutput(xPlaceHolder, kPlaceHolder))
            .build();
    }

    public  ChiSquaredVertex(@LoadShape long[] tensorShape,
                            @LoadVertexParam(K_NAME) Vertex<IntegerTensor, ?> k);
    public  ChiSquaredVertex(long[] tensorShape, int k);
    @ExportVertexToPythonBindings public  ChiSquaredVertex(IntegerVertex k);
    public  ChiSquaredVertex(int k);

}