/* * Copyright 2004-2010 Information & Software Engineering Group (188/1) * Institute of Software Technology and Interactive Systems * Vienna University of Technology, Austria * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.ifs.tuwien.ac.at/dm/somtoolbox/license.html * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package at.tuwien.ifs.somtoolbox.reportgenerator.output; import at.tuwien.ifs.somtoolbox.reportgenerator.DatasetInformation; import at.tuwien.ifs.somtoolbox.reportgenerator.TestRunResult; /** * Objects of this type handle the HTML report-writing for Growing Grids. In additon to the information outputtet by the * SOMDescription, also information about tau2 is given * * @author Sebastian Skritek (0226286, Sebastian.Skritek@gmx.at) * @author Martin Waitzbauer (0226025) * @version $Id: SOMGHSOMDescriptionLATEX.java 3583 2010-05-21 10:07:41Z mayer $ */ public class SOMGHSOMDescriptionLATEX extends SOMGGDescriptionLATEX { public SOMGHSOMDescriptionLATEX(ReportFileWriter writer, DatasetInformation dataset, TestRunResult testrun, String imgDir) { super(writer, dataset, testrun, imgDir); } /** * initiates the creation of the output Creates the description of the SOM and training properties */ @Override public void printSOMDescription() { // SOM & training properties this.writer.appendOutput("\\begin{itemize}"); this.printSOMProperties(); this.writer.appendOutput("\\end{itemize}"); // something about the different levels of the SOM // this.printMapLevels(); // data distribution on SOM this.printDataDistribution(); } @Override protected void printTopologyOfSOM() { this.writer.appendOutput("\\item Type of SOM: Growing Hierachical SOM\n"); } /** * initiates the creation of the output. Creates the description of the SOM and training properties */ @Override protected void printSOMProperties() { this.printTopologyOfSOM(); this.printSOMDimensions(); this.printMapNumbers(); this.printSigma(); this.printTau(); this.printTau2(); this.printLearningRate(); this.printNeighbourhoodFunction(); this.printMetricUsed(); this.printNumberOfIterations(); this.printRandomSeed(); this.printTrainingTime(); this.printTrainingDate(); } protected void printMapNumbers() { int numb = this.testrun.getNumberOfMaps(); if (numb > 1) { this.writer.appendOutput("\\item This SOM consists of " + numb + " maps\n"); } else { this.writer.appendOutput("\\item This SOM consists of " + numb + " map\n"); } } }