source: node_modules/d3-random/src/cauchy.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 365 bytes
Line 
1import defaultSource from "./defaultSource.js";
2
3export default (function sourceRandomCauchy(source) {
4 function randomCauchy(a, b) {
5 a = a == null ? 0 : +a;
6 b = b == null ? 1 : +b;
7 return function() {
8 return a + b * Math.tan(Math.PI * source());
9 };
10 }
11
12 randomCauchy.source = sourceRandomCauchy;
13
14 return randomCauchy;
15})(defaultSource);
Note: See TracBrowser for help on using the repository browser.