Skip to content

Instantly share code, notes, and snippets.

@honza
honza / description.md
Last active January 4, 2022 00:54
Ranking algorithm - Lower bound of Wilson score confidence interval for a Bernoulli parameter All implementations use 95% probability.

Ranking algorithm

Lower bound of Wilson score confidence interval for a Bernoulli parameter

All implementations use 95% probability.

pos is the number of positive votes, n is the total number of votes.

Source

void AVISceneRenderEx()
{
auto&Dev=D9Dev;
vec2i ClientSize=win.GetClientSize();
if(!Dev.BeginScene())return;
{
D3DVIEWPORT9 ViewPort={0,0,ClientSize.x,ClientSize.y,-1.f,+1.f};
Dev.pDev->SetViewport(&ViewPort);
Dev.Set2D(vec2i(0,0),1.0,0,&ClientSize);
Dev.Clear2D(0xffc8c8c8);