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 );
Unit tests our WFiber class.
void testEqualityOperator(void)
Two fibers are equal if they have equal WPositions in same order.
void testDTMeasure(void)
The dt(Q,R) measure (mean closest point distance) is not symmetric.
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...
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...
Represents a neural pathway.
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....
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....
void push_back(const value_type &value)
Wrapper around std::vector member function.
This only is a 3d double vector.