Skip to content

Crashes when there is no variance #5

@tkortekaas

Description

@tkortekaas

Given input:

final RunParameters runParameters = new RunParameters("path/to/dataset.csv", SimEnum.PEARSON_CORRELATION, 1, 1);
runParameters.setTopK(1);
runParameters.setQueryType(QueryTypeEnum.TOPK);

final CorrelationDetective correlationDetective = new CorrelationDetective(runParameters);
queries.ResultSet res = correlationDetective.run();

and dataset.csv

,A,B,C  
x,1,5,4  
y,2,6,4  
z,3,7,4  
w,4,8,4

an ArrayIndexOutOfBoundsException occurs. This happens, independently of the value of skipVar.

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