74dae883a6f0bb31f55b8c1bd426a832b429ff4a,brainiak/utils/fmrisim.py,,generate_stimfunction,#Any#Any#Any#Any#Any#Any#,378

Before Change


            onset_counter])) * temporal_resolution)

        // For the appropriate number of indexes and duration, make this value 1
        idx_n = round(event_durations[onset_counter] * temporal_resolution)
        stimfunction[onset_idx:offset_idx] = [weights[onset_counter]] * idx_n

    // Shorten the data if it"s too long
    if len(stimfunction) > total_time * temporal_resolution:
        stimfunction = stimfunction[0:int(total_time * temporal_resolution)]

After Change



    // Generate the time course as empty, each element is a millisecond by
    // default
    stimfunction = np.zeros((int(round(total_time * temporal_resolution)), 1))

    // Cycle through the onsets
    for onset_counter in list(range(len(onsets))):
        // Adjust for the resolution
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: brainiak/brainiak
Commit Name: 74dae883a6f0bb31f55b8c1bd426a832b429ff4a
Time: 2017-11-09
Author: cellis@princeton.edu
File Name: brainiak/utils/fmrisim.py
Class Name:
Method Name: generate_stimfunction


Project Name: SheffieldML/GPy
Commit Name: 336f8e11c48bb4e749b9f389907c450e44f02786
Time: 2013-10-28
Author: alan.daniel.saul@gmail.com
File Name: GPy/examples/regression.py
Class Name:
Method Name: toy_poisson_rbf_1d


Project Name: SheffieldML/GPy
Commit Name: 336f8e11c48bb4e749b9f389907c450e44f02786
Time: 2013-10-28
Author: alan.daniel.saul@gmail.com
File Name: GPy/examples/regression.py
Class Name:
Method Name: toy_poisson_rbf_1d_laplace