Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Conversation

@adambalogh
Copy link

@adambalogh adambalogh commented Jan 24, 2024

Precompile implementation: OpenGradient/vanna-nitro#7

* @notice Returns the standard deviation of input
* @return stddev floating point number represented as an int, with the given number of decimals taken
*/
function stdDev(int32[] memory input, uint8 returnDecimals) external returns (int256);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be a view function right? Doesn't modify state or write anything special to DA...etc.

Copy link
Author

@adambalogh adambalogh Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep good point! it can even be pure i think

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants