Displaying 2 results from an estimated 2 matches for "varargin".
Did you mean:
vararg
2017 Jan 24
3
Convertir programa Matlab a R sacado de Threshold Models of Collective Behavior de Michèle Lai & Yann Poltera
...a R.
El original lo saqu de:
Lai, M., & Poltera, Y. (2009). Lecture with computer exercises: Modelling and simulating social systems with matlab. Tech. rep., Swiss Federal Institute of Technology (December 2009). 27.
Ahora estoy convirtiendo la siguiente funcin:
function sizes = gridsizes(N,varargin)
% gridsizes(N) calculates the best factorization of N into two integers N1 and
% N2 such that : N1xN2 == N and N2-N1 -> min (optimal grid)
% gridsizes(N,C1,C2) calculates the best factorization of N into two integers N1 and
% N2 such that : N1xN2 == N and N2-N1 -> min, under the condition th...
1999 Dec 07
0
Minimize function of several variables?
Hi,
Is there something like the Matlab function FMINS in any R packages? Here is the help file of fmins in case something similar exist under R with a different name.
Thanks in advance.
Yves Gauvreau
***********************
function [x, options] = fmins(funfcn,x,options,grad,varargin)
%FMINS Minimize function of several variables.
% X = FMINS('F',X0) attempts to return a vector X which is a local
% minimizer of F(x) near the starting vector X0. 'F' is a string
% containing the name of the objective function to be minimized.
% F(x) should be a scalar va...