for-a-few-dpps-more / structure-factor Goto Github PK
View Code? Open in Web Editor NEWCompute structure factor of stationary and isotropic point processes
Home Page: https://for-a-few-dpps-more.github.io/structure-factor/
License: MIT License
Compute structure factor of stationary and isotropic point processes
Home Page: https://for-a-few-dpps-more.github.io/structure-factor/
License: MIT License
I have the impression that current error bars on 1D plots of S(k) are computed as the std of the values of S falling in each bin. But we are rather interested in the standard deviation of the empirical mean, which is the same value but divided by the sqrt of the number of points that fall in each bin. A quick sanity check is that the error bar in a bin should get smaller as the number of points in that bin increases.
It would be great to use an automatic code formating tool to standardize and clean code before pushing
Most IDEs and text editors already include this feature, let's use it
It would be great to be able to pass a random_state
or seed
or rng
argument for reproducibility when calling function involving random variables.
See also the check_random_state
function in sklearn
https://github.com/scikit-learn/scikit-learn/blob/a45c0c99a38cffca6724cb8fd38b12edd4fb6b35/sklearn/utils/validation.py#L926
When calling pp.plot(), there is a lot of whitespace around the observation window. To make sure that the user understands that this white space is there because it is outside of the observation window, and not because by chance no points fell there, I would plot the boundary of the observation window.
It is important to write more explicit docstrings, and decide which docstring format to use and stick to it.
you can have a look at this compact post https://stackoverflow.com/a/24385103
Note: you can partially automate docstring generation in your text editor, in VS-Code for example there's https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring
Let's organize files according to Python standards.
.gitignore
file see https://github.com/github/gitignore/blob/master/Python.gitignoreLICENCE
file (basic MIT should be fine)src/
layout https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypipyproject.toml
file (replaces setup.py and requirements.txt)More generally, I suggest we use poetry
as a tool to manage dependencies and in a near future to release the package on PyPI. I'll show you how to work with it ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.