Returns an accumulator by id.
@param ids of the accumulator to return.
@return
195844
@GET
	@Path("normalized")
	public ReplyObject getAccumulatorsNormalized(@QueryParam("id") List<String> ids){
		try{
			ReplyObject ro = ReplyObject.success();
			ro.addResult("chart", getAccumulatorAPI().getNormalizedAccumulatorGraphData(ids));
			return ro;
		}catch(APIException e){
			return ReplyObject.error(e);
		}
	}
762307
@Override
  public ArrayModifiableDBIDs order(DBIDs ids) {
    ArrayModifiableDBIDs res = DBIDUtil.newArray(ids.size());
    for(DBIDIter it = this.ids.iter(); it.valid(); it.advance()) {
      if(ids.contains(it)) {
        res.add(it);
      }
    }
    return res;
  }
564260
public Cat get(Integer id) {
        if (DB.isEmpty()) {
            addExampleCats();
        }

        return DB.get(id);
    }
826386
private static byte[] getIids2(final List<BeanId> ids, final UniqueIds uids) {
        if (ids == null) {
            return new byte[0];
        }
        final AbstractList<String> list = new AbstractList<String>() {

            @Override
            public String get(int index) {
                return ids.get(index).getInstanceId();
            }

            @Override
            public int size() {
                return ids.size();
            }
        };
        return getIids(list, uids);
    }
377046
public Integer getNextIDSeq(final String id) {
        Validate.notNull(id, "ID cannot be null");
        Integer count = this.idCounts.get(id);
        if (count == null) {
            count = Integer.valueOf(1);
        }
        return count;
    }
1176774
public QueryBuilder removeParentIds(final Collection<Integer> ids) {
        if (ids != null) {
            parentIds.removeAll(ids);
        }
        return this;
    }
1111292
public double[] foldColumns(VectorAccumulator accumulator) {
        double[] result = new double[columns];

        for (int i = 0; i < columns; i++) {
            result[i] = foldColumn(i, accumulator);
        }

        return result;
    }
892591
public InlineResponse2001 peekMultiple(String ids) throws ApiException {
        ApiResponse<InlineResponse2001> resp = peekMultipleWithHttpInfo(ids);
        return resp.getData();
    }
802317
public AccumulatorDefinition toAccumulatorDefinition(String producerId){
		AccumulatorDefinition ret = new AccumulatorDefinition();
		ret.setProducerName(producerId);
		ret.setName(replaceName(producerId));
		ret.setStatName(getStatName());
		ret.setValueName(getValueName());
		ret.setIntervalName(getIntervalName());
		ret.setTimeUnit(getTimeUnit());
		return ret;

	}
74322
public static Accumulator getAccumulatorOrNull(QueryCacheContext context,
                                                   String mapName, String cacheId, int partitionId) {
        PartitionAccumulatorRegistry accumulatorRegistry = getAccumulatorRegistryOrNull(context, mapName, cacheId);
        if (accumulatorRegistry == null) {
            return null;
        }
        return accumulatorRegistry.getOrNull(partitionId);
    }
93893
public static DBIDVar randomSample(DBIDs ids, Random random) {
    return DBIDUtil.ensureArray(ids).assignVar(random.nextInt(ids.size()), DBIDUtil.newVar());
  }
630462
public void collectIds(List<String> ids) {
    ids.add(attribute("id"));
    for (Element child : elements) {
      child.collectIds(ids);
    }
  }
342591
@Override
    public IdsBuilder append(final int... ids) {
        return doAppend(Arrays.asList(InternalUtils.wrap(ids)));
    }
486076
public static Map<Integer, Accumulator> getAccumulators(QueryCacheContext context, String mapName, String cacheId) {
        PartitionAccumulatorRegistry partitionAccumulatorRegistry = getAccumulatorRegistryOrNull(context, mapName, cacheId);
        if (partitionAccumulatorRegistry == null) {
            return Collections.emptyMap();
        }
        return partitionAccumulatorRegistry.getAll();
    }
798991
public static WritableIntegerDataStore makeIntegerStorage(DBIDs ids, int hints) {
    return DataStoreFactory.FACTORY.makeIntegerStorage(ids, hints);
  }
1061893
public static Integer[] transformToInt(final String[] ids) {
    if (ids == null) return new Integer[0];
    Integer[] idsOfInteger = new Integer[ids.length];
    for (int i = 0; i < ids.length; i++) {
      idsOfInteger[i] = new Integer(ids[i]);
    }
    return idsOfInteger;
  }
958452
public double[] foldRows(VectorAccumulator accumulator) {
        double[] result = new double[rows];

        for (int i = 0; i < rows; i++) {
            result[i] = foldRow(i, accumulator);
        }

        return result;
    }