test_measure.cpp File Reference

#include <cstdio>
#include <cmath>
#include <iostream>
#include <fstream>
#include <vector>
#include "DGtal/base/Common.h"
#include "DGtal/math/MeasureOfStraightLines.h"
Include dependency graph for test_measure.cpp:

Functions

void testUnitSquare ()
void testUnitSquareCentroid ()
int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)
void testUnitSquare (  ) 

Compute the measure of the unit square [0,1]x[0,1]

Expected value : sqrt{2}/2

References DGtal::MeasureOfStraightLines::computeMeasure(), DGtal::Trace::emphase(), DGtal::Trace::info(), and DGtal::trace.

Referenced by main().

void testUnitSquareCentroid (  ) 

Compute the measure of the unit square [0,1]x[0,1]

Expected value : sqrt{2}/2

References DGtal::MeasureOfStraightLines::computeCentroidA(), DGtal::MeasureOfStraightLines::computeCentroidB(), DGtal::Trace::emphase(), DGtal::Trace::info(), and DGtal::trace.

Referenced by main().

Generated on Fri Jun 18 14:39:27 2010 for DGtal by  doxygen 1.6.3