Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MarkovProcesses.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bentriou Mahmoud
MarkovProcesses.jl
Commits
e087dc1f
Commit
e087dc1f
authored
4 years ago
by
Bentriou Mahmoud
Browse files
Options
Downloads
Patches
Plain Diff
Improvement of get_path_module()
parent
bf7e270e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/MarkovProcesses.jl
+3
-2
3 additions, 2 deletions
core/MarkovProcesses.jl
core/model.jl
+2
-1
2 additions, 1 deletion
core/model.jl
with
5 additions
and
3 deletions
core/MarkovProcesses.jl
+
3
−
2
View file @
e087dc1f
...
@@ -4,10 +4,11 @@ import Base: +, -, getfield, getindex
...
@@ -4,10 +4,11 @@ import Base: +, -, getfield, getindex
export
Model
,
ContinuousTimeModel
,
DiscreteTimeModel
export
Model
,
ContinuousTimeModel
,
DiscreteTimeModel
export
simulate
,
set_param!
,
get_param
export
simulate
,
set_param!
,
get_param
export
load_model
export
is_bounded
export
load_model
,
get_module_path
include
(
"model.jl"
)
include
(
"model.jl"
)
export
Observations
,
AbstractTrajectory
export
Observations
,
AbstractTrajectory
,
Trajectory
export
+
,
-
,
δ
,
get_obs_variables
,
get_states_number
export
+
,
-
,
δ
,
get_obs_variables
,
get_states_number
include
(
"observations.jl"
)
include
(
"observations.jl"
)
...
...
This diff is collapsed.
Click to expand it.
core/model.jl
+
2
−
1
View file @
e087dc1f
...
@@ -84,7 +84,8 @@ function simulate(m::Model, n::Int; bound::Float64 = Inf)::AbstractObservations
...
@@ -84,7 +84,8 @@ function simulate(m::Model, n::Int; bound::Float64 = Inf)::AbstractObservations
function
set_param!
(
m
::
Model
,
p
::
Vector
{
Float64
})
::
Nothing
end
function
set_param!
(
m
::
Model
,
p
::
Vector
{
Float64
})
::
Nothing
end
function
get_param
(
m
::
Model
)
::
Vector
{
Float64
}
end
function
get_param
(
m
::
Model
)
::
Vector
{
Float64
}
end
get_module_path
()
=
dirname
(
dirname
(
pathof
(
@__MODULE__
)))
function
load_model
(
name_model
::
String
)
function
load_model
(
name_model
::
String
)
include
(
pathof
(
@__MODULE__
)
*
"/../..
/models/"
*
name_model
*
".jl"
)
include
(
get_module_path
()
*
"
/models/"
*
name_model
*
".jl"
)
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment