Skip to content

This is new edited version of the known SigmoidNumbers

License

Notifications You must be signed in to change notification settings

MohHizzani/SigmoidNumbers.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an updated version of SigmoidNumbers for Posits, Valids and Unum II Numbers for Julia by Mohammad Hizzani

Based on the Sigmoid Numbers Invented by John Gustafson

ML Applications & Implementation by Isaac Yonemoto

Two types of Sigmoid Numbers

  1. Universal Sigmoid Numbers

  2. Estimated Sigmoid Numbers (Posits)

Add

In order to add SigmoidNumbers simply from a Julia REPL

julia> ] add SigmoidNumbers

To use it

julia> using SigmoidNumbers

julia> P1 = Posit{16,0}; #16 is number of bits, 0 is ES

julia> a = P1(0)
Posit{16,0}(0x0000)