Inserts an attribute at the given position (0 to numAttributes()). Only succeeds if the instance does not have access to any dataset because otherwise inconsistencies could be introduced.
@param position the attribute's position
@throws RuntimeException if the instance has accesss to adataset
@throws IllegalArgumentException if the position is out of range
Inserts an attribute at the given position (0 to numAttributes()) and sets all values to be missing. Shallow copies the attribute before it is inserted, and performs a deep copy of the existing attribute information.
@param att the attribute to be inserted
@param position the attribute's position (position starts with 0)
@throws IllegalArgumentException if the given index is out of range
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.