time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (593B)


      1 
      2 {{alias}}( value )
      3     Tests if a value is an array of probabilities that sum to one.
      4 
      5     Parameters
      6     ----------
      7     value: any
      8         Value to test.
      9 
     10     Returns
     11     -------
     12     bool: boolean
     13         Boolean indicating whether value is an array of probabilities that sum
     14         to one.
     15 
     16     Examples
     17     --------
     18     > var bool = {{alias}}( [ 0.25, 0.5, 0.25 ] )
     19     true
     20     > bool = {{alias}}( new {{alias:@stdlib/array/uint8}}( [ 0, 1 ] ) )
     21     true
     22     > bool = {{alias}}( [ 0.4, 0.4, 0.4 ] )
     23     false
     24     > bool = {{alias}}( [ 3.14, 0.0 ] )
     25     false
     26 
     27     See Also
     28     --------
     29