exporl / apex

APEX 4: software platform for auditory behavioural and psychophysical experiments. This repository follows the major releases of APEX.
http://kuleuven.be/exporl/apex/
Other
10 stars 2 forks source link

Add example of convertParameterValue in resultsviewer #216

Open tomfrancart opened 6 years ago

tomfrancart commented 6 years ago

Add example experiment to examples/resultsviewer

Something along these lines should do it:

``

apex:resultsviewer.html function convertParameterValue(v) { var from = [1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15, 16 ,17 ,18 ,19 ,20, 21 ,22 ,23 ,24 ,25 ,26 ,27 ,28 ,29 ,30 ,31]; var to = [1 ,0.794 ,0.631 ,0.501 ,0.398 ,0.316 ,0.251 ,0.2,0.158 ,0.126, 0.1 ,0.0794 ,0.0631 ,0.0501 ,0.0398 ,0.0316 ,0.0251,0.02,0.0158, 0.0126 ,0.01 ,0.00794 ,0.00631 ,0.00501 ,0.00398 ,0.00316,0.00251, 0.002 ,0.00158 ,0.00126 ,0.001]; var I = jQuery.inArray(v, from); return to[I]; } true true false ``