init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
PROJECT(test_evaluation)
|
||||
|
||||
IF(WIN32)
|
||||
ADD_DEFINITIONS(-DTARGET_OS_Windows)
|
||||
ENDIF(WIN32)
|
||||
IF(UNIX)
|
||||
ADD_DEFINITIONS(-DTARGET_OS_Linux)
|
||||
ENDIF(UNIX)
|
||||
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
|
||||
ADD_DEFINITIONS(-DTARGET_ARCHITECTURE_i386)
|
||||
|
||||
INCLUDE_DIRECTORIES(../src)
|
||||
ADD_EXECUTABLE(${PROJECT_NAME} test_kappa.cpp)
|
||||
SET_PROPERTY(TARGET ${PROJECT_NAME} PROPERTY FOLDER ${TESTS_FOLDER}) # Place project in folder unit-test (for some IDE)
|
||||
|
||||
#INCLUDE("FindOpenViBE")
|
||||
|
||||
# Unfortunately we need to install the tests as any application to find .dll/.so files
|
||||
# on both Windows and Linux.
|
||||
OV_INSTALL_LAUNCH_SCRIPT(SCRIPT_PREFIX "${PROJECT_NAME}" EXECUTABLE_NAME "${PROJECT_NAME}")
|
||||
INSTALL(TARGETS ${PROJECT_NAME}
|
||||
RUNTIME DESTINATION ${DIST_BINDIR}
|
||||
LIBRARY DESTINATION ${DIST_LIBDIR}
|
||||
ARCHIVE DESTINATION ${DIST_LIBDIR})
|
||||
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
#blabla
|
||||
|
||||
# @FIXME there is a problem of using the global log, this will cause interference if any tests are run in parallel
|
||||
|
||||
IF(WIN32)
|
||||
SET(EXT cmd)
|
||||
SET(OS_FLAGS "--no-pause")
|
||||
ELSE(WIN32)
|
||||
SET(EXT sh)
|
||||
SET(OS_FLAGS "")
|
||||
ENDIF(WIN32)
|
||||
|
||||
ADD_TEST(clean_Evaluation_kappa "${CMAKE_COMMAND}" "-E" "remove" "-f" ${OV_LOGFILE})
|
||||
ADD_TEST(run_Evaluation_kappa "$ENV{OV_BINARY_PATH}/openvibe-designer.${EXT}" ${OS_FLAGS} "--invisible" "--no-session-management" --define Plugin_Classification_RandomizeKFoldTestData true "--play-fast" Test-kappa.xml)
|
||||
#ADD_TEST(compare_Evaluation_kappa "$ENV{OV_BINARY_PATH}/test_evaluation.${EXT}" "${OS_FLAGS}" "${OV_LOGFILE}")
|
||||
|
||||
# It would be better to clean last, but we can't do this as it will delete the
|
||||
# output we wish to include, and we can't prevent clean from running if a prev. test fails
|
||||
# We need the clean to be sure that the comparator stage is not getting data from a previous run.
|
||||
SET_TESTS_PROPERTIES(run_Evaluation_kappa PROPERTIES DEPENDS clean_Evaluation_kappa)
|
||||
SET_TESTS_PROPERTIES(run_Evaluation_kappa PROPERTIES ATTACHED_FILES_ON_FAIL ${OV_LOGFILE})
|
||||
|
||||
#SET_TESTS_PROPERTIES(compare_Evaluation_kappa PROPERTIES DEPENDS run_Evaluation_kappa)
|
||||
#SET_TESTS_PROPERTIES(compare_Evaluation_kappa PROPERTIES ATTACHED_FILES_ON_FAIL ${OV_LOGFILE})
|
||||
|
||||
|
||||
ADD_TEST(run_Evaluation_statistic_generator "$ENV{OV_BINARY_PATH}/openvibe-designer.${EXT}" ${OS_FLAGS} "--invisible" "--no-session-management" --define Plugin_Classification_RandomizeKFoldTestData true "--play-fast" Test-StatisticGenerator.xml)
|
||||
ADD_TEST(compare_Evaluation_statistic_generator "git" "diff" "--no-index" "--ignore-space-change" "stat.xml" "data/Statistic_comparison.xml")
|
||||
ADD_TEST(clean_Evaluation_statistic_generator "${CMAKE_COMMAND}" "-E" "remove" "-f" stat.xml)
|
||||
|
||||
|
||||
SET_TESTS_PROPERTIES(compare_Evaluation_statistic_generator PROPERTIES DEPENDS run_Evaluation_statistic_generator)
|
||||
SET_TESTS_PROPERTIES(compare_Evaluation_statistic_generator PROPERTIES ATTACHED_FILES_ON_FAIL ${OV_LOGFILE})
|
||||
|
||||
### Do not enable the commented out sikuli tests unless you
|
||||
### or your lab commits to keep them passing in the long term.
|
||||
#FIND_PROGRAM(SIKULI NAMES sikuli-ide)
|
||||
#IF(SIKULI)
|
||||
# IF(UNIX)
|
||||
# ADD_TEST(sikuli_clean_Evaluation_ROC "${CMAKE_COMMAND}" "-E" "remove" "-f" ${OV_LOGFILE} screenshot.png)
|
||||
# ADD_TEST(sikuli_run_Evaluation_ROC "${SIKULI}" -t testROCCurve.UNIX.sikuli)
|
||||
#
|
||||
# SET_TESTS_PROPERTIES(sikuli_run_Evaluation_ROC PROPERTIES DEPENDS sikuli_clean_Evaluation_ROC)
|
||||
# SET_TESTS_PROPERTIES(sikuli_run_Evaluation_ROC PROPERTIES ATTACHED_FILES_ON_FAIL ${OV_LOGFILE})
|
||||
# SET_TESTS_PROPERTIES(sikuli_run_Evaluation_ROC PROPERTIES ATTACHED_FILES_ON_FAIL ${CTEST_SOURCE_DIRECTORY}/plugins/processing/evaluation/test/screenshot.png)
|
||||
# ENDIF(UNIX)
|
||||
#ENDIF(SIKULI)
|
||||
|
||||
+451
@@ -0,0 +1,451 @@
|
||||
<OpenViBE-Scenario>
|
||||
<FormatVersion>1</FormatVersion>
|
||||
<Creator>openvibe</Creator>
|
||||
<CreatorVersion>2.0</CreatorVersion>
|
||||
<Boxes>
|
||||
<Box>
|
||||
<Identifier>(0x29c00b5a, 0x38e642d5)</Identifier>
|
||||
<Name>General statistics generator</Name>
|
||||
<AlgorithmClassIdentifier>(0x83eda40b, 0x425fbffe)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x5ba36127, 0x195feae1)</TypeIdentifier>
|
||||
<Name>Signal</Name>
|
||||
</Input>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Stimulations</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
|
||||
<Name>Filename for saving</Name>
|
||||
<DefaultValue></DefaultValue>
|
||||
<Value>${__volatile_ScenarioDir}/stat.xml</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>240.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>43</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>512.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0xf6674389, 0x42f4fe25)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>190</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x002abac0)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc67a01dc, 0x28ce06c1)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xf191c1c8, 0xa0123976)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x2b584b95, 0x7008d0de)</Identifier>
|
||||
<Name>Player Controller</Name>
|
||||
<AlgorithmClassIdentifier>(0x5f426dce, 0x08456e13)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Stimulations</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation name</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0xcc14d8d6, 0xf27ecb73)</TypeIdentifier>
|
||||
<Name>Action to perform</Name>
|
||||
<DefaultValue>Pause</DefaultValue>
|
||||
<Value>Stop</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>256.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>23</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>800.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x568d148e, 0x650792b3)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>118</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x0012be4a)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x2b907080, 0x224d7576)</Identifier>
|
||||
<Name>Sinus oscillator</Name>
|
||||
<AlgorithmClassIdentifier>(0x7e33bdb8, 0x68194a4a)</AlgorithmClassIdentifier>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x5ba36127, 0x195feae1)</TypeIdentifier>
|
||||
<Name>Generated signal</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
|
||||
<Name>Channel count</Name>
|
||||
<DefaultValue>4</DefaultValue>
|
||||
<Value>4</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
|
||||
<Name>Sampling frequency</Name>
|
||||
<DefaultValue>512</DefaultValue>
|
||||
<Value>512</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
|
||||
<Name>Generated epoch sample count</Name>
|
||||
<DefaultValue>32</DefaultValue>
|
||||
<Value>32</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>128.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>23</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>432.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x0b214ed8, 0x1f9ad83a)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>109</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x002cf528)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>3</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x592038f7, 0x3646c9fe)</Identifier>
|
||||
<Name>Clock stimulator</Name>
|
||||
<AlgorithmClassIdentifier>(0x4f756d3f, 0x29ff0b96)</AlgorithmClassIdentifier>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Generated stimulations</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x512a166f, 0x5c3ef83f)</TypeIdentifier>
|
||||
<Name>Interstimulation interval (in sec)</Name>
|
||||
<DefaultValue>1.0</DefaultValue>
|
||||
<Value>0.2</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>126.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>23</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>608.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x27b3ee3c, 0xc50527e6)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>114</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x0020b3d0)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x625d022b, 0x4c72dfaa)</Identifier>
|
||||
<Name>Timeout</Name>
|
||||
<AlgorithmClassIdentifier>(0x24fcd292, 0x5c8f6aa8)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x544a003e, 0x6dcba5f6)</TypeIdentifier>
|
||||
<Name>Input Stream</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Output Stimulations</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
|
||||
<Name>Timeout delay</Name>
|
||||
<DefaultValue>5</DefaultValue>
|
||||
<Value>100</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Output Stimulation</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>160.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa963f5, 0x1a638cd4)</Identifier>
|
||||
<Value>33</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>800.000000</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x1eaee00e, 0xdb05d34e)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
|
||||
<Value>62</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x0011d368)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
</Boxes>
|
||||
<Links>
|
||||
<Link>
|
||||
<Identifier>(0x0ff86487, 0x6c18ccc2)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x592038f7, 0x3646c9fe)</BoxIdentifier>
|
||||
<BoxOutputIndex>0</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x29c00b5a, 0x38e642d5)</BoxIdentifier>
|
||||
<BoxInputIndex>1</BoxInputIndex>
|
||||
</Target>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
|
||||
<Value>144</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
|
||||
<Value>608</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
|
||||
<Value>214</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
|
||||
<Value>519</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Link>
|
||||
<Link>
|
||||
<Identifier>(0x6299b60b, 0x63373c3e)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x625d022b, 0x4c72dfaa)</BoxIdentifier>
|
||||
<BoxOutputIndex>0</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x2b584b95, 0x7008d0de)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
|
||||
<Value>183</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
|
||||
<Value>800</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
|
||||
<Value>240</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
|
||||
<Value>800</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Link>
|
||||
<Link>
|
||||
<Identifier>(0x7ed28c93, 0x1209a735)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x2b907080, 0x224d7576)</BoxIdentifier>
|
||||
<BoxOutputIndex>0</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x29c00b5a, 0x38e642d5)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1b32c44c, 0x1905e0e9)</Identifier>
|
||||
<Value>146</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x358ae8b5, 0x0f8bacd1)</Identifier>
|
||||
<Value>432</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x3f0a3b27, 0x570913d2)</Identifier>
|
||||
<Value>214</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x6267b5c5, 0x676e3e42)</Identifier>
|
||||
<Value>504</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Link>
|
||||
</Links>
|
||||
<Comments></Comments>
|
||||
<Metadata>
|
||||
<Entry>
|
||||
<Identifier>(0x0000775c, 0x000078ff)</Identifier>
|
||||
<Type>(0x3bcce5d2, 0x43f2d968)</Type>
|
||||
<Data>[{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"height":320,"identifier":"(0x1586c3d8, 0x35a029ef)","index":0,"name":"Default window","parentIdentifier":"(0xffffffff, 0xffffffff)","type":1,"width":480},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"identifier":"(0x4cfffb67, 0x1d6c7d8c)","index":0,"name":"Default tab","parentIdentifier":"(0x1586c3d8, 0x35a029ef)","type":2},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":0,"identifier":"(0x3e00f59d, 0x6e47aad3)","index":0,"name":"Empty","parentIdentifier":"(0x4cfffb67, 0x1d6c7d8c)","type":0}]</Data>
|
||||
</Entry>
|
||||
</Metadata>
|
||||
</OpenViBE-Scenario>
|
||||
+434
@@ -0,0 +1,434 @@
|
||||
<OpenViBE-Scenario>
|
||||
<FormatVersion>2</FormatVersion>
|
||||
<Creator>OpenViBE Designer</Creator>
|
||||
<CreatorVersion>2.2.0</CreatorVersion>
|
||||
<Settings></Settings>
|
||||
<Inputs></Inputs>
|
||||
<Outputs></Outputs>
|
||||
<Boxes>
|
||||
<Box>
|
||||
<Identifier>(0x00001d5f, 0x00007a11)</Identifier>
|
||||
<Name>Expected</Name>
|
||||
<AlgorithmClassIdentifier>(0x336a3d9a, 0x753f1ba4)</AlgorithmClassIdentifier>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x544a003e, 0x6dcba5f6)</TypeIdentifier>
|
||||
<Name>Output stream</Name>
|
||||
</Output>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Output stimulation</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
|
||||
<Name>Filename</Name>
|
||||
<DefaultValue></DefaultValue>
|
||||
<Value>${Player_ScenarioDirectory}/data/Expected_stimulation.csv</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>192</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>432</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x30a4e5c9, 0x83502953)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0xa9cdc629, 0xb153eb33)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x00001d5f, 0x00007a12)</Identifier>
|
||||
<Name>Found</Name>
|
||||
<AlgorithmClassIdentifier>(0x336a3d9a, 0x753f1ba4)</AlgorithmClassIdentifier>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x544a003e, 0x6dcba5f6)</TypeIdentifier>
|
||||
<Name>Output stream</Name>
|
||||
</Output>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Output stimulation</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
|
||||
<Name>Filename</Name>
|
||||
<DefaultValue></DefaultValue>
|
||||
<Value>${Player_ScenarioDirectory}/data/Found_stimulation.csv</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>160</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>560</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x30a4e5c9, 0x83502953)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0xa9cdc629, 0xb153eb33)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x0000555d, 0x00004472)</Identifier>
|
||||
<Name>Stimulation listener</Name>
|
||||
<AlgorithmClassIdentifier>(0x65731e1d, 0x47de5276)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Stimulation stream 1</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0xa88b3667, 0x0871638c)</TypeIdentifier>
|
||||
<Name>Log level to use</Name>
|
||||
<DefaultValue>Information</DefaultValue>
|
||||
<Value>Information</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>272</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>640</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0xf451ad91, 0x14c75f86)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xfba64161, 0x65304e21)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x107f1920, 0x151fda5f)</Identifier>
|
||||
<Name>Player Controller</Name>
|
||||
<AlgorithmClassIdentifier>(0x5f426dce, 0x08456e13)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Stimulations</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation name</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0xcc14d8d6, 0xf27ecb73)</TypeIdentifier>
|
||||
<Name>Action to perform</Name>
|
||||
<DefaultValue>Pause</DefaultValue>
|
||||
<Value>Stop</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>336</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>368</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x568d148e, 0x650792b3)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x006cdafc)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x2cc3b99b, 0x2d88ee53)</Identifier>
|
||||
<Name>Kappa coefficient</Name>
|
||||
<AlgorithmClassIdentifier>(0x160d8f1b, 0xd864c5bb)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Expected stimulations</Name>
|
||||
</Input>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Found stimulations</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x544a003e, 0x6dcba5f6)</TypeIdentifier>
|
||||
<Name>Confusion Matrix</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
|
||||
<Name>Amount of class</Name>
|
||||
<DefaultValue>2</DefaultValue>
|
||||
<Value>3</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation of class 1</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Number_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation of class 2</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Number_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_01</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Stimulation of class 3</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Number_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_02</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>272</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>480</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x08859f27, 0x4f7b5879)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x017d49da)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>3</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xf191c1c8, 0xa0123976)</Identifier>
|
||||
<Value></Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
<Box>
|
||||
<Identifier>(0x5bdbea30, 0x7c64f6a8)</Identifier>
|
||||
<Name>Timeout</Name>
|
||||
<AlgorithmClassIdentifier>(0x24fcd292, 0x5c8f6aa8)</AlgorithmClassIdentifier>
|
||||
<Inputs>
|
||||
<Input>
|
||||
<TypeIdentifier>(0x544a003e, 0x6dcba5f6)</TypeIdentifier>
|
||||
<Name>Input Stream</Name>
|
||||
</Input>
|
||||
</Inputs>
|
||||
<Outputs>
|
||||
<Output>
|
||||
<TypeIdentifier>(0x6f752dd0, 0x082a321e)</TypeIdentifier>
|
||||
<Name>Output Stimulations</Name>
|
||||
</Output>
|
||||
</Outputs>
|
||||
<Settings>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
|
||||
<Name>Timeout delay</Name>
|
||||
<DefaultValue>5</DefaultValue>
|
||||
<Value>1</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
<Setting>
|
||||
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
|
||||
<Name>Output Stimulation</Name>
|
||||
<DefaultValue>OVTK_StimulationId_Label_00</DefaultValue>
|
||||
<Value>OVTK_StimulationId_Label_00</Value>
|
||||
<Modifiability>false</Modifiability>
|
||||
</Setting>
|
||||
</Settings>
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<Identifier>(0x1fa7a38f, 0x54edbe0b)</Identifier>
|
||||
<Value>272</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x207c9054, 0x3c841b63)</Identifier>
|
||||
<Value>368</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0x4e7b798a, 0x183beafb)</Identifier>
|
||||
<Value>(0x1eaee00e, 0xdb05d34e)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc46b3d00, 0x3e0454e1)</Identifier>
|
||||
<Value>(0x00000000, 0x02337a82)</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc73e83ec, 0xf855c5bc)</Identifier>
|
||||
<Value>false</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xc80ce8af, 0xf699f813)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xce18836a, 0x9c0eb403)</Identifier>
|
||||
<Value>2</Value>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<Identifier>(0xcfad85b0, 0x7c6d841c)</Identifier>
|
||||
<Value>1</Value>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Box>
|
||||
</Boxes>
|
||||
<Links>
|
||||
<Link>
|
||||
<Identifier>(0x00001201, 0x00006cc6)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x00001d5f, 0x00007a12)</BoxIdentifier>
|
||||
<BoxOutputIndex>1</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x0000555d, 0x00004472)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
</Link>
|
||||
<Link>
|
||||
<Identifier>(0x00004a37, 0x00005687)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x00001d5f, 0x00007a12)</BoxIdentifier>
|
||||
<BoxOutputIndex>1</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x2cc3b99b, 0x2d88ee53)</BoxIdentifier>
|
||||
<BoxInputIndex>1</BoxInputIndex>
|
||||
</Target>
|
||||
</Link>
|
||||
<Link>
|
||||
<Identifier>(0x00004cd4, 0x00001a75)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x00001d5f, 0x00007a11)</BoxIdentifier>
|
||||
<BoxOutputIndex>0</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x5bdbea30, 0x7c64f6a8)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
</Link>
|
||||
<Link>
|
||||
<Identifier>(0x00005a6a, 0x000006b5)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x00001d5f, 0x00007a11)</BoxIdentifier>
|
||||
<BoxOutputIndex>1</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x2cc3b99b, 0x2d88ee53)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
</Link>
|
||||
<Link>
|
||||
<Identifier>(0x49781978, 0x10193d32)</Identifier>
|
||||
<Source>
|
||||
<BoxIdentifier>(0x5bdbea30, 0x7c64f6a8)</BoxIdentifier>
|
||||
<BoxOutputIndex>0</BoxOutputIndex>
|
||||
</Source>
|
||||
<Target>
|
||||
<BoxIdentifier>(0x107f1920, 0x151fda5f)</BoxIdentifier>
|
||||
<BoxInputIndex>0</BoxInputIndex>
|
||||
</Target>
|
||||
</Link>
|
||||
</Links>
|
||||
<Comments></Comments>
|
||||
<Metadata>
|
||||
<Entry>
|
||||
<Identifier>(0x0000775c, 0x000078ff)</Identifier>
|
||||
<Type>(0x3bcce5d2, 0x43f2d968)</Type>
|
||||
<Data>[{"boxIdentifier":"(0x2cc3b99b, 0x2d88ee53)","childCount":0,"identifier":"(0x086c5aaa, 0x55baf27b)","parentIdentifier":"(0xffffffff, 0xffffffff)","type":3},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"height":320,"identifier":"(0x2f9f0580, 0x412699f4)","name":"Default window","parentIdentifier":"(0xffffffff, 0xffffffff)","type":1,"width":480},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":1,"identifier":"(0x010246fe, 0x0eacec10)","index":0,"name":"Default tab","parentIdentifier":"(0x2f9f0580, 0x412699f4)","type":2},{"boxIdentifier":"(0xffffffff, 0xffffffff)","childCount":0,"identifier":"(0x1fbe5a88, 0x65840069)","index":0,"name":"Empty","parentIdentifier":"(0x010246fe, 0x0eacec10)","type":0}]</Data>
|
||||
</Entry>
|
||||
</Metadata>
|
||||
</OpenViBE-Scenario>
|
||||
+1510
File diff suppressed because it is too large
Load Diff
+5
@@ -0,0 +1,5 @@
|
||||
<OpenViBE-SettingsOverride>
|
||||
<SettingValue>2.693394e-001 -2.082757e-001 2.391615e-001 2.344401e-001 3.927157e-001 2.381559e-001 1.105450e-001 5.748063e-001 3.098411e-001 2.888676e-001 1.972432e-001 -2.803966e-001 8.610541e-002 -2.669093e-001 -2.873429e-001 -3.080204e-001 -2.313958e-001 -3.049153e-001 -3.205304e-001 -4.424281e-001 -2.981316e-001 -3.624890e-001 -2.713850e-002 -7.049823e-001 -1.550608e-002 -1.321822e-001 1.119925e-001 1.023369e-002 5.826165e-002 -2.615791e-001 -2.637424e-001 -3.941850e-001 4.185020e-001 1.442614e-001 3.069018e-001 3.027673e-001 3.956899e-001 2.814762e-001 2.776705e-001 3.540791e-001 2.828738e-001 3.027926e-001 3.106658e-001 2.946954e-001 8.165735e-001 3.035239e-001 1.979707e-001 2.325919e-001 1.767888e-001 -1.389007e-001 -2.142701e-001 6.029197e-002 1.522051e-001 1.241781e-001 9.543869e-002 2.155692e-001 2.680507e-001 3.076862e-001 3.604533e-001 3.075757e-001 2.513993e-001 2.252315e-001 3.295531e-001 2.891706e-001 4.002560e-001 3.100291e-001 </SettingValue>
|
||||
<SettingValue>6</SettingValue>
|
||||
<SettingValue>11</SettingValue>
|
||||
</OpenViBE-SettingsOverride>
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
Time:1x1,End Time,Noise 1:,Event Id,Event Date,Event Duration
|
||||
0.2705078125,0.3398437500,0.0,33026,0.2705078125,0.0
|
||||
0.3398437500,0.5419921875,0.0,33024,0.3398437500,0.0
|
||||
0.5419921875,0.6796875000,0.0,33026,0.5419921875,0.0
|
||||
0.6796875000,0.7099609375,0.0,33024,0.6796875000,0.0
|
||||
0.7099609375,0.8125000000,0.0,33025,0.7099609375,0.0
|
||||
0.8125000000,1.0195312500,0.0,33026,0.8125000000,0.0
|
||||
1.0195312500,1.0839843750,0.0,33024,1.0195312500,0.0
|
||||
1.0839843750,1.3544921875,0.0,33026,1.0839843750,0.0
|
||||
1.3544921875,1.3593750000,0.0,33026,1.3544921875,0.0
|
||||
1.3593750000,1.4199218750,0.0,33024,1.3593750000,0.0
|
||||
1.4199218750,1.6259765625,0.0,33025,1.4199218750,0.0
|
||||
1.6259765625,1.6992187500,0.0,33026,1.6259765625,0.0
|
||||
1.6992187500,1.8964843750,0.0,33024,1.6992187500,0.0
|
||||
1.8964843750,2.0390625000,0.0,33026,1.8964843750,0.0
|
||||
2.0390625000,2.1298828125,0.0,33024,2.0390625000,0.0
|
||||
2.1298828125,2.1679687500,0.0,33025,2.1298828125,0.0
|
||||
2.1679687500,2.3798828125,0.0,33026,2.1679687500,0.0
|
||||
2.3798828125,2.4384765625,0.0,33024,2.3798828125,0.0
|
||||
2.4384765625,2.7099609375,0.0,33026,2.4384765625,0.0
|
||||
2.7099609375,2.7197265625,0.0,33026,2.7099609375,0.0
|
||||
2.7197265625,2.8398437500,0.0,33024,2.7197265625,0.0
|
||||
2.8398437500,2.9804687500,0.0,33025,2.8398437500,0.0
|
||||
2.9804687500,3.0595703125,0.0,33026,2.9804687500,0.0
|
||||
3.0595703125,3.2519531250,0.0,33024,3.0595703125,0.0
|
||||
3.2519531250,3.3994140625,0.0,33026,3.2519531250,0.0
|
||||
3.3994140625,3.5224609375,0.0,33024,3.3994140625,0.0
|
||||
3.5224609375,3.5498046875,0.0,33026,3.5224609375,0.0
|
||||
3.5498046875,3.7392578125,0.0,33025,3.5498046875,0.0
|
||||
3.7392578125,3.7939453125,0.0,33024,3.7392578125,0.0
|
||||
3.7939453125,4.0644531250,0.0,33026,3.7939453125,0.0
|
||||
4.0644531250,4.0791015625,0.0,33026,4.0644531250,0.0
|
||||
4.0791015625,4.2597656250,0.0,33024,4.0791015625,0.0
|
||||
4.2597656250,4.3359375000,0.0,33025,4.2597656250,0.0
|
||||
4.3359375000,4.4199218750,0.0,33026,4.3359375000,0.0
|
||||
4.4199218750,4.6064453125,0.0,33024,4.4199218750,0.0
|
||||
4.6064453125,4.7597656250,0.0,33026,4.6064453125,0.0
|
||||
4.7597656250,4.8779296875,0.0,33024,4.7597656250,0.0
|
||||
4.8779296875,4.9697265625,0.0,33026,4.8779296875,0.0
|
||||
4.9697265625,5.0996093750,0.0,33025,4.9697265625,0.0
|
||||
5.0996093750,5.1484375000,0.0,33024,5.0996093750,0.0
|
||||
5.1484375000,5.4199218750,0.0,33026,5.1484375000,0.0
|
||||
5.4199218750,5.4394531250,0.0,33026,5.4199218750,0.0
|
||||
5.4394531250,5.6796875000,0.0,33024,5.4394531250,0.0
|
||||
5.6796875000,5.6904296875,0.0,33025,5.6796875000,0.0
|
||||
5.6904296875,5.7792968750,0.0,33026,5.6904296875,0.0
|
||||
5.7792968750,5.9619140625,0.0,33024,5.7792968750,0.0
|
||||
5.9619140625,6.1191406250,0.0,33026,5.9619140625,0.0
|
||||
6.1191406250,6.2324218750,0.0,33024,6.1191406250,0.0
|
||||
6.2324218750,6.3896484375,0.0,33026,6.2324218750,0.0
|
||||
6.3896484375,6.4599609375,0.0,33025,6.3896484375,0.0
|
||||
6.4599609375,6.5039062500,0.0,33024,6.4599609375,0.0
|
||||
6.5039062500,6.7744140625,0.0,33026,6.5039062500,0.0
|
||||
6.7744140625,6.7998046875,0.0,33026,6.7744140625,0.0
|
||||
6.7998046875,7.0458984375,0.0,33024,6.7998046875,0.0
|
||||
7.0458984375,7.0996093750,0.0,33026,7.0458984375,0.0
|
||||
7.0996093750,7.1396484375,0.0,33025,7.0996093750,0.0
|
||||
7.1396484375,7.3164062500,0.0,33024,7.1396484375,0.0
|
||||
7.3164062500,7.4794921875,0.0,33026,7.3164062500,0.0
|
||||
7.4794921875,7.5878906250,0.0,33024,7.4794921875,0.0
|
||||
7.5878906250,7.8095703125,0.0,33026,7.5878906250,0.0
|
||||
7.8095703125,7.8193359375,0.0,33025,7.8095703125,0.0
|
||||
7.8193359375,7.8583984375,0.0,33024,7.8193359375,0.0
|
||||
7.8583984375,8.1298828125,0.0,33026,7.8583984375,0.0
|
||||
8.1298828125,8.1591796875,0.0,33026,8.1298828125,0.0
|
||||
8.1591796875,8.4003906250,0.0,33024,8.1591796875,0.0
|
||||
8.4003906250,8.4990234375,0.0,33026,8.4003906250,0.0
|
||||
8.4990234375,8.5195312500,0.0,33024,8.4990234375,0.0
|
||||
8.5195312500,8.6718750000,0.0,33025,8.5195312500,0.0
|
||||
8.6718750000,8.8398437500,0.0,33026,8.6718750000,0.0
|
||||
8.8398437500,8.9423828125,0.0,33024,8.8398437500,0.0
|
||||
8.9423828125,9.1796875000,0.0,33026,8.9423828125,0.0
|
||||
9.1796875000,9.2138671875,0.0,33024,9.1796875000,0.0
|
||||
9.2138671875,9.2294921875,0.0,33026,9.2138671875,0.0
|
||||
9.2294921875,9.4843750000,0.0,33025,9.2294921875,0.0
|
||||
9.4843750000,9.5195312500,0.0,33026,9.4843750000,0.0
|
||||
9.5195312500,9.7558593750,0.0,33024,9.5195312500,0.0
|
||||
9.7558593750,9.8593750000,0.0,33026,9.7558593750,0.0
|
||||
9.8593750000,9.9394531250,0.0,33024,9.8593750000,0.0
|
||||
9.9394531250,10.026367188,0.0,33025,9.9394531250,0.0
|
||||
10.026367188,10.106445313,0.0,33026,10.026367188,0.0
|
||||
|
+81
@@ -0,0 +1,81 @@
|
||||
Time:1x1,End Time,Noise 1:,Event Id,Event Date,Event Duration
|
||||
0.2715078125,0.3408437500,0.0,33026,0.2715078125,0.0
|
||||
0.3408437500,0.5429921875,0.0,33025,0.3408437500,0.0
|
||||
0.5429921875,0.6806875000,0.0,33026,0.5429921875,0.0
|
||||
0.6806875000,0.7109609375,0.0,33025,0.6806875000,0.0
|
||||
0.7109609375,0.8135000000,0.0,33025,0.7109609375,0.0
|
||||
0.8135000000,1.0295312500,0.0,33026,0.8135000000,0.0
|
||||
1.0295312500,1.0939843750,0.0,33024,1.0295312500,0.0
|
||||
1.0939843750,1.3569921875,0.0,33026,1.0939843750,0.0
|
||||
1.3569921875,1.3693750000,0.0,33026,1.3569921875,0.0
|
||||
1.3693750000,1.4299218750,0.0,33026,1.3693750000,0.0
|
||||
1.4299218750,1.6359765625,0.0,33025,1.4299218750,0.0
|
||||
1.6359765625,1.7092187500,0.0,33026,1.6359765625,0.0
|
||||
1.7092187500,1.9064843750,0.0,33024,1.7092187500,0.0
|
||||
1.9064843750,2.0490625000,0.0,33026,1.9064843750,0.0
|
||||
2.0490625000,2.1398828125,0.0,33024,2.0490625000,0.0
|
||||
2.1398828125,2.1779687500,0.0,33024,2.1398828125,0.0
|
||||
2.1779687500,2.3898828125,0.0,33026,2.1779687500,0.0
|
||||
2.3898828125,2.4484765625,0.0,33024,2.3898828125,0.0
|
||||
2.4484765625,2.7159609375,0.0,33026,2.4484765625,0.0
|
||||
2.7159609375,2.7297265625,0.0,33026,2.7159609375,0.0
|
||||
2.7297265625,2.8498437500,0.0,33024,2.7297265625,0.0
|
||||
2.8498437500,2.9904687500,0.0,33026,2.8498437500,0.0
|
||||
2.9904687500,3.0695703125,0.0,33026,2.9904687500,0.0
|
||||
3.0695703125,3.2619531250,0.0,33024,3.0695703125,0.0
|
||||
3.2619531250,3.4094140625,0.0,33024,3.2619531250,0.0
|
||||
3.4094140625,3.5324609375,0.0,33024,3.4094140625,0.0
|
||||
3.5324609375,3.5598046875,0.0,33024,3.5324609375,0.0
|
||||
3.5598046875,3.7492578125,0.0,33025,3.5598046875,0.0
|
||||
3.7492578125,3.8039453125,0.0,33024,3.7492578125,0.0
|
||||
3.8039453125,4.0744531250,0.0,33025,3.8039453125,0.0
|
||||
4.0744531250,4.0891015625,0.0,33026,4.0744531250,0.0
|
||||
4.0891015625,4.2697656250,0.0,33024,4.0891015625,0.0
|
||||
4.2697656250,4.3459375000,0.0,33025,4.2697656250,0.0
|
||||
4.3459375000,4.4299218750,0.0,33026,4.3459375000,0.0
|
||||
4.4299218750,4.6164453125,0.0,33024,4.4299218750,0.0
|
||||
4.6164453125,4.7697656250,0.0,33026,4.6164453125,0.0
|
||||
4.7697656250,4.8879296875,0.0,33024,4.7697656250,0.0
|
||||
4.8879296875,4.9797265625,0.0,33026,4.8879296875,0.0
|
||||
4.9797265625,5.1096093750,0.0,33025,4.9797265625,0.0
|
||||
5.1096093750,5.1584375000,0.0,33024,5.1096093750,0.0
|
||||
5.1584375000,5.4299218750,0.0,33026,5.1584375000,0.0
|
||||
5.4299218750,5.4494531250,0.0,33026,5.4299218750,0.0
|
||||
5.4494531250,5.6896875000,0.0,33024,5.4494531250,0.0
|
||||
5.6896875000,5.7004296875,0.0,33025,5.6896875000,0.0
|
||||
5.7004296875,5.7892968750,0.0,33026,5.7004296875,0.0
|
||||
5.7892968750,5.9719140625,0.0,33024,5.7892968750,0.0
|
||||
5.9719140625,6.1291406250,0.0,33026,5.9719140625,0.0
|
||||
6.1291406250,6.2424218750,0.0,33024,6.1291406250,0.0
|
||||
6.2424218750,6.3996484375,0.0,33026,6.2424218750,0.0
|
||||
6.3996484375,6.4699609375,0.0,33025,6.3996484375,0.0
|
||||
6.4699609375,6.5139062500,0.0,33024,6.4699609375,0.0
|
||||
6.5139062500,6.7844140625,0.0,33026,6.5139062500,0.0
|
||||
6.7844140625,6.8098046875,0.0,33026,6.7844140625,0.0
|
||||
6.8098046875,7.0558984375,0.0,33024,6.8098046875,0.0
|
||||
7.0558984375,7.1096093750,0.0,33026,7.0558984375,0.0
|
||||
7.1096093750,7.1496484375,0.0,33025,7.1096093750,0.0
|
||||
7.1496484375,7.3264062500,0.0,33024,7.1496484375,0.0
|
||||
7.3264062500,7.4894921875,0.0,33026,7.3264062500,0.0
|
||||
7.4894921875,7.5978906250,0.0,33024,7.4894921875,0.0
|
||||
7.5978906250,7.8155703125,0.0,33026,7.5978906250,0.0
|
||||
7.8155703125,7.8293359375,0.0,33025,7.8155703125,0.0
|
||||
7.8293359375,7.8683984375,0.0,33024,7.8293359375,0.0
|
||||
7.8683984375,8.1398828125,0.0,33026,7.8683984375,0.0
|
||||
8.1398828125,8.1691796875,0.0,33026,8.1398828125,0.0
|
||||
8.1691796875,8.4103906250,0.0,33024,8.1691796875,0.0
|
||||
8.4103906250,8.5090234375,0.0,33026,8.4103906250,0.0
|
||||
8.5090234375,8.5295312500,0.0,33024,8.5090234375,0.0
|
||||
8.5295312500,8.6818750000,0.0,33025,8.5295312500,0.0
|
||||
8.6818750000,8.8498437500,0.0,33026,8.6818750000,0.0
|
||||
8.8498437500,8.9523828125,0.0,33024,8.8498437500,0.0
|
||||
8.9523828125,9.1896875000,0.0,33026,8.9523828125,0.0
|
||||
9.1896875000,9.2238671875,0.0,33024,9.1896875000,0.0
|
||||
9.2238671875,9.2394921875,0.0,33026,9.2238671875,0.0
|
||||
9.2394921875,9.4943750000,0.0,33025,9.2394921875,0.0
|
||||
9.4943750000,9.5295312500,0.0,33026,9.4943750000,0.0
|
||||
9.5295312500,9.7658593750,0.0,33024,9.5295312500,0.0
|
||||
9.7658593750,9.8693750000,0.0,33026,9.7658593750,0.0
|
||||
9.8693750000,9.9494531250,0.0,33024,9.8693750000,0.0
|
||||
9.9494531250,10.126367188,0.0,33025,9.9494531250,0.0
|
||||
10.126367188,10.206445313,0.0,33026,100126367188,0.0
|
||||
|
+35
@@ -0,0 +1,35 @@
|
||||
<Statistic>
|
||||
<Stimulations-list>
|
||||
<Stimulation>
|
||||
<Identifier>(0x00000000, 0x00008100)</Identifier>
|
||||
<Label>OVTK_StimulationId_Label_00</Label>
|
||||
<Count>500</Count>
|
||||
</Stimulation>
|
||||
</Stimulations-list>
|
||||
<Channel-list>
|
||||
<Channel>
|
||||
<Name>sinusOsc 1</Name>
|
||||
<Maximum>2.9959498935</Maximum>
|
||||
<Minimum>-2.9958162250</Minimum>
|
||||
<Mean>0.0037440891</Mean>
|
||||
</Channel>
|
||||
<Channel>
|
||||
<Name>sinusOsc 2</Name>
|
||||
<Maximum>2.9955453841</Maximum>
|
||||
<Minimum>-2.9959417073</Minimum>
|
||||
<Mean>0.0021516936</Mean>
|
||||
</Channel>
|
||||
<Channel>
|
||||
<Name>sinusOsc 3</Name>
|
||||
<Maximum>2.9959425273</Maximum>
|
||||
<Minimum>-2.9959158246</Minimum>
|
||||
<Mean>0.0004745227</Mean>
|
||||
</Channel>
|
||||
<Channel>
|
||||
<Name>sinusOsc 4</Name>
|
||||
<Maximum>2.9959140852</Maximum>
|
||||
<Minimum>-2.9959417073</Minimum>
|
||||
<Mean>0.0012721927</Mean>
|
||||
</Channel>
|
||||
</Channel-list>
|
||||
</Statistic>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<OpenViBE-Classifier-Box XMLVersion="3">
|
||||
<Strategy-Identifier class-id="(0xffffffff, 0xffffffff)">Native</Strategy-Identifier>
|
||||
<Algorithm-Identifier class-id="(0x2ba17a3c, 0x1bd46d84)">Linear Discrimimant Analysis (LDA)</Algorithm-Identifier>
|
||||
<Stimulations>
|
||||
<Class-Stimulation class-id="1">OVTK_GDF_Left</Class-Stimulation>
|
||||
<Class-Stimulation class-id="2">OVTK_GDF_Right</Class-Stimulation>
|
||||
</Stimulations>
|
||||
<OpenViBE-Classifier>
|
||||
<LDA>
|
||||
<Classes>1 2</Classes>
|
||||
<Weights> -1.390939e+01 -3.837006e+01 -3.951661e+00 1.267055e+02 8.129262e+00 1.130540e+02</Weights>
|
||||
<Bias-distance>1.04657</Bias-distance>
|
||||
<Coefficient-probability>1.15779</Coefficient-probability>
|
||||
</LDA>
|
||||
</OpenViBE-Classifier>
|
||||
</OpenViBE-Classifier-Box>
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
|
||||
g_offset = nil
|
||||
g_duration = nil
|
||||
|
||||
-- this function is called when the box is initialized
|
||||
function initialize(box)
|
||||
|
||||
dofile(box:get_config("${Path_Data}") .. "/plugins/stimulation/lua-stimulator-stim-codes.lua")
|
||||
|
||||
g_offset = box:get_setting(2)
|
||||
g_duration = box:get_setting(3)
|
||||
end
|
||||
|
||||
-- this function is called when the box is uninitialized
|
||||
function uninitialize(box)
|
||||
|
||||
end
|
||||
|
||||
function wait_until(box, time)
|
||||
while box:get_current_time() < time do
|
||||
box:sleep()
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function wait_for(box, duration)
|
||||
wait_until(box, box:get_current_time() + duration)
|
||||
end
|
||||
|
||||
|
||||
|
||||
function process(box)
|
||||
-- loops on every received stimulation for a given input
|
||||
while box:keep_processing() do
|
||||
for stimulation = 1, box:get_stimulation_count(1) do
|
||||
|
||||
-- gets the received stimulation
|
||||
identifier, date, duration = box:get_stimulation(1, 1)
|
||||
-- discards it
|
||||
box:remove_stimulation(1, 1)
|
||||
|
||||
-- delay the OVTK_GDF_Left and Right
|
||||
if identifier == OVTK_GDF_Left or identifier == OVTK_GDF_Right then
|
||||
box:send_stimulation(1, OVTK_GDF_Correct, date+g_offset, 0)
|
||||
box:send_stimulation(1, OVTK_GDF_Incorrect, date+g_offset+g_duration, 0)
|
||||
end
|
||||
end
|
||||
box:sleep()
|
||||
end
|
||||
end
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
+29
@@ -0,0 +1,29 @@
|
||||
def setUp(self):
|
||||
import os
|
||||
import shutil
|
||||
ov_binany_path=os.environ['OV_BINARY_PATH']
|
||||
self.terminal = App.open("xterm -e " + ov_binany_path +"/openvibe-designer.sh --no-session-management --play-fast Test_ROCCurve.xml")
|
||||
while not self.terminal.window():
|
||||
wait(1)
|
||||
|
||||
#def takepicture:
|
||||
|
||||
#dir = os.path.dirname(getBundlePath()) # the folder, where your script is stored
|
||||
#img = capture(SCREEN) # snapshots the screen
|
||||
#shutil.move(img, os.path.join(dir, "shot.png"))
|
||||
|
||||
def testROCCurve(self):
|
||||
import os
|
||||
import shutil
|
||||
try:
|
||||
wait("ROCCurveResult.png",60)
|
||||
assert(exists("ROCCurveResult.png"))
|
||||
except (FindFailed, AssertionError):
|
||||
print "Unable to find the required png"
|
||||
dir = os.path.dirname(getBundlePath()) # the folder, where your script is stored
|
||||
img = capture(SCREEN) # snapshots the screen
|
||||
shutil.move(img, os.path.join(dir, "screenshot.png"))
|
||||
raise
|
||||
|
||||
def tearDown(self):
|
||||
self.terminal.close()
|
||||
@@ -0,0 +1,46 @@
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (argc != 2)
|
||||
{
|
||||
std::cout << "Usage: test_evaluation <filename>\n";
|
||||
return 3;
|
||||
}
|
||||
|
||||
std::ifstream file(argv[1], std::ios::in);
|
||||
|
||||
if (file.good() && !file.bad() && file.is_open()) // ...
|
||||
{
|
||||
std::string line;
|
||||
while (getline(file, line))
|
||||
{
|
||||
if (line.find("Final value of Kappa") != std::string::npos)
|
||||
{
|
||||
std::cout << "Found kappa line " << line << std::endl;
|
||||
|
||||
const size_t pos = line.rfind(' ');
|
||||
const std::string cutline = line.substr(pos);
|
||||
|
||||
std::stringstream kappa(cutline);
|
||||
|
||||
double coefficient;
|
||||
kappa >> coefficient;
|
||||
|
||||
if (coefficient != 0.840677)
|
||||
{
|
||||
std::cout << "Wrong Kappa coefficient. Found " << coefficient << " instead of 0.840677" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
std::cout << "Test ok" << std::endl;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
std::cout << "Error: Problem opening [" << argv[1] << "]\n";
|
||||
|
||||
return 2;
|
||||
}
|
||||
Reference in New Issue
Block a user