sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
21d62e1053f7589fe6365cccd7c636d1781abf7879a605d8ce5f1f5b81a7b8fa | JavaScript | 16,917 | 7 | /*!***************************************************
* mark.js v8.11.1
* https://markjs.io/
* Copyright (c) 2014–2018, Julian Kühnel
* Released under the MIT license https://git.io/vwTVl
*****************************************************/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.e... |
8d76556f2d42e141a8857180e46e2c6111ad6e2e0facdc9738e5aec6282f4467 | JavaScript | 17,858 | 622 | /*
* searchtools.js_t
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilties for the full-text search.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
/**
* Porter Stemmer
*/
var Stemmer = function() {
var step2list = {
ational: 'ate',
... |
5b9facbcb36e5e15e409e2db42439fb8cbc1e43275e337a645bb3c76c3191b93 | JavaScript | 18,215 | 566 | /*
* searchtools.js
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
"use strict";
/**
* Simple result scoring code.
*/
if (typeof Scorer === "undefined") {
var S... |
b3019fee6a675367607f283c3f969860f3c6748ef520023edb56193f2093edf8 | JavaScript | 18,653 | 480 | import { NIFTI1 } from './nifti1.js';
import { Utils } from './utilities.js';
/**
* The NIFTI2 constructor.
* @constructor
* @property {boolean} littleEndian
* @property {number} dim_info
* @property {number[]} dims - image dimensions
* @property {number} intent_p1
* @property {number} intent_p2
* @property {nu... |
0ea5377c94dae806fe2b4130a81752e5683839987a92b1f578e393c7867b1924 | JavaScript | 19,480 | 1 | Search.setIndex({"docnames": ["index", "modules", "moosez"], "filenames": ["index.rst", "modules.rst", "moosez.rst"], "titles": ["Welcome to MOOSE\u2019s documentation!", "moosez", "moosez package"], "terms": {"index": [0, 2], "modul": [0, 1], "search": 0, "page": 0, "packag": 1, "submodul": 1, "constant": 1, "displai"... |
218fb1c1fc72e9af6b866f430be2a67fa376392b4db2f4dbf32772671b6ae55c | JavaScript | 19,530 | 6 | !function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){
// Underscore.js 1.13... |
b8603fb868dc48ea0d9ff2a4a4155240914c4cd88e0cf9eb0b5034c3b6d83210 | JavaScript | 19,694 | 253 | var NAVTREEINDEX0 =
{
"annotated.html":[1,0],
"args_8cc.html":[2,0,0,0],
"args_8h.html":[2,0,0,1],
"args_8h.html#a1ba04862fd670674501ccacc936e1952":[2,0,0,1,1],
"args_8h.html#a1ba04862fd670674501ccacc936e1952a789406d01073ca1782d86293dcfc0764":[2,0,0,1,1,0],
"args_8h.html#a1ba04862fd670674501ccacc936e1952ace2f1fbd249d24... |
cb2a2c36f3a5208bee2101db454f853a9c84b4ac31924193734f4e5172795291 | JavaScript | 20,731 | 619 | /*
* searchtools.js
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
"use strict";
/**
* Simple result scoring code.
*/
if (typeof Scorer === "undefined") {
var S... |
070219a8b45332f356023af7c8740a1914c66c4d4f7f06b834373e5381e52060 | JavaScript | 22,125 | 791 | function convertToId(search)
{
var result = '';
for (i=0;i<search.length;i++)
{
var c = search.charAt(i);
var cn = c.charCodeAt(0);
if (c.match(/[a-z0-9\u0080-\uFFFF]/))
{
result+=c;
}
else if (cn<16)
{
result+="_0"+cn.toString(16);
}
else
{
result+="_"+cn... |
ac1c666c4202949618a6ed6b149821fb7a0657d89d70040fdcb9c786512f3599 | JavaScript | 22,887 | 794 | /*
@licstart The following is the entire license notice for the JavaScript code in this file.
The MIT License (MIT)
Copyright (C) 1997-2020 by Dimitri van Heesch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to... |
227dc237b65445027834bc62afbd220f4bdf89bc50cc452f2bf539114167854f | JavaScript | 23,035 | 9 | /**
* Fuse.js v6.4.6 - Lightweight fuzzy-search (http://fusejs.io)
*
* Copyright (c) 2021 Kiro Risk (http://kiro.me)
* All Rights Reserved. Apache Software License 2.0
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
var e,t;e=this,t=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"sym... |
60bfc4a4bcdaf2dcf20f1c3d2a528fdf56f27b3ae5c4418366514defb3a7e3ba | JavaScript | 25,246 | 808 | /*
* websupport.js
* ~~~~~~~~~~~~~
*
* sphinx.websupport utilties for all documentation.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
(function($) {
$.fn.autogrow = function() {
return this.each(function() {
var textarea = this;
... |
3e61ad44de4625bdd7aa3b1ac8ddad355c919de8a23bd16fb36053901ff23cb9 | JavaScript | 25,355 | 808 | /*
* websupport.js
* ~~~~~~~~~~~~~
*
* sphinx.websupport utilities for all documentation.
*
* :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
(function($) {
$.fn.autogrow = function() {
return this.each(function() {
var textarea = this;... |
e8d039d87d8f443d02abb76df25715de53a329a7a35cb58d4767c08a574fbe00 | JavaScript | 25,449 | 761 | /*
* searchtools.js_t
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2018 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
/* Non-minified version JS is _stemmer.js if file is provided */
/**
* Porter Stemmer
*/
va... |
d41cd8595228079812671735507666845dde2e57c502e5853b1bd5cbd0b8ac5f | JavaScript | 28,617 | 1 | Search.setIndex({envversion:42,terms:{entropi:[15,11,13,16],four:[12,16,8],cvx_quiet:[15,8],prefix:[4,8],newcnstr:7,johan:9,whose:[15,2,13,5,6],accur:[7,13,16,8],aug:10,closest_toeplitz_sdp:3,concret:7,matlab:[1,2,3,4,5,8,7,9,10,11,12,13,14,15,16],under:[7,11,16,5],worth:13,merchant:5,pow_ab:15,everi:[1,8,11,12,14,16],... |
a798d4d4bd85f09e5cb0416c9f5e84e4c2c2bb887fe90c963275bad932cf6dee | JavaScript | 30,524 | 1 | Search.setIndex({docnames:["NoSeMazeControl","NoSeMazeControl/Analysis","NoSeMazeControl/Controllers","NoSeMazeControl/Designs","NoSeMazeControl/HelperFunctions","NoSeMazeControl/PyPulse","NoSeMazeControl/TrialLogic","NoSeMazeControl/Windows","NoSeMazeControl/daqface","NoSeMazeControl/main","NoSeMazeControl/modules","N... |
c5320154614bb0c5e1abc4fe0182ea1d863b9ae7af0c1c1d44af765da69a4f30 | JavaScript | 30,675 | 1,003 | // SPDX-License-Identifier: Apache-2.0
import "./style.css";
import { zip, strToU8 } from "fflate";
import {
naturalSort,
identity,
rigid,
finalTransform,
normalizeCrop,
validRigid,
} from "./geometry.js";
import {
createState,
applyRange,
applyCrop,
undoCrop,
expandCanvas,
History,
serialize,... |
2b990e92de021a9c0d58f7dca693c95fa76be6398648b68441df9423de284a2b | JavaScript | 32,147 | 3 | /*! dicom-parser - 1.8.12 - 2023-02-20 | (c) 2017 Chris Hafey | https://github.com/cornerstonejs/dicomParser */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("zlib")):"function"==typeof define&&define.amd?define("dicom-parser",["zlib"],t):"object"==typeof exports?exports["dic... |
41cd989c022ac2ad142cab1b4e3d03e0dc47d3d80b616bb2092709f5d86be4f5 | JavaScript | 36,562 | 7 | /*!
* autocomplete.js 0.38.0
* https://github.com/algolia/autocomplete.js
* Copyright 2020 Algolia, Inc. and other contributors; Licensed MIT
*/
!function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};b.m=... |
845c827054bda45b84ae0e9e0db4e707f75d2182af9cd88787b2cac86aeef8ef | JavaScript | 40,520 | 1,963 | import {
Controls,
MOUSE,
Quaternion,
Spherical,
TOUCH,
Vector2,
Vector3,
Plane,
Ray,
MathUtils
} from './three.module.min.js';
/**
* Fires when the camera has been transformed by the controls.
*
* @event OrbitControls#change
* @type {Object}
*/
const _changeEvent = { type: 'change' };
/**
* Fires whe... |
f315a53f3bcbf57a6304cd45d8717669b7653d2f6f4d5d4449c5ddcb110541d0 | JavaScript | 40,921 | 1,049 | import { Utils } from './utilities.js';
/*** Constructor ***/
/**
* The NIFTI1 constructor.
* @constructor
* @property {boolean} littleEndian
* @property {number} dim_info
* @property {number[]} dims - image dimensions
* @property {number} intent_p1
* @property {number} intent_p2
* @property {number} intent_p3
... |
fac74dbe800c6839dc3d9025edc8fb0f2edbb56ec61051cab40097b311d48921 | JavaScript | 46,700 | 2 | /*! dcmjs-codecs - 0.0.8 - 2026-04-16 | (c) 2025-2026 Pantelis Georgiadis | https://github.com/PantelisGeorgiadis/dcmjs-codecs */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("dcmjs")):"function"==typeof define&&define.amd?define("dcmjs-codecs",["dcmjs"],t):"object"==typeof ... |
ad59fb754db8733364d089bd26a8a2a140978e7783275433d655e2bbecc63087 | JavaScript | 60,780 | 18 | (()=>{var Bn=Object.create;var Ye=Object.defineProperty;var Xn=Object.getOwnPropertyDescriptor;var Zn=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,eo=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable;var it=(e,r,t)=>r in e?Ye(e,r,{enumerable:!0,configurable:... |
cc10f799cd0f6b65f95c4012445497e5ba3cb9f51964a9468940b27bde98b487 | JavaScript | 68,420 | 2,042 | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define('underscore', factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
var current = global.... |
e35dc3d62208d673b0315da56b5550188d1ba97129dd5fe0ffe6d02776c2847a | JavaScript | 70,187 | 1 | Search.setIndex({"alltitles": {"Contents:": [[10, null]], "Indices and tables": [[10, "indices-and-tables"]], "Module contents": [[0, "module-chromas"], [1, "module-chromas.source"], [2, "module-chromas.source.areas"], [3, "module-chromas.source.chunking"], [4, "module-chromas.source.registration"], [5, "module-chromas... |
05304a8f26373142efa126a87977201cbc22d408c573f151ee2907933e9099f7 | JavaScript | 80,427 | 7 | /*!
* Bootstrap v5.0.0-beta3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.ex... |
d2ea6c1e0cabca20d18e924b25a1cd0187c38ba7c33f60ab06e1b0402b9bcdb5 | JavaScript | 80,668 | 7 | /*!
* Bootstrap v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=... |
39646863a414e0a84920b3a8639c0f3e8c94535e8dc051b42b485a068dc2902f | JavaScript | 86,658 | 4 | /*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined... |
87083882cc6015984eb0411a99d3981817f5dc5c90ba24f0940420c5548d82de | JavaScript | 86,659 | 4 | /*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined... |
f7f6a5894f1d19ddad6fa392b2ece2c5e578cbf7da4ea805b6885eb6985b6e3d | JavaScript | 89,476 | 2 | /*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined... |
ba6eda7945ab8d7e57b34cc5a3dd292fa2e4c60a5ced79236ecf1a9e0f0c2d32 | JavaScript | 93,637 | 2 | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==... |
728b196cb49f7349abc4055df9ad8e1e99f93fddeb22e1fb2334436c9997adeb | JavaScript | 100,835 | 1,665 | var UTIF = {};
// Following lines add a JPEG decoder to UTIF.JpegDecoder
(function(){"use strict";var W=function a1(){function W(p){this.message="JPEG error: "+p}W.prototype=new Error;W.prototype.name="JpegError";W.constructor=W;return W}(),ak=function ag(){var p=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,... |
cbd3f510a361add9a5d2541804e7c6e51a2b9e4ea2b5c54b926f2fd895105649 | JavaScript | 169,798 | 5,255 | /**
* @license
* Copyright 2015 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
f9f1caf501f4a2780a89977911a3d13c22a7940a5fd76390612175257a5278ba | JavaScript | 172,873 | 87 | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
cbaceab3ee0a51f3868bd8c060e03e18ae0b341d2e636666c87040f82a984cd2 | JavaScript | 176,813 | 35 | /*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undef... |
5649a9a4ddd14ef5c778789b46983e5090d5a23405e3d4cb6aa3529a2e54796b | JavaScript | 200,000 | 2 | !function(A,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((A="undefined"!=typeof globalThis?globalThis:A||self).dcmjs={})}(this,function(A){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"u... |
7a2111fa4ad839f5b49f599bd505e3379582e2739429be67b7831b908bd1cb91 | JavaScript | 200,000 | 6 | /**
* @license
* Copyright 2010-2026 Three.js Authors
* SPDX-License-Identifier: MIT
*/
import{Matrix3 as e,Vector2 as t,Color as n,Vector3 as i,mergeUniforms as r,CubeUVReflectionMapping as a,Mesh as o,BoxGeometry as s,ShaderMaterial as l,BackSide as c,cloneUniforms as d,Matrix4 as u,ColorManagement as f,SRGBTrans... |
7b46eec81a8f6fc548b8aa7b8f0a00b15f601836abf722f0595847eee35cff1d | JavaScript | 200,000 | 1 | Search.setIndex({"alltitles": {"1.3.2 (2019-12-11)": [[6, "id136"]], "1.3.3 (2020-03-28)": [[6, "id131"]], "1.3.4 (2020-04-07)": [[6, "id128"]], "1.3.5 (2020-05-27)": [[6, "id124"]], "2.0.0 (2021-12-05)": [[6, "id120"]], "2.0.1 (2022-04-02)": [[6, "id116"]], "2.1.0 (2022-04-16)": [[6, "id112"]], "2.1.1 (2022-07-05)": [... |
99ee77db746c80c2fae4943b8ca09fab3d8b8351ea6a04f460554caa570b9270 | JavaScript | 200,000 | 6 | /**
* @license
* Copyright 2010-2026 Three.js Authors
* SPDX-License-Identifier: MIT
*/
const t="185",e={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},s={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},i=0,r=1,n=2,a=3,o=0,h=1,l=2,c=3,u=0,d=1,p=2,m=0,y=1,g=2,f=3,x=4,b=5,v=6,w=100,M=101,S=102,_=103,A=104,T=200,z=201,C=2... |
bc937d42755aace135343ff3ce0adcf5c9aa2864fc1e7d16b04aead165e8ee07 | JavaScript | 200,000 | 7,429 | /*!
* jQuery JavaScript Library v3.5.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2020-05-04T22:49Z
*/
( function( global, factory ) {
"use strict";
if ( t... |
cd3c6430971469db591628b33e747328f6cd70c60bdb56b6e92e3dca4b54d998 | JavaScript | 200,000 | 7,205 | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
f11ddd574892887c994b0105ebb5f0bf82903b81e120c4cf545a80124bf2a69c | JavaScript | 200,000 | 7,407 | /*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/
( function( global, factory ) {
"use strict";
if... |
2a03ebee6e4de8d15253fc0d0a9e97608fde3e2809ffb4f181b6ea2489ac85f7 | JavaScript | 200,002 | 1 | var PortalAssets=function(A){function i(e){if(t[e])return t[e].exports;var I=t[e]={i:e,l:!1,exports:{}};return A[e].call(I.exports,I,I.exports,i),I.l=!0,I.exports}var t={};return i.m=A,i.c=t,i.d=function(A,t,e){i.o(A,t)||Object.defineProperty(A,t,{configurable:!1,enumerable:!0,get:e})},i.n=function(A){var t=A&&A.__esMo... |
0ddfb891d149fcbf4b305334a2758488055eb566d386c6f17f6b6f4a712ef5ce | JavaScript | 201,089 | 26 | /**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 9.1.2
* @date 2022-03-28T20:17:35.342Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @licens... |
1e88600b9fd054512656e0daf68e1bddf74600f0ce65cdfab6ef5b4f0174e4db | Julia | 215 | 8 | function add_frame! end
function plot_streamlines! end
function plot_fod end
function plot_fod! end
function plot_slice end
function plot_slice! end
function analyse_streamline end
function _get_sphere_fibonacci end |
111d856c4334c633696316cfa06a15a0d78119e5fe3f1d494f5d138dd7c8805d | Julia | 269 | 15 | # Include packages
using NetworkInference
using LightGraphs
algorithm = PIDCNetworkInference()
dataset_name = string(ARGS[1])
@time genes = get_nodes(dataset_name);
@time network = InferredNetwork(algorithm, genes);
write_network_file(string(ARGS[2]), network);
|
a8bec47a513898ea9ccf72bb5fc0476a24253d18d01b5bc07503b5468d67a088 | Julia | 302 | 13 | using Test
using FFTW
using CurveFit
using PowerLawNoise
@testset "PowerLawNoise.jl" begin
β = 2.0
ts = PowerLawNoise.noise(β, 0.0, 1000)
ν = rfftfreq(size(ts, 1))
P = abs.(rfft(ts)) .^ 2
_, b = linear_fit(log10.(ν[2:end]), log10.(P[2:end]))
@test -b ≈ β atol = 0.1
end
|
4f249f44145d86fb25f1ea1c45601a642fb2d795e5119ebbefb97ba9618d3923 | Julia | 452 | 17 | using Pkg
Pkg.resolve()
Pkg.add(PackageSpec(name="InformationMeasures", version = "0.3.0"))
Pkg.add(PackageSpec(name="PyPlot", version = "2.8.0"))
Pkg.add(PackageSpec(name="LightGraphs", version = "1.2.0"))
Pkg.add(PackageSpec(name = "GraphPlot", version = "0.3.1"))
Pkg.add(PackageSpec(name =... |
8ddf4d9065a1d53e3a6a267394afc43bed2f09b23d8ffcf2f5c09a51ed55ed75 | Julia | 510 | 9 | function eval_vandermonde!(V, xs)
A,B,C = ClassicalOrthogonalPolynomials.recurrencecoefficients(ChebyshevT())
for (k, x) = enumerate(xs)
p0, p1 = ClassicalOrthogonalPolynomials.initiateforwardrecurrence(1, A, B, C, x, ClassicalOrthogonalPolynomials._p0(ChebyshevT()))
ClassicalOrthogonalPolynomia... |
70a2080c1ebfff4bd60aaa870737dae077f5926aa81bd47b815064651a8a97a0 | Julia | 557 | 26 | using Tractography
using Test
@testset "Tractography.jl" begin
@testset "basic sampling" begin
include("basic-sampling.jl")
end
@testset "cache" begin
include("cache.jl")
end
@testset "data" begin
include("data.jl")
end
@testset "spherical harmonics" begin
in... |
3e55c5c1d427d40050686396352695afdf1c6a1c0843a55600b9782dd6693d3f | Julia | 724 | 18 | using CairoMakie, NIfTI
model = Tractography.Model(Δt = 0.125f0,
foddata = Tractography.FODData((@__DIR__) * "/../examples/fod-FC.nii.gz"),
cone = Tractography.Cone(15),
proba_min = 0.005f0,
)
streamlines, tract_length = Tractography.sample(model,
... |
accfe10761655f3b5e3de9fc7cbe15279a1b3b5a312ee1ddb376caa209ca37c7 | Julia | 790 | 26 | using Test, LinearAlgebra, Accessors
using Tractography
const TG = Tractography
let
model = Model(Δt = 0.125f0,
foddata = TG.FODData("../examples/fod-FC.nii.gz"),
cone = Cone(45f0),
)
alg = Deterministic()
cache_c = TG._init(model, Probabilistic(), TG.get_ba... |
fe99cb71dad5e1e3279479cfa1db5c8f83cef88d3a01752df6339cfb02bba31f | Julia | 792 | 33 | module Tractography
using DocStringExtensions
using Accessors
using NIfTI
using Parameters, LinearAlgebra
import StaticArrays as SA
import LoopVectorization as LV
import FastTransforms
using Random
# sampling method of FODF
export DirectFOD, PreComputeAllFOD
export FODData, ... |
1943f5e752cfceb979ee152c624b6d13fec7eb509ee841e8c05316c65fddd13f | Julia | 793 | 21 | module MakieExt
using Makie, Tractography, DocStringExtensions, LinearAlgebra, StaticArrays, Accessors
import Quickhull
import Tractography: add_frame!,
plot_streamlines!,
plot_fod!,
plot_fod,
plot_... |
4d6c021f5b7f832f73016a852cdf22f25a1fe2f8b196f120e400352b08e55632 | Julia | 821 | 22 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using ComponentArrays, Plots, JSON
Condition_keys=["vowel","b","d","g","k","p","t","m","n","s","z","l","r","f","v"]
stim_paths=readdir("./StimuliNorm/")
path_condition_pairs=[(Condition_keys[i],stim_paths[1+(3*(i-1)):3+(3*(i-1))]) for i in eachindex(Condit... |
c355eee3388470db5d3c4ffbf90eb22c358ba28ca3c80bf8d3c615eaef03aa25 | Julia | 1,122 | 46 | module PowerLawNoise
using FFTW
using Random
zerolast!(A) = selectdim(A, ndims(A), lastindex(A, ndims(A))) .= 0.0
zerofirst!(A) = selectdim(A, ndims(A), firstindex(A, ndims(A))) .= 0.0
function σ(A, n₀, n₁)
2 * √(
sum([1 < i < n₁ ? A[i]^2 : 0.0 for i ∈ eachindex(A)]) + (A[end] * (1 + (n₀ % 2)) / 2)^2,
... |
1c61ee8f98ae8d035d0c0b83124764554417a7cb89fe6cd595a2ee84f2917d93 | Julia | 1,150 | 29 | module PythonExt
using DocStringExtensions, PythonCall
import Tractography: save_streamlines
"""
$(SIGNATURES)
Save tractogram in `filename` in a `tck` format using the Python package nibabel. You should probably use a filename like `streamlines-julia.tck`.
# Arguments
- `filename::String... |
c0e54b5121644ae729167d6c242fbfaefa9f553f70e6b9daed687a18a2381a04 | Julia | 1,444 | 40 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using ComponentArrays, Plots, JSON, WAV, CSV, Statistics, DelimitedFiles, Random, DataFrames, Arrow
using ProgressLogging, JLD2
# phoneme_sequence_envelopes=JSON.parsefile("PhonemeEnvelopes_allconditions.json")
# noise_names=["NoiseSequences60.csv","NoiseS... |
e80227671dc95a2be0f35833eda3daeeea6a09b06c3be6e970043113a1ca5e56 | Julia | 1,502 | 50 | ENV["GKSwstype"] = "100"
using Documenter, CairoMakie, Tractography, DocumenterCodeBlocks
# to display progress
ENV["JULIA_DEBUG"] = Documenter
makedocs(
modules = [Tractography, isdefined(Base, :get_extension) ?
Base.get_extension(Tractography, :MakieExt) :
Tractography.MakieExt],
doctest = false,
... |
d841e2613179fef3858ce6a04c57b706d7fea60f9bfb159fc83e016615ab42ee | Julia | 2,038 | 53 | using Tractography, StaticArrays, Test, NIfTI
const TG = Tractography
let
TG.FODData(rand(10,10,10,10), false)
model = TG.Model(Δt = 0.1, proba_min = 0.0,
foddata = TG.FODData((@__DIR__) * "/../examples/fod-FC.nii.gz",
basis = TG.DTI()
)
)
A = NIfTI.geta... |
e0b0b37d560d123d5a388231d0e288324f569865e338f575fda2c4cbf05045cd | Julia | 2,103 | 57 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using ComponentArrays, Plots, JSON, WAV, CSV, Statistics, DelimitedFiles, Random, DataFrames, Arrow
using ProgressLogging, JLD2
phoneme_sequence_envelopes=JSON.parsefile("PhonemeEnvelopes_allconditions.json")
noise_names=["NoiseSequences60.csv","NoiseSe... |
1e81b5158eda7631b91553b56f0bcda1d2d2f15e651405bf193d3e27e34b7980 | Julia | 2,132 | 69 | using Revise, LinearAlgebra, NIfTI, StaticArrays
import Tractography as TG
using GLMakie; Makie.inline!(true)
ENV["JULIA_DEBUG"] = TG
begin
foddata = TG.FODData("fod-FC.nii.gz")
# define the model for TMC
model = TG.Model(;Δt = 0.125f0,
foddata,
cone = TG.Cone(15f0),
proba_min = 0.0... |
6e66d01706802410d5196ec6ef550433f762df0e4dab6cb7d555cf7b9d8c11d4 | Julia | 2,223 | 44 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using ComponentArrays, Plots, JSON, WAV, CSV, Statistics, DelimitedFiles, Random
#load all except 95.wav (it is shorter than the rest)
stimuli_filenames=readdir("Stimuli")[1:end-1] #ignoring 95.wav
individual_phoneme_envelopes=Vector{Vector}(undef, 20*leng... |
e080caeb516b35e7480340f726a5fe710cec7c02707413ba9bc6ead07e6859ad | Julia | 2,335 | 68 | # using Revise
using Test, LinearAlgebra
using Tractography
const TG = Tractography
using StaticArrays, NIfTI
let
a = SMatrix{3,3}(Matrix{Float32}(Symmetric(rand(3,3))))
av = TG.to_vec(a)
@test a == TG.to_tensor(av)
end
function circular_field_dti(shape=(30, 30, 3); width_tensor = 2., Ty = 𝒯)
κ = wid... |
33461ebc18ae84155613a60e77ce4a698a0c5d52c8b6455023585645e81fb7e6 | Julia | 2,469 | 81 | """
$(TYPEDSIGNATURES)
Generate seeds from orientation distribution functions.
## Keyword arguments
- `maxfod_start = false` The seeds are generated in voxels with non-zero average FOD with the orientations importance sampled.
- `maxfod_start = true` The seeds are generated in voxels with non-zero average FOD with th... |
ee42dd6fadbccea75e9e7e108c8cf872695d494e93765970372f4f7baab5fc18 | Julia | 2,559 | 64 |
println("script started pre loading project and packages")
using Pkg; Pkg.activate("$(pwd())")
println("project activated")
flush(stdout)
flush(stdout)
ENV["JULIA_PKG_PRECOMPILE_AUTO"] = 0 # Disable automatic precompilation
println("precompilation disabled")
flush(stdout)
using NGNMM_NSP_paper_code
println("NGNMM_NSP... |
d664672d5a6367828fa4bbc3872b54cd9a65aa671a04839206b7b236e8912b5e | Julia | 2,600 | 62 | function to_tensor(v_tensor::AbstractVector{𝒯}) where {𝒯}
SA.SMatrix{3, 3, 𝒯, 9}( [v_tensor[1], v_tensor[4], v_tensor[5],
v_tensor[4], v_tensor[2], v_tensor[6],
v_tensor[5], v_tensor[6], v_tensor[3]] )
end
function to_vec(tensor::AbstractMatrix{𝒯}) wher... |
bd408079191a4e751425b6a2f40c86fb8d22ef9de9a57493d39901700cccc73a | Julia | 2,690 | 34 | # Plotting presets
plotGray = Makie.Colors.colorant"#4D4D4D"
plotPurple = Makie.Colors.colorant"#8400CD"
plotBlue = Makie.Colors.colorant"#008DF9"
plotLightGray = Makie.Colors.colorant"#B3B3B3"
set_theme!(Theme(fontsize = 30, figure_padding = 25, textcolor = plotGray, fonts = Attributes(:regular => "Helvetica Neue"), s... |
e5a583f8bac6cb5c65f854dd76ac874363f3eac535383cd2981586b389495bd5 | Julia | 3,192 | 75 |
println("script started pre loading project and packages")
using Pkg; Pkg.activate("$(pwd())")
println("project activated")
flush(stdout)
Pkg.instantiate()
println("project instantiated")
flush(stdout)
ENV["JULIA_PKG_PRECOMPILE_AUTO"] = 0 # Disable automatic precompilation
println("precompilation disabled")
flush(st... |
417a044a3affee522b3012e3bf23486680ee10289a47ddd4f88f95c68956a0ab | Julia | 3,402 | 40 | ## initialise and load packages
using Pkg;Pkg.activate(".")
using JSON, DelimitedFiles, Plots, Statistics, MAT, DataFrames, CSV
using LaTeXStrings
using NGNMM_NSP_paper_code
gr()
##load the dataframes
name_extension="15secondstimulus_peaksearch"
tuned_pro_stimrate_ITPCs_df=CSV.read("./Results/Speech_rate_test/tuned_pr... |
58a126f626f417ae61e9c060361acafb29bbe57949eed4437acac1607c0129a8 | Julia | 3,407 | 76 |
println("script started pre loading project and packages")
# flush(stdout)
# using Pkg
# Pkg.Types.write_env_usage(source_file::AbstractString, usage_filepath::AbstractString) = nothing
# println("overwritten Pkg.Types.write_env_usage")
# flush(stdout)
using Pkg; Pkg.activate("$(pwd())")
println("project activated")
f... |
0289eff0eb83b9b9547bb0d0a56a3e353acdab757689ecd00eb7becfe13adcb4 | Julia | 3,564 | 93 | # we solve ∂ₜ u = ∇ log f(u) for u ∈ S²
# for f(u) = 1 + ϵ u₃⋅u₁
using Test
using Tractography, StaticArrays, LinearAlgebra
const TG = Tractography
function make_vector_field(shape=(30, 30, 3); n_coefficients = 45, Ty = Float64, ϵ = convert(Ty, 0.1))
angles = TG.fibonacci_sampling(2000)
bvectors = [SVector(TG.... |
f77904bdb3018395d816ae1618f457fb951278be6b01214099d7bc28c0c1033d | Julia | 3,703 | 102 | println("script started pre loading project and packages")
using Pkg; Pkg.activate("$(pwd())")
println("project activated")
flush(stdout)
ENV["JULIA_PKG_PRECOMPILE_AUTO"] = 0 # Disable automatic precompilation
println("precompilation disabled")
flush(stdout)
using NGNMM_NSP_paper_code
println("NGNMM_NSP_paper_code lo... |
38af0eec5e79aa17286bd73892b53c4953fceb8ad414dbb71600119f3c2f12de | Julia | 3,963 | 102 | """
$(TYPEDEF)
Cache for computing streamlines in `sample`.
# Arguments (with default values):
$(TYPEDFIELDS)
"""
@with_kw_noshow struct ModelCache{𝒯y, 𝒯a, 𝒯dir, 𝒯d, 𝒯c, 𝒯all, 𝒯alld1, 𝒯alld2} <: AbstractCache
"Matrix for holding the real orthonormal spherical harmonics sampled on a grid."
Yₗₘ::𝒯y = ... |
2ee7a71e95647cd27cf409e29e2bd01a93ed133cf51139038f1d56867d83c3fc | Julia | 4,272 | 105 | function _init_fibonacci(model::Model{𝒯}, n_sphere) where {𝒯}
angles = fibonacci_sampling(n_sphere, 𝒯)
directions = [spherical_to_euclidean(d[1], d[2]) for d in angles]
(;angles, directions)
end
function _init_fibonacci_and_sph(model::Model{𝒯}, n_sphere) where {𝒯}
(;angles, directions) = _init_fib... |
b33dd4f2f1c28ba0555be36451f4fbd250b5bf97331ce7ea85272b87c065b70a | Julia | 5,806 | 157 | ####################################################################################################
macro time_debug(msg, ex)
quote
local ret = @timed $(esc(ex))
local _msg = $(esc(msg))
local _msg_str = _msg === nothing ? _msg : string(_msg)
time = strip(sprint(Base.time_print, ret... |
84be9d9e718f2073d4a0478caf2b05bba42b90f18830d43444b71e535c14ce00 | Julia | 5,999 | 148 | using Test, Tractography, LinearAlgebra, Accessors
const TG = Tractography
let
TG.PlottingFOD()
TG.PreComputeAllFOD()
TG.DirectFOD()
TG.softplus(0, 1)
TG.∂softplus(0, 1)
TG.spherical_to_euclidean(0,0)
@test all(TG.euclidean_to_spherical(TG.spherical_to_euclidean(0.1, -0.01)...) .≈... |
6f6422e3f6bfeebbd7fca0f5455276d18eb07bf60f347d88ae5edb0b6a17b22e | Julia | 6,323 | 135 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code, JLD2
using ComponentArrays, Plots, JSON, WAV, CSV, Statistics, DelimitedFiles, Random, OrdinaryDiffEq, DSP, FFTW
plotlyjs()
raw_audio=wavread("./Stimuli/1.wav")
plot(raw_audio[1][:,1])
raw_audio[2]
global NGNMM_NSP_paper_code.interpolators_global = jldope... |
e9c928c42099ec551ff14cf65f7e2aea477ac7bacd8094f40cd8ef620aa03ead | Julia | 7,064 | 180 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using Statistics
using ProgressLogging
using ComponentArrays, OrdinaryDiffEq, Plots, Parameters, JLD2
using LaTeXStrings
using Interpolations, DSP
Plots.default(titlefontsize=16,legendfontsize=12,tickfontsize=9,guidefontsize=11)
condition="b" #which phone... |
88dbfffa5fbf8aa5eb36b348b38468aae5c6dad9385049a4e186247a2eb2f0e6 | Julia | 8,633 | 177 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using Statistics
using ComponentArrays, OrdinaryDiffEq, Plots, Parameters, JLD2
using LaTeXStrings
condition="b" #which phoneme condition to use for the drive
idx=1 #which test index to use
noisestimratio=0.0 #which noise to stimulus ratio to use
noise_fi... |
a7ef259ff16bc4356c0fb47cf273952edbf9c11c0389576c770f1593ab5c08e5 | Julia | 8,745 | 239 | alldirs(path; kwargs...) = filter(isdir, readdir(path; kwargs...))
filename(path) = last(splitdir(path))
filefolder(path) = last(splitpath(first(splitdir(path))))
# Unwraps the first column of curcfst
function unwrap_angle(curcfst)
# Unwarp the angle
nT = size(curcfst, 1)
for (ind, i) = enumerate(2:nT)
... |
9633af65a18820e5b203c94972fe2773384c543b8f9817ed6f7415fcc7fbecb5 | Julia | 8,789 | 190 | function morelet(scl, freq, f)
nrm = 1.8827925275534296 #* inv(sqrt(1 + exp(-4*pi^2*f^2) - 2*exp(-3*pi^2*f^2)))
sqrt(scl)*nrm*(exp(-0.5*(2pi*(scl*freq - f))^2))# - exp(-2*pi^2*((scl*freq)^2 + f^2)))
end
function cwt_morelet(signal, scales::AbstractVector, sigf = 1000, wavf = 0.5; zp = false)
Nt = size(sig... |
1f97eb4bdbb0eff463530f3e75fb8c22f884fc71d73b34ddb92f4823cd844261 | Julia | 9,641 | 280 | abstract type Abstract_fODFBasis end
abstract type AbstractInterpolation end
"""
$(TYPEDEF)
The fODF are specified in the Spherical Harmonics basis.
If `issymmetric == true`, only the even `l` are taken into account to yield symmetric fODF.
"""
struct SphericalHarmonics{issymmetric} <: Abstract_fODFBasis end
issymmet... |
7ae5ef23882009bf4535c12845097995d194b32ade9555e63fb36e0d74819625 | Julia | 9,727 | 272 | abstract type AbstractCache end
# evaluation of spherical harmonics
abstract type AbstractFODEvaluation end
"""
$(TYPEDEF)
The evaluation of the basis (for example spherical harmonics) is done on the fly. Requires little memory.
See also `PreComputeAllFOD`
"""
struct DirectFOD <: AbstractFODEvaluation end
"""
$(TYP... |
24e6db49e6886f4ec312669762e76f6474a31872affcc76c775c63ce176e1b3b | Julia | 9,910 | 186 | using Pkg; Pkg.activate(".")
using NGNMM_NSP_paper_code
using Arrow, DataFrames, JLD2
using Interpolations, ComponentArrays, Plots, LaTeXStrings
#font sizes:
Plots.default(titlefontsize=16,legendfontsize=12,tickfontsize=9,guidefontsize=11)
frequencies=collect(range(2,15.0,length=60)) #60 frequencies between 2 and 15 ... |
5b2bdf59ab05bfbdab62f3de6eed2aa17b9a23197bab4088eeedaaad17d375a2 | Julia | 12,069 | 335 | function _correct_normals!(pts, faces)
@assert size(faces)[2] == 3
for i in axes(faces, 1)
@views i1, i2, i3 = faces[i, :]
v1 = SVector(pts[i1]) - SVector(pts[i2])
v2 = SVector(pts[i3]) - SVector(pts[i2])
if dot(cross(v1, v2), pts[i1]) < 0
faces[i, 1] = i3
... |
14bec70b206705319574ffce8755f72364967c26ed48d0f6a1ec540e23b94d47 | Julia | 12,872 | 253 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using Statistics
using ComponentArrays, OrdinaryDiffEq, Plots, Parameters, JLD2
using LaTeXStrings
using Interpolations, DSP
Plots.default(titlefontsize=16,legendfontsize=12,tickfontsize=9,guidefontsize=11)
"""
get_scaled_peakrate_impulses(envelopes::... |
529af90072b70626a7c50ee441be7c33752bd7bc7fb2aa7f87acc45b13ae2aa6 | Julia | 13,463 | 329 | """
$(TYPEDSIGNATURES)
Exponential map on the sphere. Assumes t > 0.
See https://github.com/JuliaManifolds/ManifoldsBase.jl/blob/5c4a61ed3e5e44755a22f7872cb296a621905f87/test/ManifoldsBaseTestUtils.jl#L63
"""
@inline function Exp𝕊²(p, X, t)
n = norm(X)
if iszero(n)
return p
end
s, c = sincos(... |
c7f18a2e377c4314e50cd36c401d5ba01a45cb4b6735ba0d045fc312436ddcf6 | Julia | 14,149 | 264 | ## initialise and load packages
using Pkg;Pkg.activate(".")
using JSON, DelimitedFiles, Plots, Statistics, MAT
using NGNMM_NSP_paper_code: get_frequencies, get_sorting_indices, get_concordance_correlation_coefficient, figure_size_tuple
using LaTeXStrings, Plots
gr()
Plots.default(titlefontsize=16,legendfontsize=12,tick... |
c0299633206224add5913c16444d724d31bc3dd92e727618e65929385d5cd183 | Julia | 14,375 | 337 | import KernelAbstractions as KA
import KernelAbstractions: @kernel, @index
"""
$(TYPEDSIGNATURES)
Create a cache for computing streamlines in batches. This is useful for memory-limited environments (e.g. GPU).
!!! tip "Tip"
Use it with `sample!`
# Arguments
- `alg` sampling algorithm, `Deterministic, Probabilis... |
44da4b29105c1c3a6af24e92c33355293ae6dc40f60d6dd97590a63cf8966b34 | Julia | 15,183 | 294 | using Tractography, Test, LinearAlgebra
const TG = Tractography
TG.∂θro_sh(0.,0.,1,1)
TG.∂ϕro_sh(0.,0.,1,1)
TG.get_vector_of_sh([(0.,0.), (0.1, 0.1)], 8, 0)
TG.get_vector_of_sh([(0.,0.), (0.1, 0.1)], 8, 1)
TG.get_vector_of_sh([(0.,0.), (0.1, 0.1)], 8, 2)
# test of the value of real spherical harmonics
# https://user... |
ab6396000c66bff5b77693bb9642257c1ac851c362f0bcfef3862716534a4b29 | Julia | 19,046 | 438 | cd(@__DIR__); import Pkg; Pkg.activate("")
# Load relevant packages
using LinearAlgebra, Statistics
using ClassicalOrthogonalPolynomials, FFTW, RecurrenceRelationships
using Optim
using DelimitedFiles
using ProgressMeter
using CairoMakie, GLMakie; CairoMakie.activate!()
using Roots
using Metaheuristics
using FFTW
using... |
e5c5314e8112c3ab2c2e4bf418e53bfb812ceeda42236f821cc48d737ed5c5e8 | Julia | 20,851 | 464 | import ForwardDiff
"""
$(TYPEDSIGNATURES)
Get the FOD vector length corresponding to a given lmax.
This length is the result of
```
n = 0
for l = 0:2:lmax, m = -l:l
n += 1
end
n
# gives sequence 1 6 15 28 45 66 91 120
# for lmax 0 2 4 6 8 10 12 14
```
"""
get_fod_length(lmax) = div(lmax^... |
f854c5c902c3a96440726979d5141aba528d674ce675f4d0b7381405b3d04302 | Julia | 22,528 | 403 | ### code to run Phase concentration metric tests on each model.
### needs sine wave stimuli, from which impulse trains of a range of frequencies can be extracted from the peaks.
using FFTW, DSP, Statistics
### reformed drive interpolators generator to create sine waves of varying frequency for PCM tests.
"""
Will ma... |
5af989a545e19cf16706e828d03e9930751e34d2376b4c557e68f1915762b777 | Julia | 30,021 | 904 | cd(@__DIR__); import Pkg; Pkg.activate("")
using LinearAlgebra, Statistics
using ClassicalOrthogonalPolynomials, FFTW, RecurrenceRelationships
using Optim
import TOML
##
################################################
### ###
### Basic cheb coeff codes ###
###... |
2831bf0ddb807d7446d75c1ef2d827630a17083001491e0a76a345357281901d | Julia | 37,285 | 723 | using Pkg; Pkg.activate("$(pwd())")
using NGNMM_NSP_paper_code
using ComponentArrays, OrdinaryDiffEq, Plots, Parameters, JLD2, ProgressLogging, Statistics
#to vary the stimulus rate I need a new version of each model that scales time in its
#call of the stimulus interpolation object.
condition="b" #which phoneme condi... |
7ae40a108b07919fbfe3ca6d9506dc8f8073c5a49a26afc3b28c53a42baaa0b0 | Julia | 76,063 | 1,142 | using Pkg;Pkg.activate(".")
using JSON, DelimitedFiles, Plots, Statistics, MAT
using NGNMM_NSP_paper_code: get_frequencies, get_sorting_indices
using LaTeXStrings
gr()
##
frequencies=get_frequencies(4.5*10000,10000)[1:676]
_4Hz_index=indexin([4.0],frequencies)[1]
driveamplituderatios=[0.1,0.496,2.46,12.2,60.5,100.0]
d... |
f926384b878db7c5652d0828630de79ff3f2717b6e7bbf779aa149f169c2d135 | Julia | 87,631 | 1,596 | module NGNMM_NSP_paper_code
# __precompile__(false)
using FFTW, DSP, CSV, JSON, WAV, LinearAlgebra, Random, Interpolations, Statistics, WAV, Parameters, ComponentArrays, OrdinaryDiffEq, DelimitedFiles, Distributions, DataFrames, Arrow, JLD2, PowerLawNoise, Plots
#Dynamical Systems Models
export NMM_CA,NMM_PhonemeDriv... |
c7325d99e93a6984a1c020bf83ef318e59217bae580c2eb65f6ceddbbb06818d | Jupyter | 6 | 2 | # %%
|
6496e3c614546b463a2b71ab85feb4b04fe8001910cb4185ef87848ce6de9672 | Jupyter | 258 | 15 | # %% [markdown]
# # Installation
#
# To install `SOFA` first create `Python 3.8` environment e.g. by
#
# ```
# conda create --name sofa-env python=3.8
# conda activate sofa-env
# ```
#
# and install the package using
#
# ```
# pip install biosofa
# ```
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.