Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [january-dev] Dataset resize function

Dear Peter, 

sorry to disturb you again, but I don't understand the difference between getUniqueItems() and sort() because it's returning to me the same result...

Thanks a lot.

Best regards.

Sachot Pierre


De: "sachot pierre" <sachot.pierre@xxxxxxxxxxx>
À: january-dev@xxxxxxxxxxx
Envoyé: Mardi 23 Mai 2017 13:45:31
Objet: Dataset resize function

Dear Peter, 

I would like to know what is the difference between a resize and a Slice, because here:

double[] obj = new double[] { 4.2, -7.9, 6.10, 0.0 };

Dataset input = DatasetFactory.createFromObject(class1, obj);
input.resize(1,2);
System.out.println(input.toString(true));


This is showing me: Dataset [[4,1999998, -7,9000001]]

So I lose some values by doing the resize, is it like a Slice?


Thanks a lot,


Best regards.


Sachot Pierre.



Back to the top