-
Notifications
You must be signed in to change notification settings - Fork 2
/
notes.txt
50 lines (35 loc) · 1.15 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import typing
import numpy as np
def performGillespie(propensities=lambda time, state: 'Computed Propensities',
initial=np.ndarray, tSpan=['tStart','tEnd']):
'yields states'
class Parameters():
def __init__(numCompartments, parameterNames=list):
'Setup Parameters'
def configureParams(parameters=np.ndarray):
'Store parameters'
def __getitem__():
'Retrieve parameters'
class DataCollector():
def begin(*args, **kwargs): # Configuration
pass
def report(state):
pass
def getResult():
'Return collected data (+ some processing)'
class Model(pints.ForwardModel):
def __init__(numcompartments):
'Configure Parameters class and Data Collector'
pass
def n_parameters():
pass
def n_outputs():
pass
def simulate(paramsAndIntials=np.ndarray, times=list):
'Returns np.ndarray'
'Exact output format etc is specified by datacollector'
#Initialize Parameters
#Initialize DataCollector
#Perform simulation and Report to DataCollector
#Retrieve and return output from datacollector
pass