def ChiSquared(k: vertex_constructor_param_types, label: Optional[str]=None) -> Vertex:
    """
    One to one constructor for mapping some shape of k to
    a matching shaped ChiSquared.
    
    :param k: the number of degrees of freedom
    """
    return Double(context.jvm_view().ChiSquaredVertex, label, cast_to_integer_vertex(k))