plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
niclasborlin/dbat-master
matchcpt.m
.m
dbat-master/code/misc/matchcpt.m
2,673
utf_8
3ea825cf3fcac161e8bbd280a7b8a4bf
function [i1,j1,i2,j2,j3]=matchcpt(s,pts,match) %MATCHCPT Loaded control point table with DBAT struct. % % [I,J]=MATCHCPT(S,PTS,MATCH) matches the control point table PTS with the % control points stored in the DBAT structure S, i.e., among points with % s.prior.OP.isCtrl set. Points can be matched using id and/o...
github
niclasborlin/dbat-master
seteoest.m
.m
dbat-master/code/misc/seteoest.m
3,618
utf_8
3427c8598367e941dd6322d64220a8eb
function s=seteoest(s,varargin) %SETEOEST Set external orientation parameters to be estimated by the bundle. % % S=SETEOEST(S,'all') modifies the S.bundle.est.EO field to indicate that all % EO parameters should be estimated by the bundle. Similarly, % S=SETEOEST(S,'none') sets all EO parameters to be fixed. % % ...
github
niclasborlin/dbat-master
cumchi2.m
.m
dbat-master/code/misc/cumchi2.m
1,011
utf_8
0db2c71b7d4d7bcbcc475b94cf5c3ac8
function y=cumchi2(x,n) %CUMCHI2 Cumulative chi-square distribution function. % % CUMCHI2(X,N) returns the cumulative chi-square distribution at the % values in the vector X with N degrees of freedom. N must be scalar. % % Naive implementation that computes the cdf value via integration. if ~isscalar(n) err...
github
niclasborlin/dbat-master
plotopstats.m
.m
dbat-master/code/plotting/plotopstats.m
4,267
utf_8
0a49485d527e9e33c36b4c31aba8a2ea
function hh=plotopstats(s,e,varargin) %PLOTOPSTATS Plot object point statistics after a bundle. % % PLOTOPSTATS(S,E), where S and E are struct given to and returned by % BUNDLE, respectively, produces a plot of object point statistics. The % plotted statistics are % - mark point count, % - RMS residual, % -...
github
niclasborlin/dbat-master
plotparams.m
.m
dbat-master/code/plotting/plotparams.m
18,725
utf_8
a1acf951652d1e41d30060ce7de71529
function hh=plotparams(s,e,varargin) %PLOTPARAMS Plot bundle iteration parameters. % % PLOTPARAMS(S,E), where S is a struct returned by PROB2DBATSTRUCT and E % is a struct returned by BUNDLE, plots the iteration trace of the % parameters estimated by BUNDLE. % % PLOTPARAMS(...,'noop') does not plot the OP plot....
github
niclasborlin/dbat-master
plotcoverage.m
.m
dbat-master/code/plotting/plotcoverage.m
6,550
utf_8
d8716ae4939ff0d6e0886ccbc2c2e002
function hh=plotcoverage(s,varargin) %PLOTCOVERAGE Plot image coverage. % % PLOTCOVERAGE(S), where S is a struct returned by PROB2DBATSTRUCT, plots % the image coverage for the project. The rectangular, convex hull, and % radial coverage are plotted separately. If the images were taken by % different cameras, t...
github
niclasborlin/dbat-master
essmat5.m
.m
dbat-master/code/photogrammetry/essmat5.m
99,683
utf_8
0cf6e7a897ce0c46e7d18577e5b983c7
function Evec=essmat5(Q1,Q2) %ESSMAT5 Calculate essential matrices from >=5 pt correspondences. % %EE=essmat5(Q1,Q2) %Q1,Q2 - 3xn matrices of normalized homogeneous coordinates. %EE - 9xk matrix with essential matrices unrolled as columns. Q1 = Q1'; Q2 = Q2'; Q = [Q1(:,1).*Q2(:,1) , ... Q1(:,2).*Q2(:,1) , .....
github
niclasborlin/dbat-master
pm_forwintersect1.m
.m
dbat-master/code/photogrammetry/pm_forwintersect1.m
2,314
utf_8
1b30ed8e7e8b389d208899bde6cb66a9
function [OP,OPc]=pm_forwintersect1(P,xy,method) %PM_FORWINTERSECT1 Estimate world coords of one pt by forward intersection. % %[OP,OPc]=pm_forwintersect1(P,xy[,'euclidean']) %or %[OP,A]=pm_forwintersect1(P,xy,'homogeneous') %P - 3nx4 matrix with 3x4 camera matrices [P1;P2;...]. %xy - 2xn or 3xn matrix with eu...
github
niclasborlin/dbat-master
parseoutput.m
.m
dbat-master/code/script/parseoutput.m
5,883
utf_8
1d722674fe9316bae9c0f08f7f50eb34
function s=parseoutput(s,output,docFile) %PARSEOUTPUT Parse and execute output section of a DBAT XML file. % % S=PARSEOUTPUT(S,OUTPUT,DOCFILE) parses the OUTPUT XML block from % a DBAT XML script file and generates the requested plots and % files. The string DOCFILE should contain the path name of the XML % ...
github
niclasborlin/dbat-master
parseoutputfiles.m
.m
dbat-master/code/script/parseoutputfiles.m
6,577
utf_8
6b32f1af843ccdf630027b0552b68649
function s=parseoutputfiles(s,outputFiles,docFile) %PARSEOUTPUTFILES Parse output files section of a DBAT XML file. % % S=PARSEOUTPUTFILES(FILES,DOCFILE,S) parses the output/files XML % block FILES from a DBAT XML script file and generates the % requested files. The string DOCFILE should contain the path name ...
github
niclasborlin/dbat-master
parsedbatxmlcamstruct.m
.m
dbat-master/code/script/parsedbatxmlcamstruct.m
8,230
utf_8
f5dfb09ba5a5d95ef1dcf15c9d0fbef3
function cams=parsedbatxmlcamstruct(s) %PARSEDBATXMLCAMSTRUCT Convert DBAT XML camera structure to DBAT camera structure % % CAMS=PARSEDBATXMLCAMSTRUCT(S) parses the DBAT camera XML structure % S and returns a 1-cell array CAMS with a DBATCamera object. The % structure S should have fields with field names listed...
github
niclasborlin/dbat-master
parseops.m
.m
dbat-master/code/script/parseops.m
3,746
utf_8
ab6a0cd0715f006c0b3e41b8d0be07d8
function s=parseops(s,operations) %PARSEOPS Parse and execute operations section of a DBAT XML file. % % S=PARSEOPS(S,OPS) parses the operations XML block OPS from a DBAT % XML script file and executes the operations with the DBAT % structure S. The result is returned in the updated DBAT structure S. % %See al...
github
niclasborlin/dbat-master
getattrbasedir.m
.m
dbat-master/code/script/private/getattrbasedir.m
1,905
utf_8
2acfada0bb3d9491d16f55c115380b23
function [dir,rawDir]=getattrbasedir(s,docFile,attrName) %GETBASEDIR Get base_dir attribute if present. % % GETATTRBASEDIR(S,DOCFILE), where S is a sub-structure loaded from % the DBAT XML file DOCFILE, returns the base_dir XML attribute % (S.Attributes.base_dir) if present, otherwise the blank string. % % If b...
github
niclasborlin/dbat-master
loadpm3dtbl.m
.m
dbat-master/code/file/loadpm3dtbl.m
3,248
utf_8
b32b26be7ed052abaf85bcc8119ef5a2
function pts=loadpm3dtbl(fName,isSmartTable) %LOADPM3DTBL Load 3D point table exported from Photomodeler. % % PTS=LOADPM3DTBL(FNAME) loads 3D point data from the exported 3D % point table in the file FNAME. The data is returned in a struct % PTS with fields % id - N-array with id numbers. % name - N...
github
niclasborlin/dbat-master
loadlnz.m
.m
dbat-master/code/file/loadlnz.m
13,656
utf_8
efe622a96b4a4d63005bdd56dfc556e1
function s=loadlnz(lnzFile,varargin) %LOADLNZ Load Photoscan .LNZ file. % % S=LOADLNZ(FILE) loads the PhotoScan .LNZ file in FILE into a struct S. % % The struct S has fields % fileName - string with file name. % document - recursive struct that correspond to the XML % structure in FILE. % tra...
github
niclasborlin/dbat-master
loadpsz.m
.m
dbat-master/code/file/loadpsz.m
37,216
utf_8
e98eba4212c4bb662c1d2c5f4585c106
function s=loadpsz(psFile,varargin) %LOADPSZ Load Photoscan .PSZ file. % % S=LOADPSZ(FILE) loads the PhotoScan .PSZ file in FILE into a struct S. % If the .PSZ file has multiple chunks, chunk #1 is processed. % % S=LOADPSZ(FILE,N) loads chunk N instead of chunk #1. % % The struct S has fields % fileName - st...
github
niclasborlin/dbat-master
loadpm2dtbl.m
.m
dbat-master/code/file/loadpm2dtbl.m
1,558
utf_8
fa59ec03616242f42b75c012d46fe6d4
function pts=loadpm2dtbl(fName) %LOADPM2DTBL Load 2D point table exported from Photomodeler. % % PTS=LOADPM2DTBL(FNAME) loads 2D point data from the exported 2D % point table in the file FNAME. The data is returned in a struct % PTS with fields % id - N-array with id numbers. % imNo - N-array with i...
github
niclasborlin/dbat-master
loadpmreport.m
.m
dbat-master/code/file/loadpmreport.m
19,745
utf_8
7ccb279562f1e24834b7a68f5cd09242
function s=loadpmreport(fileName) %LOADPMREPORT Parse PM processing report file. % % S=LOADPMREPORT(FILE) parses the PhotoModeler processing report % file FILE. The returned structure S contains the following % fields: % % projName - project name, string. % runDate - Processing timestamp, struct...
github
niclasborlin/dbat-master
DBATCamera.m
.m
dbat-master/code/classes/@DBATCamera/DBATCamera.m
8,003
utf_8
d720f53bb3906c8823357a5586ddf0ca
classdef DBATCamera properties (Access = public) Id {mustBeNumericScalar} = nan Name {mustBeSingleString} = '' Unit {mustBeSingleString} = '' SensorSize {mustBe2Vector} = nan(1,2) ImageSize {mustBe2Vector} = nan(1,2) FocalLength {mustBeNumericScalar} = nan Asp...
github
niclasborlin/dbat-master
bundle.m
.m
dbat-master/code/bundle/bundle.m
18,557
windows_1250
b14e3fa741668b321181ca506bf495ca
function [s,ok,iters,s0,E]=bundle(s,varargin) %BUNDLE Run bundle adjustment iterations on a camera network. % % [S,OK,N]=BUNDLE(S), where S is a struct returned by PROB2DBATSTRUCT, % runs the damped bundle adjustment on the camera network in the structure % S. The parameter values in S are used as initial values....
github
niclasborlin/dbat-master
bundle_result_file.m
.m
dbat-master/code/bundle/bundle_result_file.m
31,766
utf_8
6670fa8a60de31b03c60242c9cbf5aa3
function s=bundle_result_file(s,e,f) %BUNDLE_RESULT_FILE Generate result file of bundle run. % % S=BUNDLE_RESULT_FILE(S,E,F), where S and E are BUNDLE return structs % and F is a string, writes a text result file to the file F. The % text result file contain information about the project, the status % of the es...
github
niclasborlin/dbat-master
bundle_cov.m
.m
dbat-master/code/bundle/bundle_cov.m
15,118
utf_8
b159d6e69758bcb43b300ffac1063786
function varargout=bundle_cov(s,e,varargin) %BUNDLE_COV Compute covariances from bundle result. % % BUNDLE_COV(S,E,CC) computes and returns a component covariance matrix % specified by the string CC from the BUNDLE result files S and E. CC % should be one of % 'CIO' - covariance of estimated internal parame...
github
niclasborlin/dbat-master
rotmat.m
.m
dbat-master/code/bundle/cammodel/rotmat.m
1,647
utf_8
0577439359d5d7bb6cdc5a9f22174546
function [M,da1,da2,da3]=rotmat(angles,seq) %ROTMAT Generate 3d rotation matrix from world to image coordinate systems. % %[M,da1,da2,da3]=rotmat(angles[,seq]) %angles - rotation angles. %seq - axis sequence % - 'xyz' or 'opk' (omega, phi, kappa) % or 'rpy' (roll, pitch, yaw) (default) % ...
github
niclasborlin/dbat-master
pm_eulerrotmat.m
.m
dbat-master/code/bundle/cammodel/pm_eulerrotmat.m
1,664
utf_8
ce88436163bede1f49436ce9dca72556
function [M,da1,da2,da3]=pm_eulerrotmat(angles,seq) %PM_EULERROTMAT Generate Euler rotation matrix world -> image coord. system. % %[M,da1,da2,da3]=pm_eulerrotmat(angles[,seq]) %angles - rotation angles. %seq - axis sequence % - 'xyz' or 'opk' (omega, phi, kappa) % or 'rpy' (roll, pitch, yaw)...
github
niclasborlin/dbat-master
multilensdist.m
.m
dbat-master/code/bundle/cammodel/multilensdist.m
5,943
utf_8
82febbcaea66972a5834fc6c7e6a4ff2
function [ld,dIO,dp]=multilensdist(p,IO,nK,nP,cams,cIO,cp) %MULTILENSDIST Compute lens distortion in multiple images. % % MULTILENSDIST(P,IO,nK,nP) computes the lens distortion of the % points in the 2-by-N array P using the internal orientation % parameters in the 16-vector IO. The scalars nK and nP contain the ...
github
niclasborlin/dbat-master
browndist.m
.m
dbat-master/code/bundle/cammodel/browndist.m
7,503
utf_8
01e1e771fa3a1b5628bc763aa84a8c4f
function [d,ds,dpp,dK,dP,ds2,dpp2,dK2,dP2]=browndist(s,pp,K,P,cs,cpp,cK,cP) %BROWNDIST Compute the lens distortion according to the Brown'71 model. % % D=BROWNDIST(S,PP,K,P) returns a 2-by-N array D with the lens % distortion of the 2-by-N image point array S according to the % Brown (1971) lens distortion model....
github
niclasborlin/dbat-master
gauss_newton_armijo.m
.m
dbat-master/code/bundle/lsa/gauss_newton_armijo.m
8,470
windows_1250
3ec201d32b65bb74ffa811d883aa2a5a
function [x,code,n,final,T,rr,alphas]=gauss_newton_armijo(... resFun,vetoFun,x0,W,maxIter,termFun,trace,sTest,mu,alphaMin) %GAUSS_NEWTON_ARMIJO Gauss-Newton-Armijo least squares adjustment algorithm. % % [X,CODE,I]=GAUSS_NEWTON_ARMIJO(RES,VETO,X0,W,N,TERM,TRACE,STEST,MU,AMIN) % runs the Gauss-Newton-Armijo leas...
github
niclasborlin/dbat-master
levenberg_paper.m
.m
dbat-master/code/bundle/lsa/levenberg_paper.m
3,199
utf_8
b925ccba6801b23022313e0b1d7a58d5
function [x,code,niter,X,deltas,rhos,F]=levenberg_paper(prob,vetoFun,x0,epsilon,maxIter,delta0,mu,eta,params) %LEVENBERG Levenberg-Marquardts method for least squares problem. % %[x,code,niter,X,deltas,rhos]=levenberg(prob,vetoFun,x0,eps,maxIter,delta0,mu,eta,params) %prob %x0 %eps %maxIter %delta0 %mu %eta %x %code %i...
github
niclasborlin/dbat-master
gaussn_paper.m
.m
dbat-master/code/bundle/lsa/gaussn_paper.m
4,044
utf_8
789cedc8973e3361051df969f9559975
function [x,code,n,X,alphas,F]=gaussn_paper(prob,veto,x0,tol,maxIter,alphaMin,mu,W,params) %GAUSSN Damped Gauss-Newton method, Goldstein-Armijo linesearch. % %[x,code,n,X,alphas]=gaussn(prob,veto,x0,tol,maxIter,alphaMin,mu,W,params) %prob - name of problem. %veto - name of veto function. %x0 - starting ap...
github
niclasborlin/dbat-master
levenberg_marquardt_powell.m
.m
dbat-master/code/bundle/lsa/levenberg_marquardt_powell.m
9,618
utf_8
49078df41bde5da330b32504dec9dd76
function [x,code,n,final,T,rr,deltas,rhos,steps]=levenberg_marquardt_powell(... resFun,vetoFun,x0,W,maxIter,termFun,doTrace,delta0,mu,eta) %LEVENBERG_MARQUARDT_POWELL Levenberg-Marquardt algorithm with Powell dogleg. % % [X,CODE,I]=LEVENBERG_MARQUARDT_POWELL(RES,VETO,X0,W,N,TERM,TRACE,D0,MU,ETA) % runs the trus...
github
niclasborlin/dbat-master
xlat2.m
.m
dbat-master/code/bundle/cameramodel/xlat2.m
1,660
utf_8
73a05ba3ca56df2dd01f789b3ada4737
function [Q,dQ,dQn]=xlat2(U,c,varargin) %XLAT2 2D translation for the DBAT projection model. % % Q=XLAT2(U,C) translates the 2D points in the 2-by-N array U by % the 2-vector C. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to U and C in the fields dU and dC, respectively....
github
niclasborlin/dbat-master
res_euler_brown_0.m
.m
dbat-master/code/bundle/cameramodel/res_euler_brown_0.m
5,164
utf_8
19f3e382ee51c777da15195fb0d7db46
function [v,dv,dvn]=res_euler_brown_0(Q,q0,ang,f,u,sz,u0,K,P,B,varargin) %#ok<INUSL> %RES_EULER_BROWN_0 Residual function 0 for DBAT. % % V=RES_EULER_BROWN_0(Q,Q0,A,F,U,SZ,U0,K,P) computes the residual % between the projected object points in the 3-by-N array Q and the % measured image coordinates in the 2-by-N a...
github
niclasborlin/dbat-master
skew.m
.m
dbat-master/code/bundle/cameramodel/skew.m
2,002
utf_8
4ee2284c10fb3c8aace33f728b645179
function [Q,dQ,dQn]=skew(U,k,varargin) %SKEW 2D anisotropic scaling for the DBAT projection model. % % Q=SKEW(U,K) applies a skew to the 2D points in the 2-by-N array % U. The actual transformation is Q=[1,k;0,1]*U. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to U and K ...
github
niclasborlin/dbat-master
brown_rad.m
.m
dbat-master/code/bundle/cameramodel/brown_rad.m
2,556
utf_8
2a082280d7b178df52bc7ea2cd7594ed
function [v,dv,dvn]=brown_rad(u,K,varargin) %BROWN_RAD Brown radial distortion. % % V=BROWN_RAD(U,K) returns the radial distortion of Brown (1971) for % each 2D point in the 2-by-N array U. The vector K contain the % radial coefficients. % % [V,dV]=... also returns a struct dV with the analytical Jacobians % ...
github
niclasborlin/dbat-master
res_euler_brown_1.m
.m
dbat-master/code/bundle/cameramodel/res_euler_brown_1.m
5,664
utf_8
b2d049a9146f7ab320c08f0c5dda9755
function [v,dv,dvn]=res_euler_brown_1(Q,q0,ang,f,u,sz,u0,K,P,b,varargin) %RES_EULER_BROWN_1 Residual function 1 for DBAT. % % V=RES_EULER_BROWN_1(Q,Q0,A,F,U,SZ,U0,K,P,B) computes the residual % between the projected object points in the 3-by-N array Q and the % measured image coordinates in the 2-by-N array U. Th...
github
niclasborlin/dbat-master
power_vec.m
.m
dbat-master/code/bundle/cameramodel/power_vec.m
1,842
utf_8
d9976e2a2f81a4f0a436b041e3537175
function [v,dv,dvn]=power_vec(x,nn,varargin) %POWER_VEC Vector of powers function used by DBAT lens distortion functions. % % V=POWER_VEC(X,N) returns the vector of powers of the scalar X, % V=[X, X^2, ..., X^N]'. If X is an M-vector, V will be an N-by-M % array. % % [V,dV]=... also returns a struct dV with the...
github
niclasborlin/dbat-master
brown_dist.m
.m
dbat-master/code/bundle/cameramodel/brown_dist.m
2,520
utf_8
e61f36c7e6f4b8c3cdfdeced30024dba
function [v,dv,dvn]=brown_dist(u,K,P,varargin) %BROWN_DIST Brown radial distortion with absolute coordinates. % % V=BROWN_DIST(U,K,P) applies lens distortion according to Brown % (1971) to the 2D points in the 2-by-N array U. The vector K % contain the radial coefficients. The vector P contain the % tangential ...
github
niclasborlin/dbat-master
lin2.m
.m
dbat-master/code/bundle/cameramodel/lin2.m
1,704
utf_8
0caaa39f64398374a0c4250e14f1140d
function [Q,dQ,dQn]=lin2(U,M,varargin) %LIN2 2D linear transform for the DBAT projection model. % % Q=LIN2(U,M) applies the linear transform M to the 2D points in the % 2-by-N array U, i.e. computes M*U. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to M and U in the field...
github
niclasborlin/dbat-master
res_euler_brown_2.m
.m
dbat-master/code/bundle/cameramodel/res_euler_brown_2.m
5,674
utf_8
8db1c2f425ec271d7c239cf03963f205
function [v,dv,dvn]=res_euler_brown_2(Q,q0,ang,f,u,sz,u0,K,P,b,varargin) %RES_EULER_BROWN_2 Residual function 1 for DBAT. % % V=RES_EULER_BROWN_2(Q,Q0,A,F,U,SZ,U0,K,P,B) computes the residual % between the projected object points in the 3-by-N array Q and the % measured image coordinates in the 2-by-N array U. Th...
github
niclasborlin/dbat-master
eulerrotmat.m
.m
dbat-master/code/bundle/cameramodel/eulerrotmat.m
3,576
utf_8
90e43e0b05f8ed9289655c41caad36f8
function [M,dM,dMn]=eulerrotmat(ang,seq,fixed) %EULERROTMAT 3D Euler rotation matrix. % % M=EULERROTMAT(A,SEQ,FIXED) computes the 3D rotation matrix that % correspond to the Euler angles in the 3-vector A for the axis % sequence given by the 3-digit integer SEQ. Each digit can be 1 % (X), 2 (Y), or 3 (Z), and d...
github
niclasborlin/dbat-master
pinhole.m
.m
dbat-master/code/bundle/cameramodel/pinhole.m
1,835
utf_8
47f5e9315fd967e6ab3c7785c879c5a3
function [Q,dQ,dQn]=pinhole(P,varargin) %PINHOLE Pinhole projection for the DBAT projection model. % % Q=PINHOLE(P) applies the pinhole projection on the 3D points in % the 3-by-N array P, i.e. computes P(1:2)/P(3) for each column. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobian % with resp...
github
niclasborlin/dbat-master
world2cam.m
.m
dbat-master/code/bundle/cameramodel/world2cam.m
2,294
utf_8
c86941d26f7f969e68710dc40f6a24bd
function [Q,dQ,dQn]=world2cam(P,p0,M,varargin) %WORLD2CAM Transform 3D points from the world to the camera coordinate system. % % Q=WORLD2CAM(P,P0,M), where P is 3-by-N with 3D points in world % coordinates, M is a 3-by-3 rotation matrix, and P0 is 3-by-1 with % the camera center, transforms the points to the cam...
github
niclasborlin/dbat-master
scale2.m
.m
dbat-master/code/bundle/cameramodel/scale2.m
1,629
utf_8
5c9a3fce1713e287ece1b31da61ed671
function [Q,dQ,dQn]=scale2(U,k,varargin) %SCALE2 2D isotropic scaling for the DBAT projection model. % % Q=SCALE2(U,K) scales the 2D points in the 2-by-N array U by the % scalar K. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to U and K in the fields dU and dK, respective...
github
niclasborlin/dbat-master
multi_res.m
.m
dbat-master/code/bundle/cameramodel/multi_res.m
10,862
utf_8
1205b41354059d456ab756aad3ca0fe6
function [r,J]=multi_res(s,fun) %MULTI_RES Compute residuals for multiple cameras. % % MULTI_RES(S,FUN) computes residuals for all image observations. % The structure S contains the project information. FUN is a % function handle that will compute the image residuals for one % camera. % % [R,J]=... also retur...
github
niclasborlin/dbat-master
res_euler_brown_3.m
.m
dbat-master/code/bundle/cameramodel/res_euler_brown_3.m
5,937
utf_8
f82a1cd493d6b3e71580efb482b10a61
function [v,dv,dvn]=res_euler_brown_3(Q,q0,ang,f,u,sz,u0,K,P,b,varargin) %RES_EULER_BROWN_3 Residual function 1 for DBAT. % % V=RES_EULER_BROWN_3(Q,Q0,A,F,U,SZ,U0,K,P,B) computes the residual % between the projected object points in the 3-by-N array Q and the % measured image coordinates in the 2-by-N array U. Th...
github
niclasborlin/dbat-master
rad_scale.m
.m
dbat-master/code/bundle/cameramodel/rad_scale.m
1,948
utf_8
5a4646d6d3565fcfaadf643d821d9d21
function [v,dv,dvn]=rad_scale(u,c,varargin) %RAD_SCALE Radial scaling function used by DBAT lens distortion functions. % % V=RAD_SCALE(U,C) returns the radial scaling between the M-vector C % with coefficients 2-by-N point array U. Each element V(I) is % V(I)=C(1)*R(U)^2 + C(2)*R(U)^4 + .... % % [V,dV]=... also...
github
niclasborlin/dbat-master
brown_dist_rel.m
.m
dbat-master/code/bundle/cameramodel/brown_dist_rel.m
3,385
utf_8
d25bef75d13c00ed93eb7f9ba3dada9f
function [v,dv,dvn]=brown_dist_rel(u,u0,K,P,varargin) %BROWN_DIST_REL Brown radial distortion with relative coordinates. % % V=BROWN_DIST_REL(U,U0,K,P) returns the lens distortion of Brown % (1971) for each 2D point in the 2-by-N array U. The vector K % contain the radial coefficients. The vector P contain the % ...
github
niclasborlin/dbat-master
eulerpinhole2.m
.m
dbat-master/code/bundle/cameramodel/eulerpinhole2.m
3,097
utf_8
4d6343bcc337194e6af5c6ad2cbdd793
function [Q,dQ,dQn]=eulerpinhole2(P,p0,ang,f,varargin) %EULERPINHOLE2 3D-to-2D pinhole camera transformation with Euler angles. % % Q=EULERPINHOLE2(P,P0,A,F) performs a 3D-to-2D transformation of the % 3D points in the 3-by-N array P according to the pinhole camera % model. The position of the camera center is gi...
github
niclasborlin/dbat-master
affine2mat.m
.m
dbat-master/code/bundle/cameramodel/affine2mat.m
1,336
utf_8
148a07ab01ac2733d89802018f69076e
function [A,dA,dAn]=affine2mat(b,varargin) %AFFINE2MAT 2D affine transformation matrix. % % A=AFFINE2MAT(B) returns the affine transformation matrix % [1+B(1), B(2); 0, 1]. % % [A,dA]=... also returns a struct dA with the analytical Jacobian % with respect to B in the field dB. For more details, see % DBAT_BU...
github
niclasborlin/dbat-master
aniscale2.m
.m
dbat-master/code/bundle/cameramodel/aniscale2.m
1,849
utf_8
218778aac0dc7ff97a61cfd06757a684
function [Q,dQ,dQn]=aniscale2(U,k,varargin) %ANISCALE2 2D anisotropic scaling for the DBAT projection model. % % Q=ANISCALE2(U,K) scales the points in the 2-by-N array U. The % x-coordinates are scaled by K(1), the y-coordinates are scaled % by K(2). % % [Q,dQ]=... also returns a struct dQ with the analytical J...
github
niclasborlin/dbat-master
tang_scale.m
.m
dbat-master/code/bundle/cameramodel/tang_scale.m
2,548
utf_8
b87f7aa8ccb055b0446c31b34b1a36a9
function [v,dv,dvn]=tang_scale(u,p,varargin) %TANG_SCALE Radial scaling function used by DBAT lens distortion functions. % % V=TANG_SCALE(U,P) returns the tangential scaling between the 2-vector P % and 2-by-N point array U. Each column V(:,I) is % V(I,:)=U(:,I)'*U(:,I)*P+2*U(:,I)*U(:,I)'*P. % % [V,dV]=... also...
github
niclasborlin/dbat-master
lin3.m
.m
dbat-master/code/bundle/cameramodel/lin3.m
1,704
utf_8
caa0602ad42b681b9e9de1cce7bc41e2
function [Q,dQ,dQn]=lin3(P,M,varargin) %LIN3 3D linear transform for the DBAT projection model. % % Q=LIN3(P,M) applies the linear transform M to the 3D points in the % 3-by-N array P, i.e. computes M*P. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to M and P in the field...
github
niclasborlin/dbat-master
xlat3.m
.m
dbat-master/code/bundle/cameramodel/xlat3.m
1,660
utf_8
24601354f0605b4cc5a57b480971eafc
function [Q,dQ,dQn]=xlat3(P,c,varargin) %XLAT3 3D translation for the DBAT projection model. % % Q=XLAT3(P,C) translates the 3D points in the 3-by-N array P by % the 3-vector C. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to P and C in the fields dP and dC, respectively....
github
niclasborlin/dbat-master
scale3.m
.m
dbat-master/code/bundle/cameramodel/scale3.m
1,629
utf_8
d66ac4f7a6a8622fbbbc232abf892f3c
function [Q,dQ,dQn]=scale3(P,k,varargin) %SCALE3 3D isotropic scaling for the DBAT projection model. % % Q=SCALE3(P,K) scales the 3D points in the 3-by-N array P by the % scalar K. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with respect to P and K in the fields dP and dK, respective...
github
niclasborlin/dbat-master
brown_tang.m
.m
dbat-master/code/bundle/cameramodel/brown_tang.m
3,805
utf_8
baaf3f645ac802c49e119973a54c664e
function [v,dv,dvn]=brown_tang(u,P,varargin) %BROWN_TANG Radial scaling function used by DBAT lens distortion functions. % % V=BROWN_TANG(U,P) returns the tangential distortion of Brown % (1971) for each 2D point in the 2-by-N array U. The vector P % contain the tangential coefficients. P cannot have any length %...
github
niclasborlin/dbat-master
aniscale2b.m
.m
dbat-master/code/bundle/cameramodel/aniscale2b.m
1,801
utf_8
94a28f53366a23e238a818d5e1e1c4f9
function [Q,dQ,dQn]=aniscale2b(U,k,varargin) %ANISCALE2B 2D anisotropic scaling for the DBAT projection model. % % Q=ANISCALE2B(U,K) applies the anisotropic scaling to the 2D points % in the 2-by-N array U. The actual scaling is Q=[1+k,0;0,1]*U. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobian...
github
niclasborlin/dbat-master
lens_rad2.m
.m
dbat-master/code/bundle/cameramodel/lens_rad2.m
1,595
utf_8
68fe08e2391d0a49b272c5f1f0d95032
function [r,dr,drn]=lens_rad2(U,varargin) %LENS_RAD2 Radius squared function used by DBAT lens distortion functions. % % R=LENS_RAD2(U) computes the radius squared for each column in % the 2-by-N array U. % % [R,dR]=... also returns a struct dR with the analytical Jacobian % with respect to U in the field dU. F...
github
niclasborlin/dbat-master
brown_affine.m
.m
dbat-master/code/bundle/cameramodel/brown_affine.m
7,596
utf_8
992305fcffbecb5918b616f9b91be297
function [v,dv,dvn]=brown_affine(u,sz,u0,K,P,b1,b2,cs,varargin) %BROWN_AFFINE Brown radial distortion with absolute coordinates. % % V=BROWN_AFFINE(U,SZ,U0,K,P,B1,B2,CS) applies an affine % transformation and lens distortion to 2D measured image points in % the 2-by-N array U. The pixel size in mm is given by the...
github
niclasborlin/dbat-master
affscale2.m
.m
dbat-master/code/bundle/cameramodel/affscale2.m
2,307
utf_8
cd9c81c324a425209077df48196e9683
function [Q,dQ,dQn]=affscale2(U,k,b1,b2,varargin) %AFFSCALE2 2D affine scaling for the DBAT projection model. % % Q=AFFSCALE2(U,K,B1,B2) scales the 2D points in the 2-by-N array U % by the scalar K and applies an affine transformation. The affine % transformation matrix is [1+B1 B2;0 1]. % % [Q,dQ]=... also ret...
github
niclasborlin/dbat-master
affine2.m
.m
dbat-master/code/bundle/cameramodel/affine2.m
2,043
utf_8
90664d9c7e71897ed324ec335c9aabaa
function [Q,dQ,dQn]=affine2(U,b,varargin) %AFFINE2 2D affine transform for the DBAT projection model % % Q=AFFINE2(U,B) applies the linear transform AFFINE2MAT(B) to the % 2D points in the 2-by-N array U, i.e. computes AFFINE2MAT(B)*U. % % [Q,dQ]=... also returns a struct dQ with the analytical Jacobians % with...
github
niclasborlin/dbat-master
comp_struct_old.m
.m
dbat-master/code/xchg/comp_struct/comp_struct_old.m
9,641
utf_8
ccb5798bd490887197d73ea4c86cddfa
function [df, match, er1, er2] = comp_struct(s1,s2,prt,pse,tol,n1,n2,wbf) % check two structures for differances - i.e. see if strucutre s1 == structure s2 % function [match, er1, er2, erc, erv] = comp_struct(s1,s2,prt,pse,tol,n1,n2,wbf) % % inputs 8 - 7 optional % s1 structure one cl...
github
niclasborlin/dbat-master
struct2xml.m
.m
dbat-master/code/xchg/struct2xml/struct2xml.m
7,457
utf_8
24791efbc3f8e2ee07c5fc9e192b90c9
function varargout = struct2xml( s, varargin ) %Convert a MATLAB structure into a xml file % [ ] = struct2xml( s, file ) % xml = struct2xml( s ) % % A structure containing: % s.XMLname.Attributes.attrib1 = "Some value"; % s.XMLname.Element.Text = "Some text"; % s.XMLname.DifferentElement{1}.Attributes.attrib2 ...
github
niclasborlin/dbat-master
xml2struct.m
.m
dbat-master/code/xchg/xml2struct/xml2struct.m
6,773
utf_8
0194599f7bac6b67c42391f372b5ff91
function [ s ] = xml2struct( file ) %Convert xml file into a MATLAB structure % [ s ] = xml2struct( file ) % % A file containing: % <XMLname attrib1="Some value"> % <Element>Some text</Element> % <DifferentElement attrib2="2">Some more text</Element> % <DifferentElement attrib3="2" attrib4="1">Even more text</Dif...
github
niclasborlin/dbat-master
dbatxml2struct.m
.m
dbat-master/code/xchg/xml2struct/dbatxml2struct.m
6,773
utf_8
0194599f7bac6b67c42391f372b5ff91
function [ s ] = xml2struct( file ) %Convert xml file into a MATLAB structure % [ s ] = xml2struct( file ) % % A file containing: % <XMLname attrib1="Some value"> % <Element>Some text</Element> % <DifferentElement attrib2="2">Some more text</Element> % <DifferentElement attrib3="2" attrib4="1">Even more text</Dif...
github
niclasborlin/dbat-master
time_dbat_091.m
.m
dbat-master/code/test/postcov/time_dbat_091.m
6,355
utf_8
5cf754508807c6447eb0d27c90045761
function [times,C]=time_dbat_091(s,e) %Returned times are [chol,...,total]; % Code from bundle_cov.m % We may need J'*J many times. Precalculate and prefactor. JTJ=e.final.weighted.J'*e.final.weighted.J; % IO blocks. [i,j]=ind2sub(size(s.bundle.est.IO),s.bundle.serial.IO.src); bixIO=full(sparse(i,j,s.bundle.serial.I...
github
terekhovpd/Multipole-Decomposition-master
vector_product.m
.m
Multipole-Decomposition-master/vector_product.m
248
utf_8
681aa19f68f8e241eaa5e4de7daf96c2
%ver 5.1 %19.03.2017 % Internal function for scattering patterns function [ output_vec ] = vector_product( a1,a2,a3,b1,b2,b3 ) output_vec(1)= ( a2*b3 - a3*b2 ); output_vec(2)= ( a3*b1 - a1*b3); output_vec(3)= ( a1*b2 - a2*b1 ); end
github
terekhovpd/Multipole-Decomposition-master
getdatafromfigure.m
.m
Multipole-Decomposition-master/getdatafromfigure.m
1,893
utf_8
ae7083c4e5d2e372e0541e147a9f5f86
% getdatafromfigure.m is a program that allows you to select a figure and a plot % or a subplot from which to extract the x and y data. % % SYNTAX: [x,y]=getdatafromfigure; % % The function returns the data to the stack and can be saved as a .mat file as % well. % % DBE 06/27/00 function [x,y]=getdatafromfigure disp(...
github
terekhovpd/Multipole-Decomposition-master
dot_product_matrix_vector.m
.m
Multipole-Decomposition-master/dot_product_matrix_vector.m
290
utf_8
5669bcf08fb27f5097d2215ac0f83e7b
%ver 5.1 %19.03.2017 % Internal function for scattering patterns function [ output_vector ] = dot_product_matrix_vector( M,n1,n2,n3 ) output_vector(1)=M(1,1)*n1+M(1,2)*n2+M(1,3)*n3; output_vector(2)=M(2,1)*n1+M(2,2)*n2+M(2,3)*n3; output_vector(3)=M(3,1)*n1+M(3,2)*n2+M(3,3)*n3; end
github
terekhovpd/Multipole-Decomposition-master
mytitle.m
.m
Multipole-Decomposition-master/mytitle.m
3,241
utf_8
b7466a25c67a66fc65e945682e8c614e
%ver 5.1 %19.03.2017 % Internal function for scattering patterns function [ output ] = mytitle( ED,MD,EQ,MQ,EO,TD ) %% switch ED case 1 EDstr='Electric dipole, '; if MD+EQ+MQ+EO+TD==0 EDstr='Electric dipole'; end case 0 EDstr=''; end %% switch MD case 1 MDstr='Magnetic...
github
terekhovpd/Multipole-Decomposition-master
decomp_internal_func_1.m
.m
Multipole-Decomposition-master/decomp_internal_func_1.m
293
utf_8
b734c27e54df706c344064bb54aaaa2a
%Version 5.1 %19.03.2017 %Internal function for data_concatenation, allows to merge different frequency step for equal parameter value function [ mask ] = decomp_internal_func_1 ( mask, i, number ) for j = 1:number mask (i,j) = max ( mask(i,j) , mask(i+1,j) ); end mask (i+1,:) = []; end
github
terekhovpd/Multipole-Decomposition-master
dot_product_array_vector.m
.m
Multipole-Decomposition-master/dot_product_array_vector.m
769
utf_8
134c667f3afebc55aad844ad693382a5
%ver 5.1 %19.03.2017 % Internal function for scattering patterns function [ output_matrix ] = dot_product_array_vector( Array,n1,n2,n3 ) output_matrix(1,1)=Array(1,1,1)*n1+Array(1,1,2)*n2+Array(1,1,3)*n3; output_matrix(1,2)=Array(1,2,1)*n1+Array(1,2,2)*n2+Array(1,2,3)*n3; output_matrix(1,3)=Array(1,3,1)*n1+Array(1...
github
bmperrea/KitaevSL-master
get_NNNNs.m
.m
KitaevSL-master/work_functions/get_NNNNs.m
2,763
utf_8
6105c7bbc96df04e92c696e295fc6045
function [ps,rs,ks,ms] = get_NNNNs(r,k,m,nmax) %The flag being 'p' says that you want ps insted of r,k,m s %The list of directions to make the NNN pattern dir = []; for n = 1:nmax oners = ones(1,n); neibs = [oners*2,oners*3,oners*4,oners*5,oners*0,oners*1]; neibs(1) = 1; ...
github
bmperrea/KitaevSL-master
get_NNNs.m
.m
KitaevSL-master/extras/flux_interactions/get_NNNs.m
2,561
utf_8
2be7057f017aee015f6fc5dcc7c780e2
function [ps,rs,ks,ms] = get_NNNs(r,k,m,~) %The flag being 'p' says that you want ps insted of r,k,m s %The list of directions to make the NNN pattern dir = [1,3,4,5,0,1, 1,2,3,3,4,4,5,5,0,0,1,1 ,1]; %initialize the ps % if nargin > 3 && flag == 'p' ps = zeros(1,numel(dir)); % else ...
github
bmperrea/KitaevSL-master
initseq_matlab.m
.m
KitaevSL-master/geyer_stats/initseq_matlab.m
1,663
utf_8
602d378345e1f5bbc56e41fe996ced84
function [var_con,var_dec,var_pos,G_con,G_dec,G_pos,G_0] ... = initseq_matlab(x) % Finds the Geyer statstics of the input vector. % % Input: vector x % Output: [gamma_0,gamma_pos,gamma_dec,gamma_con,var_pos,var_dec,var_con] % var_* are estimates of the variance for a Markov chain % gamma_* are intermediary variab...
github
MiWalk/M2OPlot-master
plotXY.m
.m
M2OPlot-master/@M2OPlot/plotXY.m
3,476
utf_8
6de78cde94fc9d24adbbdbec426b7863
% *********************************** % MIT License % % Copyright (c) 2016 Michael Walker % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the "Software"), to deal % in the Software without restriction, including without limitation...
github
MiWalk/M2OPlot-master
plotHist.m
.m
M2OPlot-master/@M2OPlot/plotHist.m
2,780
utf_8
490c8c2887a62c135f39b0606c363328
% *********************************** % MIT License % % Copyright (c) 2016 Michael Walker % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the "Software"), to deal % in the Software without restriction, including without limitation...
github
MiWalk/M2OPlot-master
CheckVectors.m
.m
M2OPlot-master/@M2OPlot/CheckVectors.m
1,817
utf_8
2f3e1508483f040551e3d62f18e637ae
% *********************************** % MIT License % % Copyright (c) 2016 Michael Walker % % Permission is hereby granted, free of charge, to any person obtaining a copy % of this software and associated documentation files (the "Software"), to deal % in the Software without restriction, including without limitation...
github
mechanoChem/mechanoChemIGA-master
fit_mu_Spline_Octave.m
.m
mechanoChemIGA-master/utils/TiO_1D_splineFitScripts/fit_mu_Spline_Octave.m
3,532
utf_8
8844672d5139c8cf428e201d54e5a6c1
%Greg Teichert, University of Michigan %Octave script to fit chemical potential data with a spline clear clc function [smoothx] = smoothO (x) %Find the running average, default of 5 (2 points on either side). l = length(x); smoothx = x; smoothx(2) = 1/3*(x(1) + x(2) + x(3)); smoothx(l-1) = 1/3*(x(l-2) + x(l-1) + ...
github
mechanoChem/mechanoChemIGA-master
N_ip.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/N_ip.m
238
utf_8
1a9dfead6656983ad1c89876fdc9c0b8
function [N] = N_ip (i,p, x,X) if (p == 0) N = (X(i) <= x & x < X(i+1)); else N = (x - X(i)).*divZeroSafe(N_ip(i,p-1,x,X),X(i+p) - X(i)) + ... (X(i+p+1) - x).*divZeroSafe(N_ip(i+1,p-1,x,X),(X(i+p+1) - X(i+1))); end end
github
mechanoChem/mechanoChemIGA-master
z.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/z.m
185
utf_8
fe4d7dab9f73d24570ab0e48c5e9c41f
function [f] = z (x,y,p,X1,X2,C) f = 0; for k = 1:(length(X1) - p - 1) for l = 1:(length(X2) - p - 1) f = f + C(k,l)*N_ip(k,p,x,X1).*N_ip(l,p,y,X2); end end end
github
mechanoChem/mechanoChemIGA-master
dz_dy.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/dz_dy.m
187
utf_8
ef0cdafe7df89abb308c583496139cde
function [f] = dz_dy (x,y,p,X1,X2,C) f = 0; for k = 1:(length(X1) - p - 1) for l = 1:(length(X2) - p - 1) f = f + C(k,l)*N_ip(k,p,x,X1).*dkN_dxk(1,l,p,y,X2); end end end
github
mechanoChem/mechanoChemIGA-master
dz_dx.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/dz_dx.m
187
utf_8
d1ca7144e75f17f868a7aeda3fd3cb93
function [f] = dz_dx (x,y,p,X1,X2,C) f = 0; for j = 1:(length(X1) - p - 1) for l = 1:(length(X2) - p - 1) f = f + C(j,l)*dkN_dxk(1,j,p,x,X1).*N_ip(l,p,y,X2); end end end
github
mechanoChem/mechanoChemIGA-master
divZeroSafe.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/divZeroSafe.m
187
utf_8
9f8b55dfa18c53a135c914fa96e7b69d
function [c] = divZeroSafe (a,b) % Assuming a can be a vector/matrix, but b is a scalar if (b==0) c = zeros(size(a)); else c = a./b; % b = b + (b == 0); % c = a./b; end
github
mechanoChem/mechanoChemIGA-master
dN_dx.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/dN_dx.m
201
utf_8
2eacbeb346658973c711193112342e5f
function [dNdx] = dN_dx (i,p, x,X) if (p == 0) dNdx = 0; else dNdx = p*divZeroSafe(N_ip(i,p-1,x,X),X(i+p) - X(i)) - ... p*divZeroSafe(N_ip(i+1,p-1,x,X),(X(i+p+1) - X(i+1))); end end
github
mechanoChem/mechanoChemIGA-master
dkN_dxk.m
.m
mechanoChemIGA-master/utils/B2_2D_splineFitScripts/dkN_dxk.m
264
utf_8
49c5d9cda2a3c7a0ebd4019b9940f235
function [dkNdxk] = dkN_dxk (k,i,p,x,X) if (k == 0) dkNdxk = N_ip(i,p,x,X); elseif (p == 0) dkNdxk = 0; else dkNdxk = p*divZeroSafe(dkN_dxk(k-1,i,p-1,x,X),X(i+p) - X(i)) - ... p*divZeroSafe(dkN_dxk(k-1,i+1,p-1,x,X),(X(i+p+1) - X(i+1))); end end
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/Pump_Trip/pump_trip_exp/bigterm.m
212
utf_8
58f1ac15bac50c014c553e593097c8d2
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/accident/cold_slug/bigterm.m
212
utf_8
58f1ac15bac50c014c553e593097c8d2
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/accident/primary_pump_trip/bigterm.m
212
utf_8
58f1ac15bac50c014c553e593097c8d2
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/accident/second_pump_trip/bigterm.m
212
utf_8
58f1ac15bac50c014c553e593097c8d2
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/dynamic_model/SIMULINK_MSRE/bigterm.m
206
utf_8
a1f65394c90514bda027e1b5874b9e88
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
neudens.m
.m
MSBR-ORNL-4528-master/dynamic_model/XCOS/XCOS_PKE_MSR/Simulink/neudens.m
1,393
utf_8
161c042578fa09c7c992c683ae10372d
% Function to calculate the n(t) and C_i(t) as a function of time. % The parameters passed to the function are: % 1. t=time step, 2. y=initial values for n(t) and C_i(t), % 3. react=function to retrieve reactivity values, % 4. source=function to retrieve source values, % 5. bet=column vector with beta values, 6. B=s...
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/dynamic_model/Simulink/SIMULINK_MSBR/bigterm.m
206
utf_8
a1f65394c90514bda027e1b5874b9e88
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/dynamic_model/Simulink/SIMULINK_MSBR/Mathworks Support Request Files/4-20-17/bigterm.m
206
utf_8
a1f65394c90514bda027e1b5874b9e88
% Calculate the big term from rho_0 equation. function bterm=bigterm(bet,lam,t_L,t_C) bterm = 0; for i = 1:6 bterm = bterm + bet(i)/(1.0 + ((1.0-exp(-lam(i)*t_L))/(lam(i)*t_C))); end end
github
ondrejch/MSBR-ORNL-4528-master
PKE_general.m
.m
MSBR-ORNL-4528-master/dynamic_model/Octave/Octave_PKE_general/PKE_general.m
4,280
utf_8
c7d7db483fed67f942901337002d39e4
#{ Point Kinetics Equation (PKE) solver for education and research purposes. Author: Vikram Singh, viikraam@gmail.com Supervisor: Dr. Ondrej Chvala, Dept. of Nuclear Engineering, UTK, ochvala@utk.edu This program takes an input file with time (in s), reactivity, and external neutron source as three columns and ret...
github
ondrejch/MSBR-ORNL-4528-master
PKE_MSR.m
.m
MSBR-ORNL-4528-master/dynamic_model/Octave/Octave_PKE_MSR/PKE_MSR.m
6,880
utf_8
10396e95311f337a6b927fd074a37e31
#{ Point Kinetics Equation (PKE) solver for education and research purposes. Author: Vikram Singh, viikraam@gmail.com Supervisor: Dr. Ondrej Chvala, Dept. of Nuclear Engineering, UTK, ochvala@utk.edu This program takes an input file with time (in s), reactivity, and external neutron source as three columns and ret...
github
ondrejch/MSBR-ORNL-4528-master
react.m
.m
MSBR-ORNL-4528-master/dynamic_model/MATLAB/MATLAB_PKE_MSR/react.m
351
utf_8
8f210fc51cc67f13703ce7cce213c4d0
% Get reactivity value from input file for some t. function rho=react(t) global nrows; global input_data; if (t>input_data(nrows,1)) rho=input_data(nrows,2); else for i = 1:nrows-1 if (t>=input_data(i,1) & t<=input_data(i+1,1)) rho=input_data(i,2); break else continu...
github
ondrejch/MSBR-ORNL-4528-master
bigterm.m
.m
MSBR-ORNL-4528-master/dynamic_model/MATLAB/MATLAB_PKE_MSR/bigterm.m
206
utf_8
a6223c9224771423cc75890e117b016a
% Calculate the big term from rho_0 equation. function rho_0=bigterm(bet,lam,L,t_L,t_C) rho_0 = 0; for i = 1:6 rho_0 = rho_0 + bet(i)/(1.0 + (1.0-exp(-lam(i)*t_L))/(lam(i)*t_C)); end end
github
ondrejch/MSBR-ORNL-4528-master
neudens.m
.m
MSBR-ORNL-4528-master/dynamic_model/MATLAB/MATLAB_PKE_MSR/neudens.m
1,374
utf_8
535cda65f05424c8d5d9958e8a927144
% Function to calculate the n(t) and C_i(t) as a function of time. % The parameters passed to the function are: % 1. t=time step, 2. y=initial values for n(t) and C_i(t), % 3. react=function to retrieve reactivity values, % 4. source=function to retrieve source values, % 5. bet=column vector with beta values, 6. B=s...
github
ondrejch/MSBR-ORNL-4528-master
source.m
.m
MSBR-ORNL-4528-master/dynamic_model/MATLAB/MATLAB_PKE_MSR/source.m
349
utf_8
0641919b6a1890e3b681e424513bd3fe
% Get external source value from input file for some t. function S=source(t) global nrows; global input_data; if (t>input_data(nrows,1)) S=input_data(nrows,3); else for i = 1:nrows-1 if (t>=input_data(i,1) & t<=input_data(i+1,1)) S=input_data(i,3); break else continu...
github
nubot-nudt/nubot_ws-master
costfcn.m
.m
nubot_ws-master/src/nubot/omni_vision/calib_results/4/costfcn.m
1,499
utf_8
e385ffbc9fd936691f2ebb840e09aef2
%% @file % computes the cost function for the self localization for a given set of optimization parameters % % usage: J = costfcn(turtle) % % @author DJH Bruijnen <d.j.h.bruijnen@tue.nl> % @date 2006 % % @param p - optimization parameters [double array, 1x7] % @param fieldmap - grid with distance to the most nearby lin...