{"id":18107354,"url":"https://github.com/itsdfish/temporalmultipletrace.jl","last_synced_at":"2025-06-21T16:40:20.412Z","repository":{"id":50661059,"uuid":"517402026","full_name":"itsdfish/TemporalMultipleTrace.jl","owner":"itsdfish","description":"A Julia package for the Formal Multiple Trace Theory of Temporal Preparation","archived":false,"fork":false,"pushed_at":"2023-06-03T10:31:10.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T03:41:25.297Z","etag":null,"topics":["cognitive-model","julia","julia-language","temporal-preparation"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsdfish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-24T18:13:59.000Z","updated_at":"2022-07-31T11:35:18.000Z","dependencies_parsed_at":"2025-06-06T03:36:57.969Z","dependency_job_id":"05c23340-c0cf-4efa-81f0-0af1a1cb0bea","html_url":"https://github.com/itsdfish/TemporalMultipleTrace.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itsdfish/TemporalMultipleTrace.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdfish%2FTemporalMultipleTrace.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdfish%2FTemporalMultipleTrace.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdfish%2FTemporalMultipleTrace.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdfish%2FTemporalMultipleTrace.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsdfish","download_url":"https://codeload.github.com/itsdfish/TemporalMultipleTrace.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsdfish%2FTemporalMultipleTrace.jl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259726448,"owners_count":22902176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cognitive-model","julia","julia-language","temporal-preparation"],"created_at":"2024-10-31T23:10:34.803Z","updated_at":"2025-06-13T22:03:31.926Z","avatar_url":"https://github.com/itsdfish.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TemporalMultipleTrace\n\nThis package provides a Julia implementation of the formalized multiple trace theory of temporal preparation (fMTP) as described in fMTP: A Unifying Computational Framework of Temporal\nPreparation Across Time Scales. The model is basically a neural network consisting of layer of time sensitive nodes which are connected to an output layer consisting of an inhibition node and an activation node. Mean motor response time is a linear function of the ratio of inhibition to activation. The weights between time nodes and motor nodes are based on memory traces containing activation and inhibition of previous experiences. The influence of old memory traces decay across time. These dynamics allow the model to produce foreperiod effects, sequential effects, and distribution effects. \n\n# Installation \n\nTo install the package, enter the following in to the REPL:\n\n```julia \n] add https://github.com/itsdfish/TemporalMultipleTrace.jl\n```\n\n# Basic Usage\n\nThe code block below provides an example of basic usage. \n```julia \nusing TemporalMultipleTrace\n\n# sample foreperiods from a discrete uniform distribution\nfps = rand([.2,4,.4], 20)\n# unique foreperiods\nufps = unique(fps)\n# a vector of time points corresponding to maximum fire rate of each time cell \nτs = range(.05, 5, length=50)\n# temporal smearing parameter (controls width of activation function)\nκ = 4\n# trace decay rate \nλ = 2.81\n# memory persistance (decay asymptote)\nc = 1e-4\n\n# cache activation and inhibition weights \nact_ω,inhib_ω = precompute_weights(τs, κ, ufps)\n# model object\nmodel = FMTPModel(;τs, κ, λ, c, act_ω, inhib_ω)\n# motor preparation values (ratio of inhabition to activation)\nprep = motor_preps_func(model, fps)\n```\n\n# References\n\nSalet, J. M., Kruijne, W., van Rijn, H., Los, S. A., \u0026 Meeter, M. (2022). FMTP: A unifying computational framework of temporal preparation across time scales. Psychological Review.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdfish%2Ftemporalmultipletrace.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsdfish%2Ftemporalmultipletrace.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsdfish%2Ftemporalmultipletrace.jl/lists"}