AlpacaLibary  1.63
A closed source C++ bot for OSRS
Math.hpp File Reference
#include <cstdint>
#include <vector>
#include <random>
#include "Types/Point.hpp"

Go to the source code of this file.

Functions

std::int32_t BinomialRandom (std::int32_t Min, std::int32_t Max, double Probability)
 
std::int32_t UniformRandom (std::int32_t Min, std::int32_t Max)
 
double UniformRandom ()
 
std::int32_t NormalRandom (std::int32_t Mean, double StandardDeviation)
 
std::int32_t NormalRandom (std::int32_t Low, std::int32_t High, double PercentageDeviation)
 
std::int32_t NormalRandom (std::int32_t Min, std::int32_t Max, std::int32_t Mean, double StandardDeviation)
 
void GetLine (Point A, Point B, std::vector< Point > *Res)
 
std::vector< PointConvexHull (std::vector< Point > Points)
 

Function Documentation

◆ BinomialRandom()

std::int32_t BinomialRandom ( std::int32_t  Min,
std::int32_t  Max,
double  Probability 
)

◆ ConvexHull()

std::vector<Point> ConvexHull ( std::vector< Point Points)

◆ GetLine()

void GetLine ( Point  A,
Point  B,
std::vector< Point > *  Res 
)

◆ NormalRandom() [1/3]

std::int32_t NormalRandom ( std::int32_t  Low,
std::int32_t  High,
double  PercentageDeviation 
)

◆ NormalRandom() [2/3]

std::int32_t NormalRandom ( std::int32_t  Mean,
double  StandardDeviation 
)

◆ NormalRandom() [3/3]

std::int32_t NormalRandom ( std::int32_t  Min,
std::int32_t  Max,
std::int32_t  Mean,
double  StandardDeviation 
)

◆ UniformRandom() [1/2]

double UniformRandom ( )

◆ UniformRandom() [2/2]

std::int32_t UniformRandom ( std::int32_t  Min,
std::int32_t  Max 
)