Howdy, Stranger!

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

Supported by

[solved] Nested Loops

edited September 2012 in OpenSesame

Hi Sebasstian,

Is it possible to create Nested Loops as used within E-Prime? I have existing projects that I would like to convert into OpenSesame to use instead. It seems that without using a sequence for every loop, all cycles need to be completed.

In the past I used the E-Prime Sampling functionality that could run 1 random sample from the total cycle list. I don't seem to find an option to do this without using inline scripting.

Is there a plan to incorporate this functionality into future versions?

Thanks

Anthony McGuffie

Comments

  • edited 9:01AM

    Hi Anthony,

    It is possible to only run one random cycle within a loop by using the 'Repeat' option. For example, if you were to run a loop with 5 cycles, you could set the order to random and the number of repeats to 0.20. In this case one random cycle would be run.

    I admit this is a bit of a workaround, but you could use this to get your experiments going for now. I'll leave it to Sebastiaan to answer your question regarding the future implementations ;)

    Hope this helps!

    Edwin

  • edited 9:01AM

    Hi Edwin,

    Thanks for the quick response. I just tried it and it does work ok. I did not know the repeat function could be set to less than 1.

    Cheers

    Anthony

  • edited 9:01AM
    I admit this is a bit of a workaround, but you could use this to get your experiments going for now. I'll leave it to Sebastiaan to answer your question regarding the future implementations

    Yes, the repeat value is a bit awkward, although it should work. For 0.27 there are some new features in the loop item, but not this particular one. I've marked it as a feature request for 0.28 (I've already declared an informal "feature freeze" for 0.27): https://github.com/smathot/OpenSesame/issues/101

    Cheers!

  • edited September 2012

    Hi Sebastiaan,

    Please note:

    I have just tried to set the number of cycles to 3 and the repeat to 0.33 to provide 1 random cycle and it shows a "zero or negative length" error.

    Cheers

    Anthony

  • Hi Anthony,

    That's just because 3 times 0.33 is 0.99. More specifically, the number of cycles that is actually executed is always the floor of the input number. The floor of 0.99 is 0.
    Therefore, if you set the repeat to 0.34 (0.34 * 3 = 1.02), 1 random cycle should be executed.

    Does this solve your problem?

    Best wishes,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited September 2012

    Hi Lotje,

    I did try to 'round' the result to 1 but I wasn't sure whether doing this would cause the loop to produce errors in lengthy experiments. The project I am creating at present has 6 x 150 trials with 4 nested loops so i raised this issue before participants starting testing.

    Cheers

    Anthony

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