freepooma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newfield_revision Patch] Revise nearestNeighbors


From: Jeffrey Oldham
Subject: [newfield_revision Patch] Revise nearestNeighbors
Date: Wed, 15 Aug 2001 11:10:02 -0700
User-agent: Mutt/1.2.5i

The statigraphic flow code demonstrated the need to generalize nearest
neighbor computations.  These changes permit computing nearest
neighbors given a centering, i.e., all values in one cell; a
FieldOffset, i.e., one value; and a FieldOffsetList, i.e., a set of
values.

Applied to newfield_revision branch.
 
2001-08-15  Jeffrey D. Oldham  <address@hidden>
 
        * FieldOffset.h (FieldOffsetList::FieldOffsetList): Add
        constructor converting from a std::vector to a FieldOffsetList.
        * NearestNeighbors.h (NearestNeighborClass::NearestNeighborClass):
        Changed to an empty constructor.
        (NearestNeighborClass::operator()()): Removed.
        (NearestNeighborClass::operator()(Centering,Centering)): New function.
        (NearestNeighborClass::operator()(Centering,FieldOffset,Centering)):
        New function.
        (NearestNeighborClass::operator()(Centering,FieldOffsetList,Centering)):
        New function.
        (NearestNeighborClass::nearestNeighbors): New function formed from
        previous operator()().
        (manhattanDistance): Initialize variable.
        (NearestNeighborClass): Remove centering data members.
        (nearestNeighbors(Centering,Centering)): Revise to use
        operator()(Centering,Centering).
        (nearestNeighbors(Centering,Centering,bool)): Revise to use
        operator()(Centering,Centering).
        (nearestNeighbors(Centering,FieldOffsetList,Centering)): New
        function.
        (nearestNeighbors(Centering,FieldOffsetList,Centering,bool)): New
        function.
        (nearestNeighbors(Centering,FieldOffset,Centering)): New function.
        (nearestNeighbors(Centering,FieldOffset,Centering,bool)): New
        function.
        * tests/NearestNeighbors.cpp (main): Revise to test new functions.

Applied to      newfield_revision branch
Approved by     Stephen Smith
Tested on       sequential Linux using gcc 3.0.1 by compiling Pooma library and 
NewField tests

Thanks,
Jeffrey D. Oldham
address@hidden

Attachment: 14Aug.14.9.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]