# Generate data from CCA/BIBFA/GFA model

### Description

Generate data from a CCA/BIBFA/GFA model that has been learned with
`GFA`

. The most likely use of this function is for model
checking.

### Usage

1 2 |

### Arguments

`model` |
A list of model parameters as returned by |

`N` |
How many samples to draw. |

### Details

The code randomly samples `Z`

from the prior and then draws
`N`

observations for both views.

### Value

`Y` |
The data, a list of N times D[m] matrices. |

`Z` |
The latent variables, a N times K matrix. |

### Author(s)

Seppo Virtanen and Arto Klami

### See Also

`GFA`

,`CCA`

### Examples

1 2 3 4 5 6 7 | ```
#
# Assume we have a variable model which has been learned with
# GFAexperiment() or GFA().
# Then the following line would draw 100 samples from it:
#
# Y2 <- GFAsample(model,100)
#
``` |