Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1818 for trunk/sources


Ignore:
Timestamp:
05/14/09 19:01:46 (15 years ago)
Author:
cbahner
Message:

#519 added floating average

Location:
trunk/sources
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization

    • Property svn:ignore set to
      bin
      obj
  • trunk/sources/HeuristicLab.Visualization.Test

    • Property svn:ignore set to
      bin
      obj
  • trunk/sources/HeuristicLab.Visualization.Test/3.2/LineChartTests.cs

    r1607 r1818  
    371371        model.AddDataRow(row2);
    372372
    373         // insert 2 floating avg line aggregators (for each hacked line)
    374 
    375         // test floating avg aggregator without visible watcher line
    376 
     373        FloatingAvgAggregator avgAggregator = new FloatingAvgAggregator {
     374                                                                          Thickness = 2,
     375                                                                          Label = "floatingAvg",
     376                                                                          Color = Color.Peru,
     377                                                                          ShowMarkers = false,
     378                                                                          Style = DrawingStyle.Solid
     379                                                                        };
     380
     381        avgAggregator.AddWatch(row1);
     382        model.AddDataRow(avgAggregator);
     383
     384        FloatingAvgAggregator avgAggregator2 = new FloatingAvgAggregator {
     385          Thickness = 2,
     386          Label = "floatingAvg",
     387          Color = Color.Aqua,
     388          ShowMarkers = false,
     389          Style = DrawingStyle.Solid
     390        };
     391
     392        avgAggregator2.AddWatch(row2);
     393        model.AddDataRow(avgAggregator2);
     394
     395       
    377396        double i = 0;
    378397        Random rnd = new Random();
    379398
    380         while (!_shouldStop && i <= 240) {
     399        while (!_shouldStop && i <= 100) {
    381400          i += 0.2;
    382401          double newY = Math.Sin(i);
  • trunk/sources/HeuristicLab.Visualization/3.2/AvgLineAggregator.cs

    r1607 r1818  
    4343
    4444    void dataRow_ValuesChanged(IDataRow row, double[] values, int index, Action action) {
    45       for (int i = 0; i < values.Length; i++) {
    46         refreshValue();
    47       }
     45//      for (int i = 0; i < values.Length; i++) {
     46//        refreshValue();
     47//      }
     48      refreshValue();
    4849    }
    4950
  • trunk/sources/HeuristicLab.Visualization/3.2/HeuristicLab.Visualization-3.2.csproj

    r1781 r1818  
    112112    <Compile Include="DataExport\IExporter.cs" />
    113113    <Compile Include="DataRowBase.cs" />
     114    <Compile Include="FloatingAvgAggregator.cs" />
    114115    <Compile Include="LabelProvider\ContinuousLabelProvider.cs" />
    115116    <Compile Include="LabelProvider\DiscreteLabelProvider.cs" />
  • trunk/sources/HeuristicLab.vsmdi

    r1614 r1818  
    22<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
    33  <TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
    4     <RunConfiguration id="88c9ce07-728c-47fb-abc1-2b402c2075ca" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common,   PublicKeyToken=b03f5f7f11d50a3a" />
     4    <RunConfiguration id="f9392825-866f-4434-be36-358db28f0c59" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common,   PublicKeyToken=b03f5f7f11d50a3a" />
    55  </TestList>
    66</TestLists>
  • trunk/sources/LocalTestRun.testrunconfig

    r1614 r1818  
    11<?xml version="1.0" encoding="UTF-8"?>
    2 <TestRunConfiguration name="Local Test Run" id="88c9ce07-728c-47fb-abc1-2b402c2075ca" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
     2<TestRunConfiguration name="Local Test Run" id="f9392825-866f-4434-be36-358db28f0c59" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
    33  <Description>This is a default test run configuration for a local test run.</Description>
    4   <Deployment enabled="false" />
    54  <TestTypeSpecific />
    65</TestRunConfiguration>
Note: See TracChangeset for help on using the changeset viewer.