mirror of
https://github.com/johrpan/geposan.git
synced 2025-10-26 18:57:25 +01:00
clustering: Reduce default span to 100,000
This commit is contained in:
parent
04809cdc76
commit
910bf85719
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@
|
||||||
#' relation to the previous one. For example, if `weight` is 0.7 (the
|
#' relation to the previous one. For example, if `weight` is 0.7 (the
|
||||||
#' default), the first cluster will weigh 1.0, the second 0.7, the third 0.49
|
#' default), the first cluster will weigh 1.0, the second 0.7, the third 0.49
|
||||||
#' etc.
|
#' etc.
|
||||||
clusteriness <- function(data, span = 1000000, weight = 0.7) {
|
clusteriness <- function(data, span = 100000, weight = 0.7) {
|
||||||
n <- length(data)
|
n <- length(data)
|
||||||
|
|
||||||
# Return a score of 0.0 if there is just one or no value at all.
|
# Return a score of 0.0 if there is just one or no value at all.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
\alias{clusteriness}
|
\alias{clusteriness}
|
||||||
\title{Perform a cluster analysis.}
|
\title{Perform a cluster analysis.}
|
||||||
\usage{
|
\usage{
|
||||||
clusteriness(data, span = 1e+06, weight = 0.7)
|
clusteriness(data, span = 1e+05, weight = 0.7)
|
||||||
}
|
}
|
||||||
\arguments{
|
\arguments{
|
||||||
\item{data}{The values that should be scored.}
|
\item{data}{The values that should be scored.}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue