What happened with this?
I also want to know. I think it could be pretty kickass. gf's a dietician, so could make things REALLY hectic
What happened with this?
What happened with this?
I also want to know. I think it could be pretty kickass. gf's a dietician, so could make things REALLY hectic![]()
Algorithm 5
Standard Normal According to Marsaglia-Bray
generate U = random number
if U < 0.8638 then
generate U1 ,U2,U3 = random numbers
setZ =2(U, + U, + U3) —3
else if U < 0.9745 then
generate U1,U2 = random numbers
setZ = l.5(U, + U3 — 1)
else if U < 0.9973002039
repeat
generate U, = random number
set V = 6*U, — 3
generate U2 = random number
until 0.358*U2 ~ g(V) *
set Z = V
else
repeat
repeat
generate U1 ,U2 = random numbers
set V1 = 2*U1 — 1, V2 = 2*U2 — 1
until W = W + V~< 1
set A = sqrt((9_2*ln(W))/W)
set B = AV,, set C = AV2
until jBJ > 3 or id > 3
if IBI > 3 then Z = B else Z = C
endif
return Z
*g(v)ae2/22b(3v2)c(l.5~v~), vi < 1
ae_v2~’2_b(3_ivj)2_c(l.5_ivi), 1 lvi <1.5
ae~Z~’2_b(3_jvi)2, l.5 ivi<3
a = 17.49731196, b = 2.36785163, c = 2.15787544
It's still in the pipeline. The last 3 months have been hectic. New job ect...
Back on topic:
I found this:
Erm... :wtf:
#include <stdio.h>
#include <math.h>
void getNextGauss(int* curr1, int* curr2, int* curr3, double* temp, double* x1, double* x2)
{
double L = 0.0;
double s = 1.0;
double v1 = 0.0;
double v2 = 0.0;
while (s >= 1.0)
{
getNextRand(curr1, curr2, curr3, temp);
v1 = 2.0 * *temp - 1.0;
getNextRand(curr1, curr2, curr3, temp);
v2 = 2.0 * *temp - 1.0;
s = v1*v1 + v2*v2;
}
L = sqrt((-2*log(s))/s);
*x1 = v1 * L;
*x2 = v2 * L;
}
void getNextRand(int* curr1, int* curr2, int* curr3, double* temp)
{
*curr1 = (177 * (*curr1 % 177)) - 2 * (*curr1/177);// % PRIME1;
if (*curr1 < 0)
*curr1 = *curr1 + 30269.0;
*temp = *curr1 / (double) 30269.0;
*curr2 = (171 * (*curr2 % 176)) - 35 * (*curr2/176);// % PRIME2;
if (*curr2 < 0)
*curr2 = *curr2 + 30307.0;
*temp += *curr2 / (double) 30307.0;
*curr3 = (170 * (*curr3 % 178)) - 63 * (*curr3/178);// % PRIME3;
if (*curr3 < 0)
*curr3 = *curr3 + 30323.0;
*temp += *curr3 / (double) 30323.0;
*temp = *temp - (int)*temp;
}
you could just record the hbo logo and remote the text ?![]()
A simple graphics.draw() approach doesn't work (I get to about 5 frames per second on a way lower resolution.)
Just be careful with Visual Studio because you get managed C++ which won't run without .NET framework installed.
Linux with QT is much better IMHO. Even OpenGL in Linux is really nice to work with.
Julius Mampoera is always able to make a lot of noise and should be just the thing you're looking for.
Not true! You can create unmanaged C++ code fine with Visual Studio.
Boost?
But the default action is to create managed code which I hate, why use C++ then![]()
I still write the code using VC++ I just usually create a empty Win32 Project.
The compiler is awesome, setting optimization to full and enablng whole program optimization, makes a huge difference in file size & performance.
Boost, I've heard good things about it. I think they've used some fancy tricks to get stuff like lambda expressions working etc.