/// <summary> /// Convert the parameter into a RawProto. /// </summary> /// <param name="strName">Specifies the name to associate with the RawProto.</param> /// <returns>The new RawProto is returned.</returns> public override RawProto ToProto(string strName) { RawProtoCollection rgChildren = new RawProtoCollection(); rgChildren.Add("norm", m_norm.ToString()); return(new RawProto(strName, "", rgChildren)); }
public override string AsString() => "Dist L" + (Norm != 0 ? Norm.ToString() : "-inf");