// It's a set of points? => Defines a piece-wise linear membership function
if( leaveName.equalsIgnoreCase("POINT") ) {
x[childNum - 1] = new Value(child.getChild(0), this); // Parse and add each point
y[childNum - 1] = new Value(child.getChild(1), this);
if( debug ) Gpr.debug("\t\tParsed point " + childNum + " x=" + x[childNum - 1] + ", y=" + y[childNum - 1]);
if( (y[childNum - 1].getValue() < 0) || (y[childNum - 1].getValue() > 1) ) throw new RuntimeException("\n\tError parsing line " + child.getLine() + " character " + child.getCharPositionInLine() + ": Membership function out of range (should be between 0 and 1). Value: '" + y[childNum - 1] + "'\n\tTree: " + child.toStringTree());
} else throw new RuntimeException("Unknown (or unimplemented) option : " + leaveName);
}
return new MembershipFunctionPieceWiseLinear(x, y);
}