.check_shape {banditsCI}R Documentation

Check Shape Compatibility of Probability Objects

Description

This function checks the dimensional compatibility of 'gammahats' and 'contextual_probs'. It validates the dimensions and types based on whether the probability objects are contextual or non-contextual.

Usage

.check_shape(gammahats, contextual_probs)

Arguments

gammahats

A matrix representing estimates.

contextual_probs

An object representing probabilities, either a matrix (non-contextual) or an array (contextual).

Value

Returns NULL if the shapes and types are valid; otherwise, throws an error.


[Package banditsCI version 1.0.0 Index]