private Dataset createMutableDataset(DatasetRequest.Basic request) {
OODoubleArray domain = new OODoubleArray(request.getDomain());
OODoubleArray range = new OODoubleArray(request.getRangeTupleSlice(0));
request.setDomain(domain.removeLast().getArray());
request.setRangeTupleSlice(0, range.removeLast().getArray());
MutableDataset ds = dsFactory.createMutable(request);
ds.mutate(Mutation.append(domain.getLast(), range.getLast()));
return ds;