void
CorrelationTimeArcGrbcat::initiate()
{
  TRACE("X: range = " << getXRange() << ", points = " << getXPoints() << ", delta = " << getXDelta());
  TRACE("Y: range = " << getYRange() << ", points = " << getYPoints() << ", delta = " << getYDelta());
  _histData.resize(getYPoints(), std::vector<std::size_t>(getXPoints(), 0));
  _histModel.resize(getYPoints(), std::vector<std::size_t>(getXPoints(), 0));
  _cf.resize(getYPoints(), std::vector<type::Float>(getXPoints(), 0.0));
}
Exemple #2
0
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
void Graph::getBounds(Range &x, Range &y) const {
	x = getXRange();
	y = getYRange();
}
//
//_setHeader:
//
void DrawingCanvas::_setHeader(){
	
	std::stringstream width,height;
	
	width << _media.getWidth();
	height << _media.getHeight();
	
	//
	// Only print the xml declaration if the
	// document is not an embeddable fragment:
	//
	if( DrawingMetrics::getEmbeddedState()==false ){
		_header <<  "<?xml version=\"1.0\" standalone=\"no\"?>\n";
	}
	
	_header << " <svg version=\"1.1\"  id=\"svgDC\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" ";
	
	//
	// Viewbox only:
	//
	//_header << " viewBox=\"0,0," + width.str() + "," + height.str() + "\"  onload=\"init()\" >\n";
	
	//
	// Based on media width and height only:
	//
	//_header << " width=\"" + width.str() + "\" height=\"" + height.str() + "\"";
	
	//
	// Based on actual x and y extents:
	//
	_header << " width=\""; 
	_header << getXRange();
	_header << "\" height=\"";
	_header << getYRange();
	_header << "\" ";
	
	_header << " onload=\"init()\" >\n";
	
	//
	// Start of <defs> section:
	//
	_header << " <defs>\n";
	
	//
	// Append the CSS:
	//
	_setCSS();
	
	//
	// Append the Javascript
	//
	_setJavascript();
	
	//
	// Append any SVG definitions:
	//
	_setSVGDefinitions();
	//
	// End defs section:
	//
	_header << " </defs>\n";
	
	// Set up the group tag for the whole document
	
	_header << " <g class=\"pedigree\" transform=\"translate(" << getXMinimum()*-1 << ")\">\n";
	
}