Skip to content

BUG: negative values in the algorithm charts. #17

@nishihatapalmer

Description

@nishihatapalmer

The results pages often pop up with a message saying there are negative values in the chart but the the baseline is zero.

Source
The negative values appear in the standard deviation 1 data, written out in output.h. It subtracts the standard deviation from the mean time. However, the standard deviation can be bigger than the mean, which results in negative values in the output.

	fprintf(fp,"var std1 = [");
	for(int il=0; il<NumPatt; il++)	if(PATT_SIZE[il]>=MINLEN && PATT_SIZE[il]<=MAXLEN) {
   		if(TIME[algo][il]==0)  fprintf(fp,",");
  		else fprintf(fp,"%.2f,",TIME[algo][il]-STD[algo][il]);
  	}
  	fprintf(fp,"];\n");

Fix
I'm not sure what the fix should be here. I can prevent negative values by having a minimum zero value here, cutting off anything
below it. I'm not sure what the right statistical approach is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions