Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[JAVA] Response time of concatenated responses

Hello, I once asked a question, regarding concatenating three responses. Thank you for solving my problem. In addition, I also need to measure the response time of the third response because the result file provides only the response time of the first response. Could you help me out? Thank you!

https://forum.cogsci.nl/discussion/7909/sort-the-concatenated-response-and-compare-it-to-the-answer#latest

Comments

  • Hi Soan,

    Could you share your experiment with us? How to measure response times depends a bit on how you structure your response collection. Before I can advice you something I would need to know what you did.

    Thanks,

    Eduard

    Buy Me A Coffee

  • Hi @Soan,

    I'm joining in the conversation as I had responded to the previous thread (https://forum.cogsci.nl/discussion/7909/sort-the-concatenated-response-and-compare-it-to-the-answer#latest). If you're referring to the same program, in principle you would just need to make sure that you include response3 in the list of variables included in the logger's output. The code did store each response separately:

    var myArray = new String()
    myArray =vars.concatenated.toString()
    myArray=myArray.split('')
    console.log(myArray)
    myArray=myArray.sort()
    console.log(myArray)
    
    // saves each individual response in a separate variable (incouding these in the logger if you want them regostered in the output)
    // !! This example does not include a logger; you'd have to add it to your task where appropriate
    vars.response1=myArray[0]
    vars.response2=myArray[1]
    vars.response3=myArray[2]
    
    // assenmbles the sorted array into a string variable
    // Add sorted_concatenaed to the logger if you want it saved
    vars.sorted_concatenated=myArray.toString()
    console.log ("Sorted response sequence: "+vars.sorted_concatenated)
    

    If you're referring to a different program, please provide further information or a simplified version of your task so that we can take a look

    Best,

    Fabrice (on holidays)

    Buy Me A Coffee

  • Thank you so much!

    I have tried that and checked that the 'response3' recorded nicely.

    But I don't see its response time. How can I measure its response time? Thank you so much...!

  • Hi Soan,

    in one of the comments of the code example Fab has written:

    // !! This example does not include a logger; you'd have to add it to your task where appropriate
    

    which is the reason the variable does not appear in the data file. Right?

    Buy Me A Coffee

  • Thank you! I had put the variable 'response3' on the logger and checked the variable well on the spreadsheet. But there was no response time for the variable.

    I searched old posts, and found a way around it; putting an empty slide after the keyboard response and calculating the difference between the previous slide of the keyboard and the post slide.

    Thank you so much for helping me out!

  • edited August 2022

    Could you please help me to calculate the response time?

    What I know: The response time of the first answer to each problem

    What I want to know: The total duration to enter all the three answers to each problem

    The participants press three keys to answer each problem. For example, 'abc', as exactly written on the code of Fabrice.).

    I tried to calculate the amount of time taken to enter the concatenated responses, using the difference between

    'time_problem' and 'time_final_RT.' However, there is barely any difference between them (285ms), which makes no sense.

    'response time_problem_solving_keyboard' is not the one that I am looking for because it only records the response time of the first response, for example, 'a.' How can you keep track of the duration of typing three answers? Below is a screenshot of my script. Thank you.

    (I referred to this post: https://forum.cogsci.nl/discussion/8024/using-time-variables-to-show-how-response-time-is-calculated. )

  • 'time_problem' and 'time_final_RT.' However, there is barely any difference between them (285ms), which makes no sense.

    This is because every time the loop is executed (for every iteration), the variables defined in the loop are overwritten. Specifically time_problem and time_final_RT.

    The easiest would be to have another variable and adding the time to push a button to the total RT. For that you need to initialize the total RT before the loop. Something like that:

    // initiliaze variable
    vars.total_RT = 0
    

    and in tracking_problem_solving :

    // add the time to press a key to the total time
    vars.total_RT = vars.total_RT + vars.current_RT
    

    Note, I don't see in the code how vars.current_RT is computed, but from your description of the situation it seems like you know how to do that. Let us know if that is still a problem

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games