Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Simon Barthelme
RandomForests.jl
Commits
94928d0d
Commit
94928d0d
authored
Jun 03, 2020
by
simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added diag method for estimation of K_ii
parent
5469261b
Pipeline
#44702
passed with stage
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/smoothing.jl
src/smoothing.jl
+7
-0
No files found.
src/smoothing.jl
View file @
94928d0d
...
...
@@ -220,6 +220,12 @@ function Base.:*(p::Partition,y :: Vector)
p
*
reshape
(
y
,
:
,
1
)
|>
vec
end
function
LinearAlgebra.:diag
(
p
::
Partition
)
w
=
1
./
p
.
sizep
w
[
p
.
part
]
end
function
average
(
p
::
Partition
,
y
::
Real
)
repeat
([
y
],
p
.
nparts
)
end
...
...
@@ -290,3 +296,4 @@ end
function
sum
(
p
::
Partition
,
y
::
Vector
)
sum
(
p
,
reshape
(
y
,
:
,
1
))
|>
vec
end
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