{ } Raw JSON

bundles / scipy 1.17.1 / scipy / _lib / _util / _validate_int

function

scipy._lib._util:_validate_int

source: /scipy/_lib/_util.py :478

Signature

def   _validate_int ( k name minimum = None )

Summary

Validate a scalar integer.

Extended Summary

This function can be used to validate an argument to a function that expects the value to be an integer. It uses operator.index to validate the value (so, for example, k=2.0 results in a TypeError).

Parameters

k : int

The value to be validated.

name : str

The name of the parameter.

minimum : int, optional

An optional lower bound.

Aliases

  • scipy.stats._binomtest._validate_int