/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

senthil.learntosolveit.com
| | glowingpython.blogspot.com

Have you ever wanted to check carbon emissions in the UK and never had an easy way to do it? Now you can use the Official Carbon Intensity A...
3.3 parsecs

Travel
| |
| | mika-s.github.io

One thing that can be hard to get right is the mapping from to radians to to radians. Or to to -180° to 180°. I've been unable to find information about it with Google (except for the functions that comes with Matlab), so I decided to share a function I've made that does the transformation. In C#: void TransformToPipi(double inputAngle, out double outputAngle, out int revolutions) { revolutions = (int)((inputAngle + Math.Sign(inputAngle) * Math.PI) / (2 * Math.PI)); outputAngle = (inputAngle + Math.Sign(inputAngle) * Math.PI) % (2 * Math.PI) - (Math.Sign(Math.Sign(inputAngle) + 2 * (Math.Sign(Math.Abs(((inputAngle + Math.PI) % (2 * Math.PI)) / (2 * Math.PI))) - 1))) * Math.PI; } The function takes an angle in radians as input and outputs an angle between and...
3.1 parsecs

Travel
| |
| | glowingpython.blogspot.com

And here's a function to plot a compact calendar with matplotlib: import calendar import numpy as np from matplotlib.patches import Rectan...
2.9 parsecs

Travel
| |
| | fharrell.com

Many researchers worry about violations of the proportional hazards assumption when comparing treatments in a randomized study. Besides the fact that this frequently makes them turn to a much worse approach, the harm done by violations of the proportional odds assumption usually do not prevent the proportional odds model from providing a reasonable treatment effect assessment.
24.7 parsecs

Travel
|