/** * Instantiates a new sparse instance. * * @param weight the weight * @param attributeValues the attribute values * @param indexValues the index values * @param numberAttributes the number attributes */ public FilteredSparseInstance(double weight, double[] attributeValues, int[] indexValues, int numberAttributes) { super(numberAttributes); this.weight = weight; this.instanceData = new FilteredSparseInstanceData(attributeValues, indexValues, numberAttributes); }