Learn R Programming

ganGenerativeData (version 2.1.6)

gdCalculateDensityValue: Calculate density value for a data record

Description

Calculate density value for a data record. By default for the calculation a linear search is performed on normalized generative data. When a search tree is used search is performed on a tree for generative data which is built once in the first function call.

Usage

gdCalculateDensityValue(dataRecord, useSearchTree = FALSE)

Value

Normalized density value number

Arguments

dataRecord

List containing an unnormalized data record.

useSearchTree

Boolean value indicating if a search tree should be used.

Examples

Run this code
if (FALSE) {
gdRead("gd.bin")
dv <- gdCalculateDensityValue(list(6.1, 2.6, 5.6, 1.4))}

Run the code above in your browser using DataLab