Skip to content

Uncertain index dataset

Uncertain index datasets

Documentation

# UncertainData.UncertainDatasets.UncertainIndexDatasetType.

1
UncertainIndexDataset

Generic dataset containing uncertain indices.

Fields

  • indices::AbstractVector{AbstractUncertainValue}: The uncertain values.

source

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.

1
2
3
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.

1
plot(inds, [0.33, 0.67])