Description Usage Arguments Value See Also

We want Nelder-Mead to run fast so the cost function operates with the column
reduced edge optimisation matrix and does not give any extra information about
the fit. For the details, use `edge_optimisation_function`

instead.

1 2 | ```
cost_function(data, concentration, matrix, graph,
parameters = extract_graph_parameters(graph), iteration_multiplier = 3)
``` |

`data` |
The data set. |

`concentration` |
The Cholesky decomposition of the inverted covariance matrix. |

`matrix` |
A column reduced edge optimisation matrix (typically given
by the function |

`graph` |
The admixture graph. |

`parameters` |
In case one wants to tweak something in the graph. |

`iteration_multiplier` |
Given to |

Given an input vector of admix variables, returns the smallest error regarding the edge variables.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.