I am not sure what to expect; do you want to relax your test so that as long as
it gets between 850 and 800 you are "happy" that it has found a nearest
neighbour?
--
Jody Garnett
On Monday, 9 May 2011 at 3:19 PM, andrea antonello wrote:
> Hi coverage friends,
> I have a strange scaling issue that is giving troubles to my testcases
> and need some advice.
>
> Let's assume I have a small raster containing the data:
>
> {1000.0, 1000.0, 1200.0, 1250.0, 1300.0, 1350.0, 1450.0}, //
> {750.0, 850.0, 860.0, 900.0, 1000.0, 1200.0, 1250.0}, //
> {700.0, 750.0, 800.0, 850.0, 900.0, 1000.0, 1100.0}, //
> {650.0, 700.0, 750.0, 800.0, 850.0, 490.0, 450.0}, //
> {430.0, 500.0, 600.0, 700.0, 800.0, 500.0, 450.0}, //
> {700.0, 750.0, 760.0, 770.0, 850.0, 1000.0, 1150.0} //
>
> I use the jai scxaling operation to scale it from 6 rows to be 5 rows.
> Well, on linux and mac systems I get:
>
> {1000.0, 1200.0, 1250.0, 1300.0, 1450.0}, //
> {750.0, 860.0, 900.0, 1000.0, 1250.0}, //
> {700.0, 800.0, 850.0, 900.0, 1100.0}, //
> {430.0, 600.0, 700.0, 800.0, 450.0}, //
> {700.0, 760.0, 770.0, 850.0, 1150.0} //
>
> While on windows I get:
>
> {1000.0, 1200.0, 1250.0, 1300.0, 1450.0}, //
> {750.0, 860.0, 900.0, 1000.0, 1250.0}, //
> {650.0, 750.0, 800.0, 850.0, 450.0}, //
> {430.0, 600.0, 700.0, 800.0, 450.0}, //
> {700.0, 760.0, 770.0, 850.0, 1150.0} //
>
> The fact is that the center of the resulting 3. row is between row 3
> and 4 of the starting data. Probably some floating point precision
> thing?
> In the case of nearest neighbor scaling, I assume the upper row should
> be picked?
> Any idea how to solve this. My latest banging the head against the
> wall didn't give the necessary results.
> Thanks,
> Andrea
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel