Darknet/YOLO v3.0-149-gb11c9d5
Object Detection Framework
 
Loading...
Searching...
No Matches
matrix.cpp File Reference
Include dependency graph for matrix.cpp:

Functions

int closest_center (float *datum, matrix centers)
 
void copy (float *x, float *y, int n)
 
float dist (float *x, float *y, int n)
 
float dist_to_closest_center (float *datum, matrix centers)
 
model do_kmeans (matrix data, int k)
 
void free_matrix (matrix &m)
 
int kmeans_expectation (matrix data, int *assignments, matrix centers)
 
void kmeans_maximization (matrix data, int *assignments, matrix centers)
 
matrix make_matrix (int rows, int cols)
 
float matrix_topk_accuracy (matrix truth, matrix guess, int k)
 
void random_centers (matrix data, matrix centers)
 
int * sample (int n)
 

Function Documentation

◆ closest_center()

int closest_center ( float *  datum,
matrix  centers 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy()

void copy ( float *  x,
float *  y,
int  n 
)
Here is the caller graph for this function:

◆ dist()

float dist ( float *  x,
float *  y,
int  n 
)
Here is the caller graph for this function:

◆ dist_to_closest_center()

float dist_to_closest_center ( float *  datum,
matrix  centers 
)
Here is the call graph for this function:

◆ do_kmeans()

model do_kmeans ( matrix  data,
int  k 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_matrix()

void free_matrix ( matrix m)
Here is the caller graph for this function:

◆ kmeans_expectation()

int kmeans_expectation ( matrix  data,
int *  assignments,
matrix  centers 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kmeans_maximization()

void kmeans_maximization ( matrix  data,
int *  assignments,
matrix  centers 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_matrix()

matrix make_matrix ( int  rows,
int  cols 
)
Here is the caller graph for this function:

◆ matrix_topk_accuracy()

float matrix_topk_accuracy ( matrix  truth,
matrix  guess,
int  k 
)
Here is the call graph for this function:

◆ random_centers()

void random_centers ( matrix  data,
matrix  centers 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sample()

int * sample ( int  n)
Here is the caller graph for this function: