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 | OrangeOwlSolutions/Optimization-master | MultistartOptimizer.m | .m | Optimization-master/MultiStart/MultistartOptimizer.m | 5,599 | utf_8 | fab1b5344dfe90fe389808aee837a3f8 | % --- costfunctional Cost functional to be optimized
function [GlobalOptimum OptFuncVal] = MultistartOptimizer(minvalues, maxvalues, N, gammap, maxiter, maxiterlocal, options, Constrained, costfunctional)
% --- N Number of sampling points introduced at each iteration
% --- gammap ... |
github | kerkphil/CSL_unbalanced_growth-master | LinApp_FindSS.m | .m | CSL_unbalanced_growth-master/MATLAB code/LinApp_FindSS.m | 1,699 | utf_8 | 813e3554b8851b881ecedc0dc6bb89b6 | function XYbar = LinApp_FindSS(funcname,param,guessXY,Zbar,nx,ny)
% Version 1.0, written by Kerk Phillips, April 2014
%
% Finds the steady state for a DSGE model numerically
%
% This function takes the following inputs:
% funcname - is the name of the function which generates a column vector
% from ny+nx dynamic ... |
github | cgershen/prog-master | The_Game_of_Life_Resendiz_Georgina.m | .m | prog-master/tareas/20180816-GameOfLife/The_Game_of_Life_Resendiz_Georgina.m | 51,190 | utf_8 | e1e6669e4d81fc81026c8d73789ce858 | function varargout = The_Game_of_Life_Resendiz_Georgina(varargin)
% The_Game_of_Life_Resendiz_Georgina MATLAB code for The_Game_of_Life_Resendiz_Georgina.fig
% The_Game_of_Life_Resendiz_Georgina, by itself, creates a new The_Game_of_Life_Resendiz_Georgina or raises the existing
% singleton*.
%
% H = The_... |
github | fxie2/Channel_DNS-master | solveup.m | .m | Channel_DNS-master/DisMethod/SteadyWall/Matlab/solveup.m | 1,914 | utf_8 | 2c3b967830e026bcabc34bf4346e9695 | global u, v, w, pgx, pgz, dx, dy, dz, h, dy2dy, dy2h, dydy, dyh;
function [u, v, w, p, pgx, pgz] = solveup(u, v, w, p, pgx, pgz, dx, dy, dz, h, dy2dy, dy2h, dydy, dyh)
[du, dv, dw] = getvel(u, v, w, pgx, pgz, dx, dy, dz, h, dy2dy, dy2h, dydy, dyh);
dp = getpre(du, dv, dw, p, pgx, pgz, dx, dy, dz, h, dy2dy, dy2h, dydy, ... |
github | fxie2/Channel_DNS-master | ode2_solve.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/ode2_solve.m | 3,485 | utf_8 | 07235bfa79d490e3b682cf11f7b05046 | %% Channel DNS Subfunction - ode2_solve
%% Purpose
% Solve the 2nd order diffential equation in the form:
% f"(y) - k*f(y) = s(y) , y in [-1, 1]
% with first kind boundary condition:
% f(-1) = A, f(1) = B
% or with second kind boundary condition:
% f'(-1) = A, f'(1) = B
%% Method
% Use Chebysh... |
github | fxie2/Channel_DNS-master | getphi.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/getphi.m | 198 | utf_8 | f204c79c0ab8c7d08407cc9142721436 | %% Channel DNS Subfunction - getphi
%% Purpose
% Calculate the phi term
%% Code
function [phix, phiy, phiz, phit] = getphi(nx, nz, alpha, beta, Ax, kx,...
cx, phi0x, Az, kz, cz, phi0z, t)
end |
github | fxie2/Channel_DNS-master | global_trans.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/global_trans.m | 1,320 | utf_8 | 223c90b63c4450c51f17f3d33ed1bcff | %% Channel DNS Subfunction - global_trans
%% Purpose
% Transform between physical space and spectral space
%% Parameters
% Input parameters:
% u ------------------------ spectral or physical data
% direction ---------------- 1 for p -> s, -1 for s -> p
% Output parameter:
% w ------------------------ physic... |
github | fxie2/Channel_DNS-master | Gterm.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/Gterm.m | 941 | utf_8 | bfcd84f4dde4cf3f98ff4c5762a5ecc6 | %% Channel DNS Subfunction - Gterm
%% Purpose
% Calculate the G term in Pressure step
%% Parameters
% Input parameters:
% fy -------------------------- lamb-y term
% us, vs, ws ------------------ velocity term
% alpha, beta ----------------- wave number
% re -------------------------- reynold number
% Out... |
github | fxie2/Channel_DNS-master | correct.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/correct.m | 3,132 | utf_8 | 8299ea20b644cf25bb88c8811cd0628b | %% Channel DNS Subfunction - Correct
%% Purpose
% Calculate the pressure and velocity correct field
%% Method
% The correct pressure field satisfies:
%
% laplace P_c+ = 0
% P_c+(y=1) = 1, P_c+(y=-1) = 0 (Selected)
%
% laplace P_c- = 0
% P_c-(y=1) = 0, P_c-(y=-1) = 1
%
% A... |
github | fxie2/Channel_DNS-master | partial.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/partial.m | 1,054 | utf_8 | b51691935828ded1c7bd1f4b70a1543b | %% Channel DNS Subfunction - partial
%% Purpose
% Calculate the partial derivative in spectral space
%% Parameters
% Input parameters:
% f ------------------------- input data in spectral space
% direction ----------------- 'x' for d_dx, and so is others
% parameter ----------------- alpha for 'x', beta for '... |
github | fxie2/Channel_DNS-master | globe_partial.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/globe_partial.m | 1,021 | utf_8 | 0a9e12cca4a4256d24243d88813e50f9 | %% Channel DNS Subfunction - globe_partial
%% Purpose
% Calculate the parital derivative of the hole field
%% Parameters
% Input parameters:
% f ------------------------- spectral data in 3-D
% direction ----------------- 'x' for d_dx, and so on
% parameter ----------------- alpha for 'x', beta for 'z', nothi... |
github | fxie2/Channel_DNS-master | initialize.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/initialize.m | 762 | utf_8 | 5201f72699bd17b93a2f32b35f527d85 | %% Channel DNS Subfunction - initialize
%% Purpose
% Initialize the fluid field at the start time
%% Parameters
% nx, ny, nz ----------------------------- mesh size
% alpha, beta ---------------------------- wave number in x and z
%% Author
% Written by Luohao Wang on 2015-9-12
% Contact : lh-wang13@mails.tsi... |
github | fxie2/Channel_DNS-master | lamb.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/lamb.m | 824 | utf_8 | 50918fd8bcceff06447f45d84c8ed52a | %% Channel DNS Subfunction - lamb
%% Purpose
% Calculate the lamb term F = V X w.
%% Parameters
% Input parameters:
% us , vs, ws ------------------------- spectral velocity in 3-D
% alpha, beta ------------------------- wave number in x and z
% Output parameters:
% fx, fy, fz -------------------------- con... |
github | fxie2/Channel_DNS-master | wallmove.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/wallmove.m | 2,073 | utf_8 | b961d4f3acb681353aa595816e5ce1aa | %% Channel DNS Subfunction - wallmove
%% Purpose
% Generate physical shape of both upper and lower wall
% with form:
%
% etau(x,z,t) = sum Ax_n*sin(kx_n*x - cx_n*t + phi0x_n)
% sum Az_n*sin(kz_n*z - cz_n*t + phi0z_n), n = 1,2,...
%
% etad(x,z,t) has the same form.
%% Parameters
% Input paramet... |
github | fxie2/Channel_DNS-master | fcl.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/fcl.m | 2,248 | utf_8 | 9b2c970ce79cf19b19812669babe5139 | %% Channel DNS Subfunction - fcl
%% Purpose
% Compute u_i*v_i in spectral space using FFT instead of convolution
%% Method
% See 3/2 rule
%% Parameters
% Input parameters:
% u, v ------------------------ spectral data in 3-D for convolution
% Output parameter:
% w --------------------------- spectral result... |
github | fxie2/Channel_DNS-master | FCT.m | .m | Channel_DNS-master/SpcMethod/MoveWall/Matlab/FCT.m | 2,444 | utf_8 | 86deacb16830af48ce9e19167ec1a22b | %% Fast Chebyshev Transform
%% Introduction
% This function is used to transform a series of data from
% physical space into spectral space (or inverse), which is
% useful in solving boundary problems by spectral method.
%% Theory
% Suppose we have a series of data, {f_k}, k = 0,1,2,...,N,
% which is generate... |
github | fxie2/Channel_DNS-master | ode2_solve.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/ode2_solve.m | 3,689 | utf_8 | ba5e7b3b7cc1e99fabbee3a08fb4dce1 | %% Channel DNS Subfunction - ode2_solve
%% Purpose
% Solve the 2nd order diffential equation in the form:
% f"(y) - k*f(y) = s(y) , y in [-1, 1]
% with first kind boundary condition:
% f(-1) = A, f(1) = B
% or with second kind boundary condition:
% f'(-1) = A, f'(1) = B
%% Method
% Use Chebysh... |
github | fxie2/Channel_DNS-master | global_trans.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/global_trans.m | 1,476 | utf_8 | c2edfd66d6832abd467b2fe915955e21 | %% Channel DNS Subfunction - global_trans
%% Purpose
% Transform between physical space and spectral space
%% Parameters
% Input parameters:
% u ------------------------ spectral or physical data
% direction ---------------- 1 for p -> s, -1 for s -> p
% Output parameter:
% w ------------------------ physic... |
github | fxie2/Channel_DNS-master | Gterm.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/Gterm.m | 941 | utf_8 | bfcd84f4dde4cf3f98ff4c5762a5ecc6 | %% Channel DNS Subfunction - Gterm
%% Purpose
% Calculate the G term in Pressure step
%% Parameters
% Input parameters:
% fy -------------------------- lamb-y term
% us, vs, ws ------------------ velocity term
% alpha, beta ----------------- wave number
% re -------------------------- reynold number
% Out... |
github | fxie2/Channel_DNS-master | correct.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/correct.m | 3,172 | utf_8 | 5448b3d830a487cfe2874f301c895edc | %% Channel DNS Subfunction - Correct
%% Purpose
% Calculate the pressure and velocity correct field
%% Method
% The correct pressure field satisfies:
%
% laplace P_c+ = 0
% P_c+(y=1) = 1, P_c+(y=-1) = 0 (Selected)
%
% laplace P_c- = 0
% P_c-(y=1) = 0, P_c-(y=-1) = 1
%
% A... |
github | fxie2/Channel_DNS-master | partial.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/partial.m | 1,054 | utf_8 | b51691935828ded1c7bd1f4b70a1543b | %% Channel DNS Subfunction - partial
%% Purpose
% Calculate the partial derivative in spectral space
%% Parameters
% Input parameters:
% f ------------------------- input data in spectral space
% direction ----------------- 'x' for d_dx, and so is others
% parameter ----------------- alpha for 'x', beta for '... |
github | fxie2/Channel_DNS-master | dpdx_correct.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/dpdx_correct.m | 1,174 | utf_8 | 92b0138e9e1ba91082d0bfcbf390c997 | %% Channel DNS Subroutine - dpdx_correct
%% Puporse
% Correct the gradient of pressure according to the constant mass flow
% boundary condition
%% Method
% Treat dpdx as the function of mass flow rate, use secant method to find
% the sloution
%% Code
function dpdx = dpdx_correct(u, dpdx_u, u_hist, dpdx_hist, q... |
github | fxie2/Channel_DNS-master | globe_partial.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/globe_partial.m | 1,021 | utf_8 | 0a9e12cca4a4256d24243d88813e50f9 | %% Channel DNS Subfunction - globe_partial
%% Purpose
% Calculate the parital derivative of the hole field
%% Parameters
% Input parameters:
% f ------------------------- spectral data in 3-D
% direction ----------------- 'x' for d_dx, and so on
% parameter ----------------- alpha for 'x', beta for 'z', nothi... |
github | fxie2/Channel_DNS-master | initialize.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/initialize.m | 762 | utf_8 | 5201f72699bd17b93a2f32b35f527d85 | %% Channel DNS Subfunction - initialize
%% Purpose
% Initialize the fluid field at the start time
%% Parameters
% nx, ny, nz ----------------------------- mesh size
% alpha, beta ---------------------------- wave number in x and z
%% Author
% Written by Luohao Wang on 2015-9-12
% Contact : lh-wang13@mails.tsi... |
github | fxie2/Channel_DNS-master | lamb.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/lamb.m | 824 | utf_8 | 50918fd8bcceff06447f45d84c8ed52a | %% Channel DNS Subfunction - lamb
%% Purpose
% Calculate the lamb term F = V X w.
%% Parameters
% Input parameters:
% us , vs, ws ------------------------- spectral velocity in 3-D
% alpha, beta ------------------------- wave number in x and z
% Output parameters:
% fx, fy, fz -------------------------- con... |
github | fxie2/Channel_DNS-master | fcl.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/fcl.m | 2,372 | utf_8 | 42f6311dd63f57c3781427680d1fd651 | %% Channel DNS Subfunction - fcl
%% Purpose
% Compute u_i*v_i in spectral space using FFT instead of convolution
%% Method
% See 3/2 rule
%% Parameters
% Input parameters:
% u, v ------------------------ spectral data in 3-D for convolution
% Output parameter:
% w --------------------------- spectral result... |
github | fxie2/Channel_DNS-master | FCT.m | .m | Channel_DNS-master/SpcMethod/SteadyWall/Matlab/FCT.m | 2,444 | utf_8 | 86deacb16830af48ce9e19167ec1a22b | %% Fast Chebyshev Transform
%% Introduction
% This function is used to transform a series of data from
% physical space into spectral space (or inverse), which is
% useful in solving boundary problems by spectral method.
%% Theory
% Suppose we have a series of data, {f_k}, k = 0,1,2,...,N,
% which is generate... |
github | zhangyaonju/SCOPE-master | leafangles.m | .m | SCOPE-master/SCOPE_v1.xx/code/leafangles.m | 2,171 | utf_8 | f75c20fd775190446a1b01537666fe9b | function [lidf]= leafangles(a,b)
% Subroutine FluorSail_dladgen
% Version 2.3
% For more information look to page 128 of "theory of radiative transfer models applied in optical remote sensing of
% vegetation canopies"
%
% FluorSail for Matlab
% FluorSail is created by Wout Verhoef... |
github | zhangyaonju/SCOPE-master | resistances.m | .m | SCOPE-master/SCOPE_v1.xx/code/resistances.m | 7,021 | utf_8 | d6ca3e4e301c369a6c4d0c7ca8630dd1 | function [resist_out] = resistances(resist_in)
%
% function resistances calculates aerodynamic and boundary resistances
% for soil and vegetation
%
% Date: 01 Feb 2008
% Authors: Anne Verhoef (a.verhoef@reading.ac.uk)
% Christiaan van der Tol (tol@itc.nl)
% Joris... |
github | zhangyaonju/SCOPE-master | biochemical.m | .m | SCOPE-master/SCOPE_v1.xx/code/biochemical.m | 10,627 | utf_8 | e0b5410e1075fd373aa45f0ef7de85f1 | function biochem_out = biochemical(biochem_in)
%
% Date: 21 Sep 2012
% Update: 20 Feb 2013
% Update: Aug 2013: correction of L171: Ci = Ci*1e6 ./ p .* 1E3;
%
% Authors: Joe Berry and Christiaan van der Tol, contributions of others.
% Sources:
% Farquhar et al. 1980, Collatz et al (1991, 1992).
... |
github | zhangyaonju/SCOPE-master | progressbar.m | .m | SCOPE-master/SCOPE_v1.xx/code/progressbar.m | 11,767 | utf_8 | 06705e480618e134da62478338e8251c | function progressbar(varargin)
% Description:
% progressbar() provides an indication of the progress of some task using
% graphics and text. Calling progressbar repeatedly will update the figure and
% automatically estimate the amount of time remaining.
% This implementation of progressbar is intended to be extreme... |
github | zhangyaonju/SCOPE-master | biochemical_MD12.m | .m | SCOPE-master/SCOPE_v1.xx/code/biochemical_MD12.m | 25,299 | utf_8 | 88ceb939a207d7f9a5771afca4788999 | function biochem_out = biochemical_MD12(biochem_in)
%[A,Ci,eta] = biochemical_VCM(Cs,Q,T,eb,O,p,Vcmo,m,Type,Rdparam,stress,Tyear,beta,qLs,NPQs)
% Date: 21 Sep 2012
% Update: 28 Jun 2013 Adaptation for use of Farquhar model of C3 photosynthesis (Farquhar et al 1980)
% 18 Jul 2013 Inclusion of von Caemmer... |
github | zhangyaonju/SCOPE-master | RTMt_sb_new.m | .m | SCOPE-master/SCOPE_v1.xx/code/RTMt_sb_new.m | 10,022 | utf_8 | c94416960d57cf938cdf22c7fe8686c3 | function [rad] = RTMt_sb(spectral,rad,soil,leafopt,canopy,gap,angles,Tcu,Tch,Tsu,Tsh,obsdir)
% function 'RTMt_sb' calculates total outgoing radiation in hemispherical
% direction and total absorbed radiation per leaf and soil component.
% Radiation is integrated over the whole thermal spectrum with
% Stefan-Boltzman's... |
github | zhangyaonju/SCOPE-master | RTMo.m | .m | SCOPE-master/SCOPE_v1.xx/code/RTMo.m | 29,666 | utf_8 | d59333054d811ca125ec7398fca68705 | function [rad,gap,profiles] = RTMo(spectral,atmo,soil,leafopt,canopy,angles,meteo,rad,options)
%% function RTMo
% calculates the spectra of hemisperical and directional observed visible
% and thermal radiation (fluxes E and radiances L), as well as the single
% and bi-directional gap probabilities
%
% th... |
github | zhangyaonju/SCOPE-master | fluspect_bcar.m | .m | SCOPE-master/SCOPE_v1.xx/code/fluspect_bcar.m | 9,764 | utf_8 | 1d6d75758809d255fcab68e39cfc66f0 | function [leafopt] = fluspect_bcar(spectral,leafbio,optipar)
%
% Fluspect simulated reflectance, transmittance and fluorescence of leaves
% Copyright (C) 2015 Wout Verhoef and Christiaan van der Tol
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU Ge... |
github | zhangyaonju/SCOPE-master | RTMt_sb.m | .m | SCOPE-master/SCOPE_v1.xx/code/RTMt_sb.m | 9,905 | utf_8 | 0e51dfe6983199e3edb940a3be235f1f | function [rad] = RTMt_sb(spectral,rad,soil,leafopt,canopy,gap,angles,Tcu,Tch,Tsu,Tsh,obsdir)
% function 'RTMt_sb' calculates total outgoing radiation in hemispherical
% direction and total absorbed radiation per leaf and soil component.
% Radiation is integrated over the whole thermal spectrum with
% Stefan-Boltzman's... |
github | kekedan/py-faster-rcnn-master | voc_eval.m | .m | py-faster-rcnn-master/lib/datasets/VOCdevkit-matlab-wrapper/voc_eval.m | 1,332 | utf_8 | 3ee1d5373b091ae4ab79d26ab657c962 | function res = voc_eval(path, comp_id, test_set, output_dir)
VOCopts = get_voc_opts(path);
VOCopts.testset = test_set;
for i = 1:length(VOCopts.classes)
cls = VOCopts.classes{i};
res(i) = voc_eval_cls(cls, VOCopts, comp_id, output_dir);
end
fprintf('\n~~~~~~~~~~~~~~~~~~~~\n');
fprintf('Results:\n');
aps = [res(:... |
github | zhusz/ECCV16-CBN-master | CBN_ghosting.m | .m | ECCV16-CBN-master/examples/sr1/demo/CBN_ghosting.m | 3,072 | utf_8 | f31a2af9822c312ec152101f63cb3686 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function h4 = CBN_ghosting(h,GPU_ID)
if ~exist('GPU_ID','var'), GPU_ID = 7; end;
m = size(h,4);
% Just for the ease of the experiment for observing... |
github | zhusz/ECCV16-CBN-master | pt2mask.m | .m | ECCV16-CBN-master/examples/sr1/demo/pt2mask.m | 1,203 | utf_8 | 02de869f693f30cf9c39271364628a26 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function mask = pt2mask(ePnow, win_size_now, sq_half_size)
edge_idx = {18:22, 69:78, 23:27, 79:88, ...
37:40, [37 42 41 40], 43:46, [43 48 47 46... |
github | zhusz/ECCV16-CBN-master | CBN.m | .m | ECCV16-CBN-master/examples/sr1/demo/CBN.m | 3,283 | utf_8 | 4cd0f555847053f948646e8fc09bdfb5 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function h4 = CBN(h,GPU_ID)
if ~exist('GPU_ID','var'), GPU_ID = 7; end;
win_size_top = 256;
ref_simple_face = win_size_top * [([0.4 0.6 0.412 0.588]... |
github | zhusz/ECCV16-CBN-master | frameworkForward.m | .m | ECCV16-CBN-master/codes/caffe_exetension/frameworkForward.m | 1,221 | utf_8 | d55dc0e882f297fccdfccbccd2456bfa | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [outer] = frameworkForward(directory,P,D,S,iter,inter,input_indexing_dim,b,verbose,GPU_device)
% Directory should contain the P folder
% Dir... |
github | zhusz/ECCV16-CBN-master | batchForward.m | .m | ECCV16-CBN-master/codes/caffe_exetension/batchForward.m | 3,189 | utf_8 | fbe6f5b321262854e27bfbbef531f28c | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [outer,whole_blob_firstBatch] = batchForward(net, inter, input_indexing_dim,b,verbose)
% If some input object is not splitted by sample inde... |
github | zhusz/ECCV16-CBN-master | getWeight.m | .m | ECCV16-CBN-master/codes/caffe_exetension/getWeight.m | 739 | utf_8 | 7ece356cd27c1174c902d940ab694d3f | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
% Assumes path to matcaffe has been included
function m = getWeight(net)
n_layer = length(net.layer_names);
m.layer = cell(n_layer, 2);
m.layer_name... |
github | zhusz/ECCV16-CBN-master | batchForwardPDS.m | .m | ECCV16-CBN-master/codes/caffe_exetension/batchForwardPDS.m | 852 | utf_8 | 8a87d7f370145e4404db482421ca060e | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function output = batchForwardPDS(Proot, GPU_ID, input, P, D, S, iter, verbose, batch_size)
if ~exist('batch_size','var'), batch_size = 64; end;
if ... |
github | zhusz/ECCV16-CBN-master | getNetB.m | .m | ECCV16-CBN-master/codes/caffe_exetension/getNetB.m | 1,555 | utf_8 | cf658576946e34b255212883b2e43862 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
% Assumes path to matcaffe has been included
function m = getNetB(net)
n_layer = length(net.layer_names);
n_blob = length(net.blob_names);
m.layer ... |
github | zhusz/ECCV16-CBN-master | getNet.m | .m | ECCV16-CBN-master/codes/caffe_exetension/getNet.m | 1,554 | utf_8 | 95ee41bd63574285fdc9560d895e26fe | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
% Assumes path to matcaffe has been included
function m = getNet(net)
n_layer = length(net.layer_names);
n_blob = length(net.blob_names);
m.layer =... |
github | zhusz/ECCV16-CBN-master | createH5DataTrain.m | .m | ECCV16-CBN-master/codes/caffe_exetension/createH5DataTrain.m | 4,585 | utf_8 | 7c4d83febfd40735c267f7ffa4e56dd5 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function createH5DataTrain(confirm_current_project)
directory = pwd;
directory_split = strsplit(directory, '/');
P = directory_split{end-1};... |
github | zhusz/ECCV16-CBN-master | genXPrototype.m | .m | ECCV16-CBN-master/codes/caffe_exetension/genXPrototype.m | 18,115 | utf_8 | 1ca9a774838fbaaa97cb2382950ff37d | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function genXPrototype(GPU_ID)
% By-product: calculated network feature map size
% Printed onto the screen
% Important variable:
% p: proje... |
github | zhusz/ECCV16-CBN-master | createH5DataTest.m | .m | ECCV16-CBN-master/codes/caffe_exetension/createH5DataTest.m | 3,805 | utf_8 | 9e43ef196726df7b3d4f5a2689a721e5 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function createH5DataTest(confirm_current_project)
directory = pwd;
directory_split = strsplit(directory, '/');
P = directory_split{end-1};
... |
github | zhusz/ECCV16-CBN-master | transImagesFwd.m | .m | ECCV16-CBN-master/codes/trans/transImagesFwd.m | 1,270 | utf_8 | 403aab76fe2a698286babee06323f9e3 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function newImages = transImagesFwd(oldImages,T,rows,cols)
%newImages = transImagesFwd(oldImages)
% images are all cell array.
m = length(... |
github | zhusz/ECCV16-CBN-master | getTransToSpecific.m | .m | ECCV16-CBN-master/codes/trans/getTransToSpecific.m | 930 | utf_8 | 03340d5afae78b851f1934b4f6763ec7 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransToSpecific(pose,specific)
%T = getTransToSpecific(pose,specific)
% T: m*1 t_concord
% pose: m*2n
% specific: 1*2n
... |
github | zhusz/ECCV16-CBN-master | getTransToMean.m | .m | ECCV16-CBN-master/codes/trans/getTransToMean.m | 988 | utf_8 | 2cb374e914c957d9f6d787a10e36d217 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransToMean(pose)
% T = getTransToMean(pose)
% produce trans to project poese onto mean pose
% size(pose) = [m,2n], each row m... |
github | zhusz/ECCV16-CBN-master | getTransPair.m | .m | ECCV16-CBN-master/codes/trans/getTransPair.m | 905 | utf_8 | 074d64eb279affb07157a1f702c5464e | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransPair(pose1,pose2)
%T = getTransPair(pose1,pose2)
% T: m*1 t_concord
% pose1: m*2n
% pose2: m*2n
n = size(pose1,... |
github | zhusz/ECCV16-CBN-master | getTransViaXY.m | .m | ECCV16-CBN-master/codes/trans/getTransViaXY.m | 550 | utf_8 | f41ee5ea1902c2edd08473f8a9d72730 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransViaXY(XY,win_size)
%T = getTransViaXY(scaling_vector,win_size)
% T: m*1 t_concord
% XY: m*2
m = size(XY,1);
asse... |
github | zhusz/ECCV16-CBN-master | getTransViaRotateGivenCenter.m | .m | ECCV16-CBN-master/codes/trans/getTransViaRotateGivenCenter.m | 1,235 | utf_8 | be1f610a94138e6c0c932fb87f257fd0 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransViaRotateGivenCenter(theta_vector,center,rotatorLength)
%T = getTransViaRotateGivenCenter(theta_vector,win_size)
% T: m*... |
github | zhusz/ECCV16-CBN-master | getTransViaMerge.m | .m | ECCV16-CBN-master/codes/trans/getTransViaMerge.m | 906 | utf_8 | d3cd898a298d90a1dc849d8511bd6e00 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransViaMerge(win_size,varargin)
% T = getTransViaMerge(win_size,T1,T2,...)
% y = T(x) = T_nargin(...(T2(T1(x))))
% T-s can ... |
github | zhusz/ECCV16-CBN-master | transPoseRigidTurbulent.m | .m | ECCV16-CBN-master/codes/trans/transPoseRigidTurbulent.m | 1,691 | utf_8 | 3ad20b33786a8f3a7cf35cf319902823 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [newCurrentPose,testShift] = transPoseRigidTurbulent(themeA,win_size,turb_coeff,currentPose,targetPose,errorL,errorS,maxIter)
% Pleas... |
github | zhusz/ECCV16-CBN-master | getTransViaScaling.m | .m | ECCV16-CBN-master/codes/trans/getTransViaScaling.m | 863 | utf_8 | 544591f1eb14509860b0fc393ca2c16b | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransViaScaling(scaling_vector,win_size)
%T = getTransViaScaling(scaling_vector,win_size)
% T: m*1 t_concord
% scaling_vec... |
github | zhusz/ECCV16-CBN-master | transPoseFwd.m | .m | ECCV16-CBN-master/codes/trans/transPoseFwd.m | 1,218 | utf_8 | eb1853ef17684bba523cf027a8285335 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function newPose = transPoseFwd(oldPose,T)
% newPose = transPoseFwd(oldPose,T)
% produce new pose according to oldPose and T
% size(oldPose) =... |
github | zhusz/ECCV16-CBN-master | getTransViaRotate.m | .m | ECCV16-CBN-master/codes/trans/getTransViaRotate.m | 923 | utf_8 | 9d8a11b78871350dc1b808e37c61d728 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransViaRotate(theta_vector,win_size)
%T = getTransViaRotate(theta_vector,win_size)
% T: m*1 t_concord
% theta_vector: m*1... |
github | zhusz/ECCV16-CBN-master | getTransRandomCross.m | .m | ECCV16-CBN-master/codes/trans/getTransRandomCross.m | 1,175 | utf_8 | 7fb2c466057c830574d5c8df1cd841cd | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransRandomCross(pose)
% T = getTransRandomCross(pose)
% produce trans to project poese onto randomly selected another pose
% ... |
github | zhusz/ECCV16-CBN-master | getTransPairRegardingNaN.m | .m | ECCV16-CBN-master/codes/trans/getTransPairRegardingNaN.m | 827 | utf_8 | 6c4302099433bd3b5a70427bedb91c8d | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransPairRegardingNaN(pose1,pose2)
%T = getTransPair(pose1,pose2)
% T: m*1 t_concord
% pose1: m*2n
% pose2: m*2n
n =... |
github | zhusz/ECCV16-CBN-master | transPoseInv.m | .m | ECCV16-CBN-master/codes/trans/transPoseInv.m | 1,218 | utf_8 | 1455a7d757d552480df16bb04986cec3 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function newPose = transPoseInv(oldPose,T)
% newPose = transPoseInv(oldPose,T)
% produce new pose according to oldPose and T
% size(oldPose) =... |
github | zhusz/ECCV16-CBN-master | getTransShift.m | .m | ECCV16-CBN-master/codes/trans/getTransShift.m | 1,224 | utf_8 | 93cb76a68896c019a072c3e5ff4db56e | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function T = getTransShift(win_size,shift,m)
%T = getTransShift(win_size,shift,m)
% return Ta with size m*1
centric = floor([win_size / 2,... |
github | zhusz/ECCV16-CBN-master | selectPoses.m | .m | ECCV16-CBN-master/codes/toolbox_face_alignment/selectPoses.m | 344 | utf_8 | 2f35b1cf3e822201de1c0458e6c27780 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [selectedPose,ind] = selectPoses(pose,sub,d)
if nargin<3
d = 2;
end;
ind = selectPosesIdx(size(pose,2),sub,d);
selectedPose =... |
github | zhusz/ECCV16-CBN-master | selectPosesIdx.m | .m | ECCV16-CBN-master/codes/toolbox_face_alignment/selectPosesIdx.m | 375 | utf_8 | 63aca49a8acf67eb352992faa67d8d96 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function ind = selectPosesIdx(len,sub,d)
if nargin<3
d = 2;
end
assert(mod(len,d)==0);
gap = len/d;
ind = [];
sub = sub(:)';
for i ... |
github | zhusz/ECCV16-CBN-master | raRandPerm.m | .m | ECCV16-CBN-master/codes/extension/raRandPerm.m | 357 | utf_8 | 945e4384372d2aa3727c2c9d9c823e4d | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function ra = raRandPerm(n,k)
% K can be larger than N
times = ceil(k/n);
ra = zeros(n,times);
for i = 1:times,ra(:,i) = randperm(n)';end;
... |
github | zhusz/ECCV16-CBN-master | setMatAccordingToDim_str.m | .m | ECCV16-CBN-master/codes/extension/setMatAccordingToDim_str.m | 829 | utf_8 | 5e8a9e050f9b8d5e24395ef931ec107d | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function s = setMatAccordingToDim_str(dim_tot, dim_ID, dim_index)
% output example: (:,:,[1 2 3 4], [2 3 5],:,[3])
% Outside you need to use eval to ... |
github | zhusz/ECCV16-CBN-master | equalAssert.m | .m | ECCV16-CBN-master/codes/extension/equalAssert.m | 1,123 | utf_8 | 6ebec5bf05aad6b71d95f9d5c5eaaae3 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function equalAssert(A,B,mode,epsilon)
if ~exist('mode','var')
mode = 0;
end;
switch mode
case 0 % double accurate scalar input
... |
github | zhusz/ECCV16-CBN-master | swap.m | .m | ECCV16-CBN-master/codes/extension/swap.m | 226 | utf_8 | 9d889f79e9f350cee4a4c2bf3a688bc6 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [A,B] = swap(A,B)
T = A;
A = B;
B = T;
end
|
github | zhusz/ECCV16-CBN-master | minInMat.m | .m | ECCV16-CBN-master/codes/extension/minInMat.m | 283 | utf_8 | fc9b0b8ad44696ebced17418e2b645d3 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [v,i,j] = minInMat(A)
assert(ndims(A) <= 2);
[v,id] = min(A, [], 1);
[v,j] = min(v);
i = id(j);
end
|
github | zhusz/ECCV16-CBN-master | indexingData.m | .m | ECCV16-CBN-master/codes/extension/indexingData.m | 640 | utf_8 | 16ac4a91a8d1d0e87761c25c1e7c3408 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function varargout = indexingData(varargin)
%varargout = indexingData(ind,varargin)
% every element in varargin will be extracted according t... |
github | zhusz/ECCV16-CBN-master | getMatAccordingToDim.m | .m | ECCV16-CBN-master/codes/extension/getMatAccordingToDim.m | 648 | utf_8 | 242e8bc2c6a05c1f8d48ab4bb373713a | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function data_out = getMatAccordingToDim(data_in, dim_ID, dim_index) %#ok<STOUT>
nd = ndims(data_in);
assert(length(dim_ID) == 1 && dim_ID <=... |
github | zhusz/ECCV16-CBN-master | isIn_str.m | .m | ECCV16-CBN-master/codes/extension/isIn_str.m | 741 | utf_8 | e60520abf0c9da63c397e7850c9019c0 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function [TF,TF_idx] = isIn_str(ele,s)
%TF = isIn_str(ele,s)
% judge if ele is in the set s. return 0 or 1.
% if ele is an array TF will also be ... |
github | zhusz/ECCV16-CBN-master | isIn.m | .m | ECCV16-CBN-master/codes/extension/isIn.m | 391 | utf_8 | 02eec0695dfd9451cef67290ae729315 | % Codes for ECCV-16 work `Deep Cascaded Bi-Network for Face Hallucination'
% Any question please contact Shizhan Zhu: zhshzhutah2@gmail.com
% Released on August 19, 2016
function TF = isIn(ele,s)
%TF = isIn(ele,s)
% judge if ele is in the set s. return 0 or 1.
% if ele is an array TF will also be an array.
... |
github | KevinLoudi/SpectrumLearning-master | MultiDayAnalysisProcess.m | .m | SpectrumLearning-master/MultiDayAnalysisProcess.m | 1,325 | utf_8 | 7881ab86c43542c5be879bca35f5415b | %Analsis Multi-day data
%Author: Zhu Gengyu
%Date: 2016/7/18
function MultiDayAnalysisProcess()
%Analyz channel state
Parameters.MaxSlotNum = 2000;
Parameters.MaxChannelNum = 6000;
Parameters.ExtremSize = 0.05;
Parameters.SingalThershold = 30; %dB
%load original several-day-all-timeslot data data
StartF = 171... |
github | KevinLoudi/SpectrumLearning-master | BandCluster.m | .m | SpectrumLearning-master/BandCluster.m | 858 | utf_8 | 4c5e780ac7e69c64aff71d9ffe8bc463 | %Culster data according to divided channel
%Author: Zhu Gengyu
%Date: 2016/8/17
function BandLevel = BandCluster(Level, StartF, StopF)
% 1710+0.2*(n-511) downlink
[slots,freqs] = size(Level);
%ratio = 0.2/0.025;
%banditem = 1:ratio:freqs;
bandindex = 1;
count = 0;
BandLevel = zeros(slots,floor(freqs/8));... |
github | KevinLoudi/SpectrumLearning-master | MultiDayDataSave.m | .m | SpectrumLearning-master/MultiDayDataSave.m | 1,315 | utf_8 | b8d635bf1beca44e07b05881a68bd4cd | %Save multi-day data into .mat file
%Author: Zhu Gengyu
%Date: 2016/7/19
function MultiDayDataSave()
clear;
clc;
%Path = 'E:\\tmpData\\825-960\\%s\\02';
%Path ='D:\\Code\\Matlab\\SpectrumLearning\\Data\\OriginData\\1710-1960\\%s\\02';
% StartF = 1710;
% StopF = 1740;
Path ='D:\\Code\\Matlab\\SpectrumLearning\... |
github | KevinLoudi/SpectrumLearning-master | HMMAnalyz.m | .m | SpectrumLearning-master/HMMAnalyz.m | 264 | utf_8 | e4373db7276009a068ce13995df9d68c | %Author: Zhu Gengyu
%Date: 2016/8/17
%Propose: Analyz Time State Evolution
function [Res] = HMMAnalyz()
TRANS = [.9 .1; .05 .95;];
EMIS = [1/6, 1/6, 1/6, 1/6, 1/6, 1/6;...
7/12, 1/12, 1/12, 1/12, 1/12, 1/12];
[seq,states] = hmmgenerate(1000,TRANS,EMIS);
end |
github | KevinLoudi/SpectrumLearning-master | WaterFallPlot.m | .m | SpectrumLearning-master/WaterFallPlot.m | 341 | utf_8 | 8d8ddfdc834d4a973e9e9199f50ff547 | %Plot a Freq-Time waterfall with color
%Author: Zhu Gengyu
%Date: 2016/7/12
function WaterFallPlot(FreqRange,TimeRange,TimeLevel)
[Time,Freq] = size(TimeLevel);
if Time ~= length(TimeRange) || Freq ~= length(FreqRange)
error('The input data set did not match!!');
return;
end
imagesc(FreqRange,TimeRange,TimeL... |
github | KevinLoudi/SpectrumLearning-master | SpectrumReader.m | .m | SpectrumLearning-master/SpectrumReader.m | 1,007 | utf_8 | 05360833f1b6887d13bda1cb67ab0b49 | %Read Spectrum Data from a signal day
%Author: Zhu Gengyu
%Data: 2016/7/11
function [Level]=SpectrumReader(Path, StartF, StopF, StepF)
SelItem1 = (StartF-2010)/StepF+1;
SelItem2 = (StopF-2010)/StepF+1;
%Get all Filenames belongs to a specific station
dirinfo = dir(Path);
%AbsoPath = [Path,'\\%s']; %strcat
%Loop... |
github | KevinLoudi/SpectrumLearning-master | Readme.m | .m | SpectrumLearning-master/Readme.m | 1,147 | utf_8 | ede3f0e31d2dc01fe8299705064c4320 | %
function Readme()
disp('This research aim at applying mechine learning principle to tackle massive radio-frequency data');
disp('Author: Zhu Gengyu');
disp('Data 2016/7/11');
disp('And this is the bynow plans');
disp('Step 1: Read Spectrum Data; (1)Should be time-saving and well-structed')
disp('Step 2: Save Sp... |
github | KevinLoudi/SpectrumLearning-master | CDFplot.m | .m | SpectrumLearning-master/CDFplot.m | 387 | utf_8 | 6eac4766b77ceb46fb46fc87639afe82 | %Calculate cdf of different distributions
%Author: Shirley
%Date: 2016/9/8
function []=CDFplot()
pd = makedist('Normal');
r = random(pd,[80,1]);
p = cdf('Normal',r,1,4);
cdfplot(p);
% pd = makedist('Poisson',lambda);
% p = cdf('Poisson',0:4,1:5);
% X = 1:200;
% Y = logncdf(X,4.5,0.1);
% func = @(fit,xdata)logncd... |
github | KevinLoudi/SpectrumLearning-master | ChannelStateClassify.m | .m | SpectrumLearning-master/ChannelStateClassify.m | 126 | utf_8 | 3c2643a553173cfeaf79b02992e2e80a | %Classify Channel
%Author: Zhu Gengyu
%Date: 2016/7/20
function ClassifyRes = ChannelStateClassify(ChannelStatecell)
end |
github | KevinLoudi/SpectrumLearning-master | RealChannelState.m | .m | SpectrumLearning-master/RealChannelState.m | 405 | utf_8 | 15c7df02a3a78154a2830006d578fefe | %Analysis real channel according to start, stop and increment of
%specific service
%Author: Zhu Gengyu
%Date: 2016/7/21
%Data Format:
%InputPara.StartF;
%InputPara.StopF;
%InputPara.FirstCenterBand
%InputPara.ChannelNum
%InputPara.BandWidth
function [Result] = RealChannelState(RawData,InputPara)
if(nargin < 2)||(isem... |
github | KevinLoudi/SpectrumLearning-master | ShepardIterpolation.m | .m | SpectrumLearning-master/ShepardIterpolation.m | 874 | utf_8 | 6b8a5755c36551eb97b50e60118ab3ed | %Construct Spectrum map using grid interpolation in 2D
%Author: Shirley
%Date: 2016/9/8
function ShepardIterpolation()
%[Xq, Yq, Vq] = griddata(X,Y,V, xq, yq,v4);
% Interpolate a 2D scattered data set over a uniform grid
xy = -2.5 + 5*gallery('uniformdata',[200 2],0);
x = xy(:,1); y = xy(:,2);
v ... |
github | KevinLoudi/SpectrumLearning-master | CvdAnalysis.m | .m | SpectrumLearning-master/CvdAnalysis.m | 334 | utf_8 | 9c6e232eb2d7fcef98875a8634ae483a | %Abstract partial CVD for analysis
%Author: Zhu Gengyu
%Date: 2016/8/13
function CvdAnalysis(StartF,StopF)
if exist('CVD.mat','file') ~= 2 || exist('AllTimeSlotinOne.mat','file') ~= 2
return error('*.mat file do not exist!');
end
load('CVD.mat');
load('AllTimeSlotinOne.mat','file') ;
StartItem =... |
github | KevinLoudi/SpectrumLearning-master | CalculateCVD.m | .m | SpectrumLearning-master/CalculateCVD.m | 1,518 | utf_8 | 9be38f10d76902fd941bd710d6fd6fd2 | %Calculate Channel Vacancy Duration through Channel State
%Author: Zhu Gengyu
%Date: 2016/7/20
function [Result]=CalculateCVD(ChannelState)
CS = ChannelState;
[Time,Channel] = size(CS);
if (Time < 20)||(Channel < 2)
error('Insufficient Input Data !!!');
return;
end
%set a variable to preserve CVD data
CV... |
github | KevinLoudi/SpectrumLearning-master | MultiDaySpectrumReader.m | .m | SpectrumLearning-master/MultiDaySpectrumReader.m | 2,597 | utf_8 | 9447f6563c48f1c4d17cdfb5b05bbc7b | %Read Out Spectrum Data from several days (one station)
%Author: Zhu Gengyu
%Date: 2016/7/18
%Path format: 'Y:\\20-3000\\%s\\03' DayArray should be string
%Level.Info: Device, Lon, Lat, Status, FileNum Level.Data: Time[time,stringlen], level[time,freq]
function [MultiLevel] = MultiDaySpectrumReader(Path,DayArray,Star... |
github | KevinLoudi/SpectrumLearning-master | DistriAnalysis.m | .m | SpectrumLearning-master/DistriAnalysis.m | 588 | utf_8 | 53526d47c2a44a36dd422a27e972de09 | %Distribution analysis
%Author: Zhu Gengyu
%Date: 2016/7/14
function [DistriModel] = DistriAnalysis(Level)
if length(Level)== 0
error('No Input Data!!!');
return;
end
%calculate the stage num in hist, no more than 100
Stage = length(Level)/10;
if Stage > 100
Stage = 100;
end
%hist display
H = hist... |
github | KevinLoudi/SpectrumLearning-master | BP_ANN_Forecast.m | .m | SpectrumLearning-master/Examine/Neural Network Implementation/BP_ANN_Forecast.m | 729 | utf_8 | d700d638e039742a1db848f5847b3924 | %Implementation of BP-ANN in analysis
%Author: Zhu Gengyu
%Date: 2016/9/17
function BP_ANN_Forecast()
load DayChannelState.csv;
OrigData=DayChannelState;
clear DayChannelState;
%randomly select a channel
SelData=OrigData(135, :);
T=length(SelData); tao=4;
rowsz=tao; colsz=T-tao;
%input ... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_upw_MOD2_f2_2.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_upw_MOD2_f2_2.m | 7,593 | utf_8 | 744afc3d3405319ddc02f81b6b57ba8b | % write_lpf_MOD
% 11/17/16
function write_upw_MOD2_f2_2(GSFLOW_indir, infile_pre, surfz_fil, NLAY)
% % =========== TO RUN AS SCRIPT ===========================================
% clear all, close all, fclose all;
% % - directories
% % MODFLOW input files
% GSFLOW_indir = '/home/gcng/workspace/ProjectFiles/AndesWaterRe... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_nam_MOD_f.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_nam_MOD_f.m | 2,050 | utf_8 | 786f4b54902ff3101173f4faa44a238f | % write_nam_MOD
% 11/20/16
function write_nam_MOD_f(GSFLOW_indir, GSFLOW_outdir, infile_pre)
% clear all, close all, fclose all;
% % - directories
% % MODFLOW input files
% GSFLOW_indir = '/home/gcng/workspace/ProjectFiles/AndesWaterResources/GSFLOW/inputs/MODFLOW';
% % MODFLOW output files
% GSFLOW_outdir = '/home/gc... |
github | UMN-Hydro/GSFLOW_pre-processor-master | make_sfr2_f_bu.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/make_sfr2_f_bu.m | 16,998 | utf_8 | 0ad0153cb953fb0dc4dfac073cf5d6b4 | % make_sfr.m
% 1/8/16
% Leila Saberi
%
% 2 - gcng
function make_sfr2_f(GSFLOW_indir, infile_pre, reach_fil, segment_fil_all)
% Note: assume .dis file already created!! (reads in TOP for setting STRTOP)
% % ======== TO RUN AS SCRIPT ===============================================
% clear all, close all, fclose all;
% ... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_ba6_MOD2.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_ba6_MOD2.m | 6,007 | utf_8 | bfc6c92e0800b0dfe653046c07f81fc6 | % write_ba6_MOD
% 11/17/16
function write_ba6_MOD2(GSFLOW_indir, infile_pre, surfz_fil, mask_fil, NLAY, DZ)
% % ==== TO RUN AS SCRIPT ===================================================
% clear all, close all, fclose all;
% % - directories
% % MODFLOW input files
% GSFLOW_indir = '/home/gcng/workspace/ProjectFiles/Ande... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_OC_PCG_MOD_f.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_OC_PCG_MOD_f.m | 2,481 | utf_8 | f551b71b3d0abcd9c4944b5d685e002b | % write_OC_PCG_MOD.m
% 11/20/16
function write_OC_PCG_MOD_f(GSFLOW_indir, infile_pre, perlen_tr)
% clear all, close all, fclose all;
% - write to this file
% GSFLOW_indir = '/home/gcng/workspace/ProjectFiles/AndesWaterResources/GSFLOW/inputs/MODFLOW/';
fil_pcg = [infile_pre, '.pcg'];
fil_oc = [infile_pre, '.oc'];
sla... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_dis_MOD2_f_ok.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_dis_MOD2_f_ok.m | 5,215 | utf_8 | 742208d6af6018bc30137be25b31f571 | % write_dis_MOD (for 3D domains)
% 11/17/16
%
% v1 - 11/30/16 start to include GIS data for Chimborazo's Gavilan Machay
% watershed; topo.asc for surface elevation (fill in bottom elevation
% based on uniform thickness of single aquifer)
function write_dis_MOD2_f(GSFLOW_indir, infile_pre, surfz_fil, NLAY, DZ)... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_nam_MOD_f2_NWT.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_nam_MOD_f2_NWT.m | 2,638 | utf_8 | 3261d3b51994f10674a7eb18c50f9eaa | % write_nam_MOD
% 11/20/16
function write_nam_MOD_f2_NWT(GSFLOW_indir, GSFLOW_outdir, infile_pre, fil_res_in)
% v2 - allows for restart option (init)
% _170916: from Leila's email, her work from spring 2017, incorporates
% MODFLOW-NWT
%
% clear all, close all, fclose all;
% % - directories
% % MODFLOW input filesfil_r... |
github | UMN-Hydro/GSFLOW_pre-processor-master | write_lpf_MOD2_f.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/write_lpf_MOD2_f.m | 3,800 | utf_8 | a0750e358a3de9072fd4e6c5a2a92b06 | % write_lpf_MOD
% 11/17/16
function write_lpf_MOD2_f(GSFLOW_dir, infile_pre, surfz_fil, NLAY)
% clear all, close all, fclose all;
% - write to this file
% GSFLOW_dir = '/home/gcng/workspace/ProjectFiles/AndesWaterResources/GSFLOW/inputs/MODFLOW/';
% lpf_file = 'test.lpf';
lpf_file = [infile_pre, '.lpf'];
slashstr = ... |
github | UMN-Hydro/GSFLOW_pre-processor-master | make_sfr2_f_ok.m | .m | GSFLOW_pre-processor-master/matlab_scripts/MODFLOW_scripts/make_sfr2_f_ok.m | 16,998 | utf_8 | 0ad0153cb953fb0dc4dfac073cf5d6b4 | % make_sfr.m
% 1/8/16
% Leila Saberi
%
% 2 - gcng
function make_sfr2_f(GSFLOW_indir, infile_pre, reach_fil, segment_fil_all)
% Note: assume .dis file already created!! (reads in TOP for setting STRTOP)
% % ======== TO RUN AS SCRIPT ===============================================
% clear all, close all, fclose all;
% ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.