Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- toEqLength :: Real a => [a] -> [a] -> ([a], [a], Int, Int, Int)
- toEqLengthL :: Real a => Int -> Int -> [a] -> [a] -> ([a], [a], Int, Int, Int)
- sumSqrDistNorm :: (Real a, Fractional a) => [a] -> [a] -> a
- distanceSqr :: (Real a, Floating a, Fractional a) => [a] -> [a] -> a
- distanceSqrG :: (Real a, Floating a, Fractional a) => [a] -> [a] -> a
Documentation
toEqLength :: Real a => [a] -> [a] -> ([a], [a], Int, Int, Int) Source #
toEqLength
changes two given lists of non-negative Real
numbers into two lists of equal
minimal lengths and also returs its new length and initial lengths of the lists given.
toEqLengthL :: Real a => Int -> Int -> [a] -> [a] -> ([a], [a], Int, Int, Int) Source #
toEqLengthL
changes two given lists of non-negative Real
numbers into two lists of equal
minimal lengths and also returs its new length and initial lengths of the lists given. Is
intended to be used when the length of the lists are known and given as the first and the second parameters
here respectively.
sumSqrDistNorm :: (Real a, Fractional a) => [a] -> [a] -> a Source #
distanceSqr :: (Real a, Floating a, Fractional a) => [a] -> [a] -> a Source #
distanceSqr
is applied on two lists of non-negative Real
numbers (preferably, of type
Double
) and returns a special kind of distance that is similar to the statistical distance used
in the regression analysis. Is intended to be used e. g. for the PhLADiPreLiO approach. The less
is the resulting number, the more 'similar' are the two lists of non-negative numbers in their
distributions. Here, in contrast to the more general distanceSqrG
, the numbers must be normed
to 1.0, so that the largest ones in both listn must be 1.0.
distanceSqrG :: (Real a, Floating a, Fractional a) => [a] -> [a] -> a Source #
distanceSqrG
is applied on two lists of non-negative Real
numbers (preferably, of type
Double
) and returns a special kind of distance that is similar to the statistical distance used
in the regression analysis. Is intended to be used e. g. for the PhLADiPreLiO approach. The less
is the resulting number, the more 'similar' are the two lists of non-negative numbers in their
distributions.