@partylikeits1983/statistics_solidity
v1.0.1
Published
#### `Statitics Functions` in Solidity
Downloads
3
Readme
statistics_solidity
Statitics Functions
in Solidity
Usage
With npm:
$ npm i statistics_solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
import "@partylikeits1983/statistics_solidity/contracts/Statistics.sol";
contract model {
function test(int x) public view returns (int y) {
y = Statistics.pdf(x);
return y;
}
}
Version 1.0
| Functions | Description | Gas Estimation | | --------- | -------------------------------------------------------------------------------------------------- | -------------- | | pdf | Probability Density Function | 32869 | | cdf | Cumulative Distribution Function | 31522 | | err | Error Function | 30137 |
Testing
npx hardhat test tests/stats.test.js
node stats.js
License
Licensed under either of
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.