Skip to content

Commit

Permalink
Release 0.2.1 (#27)
Browse files Browse the repository at this point in the history
* remove unused variable (#26)

* fix edf computation for deg = 2

* bump version + update docs

* remove package cache on appveyor
  • Loading branch information
tnagler authored May 29, 2018
1 parent f900e6d commit c412bfa
Show file tree
Hide file tree
Showing 22 changed files with 36 additions and 24 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
^codecov\.yml$
docs
^cran-comments\.md$
^revdep$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
revdep
/revdep/.cache.rds
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: kde1d
Type: Package
Title: Univariate Kernel Density Estimation
Version: 0.2.0
Version: 0.2.1
Authors@R: c(
person("Thomas", "Nagler",, "[email protected]", role = c("aut", "cre")),
person("Thibault", "Vatter",, "[email protected]", role = c("aut"))
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# kde1d 0.2.1

BUG FIXES

* fix bug in computation of effective degrees of freedom when `deg = 2`.


# kde1d 0.2.0

NEW FEATURES
Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ init:
install:
ps: Bootstrap

cache:
- C:\RLibrary

environment:
R_VERSION: release

Expand Down
6 changes: 2 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## Test environments
* Debian Linux with clang-4.0-ASAN enabled on rocker/r-devel-ubsan-clang (devel)
* local OS X install (release)
* ubuntu 12.04 on travis-ci (release, devel)
* ubuntu 12.04 on travis-ci (release, devel, oldrel)
* win-builder (devel)

## R CMD check results
Expand All @@ -10,4 +8,4 @@

## Reverse dependencies

There are no reverse dependencies.
rvinecopulib: 0 errors | 0 warnings | 0 notes
2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/dkde1d-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/dkde1d.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/kde1d-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/kde1d-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/kde1d-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/kde1d-package.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/reference/kde1d.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/plot.kde1d-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/plot.kde1d-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/reference/plot.kde1d.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions inst/include/lpdens.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,12 @@ inline double LPDens1d::calculate_infl(const size_t &n,
M(0, 1) = f0 * b;
M(1, 0) = M(0, 1);
M(1, 1) = f0 * bw2 + f0 * b2;
M(0, 2) = M(2, 2);
M(2, 0) = M(2, 2);
M(1, 2) = 0.5 * f0 * (3.0 / s * b + b * b2);
M(2, 1) = M(1, 2);
M(2, 2) = 3.0 / std::pow(s, 2) + 6.0 * b2 / std::pow(s, 3);
M(2, 2) = 0.25 * f0;
M(2, 2) *= 3.0 / std::pow(s, 2) + 6.0 / s * b2 + b2 * b2;
M(0, 2) = M(2, 2);
M(2, 0) = M(2, 2);
}

double infl = kern_gauss(Eigen::VectorXd::Zero(1))(0) / bw;
Expand Down Expand Up @@ -329,7 +328,6 @@ inline Eigen::VectorXd LPDens1d::construct_grid_points(const Eigen::VectorXd& x)
//! @param grid_points the grid points.
inline Eigen::VectorXd LPDens1d::finalize_grid(Eigen::VectorXd& grid_points)
{
double range = grid_points.maxCoeff() - grid_points.minCoeff();
if (!std::isnan(xmin_))
grid_points(0) = xmin_;
if (!std::isnan(xmax_))
Expand Down

0 comments on commit c412bfa

Please sign in to comment.