Uncertain index datasets

Documentation

Description

UncertainIndexDatasets is an uncertain dataset type that represents the indices corresponding to an UncertainValueDataset.

It is meant to be used for the indices field in UncertainIndexValueDatasets instances.

Defining uncertain index datasets

Example 1: increasing index uncertainty through time

Defining the indices

Say we had a dataset of 20 values for which the uncertainties are normally distributed with increasing standard deviation through time.

time_inds = 1:13
uvals = [UncertainValue(Normal, ind, rand(Uniform()) + (ind / 6)) for ind in time_inds]
inds = UncertainIndexDataset(uvals)

That's it. We can also plot the 33rd to 67th percentile range for the indices.

plot(inds, [0.33, 0.67])