Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mcauchyd
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ImHorPhen
mcauchyd
Commits
92dc5352
Commit
92dc5352
authored
2 years ago
by
SANTAGOSTINI Pierre
Browse files
Options
Downloads
Patches
Plain Diff
Corrected: default value of argument main and an error message
parent
68e920ba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/contourmvcd.R
+3
-3
3 additions, 3 deletions
R/contourmvcd.R
with
3 additions
and
3 deletions
R/contourmvcd.R
+
3
−
3
View file @
92dc5352
...
...
@@ -2,7 +2,7 @@ contourmvcd <- function(mu, Sigma,
xlim
=
c
(
mu
[
1
]
+
c
(
-10
,
10
)
*
Sigma
[
1
,
1
]),
ylim
=
c
(
mu
[
2
]
+
c
(
-10
,
10
)
*
Sigma
[
2
,
2
]),
zlim
=
NULL
,
npt
=
30
,
nx
=
npt
,
ny
=
npt
,
main
=
"Multivariate
generalised Gaussian
density"
,
main
=
"Multivariate
Cauchy
density"
,
sub
=
NULL
,
nlevels
=
10
,
levels
=
pretty
(
zlim
,
nlevels
),
tol
=
1e-6
,
...
)
{
...
...
@@ -17,7 +17,7 @@ contourmvcd <- function(mu, Sigma,
#' xlim = c(mu[1] + c(-10, 10)*Sigma[1, 1]),
#' ylim = c(mu[2] + c(-10, 10)*Sigma[2, 2]),
#' zlim = NULL, npt = 30, nx = npt, ny = npt,
#' main = "Multivariate
generalised Gaussian
density",
#' main = "Multivariate
Cauchy
density",
#' sub = NULL, nlevels = 10,
#' levels = pretty(zlim, nlevels), tol = 1e-6, ...)
#' @param mu length 2 numeric vector.
...
...
@@ -51,7 +51,7 @@ contourmvcd <- function(mu, Sigma,
#' @export
if
(
length
(
mu
)
!=
2
|
nrow
(
Sigma
)
!=
2
|
ncol
(
Sigma
)
!=
2
)
stop
(
paste
(
"plotmvcd only allows plotting a
generalised Gaussian
density with 2 variables."
,
stop
(
paste
(
"plotmvcd only allows plotting a
Cauchy
density with 2 variables."
,
"mu must be a length 2 numeric vector and Sigma must be a 2*2 square matrix."
,
sep
=
"\n"
))
# Estimation of the density
...
...
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