mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
idk
This commit is contained in:
@ -485,9 +485,9 @@ float rand_normal()
|
||||
}
|
||||
*/
|
||||
|
||||
float rand_uniform()
|
||||
float rand_uniform(float min, float max)
|
||||
{
|
||||
return (float)rand()/RAND_MAX;
|
||||
return ((float)rand()/RAND_MAX * (max - min)) + min;
|
||||
}
|
||||
|
||||
float **one_hot_encode(float *a, int n, int k)
|
||||
|
Reference in New Issue
Block a user