HasGP-0.1: A Haskell library for inference using Gaussian processes

HasGP.Support.MatrixFunction

Description

HasGP Gaussian Process Library. This module contains assorted functions that support the construction of matrices from functions.

Copyright (C) 2011 Sean Holden. sbh11@cl.cam.ac.uk.

Synopsis

Documentation

makeMatrixFromFunction2 :: (DVector -> Double) -> DVector -> DVector -> DMatrixSource

Take two vectors and a function. The vectors contain inputs 1 and 2. The function maps a pair of inputs to a value. Produce a matrix containing the values of the function at the relevant points.

makeMatrixFromPairs2 :: (DVector -> DVector -> Double) -> DMatrix -> DMatrixSource

Take a function and a matrix of instance vectors. Apply the function to each possible pair of instance vectors and return the result as a matrix.

makeMatricesFromPairs :: (DVector -> DVector -> DVector) -> DMatrix -> [DMatrix]Source

Same as makeMatrixFromPairs but the function returns a vector. In this case the output is a list of matrices, one for each element of the function value.