TensaCo / tensacode

2 stars 1 forks source link

encoded float values #11

Closed saurabhya closed 1 year ago

saurabhya commented 1 year ago
# create values for given bound and step
values = ivy.arange(start= object - bounds[0], stop= object + bounds[1], step= epsilon)
# create positional values for elements
position = ivy.arange(start= 0, stop= ((object + bounds[1]) - (object - bounds[0]))/epsilon, step = 1)

return values * positions

took default bounds value to be (-100, 100)

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders