dot-check_shape: Check Shape Compatibility of Probability Objects

.check_shapeR 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.


banditsCI documentation built on April 12, 2025, 1:42 a.m.