-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug in get_dct_transform. Added rolling mean via zoo.
- Loading branch information
Showing
5 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,8 @@ License: GPL-3 | |
Imports: | ||
openNLP, | ||
NLP, | ||
zoo | ||
zoo, | ||
dtt | ||
LazyData: true | ||
Suggests: | ||
knitr, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
% Generated by roxygen2 (4.1.1): do not edit by hand | ||
% Please edit documentation in R/syuzhet.R | ||
\name{get_dct_transform} | ||
\alias{get_dct_transform} | ||
\title{Discrete Cosine Transformation with Reverse Transform to Time Domain} | ||
\usage{ | ||
get_dct_transform(raw_values, low_pass_size = 10, x_reverse_len = 100, | ||
scale_vals = FALSE, scale_range = FALSE) | ||
} | ||
\arguments{ | ||
\item{raw_values}{the raw sentiment values | ||
calculated for each sentence} | ||
|
||
\item{low_pass_size}{The number of components | ||
to retain in the low pass filtering. Default = 10} | ||
|
||
\item{x_reverse_len}{the number of values to return via decimation. Default = 100} | ||
|
||
\item{scale_vals}{Logical determines whether or not to normalize the values using the scale function Default = FALSE. If TRUE, values will be scaled by subtracting the means and scaled by dividing by their standard deviations. See ?scale} | ||
|
||
\item{scale_range}{Logical determines whether or not to scale the values from -1 to +1. Default = FALSE. If set to TRUE, the lowest value in the vector will be set to -1 and the highest values set to +1 and all the values scaled accordingly in between.} | ||
} | ||
\value{ | ||
The transformed values | ||
} | ||
\description{ | ||
Converts input values into a standardized | ||
set of filtered and reverse transformed values for | ||
easy plotting and/or comparison. | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters