Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bskytree not giving expected result #3

Open
naughtod opened this issue Jul 23, 2022 · 0 comments
Open

bskytree not giving expected result #3

naughtod opened this issue Jul 23, 2022 · 0 comments

Comments

@naughtod
Copy link

naughtod commented Jul 23, 2022

Hi Guys,

I'm trying to use your single threaded bskytree implementation to check the results against my own skyline algorithm implementation. I'm getting odd results when I input the following toy data set,

std::vector< std::vector<float> > vvf {
    {0.010,0.010,0.010,0.010},
    {0.001,0.001,0.001,0.001},
    {0.100,0.100,0.100,0.100}
};

The result I get back says that the skyline includes points (0, 1, 2) when I think it should just be point 1.

The code i'm using to make the call is based on what you've used in testdriver.cpp,

const uint32_t n = vvf.size();
const uint32_t d = vvf.front().size();

float** data = AllocateDoubleArray( n, d );
redistribute_data( vvf, data );
vvf.clear();

SkyTree s(n, d, data, true, false);
s.SkyTree::Init( data );
vector<int> res = s.SkyTree::Execute();

Appreciate if you could point out what i'm doing wrong.

Thanks,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant