Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dseries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sébastien Villemot
dseries
Commits
6b4aad50
Verified
Commit
6b4aad50
authored
Nov 13, 2018
by
Sébastien Villemot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernization: use tilde (~) syntax for ignored output arguments
parent
6f26c376
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/@dseries/hpcycle_.m
src/@dseries/hpcycle_.m
+1
-1
src/@dseries/merge.m
src/@dseries/merge.m
+1
-1
src/@dseries/subsasgn.m
src/@dseries/subsasgn.m
+4
-4
src/@dseries/subsref.m
src/@dseries/subsref.m
+1
-1
No files found.
src/@dseries/hpcycle_.m
View file @
6b4aad50
...
...
@@ -34,7 +34,7 @@ else
lambda
=
[];
end
[
junk
,
data
]
=
sample_hp_filter
(
o
.
data
,
lambda
);
[
~
,
data
]
=
sample_hp_filter
(
o
.
data
,
lambda
);
o
.
data
=
data
;
for
i
=
1
:
vobs
(
o
)
...
...
src/@dseries/merge.m
View file @
6b4aad50
...
...
@@ -43,7 +43,7 @@ end
q
=
dseries
();
[
q
.
name
,
IBC
,
junk
]
=
unique
([
o
.
name
;
p
.
name
],
'last'
);
[
q
.
name
,
IBC
,
~
]
=
unique
([
o
.
name
;
p
.
name
],
'last'
);
tex
=
[
o
.
tex
;
p
.
tex
];
q
.
tex
=
tex
(
IBC
);
...
...
src/@dseries/subsasgn.m
View file @
6b4aad50
...
...
@@ -120,9 +120,9 @@ switch length(S)
else
Dates
=
S
(
1
).
subs
{
1
}
;
end
[
junk
,
tdx
]
=
intersect
(
A
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
[
~
,
tdx
]
=
intersect
(
A
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
if
isdseries
(
B
)
[
junk
,
tdy
]
=
intersect
(
B
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
[
~
,
tdy
]
=
intersect
(
B
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
if
isempty
(
tdy
)
error
(
'
dseries
:
:
subsasgn
:
Periods
of
the
dseries
objects
on
the
left
and
right
hand
sides
must
intersect
!
'
)
end
...
...
@@ -183,9 +183,9 @@ switch length(S)
end
if
(
isdseries
(
B
)
&&
isequal
(
vobs
(
sA
),
vobs
(
B
)))
||
(
isnumeric
(
B
)
&&
isequal
(
vobs
(
sA
),
columns
(
B
)))
||
(
isnumeric
(
B
)
&&
isequal
(
columns
(
B
),
1
))
if
isdates
(
S
(
2
).
subs
{
1
})
[
junk
,
tdx
]
=
intersect
(
sA
.
dates
.
time
,
S
(
2
).
subs
{
1
}.
time
,
'
rows
'
);
[
~
,
tdx
]
=
intersect
(
sA
.
dates
.
time
,
S
(
2
).
subs
{
1
}.
time
,
'
rows
'
);
if
isdseries
(
B
)
[
junk
,
tdy
]
=
intersect
(
B
.
dates
.
time
,
S
(
2
).
subs
{
1
}.
time
,
'
rows
'
);
[
~
,
tdy
]
=
intersect
(
B
.
dates
.
time
,
S
(
2
).
subs
{
1
}.
time
,
'
rows
'
);
if
isempty
(
tdy
)
error
(
'
dseries
::
subsasgn
:
Periods
of
the
dseries
objects
on
the
left
and
right
hand
sides
must
intersect
!
'
)
end
...
...
src/@dseries/subsref.m
View file @
6b4aad50
...
...
@@ -228,7 +228,7 @@ switch S(1).type
error
([
'
dseries
:
:
subsref
:
Indices
are
out
of
bounds
!
Subsample
cannot
end
after
'
date2string
(
A
.
dates
(
end
))
'.'
])
end
%
Extract
a
subsample
using
a
dates
object
[
junk
,
tdx
]
=
intersect
(
A
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
[
~
,
tdx
]
=
intersect
(
A
.
dates
.
time
,
Dates
.
time
,
'
rows
'
);
B
=
copy
(
A
);
B
.
data
=
B
.
data
(
tdx
,
:
);
B
.
dates
=
B
.
dates
(
tdx
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment