31 #include <cxxtest/TestSuite.h>
33 #include "../../math/linearAlgebra/WPosition.h"
34 #include "../WFiber.h"
35 #include "WFiberTraits.h"
54 TS_ASSERT_EQUALS( fib1, fib2 );
70 TS_ASSERT_EQUALS(
WFiber::distDLT( 1.0, q, r ), std::sqrt( 5.0 ) / 2.0 );
71 TS_ASSERT_EQUALS(
WFiber::distDLT( 1.0, r, q ), std::sqrt( 5.0 ) / 2.0 );
87 TS_ASSERT_EQUALS(
WFiber::distDST( 1.0, q, r ), std::sqrt( 2.0 ) / 2.0 );
88 TS_ASSERT_EQUALS(
WFiber::distDST( 1.0, r, q ), std::sqrt( 2.0 ) / 2.0 );
104 TS_ASSERT_EQUALS(
WFiber::distDST( 1.0, q, r ), std::sqrt( 2.0 ) / 2.0 );
105 TS_ASSERT_EQUALS(
WFiber::distDLT( 1.0, q, r ), std::sqrt( 5.0 ) / 2.0 );
109 #endif // WFIBER_TEST_H
Represents a neural pathway.
void push_back(const value_type &value)
Wrapper around std::vector member function.
static double distDST(double thresholdSquare, const WFiber &q, const WFiber &r)
This is the Smaller thresholded distance as described by Zhang: http://dx.doi.org/10.1109/TVCG.2008.52 .
This only is a 3d double vector.
void testDTMeasure(void)
The dt(Q,R) measure (mean closest point distance) is not symmetric.
Unit tests our WFiber class.
void testDSTisSymmetric(void)
dSt(Q,R) chooses just the minimum outcome of either dt(Q,r) or dt(R,Q) and hence it is a symmetric me...
void testEqualityOperator(void)
Two fibers are equal if they have equal WPositions in same order.
void testDLTisSymmetric(void)
dLt(Q,R) chooses just the maximum out come of either dt(Q,r) or dt(R,Q) and hence it is a symmetric m...
static double distDLT(double thresholdSquare, const WFiber &q, const WFiber &r)
This is the Larger thresholded distance as described by Zhang: http://dx.doi.org/10.1109/TVCG.2008.52 .