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
|
HelmchenLabSoftware/OCIA-master
|
wt_rotate_coords.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_rotate_coords.m
| 5,599 |
utf_8
|
9e4a334eb51adfbc44014d732fd60204
|
% WT_ROTATE_COORDS
%
% Transform coordinates of objects or whiskers between absolute and
% relative framework. A note on transformations:
% Absolute coordinates are in the framework of the actual image
% Relative coordinates are with respect to head position in the image
%
% Syntax: wt_rotate_coords(COORDS, DIR, RE, LE, NO, S, F, DEB, RAD, HOR), where
% COORDS are pair-wise [X Y] coordinates to be transformed. Any
% number of such pairs may be passed arranged along rows.
% DIR is the transform to be performed:
% 'rel2abs' for a relative to absolute transformation
% 'abs2rel' for an absolute to relative transformation
% RY are right-eye coordinates across frames arranged across rows
% LY are right-eye coordinates across frames arranged across rows
% N are nose coordinates across frames arranged across rows
% S is the side on the face of the whisker:
% 1 = right
% 2 = left
%
% Whisker Tracker (WT)
%
% Authors: Per Magne Knutsen, Dori Derdikman
%
% (c) Copyright 2004 Yeda Research and Development Company Ltd.,
% Rehovot, Israel
%
% This software is protected by copyright and patent law. Any unauthorized
% use, reproduction or distribution of this software or any part thereof
% is strictly forbidden.
%
% Citation:
% Knutsen, Derdikman, Ahissar (2004), Tracking whisker and head movements
% of unrestrained, behaving rodents, J. Neurophys, 2004, IN PRESS
%
function vNewCoords = wt_rotate_coords(vCoords, sDirection, vRightEye, vLeftEye, vNose, nSide, ...
vImCropSize, nRadExt, nHorExt)
% Return immediately if object position is not given for current whiskers
if sum(vCoords) == 0, return; end
% Current frame head coordinates
mHead = [vLeftEye; vRightEye; vNose];
% Initialize output matrix
vNewCoords = repmat(NaN, size(vCoords));
% Iterate over pairs of [X Y] coordinates
for i = 1:size(vCoords,1)
switch sDirection
case 'rel2abs'
vNewCoords(i,:) = TransformRelToAbs(vCoords(i,:), nSide, mHead, vImCropSize, nRadExt, nHorExt);
case 'abs2rel'
vNewCoords(i,:) = TransformAbsToRel(vCoords(i,:), nSide, mHead, vImCropSize, nRadExt, nHorExt);
end
end
return;
%%%% TransformRelToAbs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Transform relative to absolute coordinates
function mCoordsNew = TransformRelToAbs(mCoords, nSide, mHead, vImCropSize, nRadExt, nHorExt)
% Relative to absolute transformation:
% nA = angle between nose-eye and nose-object axis (in relative framework)
% nB = angle of eye relative to nose (in absolute framework)
% nC = unknown angle of object relative to nose (in absolute framework)
% Solution: nC = nA - nB
% From nC we derive the position of the object in the absolute framework.
vNoseAbs = mHead(3,:);
vNoseRel = [1 vImCropSize(2)-nHorExt+6];
if nSide == 1, vEyeAbs = [mHead(2,1) mHead(2,2)]; else vEyeAbs = [mHead(1,1) mHead(1,2)]; end
vObjRel = mCoords - repmat(vNoseRel,size(mCoords,1),1); % note: object relative to nose!
nA = abs(-deg2rad(90)-(atan(vObjRel(:,2)./vObjRel(:,1))));
vEyeRel = vEyeAbs - vNoseAbs; % note: eye relative to nose!
nB = abs(atan(vEyeRel(2)/vEyeRel(1)));
nC = nA - nB;
% Now get position of object in absolute framework and we're done...
nR = sqrt(sum(vObjRel'.^2))';% distance of object from nose
nXRel = nR .* cos(nC); % object x position relative to nose
nYRel = nR .* sin(nC); % object y position relative to nose
if nSide == 1
mCoordsNew = [ ...
repmat(vNoseAbs(1),size(mCoords,1),1) - nXRel ...
repmat(vNoseAbs(2),size(mCoords,1),1) + nYRel
];
elseif nSide == 2
mCoordsNew = repmat(vNoseAbs,size(mCoords,1),1) + [nXRel nYRel];
end
return;
%%%% TransformRelToAbs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Transform absolute to relative coordinates
function vNewCoords = TransformAbsToRel(vCoords, nSide, mHead, vImCropSize, nRadExt, nHorExt)
% 1. Find angle between nose-eye and nose-object axis
% 2. Find distance from nose to object
% Object position relative to nose, and angle
vObjRelNose = [vCoords(1)-mHead(3,1) vCoords(2)-mHead(3,2)];
nLenNose2Obj = sqrt(sum([vObjRelNose.^2]));
nNoseObjAng = rad2deg(atan2(vObjRelNose(2),vObjRelNose(1)));
% Eye position relative to nose, and angle
if nSide == 1, vEyeRelNose = [mHead(2,1)-mHead(3,1) mHead(2,2)-mHead(3,2)];
else, vEyeRelNose = [mHead(1,1)-mHead(3,1) mHead(1,2)-mHead(3,2)]; end
nNoseEyeAng = rad2deg(atan2(vEyeRelNose(2),vEyeRelNose(1)));
% Get new angle of object relative to nose
if nSide == 2
nNewNoseObjAng = nNoseObjAng - (90 - abs(nNoseEyeAng));
else
nNewNoseObjAng = -180 - (nNoseObjAng - (90 - abs(nNoseEyeAng)));
end
% Calculate object position relative to nose
nX = nLenNose2Obj * cos(deg2rad(nNewNoseObjAng));
nY = nLenNose2Obj * sin(deg2rad(nNewNoseObjAng));
vRelObjPos = [nX nY];
% Calculate real position in frame
% IMPORTANT: The code below compensates for the fact that both left and
% right frame are shown in the WT GUI in the same axis. Therefore, to
% obtain true relative position for left-side the cut-out section's width
% (effectively g_tWT.MovieInfo.RadExt) must be subtracted from the object's X
% coordinate.
if nSide == 2
vNose = [nRadExt+2 vImCropSize(2) - nHorExt+6];
vNewCoords = [vNose(1)+vRelObjPos(1) vNose(2)+vRelObjPos(2)];
else
vNose = [1 vImCropSize(2)-nHorExt+6];
vNewCoords = [vNose(1)+vRelObjPos(1) vNose(2)+vRelObjPos(2)];
end
%figure(444); clf; hold on; grid on
%plot(vCoords(1),vCoords(2),'r*')
%plot(mHead(:,1),mHead(:,2),'g*')
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_extrapolate_position.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_extrapolate_position.m
| 4,880 |
utf_8
|
86fd722243d9611965ccc5bd115194d2
|
function mImgFilter = wt_extrapolate_position(mW0, mImg, mWA)
% WT_EXTRAPOLATE_POSITION
% Create an image-mask that will 'highlight' the likely position of the
% whisker in current frame, based on velocity information in previos
% frames.
%
% 1 - Linear interpolation of whisker shape in the X preceeding frames
% 2 - Select end-points and mid-point (half-way along the interpolated whisker)
% 3 - Filter trajectory of all three points
% 4 - Cubic extrapolation of new position
% 5 - Generate scaled gaussian filter
% 6 - Show debug window that contains: filtered velocity and extrapolated
% position
% Whisker Tracker (WT)
%
% Authors: Per Magne Knutsen, Dori Derdikman
%
% (c) Copyright 2004 Yeda Research and Development Company Ltd.,
% Rehovot, Israel
%
% This software is protected by copyright and patent law. Any unauthorized
% use, reproduction or distribution of this software or any part thereof
% is strictly forbidden.
%
% Citation:
% Knutsen, Derdikman, Ahissar (2004), Tracking whisker and head movements
% of unrestrained, behaving rodents, J. Neurophys, 2004, 2005
global g_tWT
nX = 20; % use 10 frames back
bDebug = g_tWT.VerboseMode;
% Return immediately if fewer than X frames have already been processed
if length(find(mWA(2,1,:))) < nX + 1 % check tracked frames in 2nd X value
mImgFilter = ones(size(mImg));
return;
end
% Resize whisker-coordinates to fit image
mW0 = mW0;% * g_tWT.MovieInfo.ResizeFactor;
mWA = mWA;% * g_tWT.MovieInfo.ResizeFactor;
% Linear extrapolation of whisker shape in X preceeding frames
mXX = []; mYY = [];
for f = size(mWA, 3)-nX:size(mWA, 3)
if isempty(find(mWA(:,1,f))), continue, end
vX = mWA(find(mWA(:,1,f)),1,f);
vY = mWA(find(mWA(:,1,f)),2,f);
vXX = [vX(1) vX(1)+(vX(end)-vX(1))/2 vX(end)];
mYY = [mYY; spline(vX(find(vX)), vY(find(vX)), vXX)];
mXX = [mXX; vXX];
end
% Filter whisker trajectory
persistent A B;
nFilterOrder = 4;
if isempty(A)
nFreq = 1/4;
[B,A] = butter(nFilterOrder, nFreq);
end
if size(mYY, 1) > 3*nFilterOrder
mYY = filtfilt(B, A, mYY);
end
% Cubic extrapolation of new position
vNewY = interp1(1:size(mYY,1), mYY, size(mYY,1)+1, 'cubic', 'extrap');
vNewXX = mXX(end,1):mXX(end,end);
[vXX, vNewYY] = wt_spline(mXX(end,:), vNewY, mXX(end,1):mXX(end,end));
[C,IA,IB] = intersect(round(mXX(end,:)), vNewXX);
vNewX = C;
vNewY = vNewYY(IB);
% Generate scales gaussian filter centered on whisker location, with spread
% scaled according to new whisker position limits.
vJit = g_tWT.MovieInfo.HorJitter;
vJit = [vJit(1) vJit(1)+vJit(2) vJit(1)+vJit(2)+vJit(3)];
[vXX, vNewYYUpLim] = wt_spline(vNewX, vNewY+vJit, vNewXX);
[vXX, vNewYYDownLim] = wt_spline(vNewX, vNewY-vJit, vNewXX);
mImgFilter = zeros(size(mImg));
nMaxHw = round(max(abs((vNewYY - vNewYYUpLim))) * g_tWT.MovieInfo.ExtrapFiltHw) + 10;
mImgFilter = wt_zeropad(mImgFilter, nMaxHw, 0); % zeropad image
nAlpha = 2; % used to characterize the gaussion ('sharpness')
for x = 1:length(vNewXX)
nHw = abs((vNewYY(x) - vNewYYUpLim(x))) * g_tWT.MovieInfo.ExtrapFiltHw;
vFG = gausswin(nHw*2+1, nAlpha)';
vYIndx = (round(vNewYY(x)-nHw):round(vNewYY(x)+nHw)) + nMaxHw;
vYIndx = vYIndx(find(vYIndx > 0));
if length(vYIndx) == 1, break, end
vFG = interp1(linspace(vYIndx(1),vYIndx(end),length(vFG)), vFG, vYIndx, 'nearest');
if vNewXX(x) == size(mImg, 2), break;
else, mImgFilter(vYIndx, vNewXX(x)) = vFG'; end
end
mImgFilter = mImgFilter(nMaxHw+1:(size(mImg,1)+nMaxHw), :); % remove zeropad
mImgFilter = mImgFilter / max(mImgFilter(:)); % normalize to max
% Debug
if bDebug
hFig = findobj('Tag', 'EXTRAPOLATE_POSITION_WINDOW');
if isempty(hFig)
hFig = figure;
set(hFig, 'Tag', 'EXTRAPOLATE_POSITION_WINDOW', 'DoubleBuffer', 'on', 'Name', 'WT - EXTRAPOLATE_POSITION_WINDOW', 'numbertitle', 'off')
else, figure(hFig), end
subplot(2,1,1);
plot(mYY); hold on
plot(repmat([size(mYY,1) size(mYY,1)+1],3,1)', [mYY(end,:); vNewY])
plot(repmat(size(mYY,1),3,1), mYY(end,:)); grid on
title('Extrapolation of new whisker location (Y axis)')
subplot(2,2,3); title('Whisker and generated filter')
plot(mXX(end,:), mYY(end,:), 'g'); hold on
plot(vNewXX, vNewYY, 'b');
plot(vNewX, vNewY, 'bo')
plot(vNewXX, vNewYYUpLim, 'r')
plot(vNewXX, vNewYYDownLim, 'r')
grid on
title('Whisker and limits')
subplot(2,2,4)
imagesc(mImgFilter.*mImg); hold on
plot(mXX(end,:), mYY(end,:), 'g'); hold on
plot(vNewXX, vNewYY, 'b');
plot(vNewXX, vNewYYUpLim, 'r')
plot(vNewXX, vNewYYDownLim, 'r')
title('Filter * Image')
truesize; colormap gray
end
return;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function w = gausswin(N, a)
% Index vector
k = -(N-1)/2:(N-1)/2;
% Equation 44a from [1]
w = exp((-1/2)*(a * k/(N/2)).^2)';
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_calibration.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_calibration.m
| 4,876 |
utf_8
|
a143e384f49f955761952d3ab551c926
|
function wt_calibration(sOption)
% WT_CALIBRATION Calibrate and measure image regions
%
% wt_calibration('calibrate')
% wt_calibration('measure')
% wt_calibration('recalculate')
global g_tWT
switch lower(sOption)
case 'calibrate'
Calibrate
wt_display_frame
case 'calibrate-import-image'
CalibrateWithImportedImage
wt_display_frame
case 'measure'
Measure
case 'recalculate'
RecalculatePixelsPerMM
otherwise
Calibrate
wt_display_frame
end
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Calibrate
global g_tWT
% Get distance between locations
if ~isempty(g_tWT.MovieInfo.EyeNoseAxLen)
g_tWT.DisplayMode = 0; % go to absolute view
end
wt_display_frame
hLine = [];
try
for i = 1:2
[vX(i) vY(i)] = ginput(1); % press of return will provide no input
hLine(end+1) = plot(vX(i), vY(i), 'r.');
end
catch, return, end
hLine(end+1) = plot(vX, vY, 'r:', 'LineWidth', 1);
nL = round(sqrt(sum([diff(vX).^2 diff(vY).^2])));
% Ask how much the distance corresponds to in millimeters
% Control that input is a number
cAns = [];
sMsg = 'Enter distance in millimeters corresponding to %d pixels.';
while length(str2num(char(cAns))) ~= 1
cAns = inputdlg(sprintf(sMsg, nL), 'WT Calibrate', 1);
sMsg = 'Invalid entry (must be a number; do not use comma).\nEnter distance in millimeters corresponding to %d pixels.';
end
delete(hLine)
g_tWT.MovieInfo.CalibCoords = round([vX' vY']);
g_tWT.MovieInfo.CalBarLength = str2num(cAns{1});
RecalculatePixelsPerMM;
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function CalibrateWithImportedImage
global g_tWT
[sFilename, sFilepath] = uigetfile({'*.bmp';'*.tiff';'*.gif';'*.jpg';'*.png';'*.*'}, 'Select image file'); % select image file
if ~sFilename return; end % return if user cancelled dialog
mImg = imread([sFilepath sFilename]); % Load image
wt_display_frame; cla % refresh and clear display
imagesc(wt_image_preprocess(mImg)) % Display image
hLine = [];
try
for i = 1:2
[vX(i) vY(i)] = ginput(1); % press of return will provide no input
hLine(end+1) = plot(vX(i), vY(i), 'r.');
end
catch, return, end
hLine(end+1) = plot(vX, vY, 'r:', 'LineWidth', 1);
nL = round(sqrt(sum([diff(vX).^2 diff(vY).^2])));
% Ask how much the distance corresponds to in millimeters
% Control that input is a number
cAns = [];
sMsg = 'Enter distance in millimeters corresponding to %d pixels.';
while length(str2num(char(cAns))) ~= 1
cAns = inputdlg(sprintf(sMsg, nL), 'WT Calibrate', 1);
sMsg = 'Invalid entry (must be a number; do not use comma).\nEnter distance in millimeters corresponding to %d pixels.';
end
delete(hLine)
g_tWT.MovieInfo.CalibCoords = round([vX' vY']);
g_tWT.MovieInfo.CalBarLength = str2num(cAns{1});
RecalculatePixelsPerMM;
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function Measure
global g_tWT
if ~isfield(g_tWT.MovieInfo, 'PixelsPerMM') % create field if it does not exist
g_tWT.MovieInfo.PixelsPerMM = [];
end
if isempty(g_tWT.MovieInfo.PixelsPerMM) % check image has been calibrated
sUnit = 'pix';
nPixPerMM = 1;
else
sUnit = 'mm';
nPixPerMM = g_tWT.MovieInfo.PixelsPerMM;
end
hLin = [];
try
for i = 1:2
[vX(i) vY(i)] = ginput(1); % press of return will provide no input
if isempty(hLin)
hLin = plot(vX(i), vY(i), 'rx-');
else
set(hLin, 'XData', vX, 'YData', vY)
end
end
catch % in case user pressed Return
delete(hLin)
end
nDistMM = sqrt(diff(vX)^2 + diff(vY)^2) / nPixPerMM;
hTxt = text(mean(vX), mean(vY), sprintf('%.1f%s', nDistMM, sUnit), ...
'Color', 'w', 'BackgroundColor', 'k', 'FontSize', 8, ...
'HorizontalAlignment', 'center');
set([hLin hTxt], 'UserData', {hLin, hTxt}) % store handles
hCntxtMenu = uicontextmenu;
set([hLin hTxt], 'uicontextmenu', hCntxtMenu)
uimenu(hCntxtMenu, 'Label', 'Remove', 'Callback', 'vU=get(gco, ''UserData'');delete(vU{1}),delete(vU{2})')
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function RecalculatePixelsPerMM
global g_tWT
if sum(sum(g_tWT.MovieInfo.CalibCoords)) == 0, return; end
vX = g_tWT.MovieInfo.CalibCoords(:,1);
vY = g_tWT.MovieInfo.CalibCoords(:,2);
% Store pixels per millimeter
nL = round(sqrt(sum([diff(vX).^2 diff(vY).^2])));
g_tWT.MovieInfo.PixelsPerMM = nL / g_tWT.MovieInfo.CalBarLength;
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_get_build_number.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_get_build_number.m
| 511 |
utf_8
|
4cd3f5ac2ca28358b6203bad67c583ad
|
% wt_get_build_number
function sBuild = wt_get_build_number
% Set paths
sWT_dir = which('wt');
sWT_dir = sWT_dir(1:findstr(sWT_dir, 'wt.m')-1);
% Get build number from SVN entries files
sBuild = 'Unknown';
if ispc, sSVNPath = [sWT_dir '.svn\' 'entries'];
else, sSVNPath = [sWT_dir '.svn/' 'entries']; end
if exist(sSVNPath)
fid = fopen(sSVNPath);
for i = 1:5
sLine = fgetl(fid);
if strcmp(sLine, 'dir')
sBuild = fgetl(fid);
end
end
fclose(fid);
end
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_dump_screen.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_dump_screen.m
| 1,849 |
utf_8
|
375701158967ce6a3ae8cf1288e6e117
|
%%%% WT_DUMP_SCREEN *****************************************
%
% Whisker Tracker (WT)
%
% Authors: Per Magne Knutsen, Dori Derdikman
%
% (c) Copyright 2004 Yeda Research and Development Company Ltd.,
% Rehovot, Israel
%
% This software is protected by copyright and patent law. Any unauthorized
% use, reproduction or distribution of this software or any part thereof
% is strictly forbidden.
%
% Citation:
% Knutsen, Derdikman, Ahissar (2004), Tracking whisker and head movements
% of unrestrained, behaving rodents, J. Neurophys, 2004, IN PRESS
%
function wt_dump_screen
global g_tWT
hFrameWin = findobj('Tag', 'WTMainWindow');
sAnswer = questdlg('Select where to dump the screen', ...
'Dump screen', ...
'Copy to clipboard', 'Save to disk', 'Send to printer', ...
'Copy to clipboard');
% Hide slider and text elements
set(g_tWT.Handles.hSlider, 'visible', 'off')
hText = findobj('tag','antpost');
set(hText, 'visible', 'off')
set(findobj('tag','gotoframe'), 'visible', 'off')
set(findobj('tag','movieandframe'), 'visible', 'off')
switch sAnswer
case 'Copy to clipboard' % copy to clipboard
print(hFrameWin, '-dbitmap')
case 'Save to disk' % save to disk
[sFilename sFilepath, nFilterIndx] = uiputfile({'*.tif';'*.eps'}, 'Select output file');
if nFilterIndx == 1 % save as TIDD
print(hFrameWin, '-dtiff', sprintf('%s%s', sFilepath, sFilename));
elseif nFilterIndx == 2 % save as color EPS
print(hFrameWin, '-depsc', sprintf('%s%s', sFilepath, sFilename));
end
case 'Send to printer' % send to printer
print(hFrameWin, '-v')
end
% Turn back on slider
set(g_tWT.Handles.hSlider, 'visible', 'on')
set(hText, 'visible', 'on')
set(findobj('tag','gotoframe'), 'visible', 'on')
set(findobj('tag','movieandframe'), 'visible', 'on')
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_prep_gui.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_prep_gui.m
| 20,021 |
utf_8
|
00b3b9f97fec08f4c6ae1e7479c20136
|
function wt_prep_gui
% WT_PREP_GUI
global g_tWT
hFrameWin = findobj('Tag', 'WTMainWindow');
set(hFrameWin, 'color', [.8 .8 .8])
figure(hFrameWin); clf; g_tWT.Handles.hSlider = [];
set(hFrameWin, 'NumberTitle', 'off', 'Name', ['WhiskerTracker (Revision ' wt_get_build_number ')'], ...
'resizeFcn', ['wt_resize_slider'])
g_tWT.FrameAx = axes;
set(g_tWT.FrameAx, 'Visible', 'off', ...
'buttondownfcn', ['global g_tWT; g_sLastBtnPress = get(gcf,''selectiontype'')'], ...
'DrawMode', 'fast', ...
'Position', [.03 .06 .94 .9] );
% Create toolbar
sPath = which('wt');
sPath = [sPath(1:end-4) 'icons/'];
hToolbar = uitoolbar('Parent', g_tWT.WTWindow, 'Tag', 'WT_Toolbar');
mCData = im2double(imread([sPath 'tool_open.png'])); mCData(mCData == 0) = NaN; % open
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'WT_Toolbar_Open', 'TooltipString', 'Open file', 'ClickedCallback', ['wt_select_file']);
mCData = im2double(imread([sPath 'tool_save.png'])); mCData(mCData == 0) = NaN; % save
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'WT_Toolbar_Save', 'TooltipString', 'Save', 'ClickedCallback', ['wt_save_data']);
mCData = im2double(imread([sPath 'tool_zoom_in.png'])); mCData(mCData == 0) = NaN; % zoom in
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_ZoomOut', 'TooltipString', 'Zoom in', 'ClickedCallback', ['zoom on'], 'separator', 'on');
[mCData, mCM] = imread([sPath 'tools_table.gif']); mCData = ind2rgb(mCData, mCM); mCData(mCData == 1) = NaN; % parameters
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_EditParameters', 'TooltipString', 'Edit Parameters', 'ClickedCallback', ['wt_set_parameters']);
mCData = im2double(imread([sPath 'tool_rotate_3d.png'])); mCData(mCData == 0) = NaN; % zoom in
mCData_orig = mCData;
for i = 1:3, mCData(:,:,i) = fliplr(mCData(:,:,i)); end
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_RotateClockwise', 'TooltipString', 'Rotate Clockwise', 'ClickedCallback', ['wt_rotate_frame(1); wt_batch_redo(''wt_rotate_frame(1)'')'], 'separator', 'on');
uipushtool('Parent', hToolbar, 'cdata', mCData_orig, 'Tag', 'Spiky_WaitbarAction_RotateAntiClockwise', 'TooltipString', 'Rotate Anti-Clockwise', 'ClickedCallback', ['wt_rotate_frame(-1); wt_batch_redo(''wt_rotate_frame(-1)'')']);
mCData = im2double(imread([sPath 'tool_plottools_show.png'])); mCData(mCData == 0) = NaN; % zoom in
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_PanRight', 'TooltipString', 'Auto-resize window', 'ClickedCallback', ['wt_autosize_window']);
[mCData, mCM] = imread([sPath 'right.gif']); mCData = ind2rgb(mCData, mCM); mCData(mCData == 1) = NaN; % Start tracking
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_PanRight', 'TooltipString', 'Track SLOW', 'ClickedCallback', ['global g_tWT;g_tWT.StopProc=0;wt_track_auto(''slow'')'], 'separator', 'on');
[mCData, mCM] = imread([sPath 'right_double.gif']); mCData = ind2rgb(mCData, mCM); mCData(mCData == 1) = NaN; % Start tracking
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_PanRight', 'TooltipString', 'Track FAST', 'ClickedCallback', ['global g_tWT;g_tWT.StopProc=0;wt_track_auto(''fast'')']);
mCData = im2double(imread([sPath 'cancel.png'])); mCData(mCData == 0) = NaN; % zoom in
uipushtool('Parent', hToolbar, 'cdata', mCData, 'Tag', 'Spiky_WaitbarAction_CancelTracking', 'TooltipString', 'Cancel Tracking', 'ClickedCallback', ['global g_tWT; g_tWT.StopProc = 1;']);
% Menu
hFile = uimenu(hFrameWin, 'Label', 'File');
uimenu(hFrameWin, 'Label','Open...', 'Parent', hFile, 'Callback', ['wt_select_file'], 'accelerator', 'O');
uimenu(hFrameWin, 'Label','Open Directory...', 'Parent', hFile, 'Callback', ['wt_select_directory'], 'accelerator', 'D');
uimenu(hFrameWin, 'Label','Open Directory Tree...', 'Parent', hFile, 'Callback', ['wt_select_directory_tree'], 'accelerator', 'T');
uimenu(hFrameWin, 'Label','Open Selection...', 'Parent', hFile, 'Callback', ['wt_select_batchfile']);
% Produce list of loaded movies
if ~isempty(g_tWT.Movies)
uimenu(hFrameWin, 'Label','Load Data...', 'Parent', hFile, 'Callback', ['wt_load_data(''deffile'')'], 'Separator', 'on');
uimenu(hFrameWin, 'Label','Save', 'Parent', hFile, 'Callback', ['wt_save_data'], 'accelerator', 'S');
uimenu(hFrameWin, 'Label','Save As...', 'Parent', hFile, 'Callback', ['wt_save_data(''defpath'')']);
hMovies = uimenu(hFrameWin, 'Label', 'Movies', 'Parent', hFile, 'Separator', 'on');
uimenu(hFrameWin, 'Label','Next Movie', 'Parent', hMovies, 'Callback', ['wt_load_movie'], 'accelerator', 'N');
for m = 1:size(g_tWT.Movies,2)
% Menu item label; limit to 50 chars long
sLabel = sprintf('%s', g_tWT.Movies(m).filename);
if length(sLabel) > 50
sLabel = ['..' sLabel(end-47:end)];
end
if m == 1
hCurrFile = uimenu(hFrameWin, 'Label', sLabel, 'Parent', hMovies, 'Callback', [sprintf('wt_load_movie(%d)', m)], 'Separator', 'on');
else
hCurrFile = uimenu(hFrameWin, 'Label', sLabel, 'Parent', hMovies, 'Callback', [sprintf('wt_load_movie(%d)', m)]);
end
% Tick off to indicate if movie already has an associated .mat file
if exist(sprintf('%smat', g_tWT.Movies(m).filename(1:findstr('.avi', g_tWT.Movies(m).filename))), 'file') ...
| exist(sprintf('%smat.gz', g_tWT.Movies(m).filename(1:findstr('.avi', g_tWT.Movies(m).filename))), 'file')
set(hCurrFile, 'checked', 'on')
end
end
% Whisker markers etc
hMarkers = uimenu(hFrameWin, 'Label', 'Whiskers');
uimenu(hFrameWin, 'Label','New...', 'Parent', hMarkers, 'Callback', ['wt_mark_whisker'], 'accelerator', 'W');
uimenu(hFrameWin, 'Label','Paste (B)', 'Parent', hMarkers, 'Callback', ['wt_copy_paste_whisker(''paste'', NaN); wt_batch_redo(''wt_copy_paste_whisker(''''paste'''', NaN)'');'], 'accelerator', 'W');
uimenu(hFrameWin, 'Label','Delete...', 'Parent', hMarkers, 'Callback', ['wt_clear_selected_whisker']);
uimenu(hFrameWin, 'Label','Delete All (B)', 'Parent', hMarkers, 'Callback', ['wt_clear_whisker(''all''); wt_batch_redo(''wt_clear_whisker(''''all'''')'')']);
uimenu(hFrameWin, 'Label','Set Last Frame...', 'Parent', hMarkers, 'Callback', ['wt_set_last_frame'], 'Separator', 'on');
uimenu(hFrameWin, 'Label', 'Whisker Display Width...', 'Parent', hMarkers, 'Callback', 'wt_change_whisker_width')
uimenu(hFrameWin, 'Label', 'Show Whisker Identities', 'Parent', hMarkers, 'Callback', 'wt_toggle_show_identity')
uimenu(hFrameWin, 'Label','Track Labels (B)', 'Parent', hMarkers, 'Callback', ['wt_track_whisker_label(0,''continue-all'',0); wt_batch_redo(''wt_track_whisker_label(0,''''continue-all'''',0)'')'], 'Separator', 'on');
uimenu(hFrameWin, 'Label','Labelling Filter...', 'Parent', hMarkers, 'Callback', ['global g_tWT; g_tWT.LabelFilter=wt_create_filter(g_tWT.LabelFilter);']);
uimenu(hFrameWin, 'Label','Mark Whisker and Label...', 'Parent', hMarkers, 'Callback', ['wt_mark_whisker_and_label;']);
uimenu(hFrameWin, 'Label','Clear Labels (B)', 'Parent', hMarkers, 'Callback', ['wt_track_whisker_label(0, ''delete-all''); wt_batch_redo(''wt_track_whisker_label(0,''''delete-all'''');'')']);
uimenu(hFrameWin, 'Label','Track Whiskers With Labels (B)', 'Parent', hMarkers, 'Callback', ['wt_track_whiskers_with_labels('''')']);
uimenu(hFrameWin, 'Label','Show Label Names', 'Parent', hMarkers, 'Callback', 'wt_toggle_show_label_identity')
% Head related menu items
hHead = uimenu(hFrameWin, 'Label', 'Head');
uimenu(hFrameWin, 'Label','Track Head', 'Parent', hHead, 'Callback', ['wt_init_head_tracker']);
uimenu(hFrameWin, 'Label','Set Head Position...', 'Parent', hHead, 'Callback', ['wt_init_head_tracker(''static_head'')']);
uimenu(hFrameWin, 'Label','Configure Eye Filter...', 'Parent', hHead, 'Callback', ['global g_tWT; g_tWT.EyeFilter=wt_create_filter(g_tWT.EyeFilter);'], 'separator', 'on');
uimenu(hFrameWin, 'Label','Clean Head Movements', 'Parent', hHead, 'Callback', ['wt_clean_splines(0)']);
% Image options
hImage = uimenu(hFrameWin, 'Label', 'View');
uimenu(hFrameWin, 'Label','Select ROI', 'Parent', hImage, 'Callback', ['wt_select_roi']);
uimenu(hFrameWin, 'Label','Toggle View Mode', 'Parent', hImage, 'Callback', 'wt_toggle_display_mode');
uimenu(hFrameWin, 'Label','Rotate Clockwise (B)', 'Parent', hImage, 'Callback', ['wt_rotate_frame(1); wt_batch_redo(''wt_rotate_frame(1)'')'], 'Separator', 'on', 'accelerator', 'c');
uimenu(hFrameWin, 'Label','Rotate Anti-Clockwise (B)', 'Parent', hImage, 'Callback', ['wt_rotate_frame(-1); wt_batch_redo(''wt_rotate_frame(-1)'')'], 'accelerator', 'a');
uimenu(hFrameWin, 'Label','Flip Vertical (B)', 'Parent', hImage, 'Callback', ['wt_flip_frame(''updown''); wt_batch_redo(''wt_flip_frame(''''updown'''')'')'], 'separator', 'on');
uimenu(hFrameWin, 'Label','Flip Horizontal (B)', 'Parent', hImage, 'Callback', ['wt_flip_frame(''leftright''); wt_batch_redo(''wt_flip_frame(''''leftright'''')'')']);
uimenu(hFrameWin, 'Label','Refresh', 'Parent', hImage, 'Callback', ['wt_prep_gui; wt_display_frame'], 'Separator', 'on', 'accelerator', 'R');
uimenu(hFrameWin, 'Label','Zoom', 'Parent', hImage, 'Callback', ['zoom on'], 'accelerator', 'z');
uimenu(hFrameWin, 'Label','Hide', 'Parent', hImage, 'Callback', ['wt_toggle_imageshow'], 'accelerator', 'H');
uimenu(hFrameWin, 'Label','Go To Frame...', 'Parent', hImage, 'Callback', @GoToFrame, 'accelerator', 'G');
uimenu(hFrameWin, 'Label','Reset (B)', 'Parent', hImage, 'Callback', ['wt_reset_all; wt_batch_redo(''wt_reset_all'')'], 'separator', 'on');
% Measure menu
hImage = uimenu(hFrameWin, 'Label', 'Measure');
uimenu(hFrameWin, 'Label','Plot...', 'Parent', hImage, 'Callback', ['wt_graphs']);
hCompute = uimenu(hFrameWin, 'Label', 'Compute', 'Parent', hImage);
uimenu(hFrameWin, 'Label', 'Angle (B)', 'Parent', hCompute, 'Callback', ['wt_compute_kinematics(''angle'', 0); wt_batch_redo(''wt_compute_kinematics(''''angle'''',0)'');']);
uimenu(hFrameWin, 'Label', 'Curvature (B)', 'Parent', hCompute, 'Callback', ['wt_compute_kinematics(''curvature'', 0); wt_batch_redo(''wt_compute_kinematics(''''curvature'''',0)'');']);
uimenu(hFrameWin, 'Label', 'All Parameters (B)', 'Parent', hCompute, 'Callback', ['wt_compute_kinematics(''all'', 0); wt_batch_redo(''wt_compute_kinematics(''''all'''',0)'');']);
uimenu(hFrameWin, 'Label','Set Reference Angle...', 'Parent', hImage, 'Callback', 'wt_set_reference_line');
uimenu(hFrameWin, 'Label','Use Default Reference Angle (B)', 'Parent', hImage, 'Callback', 'wt_set_default_reference_line; wt_batch_redo(''wt_set_default_reference_line'')');
uimenu(hFrameWin, 'Label','Calibrate...', 'Parent', hImage, 'Callback', ['wt_calibration(''calibrate'')'], 'Separator', 'on');
uimenu(hFrameWin, 'Label','Calibrate With Image...', 'Parent', hImage, 'Callback', ['wt_calibration(''calibrate-import-image'')']);
uimenu(hFrameWin, 'Label','Measure...', 'Parent', hImage, 'Callback', ['wt_calibration(''measure'')']);
uimenu(hFrameWin, 'Label','Create Outline', 'Parent', hImage, 'Callback', ['wt_create_outline(''add'')'], 'Separator', 'on');
uimenu(hFrameWin, 'Label','Paste Outline (B)', 'Parent', hImage, 'Callback', ['wt_create_outline(''paste'', NaN); wt_batch_redo(''wt_create_outline(''''paste'''', NaN)'')']);
uimenu(hFrameWin, 'Label','Delete All Outlines (B)', 'Parent', hImage, 'Callback', ['wt_create_outline(''deleteall'', NaN); wt_batch_redo(''wt_create_outline(''''deleteall'''', NaN)'')']);
uimenu(hFrameWin, 'Label','Hide Outlines', 'Parent', hImage, 'Callback', ['wt_create_outline(''hide'')']);
end
% Options menu
hOptions = uimenu(hFrameWin, 'Label', 'Options');
hScripts = uimenu(hFrameWin, 'Label', 'Scripts', 'Parent', hOptions);
uimenu(hFrameWin, 'Label', 'Run Script... (B)', 'Parent', hScripts, 'Callback', ['wt_run_script']);
uimenu(hFrameWin, 'Label', 'Run Batch Script...', 'Parent', hScripts, 'Callback', ['wt_run_script(''batch'')']);
uimenu(hFrameWin, 'Label', 'Get Script Help...', 'Parent', hScripts, 'Callback', ['wt_run_script_help']);
% Get list of existing scripts in ./scripts directory
sPath = which('wt');
sPath = checkfilename([sPath(1:end-4) 'scripts\']);
tFiles = dir(sPath);
bFirst = 1;
for f = 1:length(tFiles)
if ~isempty(strfind(tFiles(f).name, '.m')) & isempty(strfind(tFiles(f).name, '.m~'))
sName = strrep(tFiles(f).name(1:end-2), '_', ' ');
vIndx = strfind(sName, ' ');
sName([1 vIndx+1]) = upper(sName([1 vIndx+1]));
if bFirst
uimenu(hFrameWin, 'Label', sName, 'Parent', hScripts, 'Callback', [sprintf('wt_run_script(''%s'')', tFiles(f).name)], 'Separator', 'on');
bFirst = 0;
else
uimenu(hFrameWin, 'Label', sName, 'Parent', hScripts, 'Callback', [sprintf('wt_run_script(''%s'')', tFiles(f).name)]);
end
end
end
if ~isempty(g_tWT.Movies)
uimenu(hFrameWin, 'Label', 'Batch Redo', 'Parent', hOptions, 'Callback', ['wt_batch_redo(''redo'')'], 'accelerator', 'B');
uimenu(hFrameWin, 'Label', 'Parameters...', 'Parent', hOptions, 'Callback', ['wt_set_parameters'], 'accelerator', 'P');
uimenu(hFrameWin, 'Label', 'User Variables (B)...', 'Parent', hOptions, 'Callback', ['wt_user_variables;wt_batch_redo(''wt_user_variables(''''copyfrommem'''')'')'], 'accelerator', 'U');
%uimenu(hFrameWin, 'Label','Track Stimulus Triggers', 'Parent', hOptions, 'Callback', ['wt_track_stimulus']);
uimenu(hFrameWin, 'Label','Signal-to-Noise', 'Parent', hOptions, 'Callback', ['wt_toggle_signal_noise'], 'Separator', 'on');
uimenu(hFrameWin, 'Label','Notes...', 'Parent', hOptions, 'Callback', ['wt_edit_notes'], 'accelerator', 'e');
uimenu(hFrameWin, 'Label','Debug Window', 'Parent', hOptions, 'Callback', ['wt_toggle_verbose']);
uimenu(hFrameWin, 'Label','Compress Datafiles', 'Parent', hOptions, 'Callback', ['wt_toggle_datacompress'], 'Separator', 'on');
uimenu(hFrameWin, 'Label','Uncompress Movie', 'Parent', hOptions, 'Callback', ['wt_uncompress_movie']);
uimenu(hFrameWin, 'Label','Play Movie', 'Parent', hOptions, 'Callback', ['wt_play_movie'], 'Separator', 'on', 'accelerator', 'M');
uimenu(hFrameWin, 'Label','Save Movie', 'Parent', hOptions, 'Callback', ['wt_play_movie(''save'')']);
uimenu(hFrameWin, 'Label','Dump Screen...', 'Parent', hOptions, 'Callback', ['wt_dump_screen'], 'Separator', 'on');
end
% Help menu
hHelp = uimenu(hFrameWin, 'Label', 'Help');
uimenu(hFrameWin, 'Label','WT Help', 'Parent', hHelp, ...
'Callback', ...
['hWordHandle=actxserver(''Word.Application'');set(hWordHandle,''Visible'',1);invoke(get(hWordHandle,''Documents''),''Open'',which(''WT_Help.doc''))']);
uimenu(hFrameWin, 'Label', 'Keyboard shortcuts', 'Parent', hHelp, 'Callback', ['wt_keyboard_shortcuts']);
uimenu(hFrameWin, 'Label','About WT', 'Parent', hHelp, 'Callback', ['wt_about_wt'], 'Separator', 'on');
if ~isempty(g_tWT.Movies)
% 'Go to frame' push-button
g_tWT.Handles.hGoToButton = uicontrol(g_tWT.WTWindow, 'units', 'normalized' ...
, 'Position', [.88 .025 .07 .03] ... % fig opos = .05 .05 .9 .9
, 'Style', 'edit' ...
, 'String', '' ...
, 'Tag', 'gotoframe' ...
, 'tooltipString', 'Enter value of frame to go to and press Enter' ...
, 'Callback', ['wt_display_frame(str2num(get(gco,''string'')))'] );
% Fix height in pixels
set(g_tWT.Handles.hGoToButton, 'units', 'pixels');
vPos = get(g_tWT.Handles.hGoToButton, 'position');
set(g_tWT.Handles.hGoToButton, 'Position', [vPos(1) 20 vPos(3) 17]);
% 'Go to last tracked frame' push button
g_tWT.Handles.hGoToEndButton = uicontrol(g_tWT.WTWindow, 'units', 'normalized' ...
, 'Position', [.95 .025 .03 .03] ... % fig opos = .05 .05 .9 .9
, 'Style', 'pushbutton' ...
, 'String', 'E' ...
, 'Tag', 'gotoframe' ...
, 'tooltipString', 'Go to last whisker-tracked frame' ...
, 'CallBack', @GotoLastFrame );
% Fix button height in pixels
set(g_tWT.Handles.hGoToEndButton, 'units', 'pixels');
vPos = get(g_tWT.Handles.hGoToEndButton, 'position');
set(g_tWT.Handles.hGoToEndButton, 'Position', [vPos(1) 20 vPos(3) 17]);
% 'Go to first tracked frame' push button
g_tWT.Handles.hGoToFirstButton = uicontrol(g_tWT.WTWindow, 'units', 'normalized' ...
, 'Position', [.02 .025 .03 .03] ... % fig opos = .05 .05 .9 .9
, 'Style', 'pushbutton' ...
, 'String', '1' ...
, 'Tag', 'gotoframe' ...
, 'tooltipString', 'Go to first frame in movie' ...
, 'CallBack', @GotoFirstFrame );
% Fix button height in pixels
set(g_tWT.Handles.hGoToFirstButton, 'units', 'pixels');
vPos = get(g_tWT.Handles.hGoToFirstButton, 'position');
set(g_tWT.Handles.hGoToFirstButton, 'Position', [vPos(1) 20 vPos(3) 17]);
% Status text field below slider
g_tWT.Handles.hStatusText = uicontrol(g_tWT.WTWindow, 'units', 'normalized' ...
, 'Position', [.02 .005 .96 .02] ...
, 'Style', 'text' ...
, 'fontsize', 8 ...
, 'horizontalalignment', 'left' ...
, 'String', '' ...
, 'Tag', 'statustext' ...
, 'FontWeight', 'normal' ...
, 'backgroundcolor', get(g_tWT.WTWindow, 'color'));
% Fix height in pixels
set(g_tWT.Handles.hStatusText, 'units', 'pixels');
vPos = get(g_tWT.Handles.hStatusText, 'position');
set(g_tWT.Handles.hStatusText, 'Position', [vPos(1) 2 vPos(3) 15]);
end
% List of previously accessed paths
if ~isempty(g_tWT.AccessedPaths)
for p = 1:length(g_tWT.AccessedPaths)
sLabel = sprintf('%d %s', p, g_tWT.AccessedPaths{p});
if length(sLabel) > 40
sLabel = ['..' sLabel(end-37:end)];
end
if p == 1
uimenu(hFrameWin, 'Label', sLabel, ...
'Parent', hFile, ...
'Callback', [sprintf('wt_select_directory(''%s'')', g_tWT.AccessedPaths{p})], ...
'Separator', 'on');
else
uimenu(hFrameWin, 'Label', sLabel, ...
'Parent', hFile, ...
'Callback', [sprintf('wt_select_directory(''%s'')', g_tWT.AccessedPaths{p})]);
end
end
end
uimenu(hFrameWin, 'Label','E&xit WT', 'Parent', hFile, 'Callback', ['wt_exit'], 'separator', 'on', 'accelerator', 'q');
set(hFrameWin, 'keypressfcn', @FigKeyPressExec)
set(g_tWT.WTWindow, 'visible', 'on')
return % end of main function
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function FigKeyPressExec( varargin )
global g_tWT
sKey = lower(get(gcf, 'currentcharacter'));
% If pressed key is a number, then go that number of frames back from
% current
if ~isempty(str2num(sKey))
if str2num(sKey) == 0
nNewFrame = round(get(g_tWT.Handles.hSlider, 'Value')) + 1;
else
nNewFrame = round(get(g_tWT.Handles.hSlider, 'Value')) - str2num(sKey);
end
if nNewFrame < 1 | nNewFrame > g_tWT.MovieInfo.NumFrames
beep; return;
end
wt_display_frame(nNewFrame);
end
if strcmp(' ', sKey)
if isfield(g_tWT, 'StopProc')
if g_tWT.StopProc, g_tWT.StopProc = 0; wt_track_auto('bicubic');
else, g_tWT.StopProc = 1; end
end
end
function GoToFrame(varargin)
global g_tWT
sF = inputdlg('Go to frame', 'Go to frame', 1);
if isempty(sF), return
else, wt_display_frame(str2num(char(sF))); end
return;
function GotoFirstFrame(varargin)
global g_tWT
if ~isempty(g_tWT.MovieInfo.Nose)
f = find(~isnan(g_tWT.MovieInfo.Nose(:,1)));
else, f = 1; end
wt_display_frame(f(1));
return;
function GotoLastFrame(varargin)
global g_tWT
if ~isempty(g_tWT.MovieInfo.SplinePoints)
f = size(g_tWT.MovieInfo.SplinePoints, 3);
else
f = g_tWT.MovieInfo.NumFrames;
end
wt_display_frame(f);
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_mark_object.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_mark_object.m
| 5,048 |
utf_8
|
c852ba81c9b336c1264876140284470d
|
function wt_mark_object(nWhisker, sOption, nLocation)
% WT_MARK_OBJECT
% Mark object. Accepts whisker ID as its single input parameter.
% Brings up a cross-hair to mark location in frame where whisker touches
% object. Only works in conjunction with the WT GUI.
% Syntax: wt_mark_object(ID)
global g_tWT
nCurrentFrame = round(get(g_tWT.Handles.hSlider, 'Value'));
switch sOption
case 'delete'
g_tWT.MovieInfo.ObjectRadPos(nWhisker, :, nLocation) = NaN;
delete(findobj('Tag', sprintf('object%d%d', nWhisker, nLocation)))
case 'move'
g_tWT.MovieInfo.ObjectRadPos(nWhisker, 1:2, nLocation) = GetCoords(nWhisker);
% - replace zeros with NaNs
g_tWT.MovieInfo.ObjectRadPos(find(g_tWT.MovieInfo.ObjectRadPos==0)) = NaN;
case 'editframe'
% Display current frame value and allow changing it
cNewFrame = inputdlg('New frame number', 'Edit frame', 1, ...
{num2str(g_tWT.MovieInfo.ObjectRadPos(nWhisker, 3, nLocation))});
if ~isempty(cNewFrame)
g_tWT.MovieInfo.ObjectRadPos(nWhisker, 3, nLocation) = str2num(char(cNewFrame));
end
% - replace zeros with NaNs
g_tWT.MovieInfo.ObjectRadPos(find(g_tWT.MovieInfo.ObjectRadPos==0)) = NaN;
case 'add'
% If this is the 1st marked touch location for this whisker, change
% the 1st frame for this location to be the 1st tracked frame
nF = find(squeeze(g_tWT.MovieInfo.SplinePoints(1,1,:,nWhisker)));
if nWhisker > size(g_tWT.MovieInfo.ObjectRadPos,1)
nCurrentFrame = nF(1);
else
% Following lines takes into account that old movies did not
% allow marking of more than one object
if size(g_tWT.MovieInfo.ObjectRadPos,2) == 3
if ~any(g_tWT.MovieInfo.ObjectRadPos(nWhisker,3,:))
nCurrentFrame = nF(1);
end
elseif size(g_tWT.MovieInfo.ObjectRadPos,2) == 2
g_tWT.MovieInfo.ObjectRadPos(nWhisker,3,:) = nF(1); % set frame of previous location to 1st tracked frame
end
end
% Check if there already is a location that starts from current frame
if size(g_tWT.MovieInfo.ObjectRadPos,2) == 3 & size(g_tWT.MovieInfo.ObjectRadPos,1) >= nWhisker
if find(g_tWT.MovieInfo.ObjectRadPos(nWhisker,3,:)==nCurrentFrame)
wt_error('There already is a defined location starting in current frame. Move location instead.')
end
end
vAbsCoords = GetCoords(nWhisker);
% Save in absolute coordinates
% - determine number of locations marked for this whisker
if isempty(g_tWT.MovieInfo.ObjectRadPos)
nObjectNum = 0;
else
try
nObjectNum = length(find(~isnan(g_tWT.MovieInfo.ObjectRadPos(nWhisker, 1:2, :))))/2;
catch, nObjectNum = 0; end
end
% - replace zeros with NaNs
g_tWT.MovieInfo.ObjectRadPos(find(g_tWT.MovieInfo.ObjectRadPos==0)) = NaN;
% - tidy up order of locations
for w = 1:size(g_tWT.MovieInfo.ObjectRadPos,1)
vRows = find(~isnan(g_tWT.MovieInfo.ObjectRadPos(w,1,:)));
tmp = g_tWT.MovieInfo.ObjectRadPos;
tmp(w,:,:) = NaN;
tmp(w,:,1:length(vRows)) = g_tWT.MovieInfo.ObjectRadPos(w,:,vRows);
g_tWT.MovieInfo.ObjectRadPos = tmp;
end
% - allocate new location
g_tWT.MovieInfo.ObjectRadPos(nWhisker, 1:3, nObjectNum+1) = [vAbsCoords nCurrentFrame];
% - replace zeros with NaNs
g_tWT.MovieInfo.ObjectRadPos(find(g_tWT.MovieInfo.ObjectRadPos==0)) = NaN;
% Delete whisker-distance-from-object vector
g_tWT.MovieInfo.PositionOffset(:,nWhisker) = NaN;
end
% Refresh frame
wt_display_frame
return;
%%%% SUB ROUTINES %%%%
function vAbsCoords = GetCoords(nWhisker)
global g_tWT
nCurrentFrame = round(get(g_tWT.Handles.hSlider, 'Value'));
% Get user input in absolute coordinates
[nX nY] = ginput(1);
vAbsCoords = [nX nY];% ./ g_tWT.MovieInfo.ResizeFactor;
% If head-position is known for the *current frame* then transform from
% relative to absolute coordinates.
if ~isempty(g_tWT.MovieInfo.EyeNoseAxLen) & g_tWT.MovieInfo.Nose(nCurrentFrame, 1) & g_tWT.DisplayMode
if ~isempty(g_tWT.MovieInfo.Nose(nCurrentFrame,:)) & ~isnan(prod(g_tWT.MovieInfo.Nose(nCurrentFrame,:)))
nWhiskerSide = g_tWT.MovieInfo.WhiskerSide(nWhisker);
if nWhiskerSide == 2, vAbsCoords(1) = vAbsCoords(1) - (g_tWT.MovieInfo.ImCropSize(1) + 1); end
vAbsCoords = wt_rotate_coords(vAbsCoords, ...
'rel2abs', ...
g_tWT.MovieInfo.RightEye(nCurrentFrame, :), ...
g_tWT.MovieInfo.LeftEye(nCurrentFrame, :), ...
g_tWT.MovieInfo.Nose(nCurrentFrame, :), ...
nWhiskerSide, ...
g_tWT.MovieInfo.ImCropSize, ...
g_tWT.MovieInfo.RadExt, ...
g_tWT.MovieInfo.HorExt );
end
end
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_head_tracker.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_head_tracker.m
| 7,494 |
utf_8
|
8bb26b2011d840cf56a96a3ba9c0b063
|
function bResult = wt_head_tracker(sFileName)
% WT_HEAD_TRACKER
% Track rat head movements
%
warning off MATLAB:divideByZero
warning off MATLAB:mir_warning_variable_used_as_function
global g_tWT
bResult = 1;
wt_toggle_display_mode(0)
g_tWT.MovieInfo.ImCropSize = round([g_tWT.MovieInfo.RadExt g_tWT.MovieInfo.EyeNoseAxLen+g_tWT.MovieInfo.HorExt*2]);
% Open waitbar dialog
hWaitbar = waitbar(0, sprintf('Loading buffer (%d frames)...', g_tWT.MovieInfo.NoFramesToLoad), 'CreateCancelBtn', 'delete(gcbf)');
set(hWaitbar, 'units', get(findobj('tag', 'WTMainWindow'), 'units'))
vFrPos = get(findobj('tag', 'WTMainWindow'), 'position');
vWtPos = get(hWaitbar, 'position');
set(hWaitbar, 'tag', 'auto');
% Add buttons for manual control
uicontrol(hWaitbar, 'Style', 'pushbutton', 'Position', [25 12 50 23], ...
'Callback', 'set(gcf, ''tag'', ''manual_right'')', 'String', 'Right' );
uicontrol(hWaitbar, 'Style', 'pushbutton', 'Position', [85 12 50 23], ...
'Callback', 'set(gcf, ''tag'', ''manual_left'')', 'String', 'Left' );
uicontrol(hWaitbar, 'Style', 'pushbutton', 'Position', [145 12 50 23], ...
'Callback', 'set(gcf, ''tag'', ''manual_both'')', 'String', 'Both' );
uicontrol(hWaitbar, 'Style', 'pushbutton', 'Position', [205 12 50 23], ...
'Callback', 'set(gcf, ''tag'', ''stop'')', 'String', 'Stop' );
drawnow
nYlim = g_tWT.MovieInfo.Height;
nXlim = g_tWT.MovieInfo.Width;
set(g_tWT.Handles.hSlider, 'enable', 'off') % disable slider
% Process frames
nFirstFrame = find(~isnan(g_tWT.MovieInfo.LeftEye(:,1)))+1;
nRealFrame = nFirstFrame(1);
bBreakOuter = 0;
% Outer loop: iterate over frame segments
while nRealFrame <= g_tWT.MovieInfo.NumFrames
nRangeStart = nRealFrame;
nRangeEnd = nRangeStart + g_tWT.MovieInfo.NoFramesToLoad - 1;
nRangeEnd = min([nRangeEnd g_tWT.MovieInfo.NumFrames]);
vFrameRange = nRangeStart:nRangeEnd; % range of frames in buffer
waitbar(nRealFrame/g_tWT.MovieInfo.NumFrames, hWaitbar, sprintf('Loading buffer (%d frames)...', g_tWT.MovieInfo.NoFramesToLoad))
mFrames = wt_load_avi(sFileName, vFrameRange); % load frame buffer
% Inner loop: iterate over individual frames in buffer
nFrame = 1;
bBreakInner = 0;
while nFrame <= length(vFrameRange) & nFrame > 0
nRealFrame = vFrameRange(nFrame);
try
waitbar(nRealFrame/g_tWT.MovieInfo.NumFrames, hWaitbar, sprintf('Processing frame %d', nRealFrame))
catch, bResult = 0; nBreakOuter = 1; break; end
if g_tWT.MovieInfo.Invert == 0, nInvert = -1; else, nInvert = 1; end
% Rotate
if g_tWT.MovieInfo.Rot ~= 0, mFrames(:,:,nFrame) = imrotate(mFrames(:,:,nFrame), g_tWT.MovieInfo.Rot); end
if g_tWT.MovieInfo.Flip(1) mFrames(:,:,nFrame) = flipud(mFrames(:,:,nFrame)); end % flip up-down
if g_tWT.MovieInfo.Flip(2) mFrames(:,:,nFrame) = fliplr(mFrames(:,:,nFrame)); end % flip left-right
if strcmp(get(hWaitbar, 'tag'), 'auto')
% Automatic
try
g_tWT.MovieInfo.RightEye(nRealFrame, :) = wt_track_spot(double(mFrames(:,:,nFrame)).*nInvert, g_tWT.MovieInfo.RightEye(nRealFrame-1, :), [], g_tWT.EyeFilter.Filter, g_tWT.VerboseMode);
g_tWT.MovieInfo.LeftEye(nRealFrame, :) = wt_track_spot(double(mFrames(:,:,nFrame)).*nInvert, g_tWT.MovieInfo.LeftEye(nRealFrame-1, :), [], g_tWT.EyeFilter.Filter, g_tWT.VerboseMode);
catch, bBreakOuter = 1; break, end
nFrame = nFrame + 1;
elseif strcmp(get(hWaitbar, 'tag'), 'stop') % stop tracking at current frame
bBreakOuter = 1; break
else
% Manual (ignore buffer and load frame-by-frame)
nFrame = 0;
while ~strcmp(get(hWaitbar, 'tag'), 'auto')
if nRealFrame < nFirstFrame, nRealFrame = nFirstFrame; end
% Get automatic suggestions
mFrame = wt_load_avi(sFileName, nRealFrame); % load frame buffer
g_tWT.MovieInfo.RightEye(nRealFrame, :) = wt_track_spot(double(mFrame).*nInvert, g_tWT.MovieInfo.RightEye(nRealFrame-1, :), [], g_tWT.EyeFilter.Filter, g_tWT.VerboseMode);
g_tWT.MovieInfo.LeftEye(nRealFrame, :) = wt_track_spot(double(mFrame).*nInvert, g_tWT.MovieInfo.LeftEye(nRealFrame-1, :), [], g_tWT.EyeFilter.Filter, g_tWT.VerboseMode);
g_tWT.MovieInfo.Nose(nRealFrame, :) = wt_find_nose(g_tWT.MovieInfo.RightEye(nRealFrame, :), g_tWT.MovieInfo.LeftEye(nRealFrame, :), g_tWT.MovieInfo.EyeNoseAxLen);
wt_display_frame(nRealFrame); % refresh frame
hLine = line(-10,-10); % indicator line
set(hLine, 'linewidth', 5, 'color', [1 0 0])
% Decide which side(s) to track
switch get(hWaitbar, 'tag')
case 'manual_both', cSides = {'Right' 'Left'};
case 'manual_right', cSides = {'Right'};
case 'manual_left', cSides = {'Left'};
end
for sS = cSides
% Update indicator line
if strcmp(sS,'Right'), set(hLine, 'xdata', [1 1], 'ydata', [0 nYlim]);
else, set(hLine, 'xdata', [nXlim nXlim], 'ydata', [0 nYlim]), end
nX = -1; nY = -1;
% Get input
while ~ValidCoord(nX,nY), [nX, nY, nButton] = ginput(1); end
if nButton == 2 | nButton == 3
% Break if middle or right button was pressed
set(hWaitbar, 'tag', 'auto')
figure(hWaitbar)
bBreakInner = 1;
break
elseif nButton > 3
% Change framenumber if a number key was pressed
nRealFrame = nRealFrame - str2num(char(nButton));
else
% Assign coordinate
eval(sprintf('g_tWT.MovieInfo.%sEye(nRealFrame, :) = round([nX nY]);', char(sS)));
if strcmp(sS,cSides{end}), nRealFrame = nRealFrame + 1; end
end
end
delete(hLine)
if bBreakInner
break
end
end
end
end % inner loop
if bBreakOuter, break
else % refresh frame
g_tWT.MovieInfo.RightEye = g_tWT.MovieInfo.RightEye;
g_tWT.MovieInfo.LeftEye = g_tWT.MovieInfo.LeftEye;
g_tWT.MovieInfo.Nose = wt_find_nose(g_tWT.MovieInfo.RightEye, g_tWT.MovieInfo.LeftEye, g_tWT.MovieInfo.EyeNoseAxLen);
if nFrame
wt_display_frame(nRealFrame, mFrames(:,:,nFrame-1));
else, wt_display_frame(nRealFrame); end
figure(hWaitbar); drawnow
end
end % outer loop
delete(hWaitbar)
g_tWT.MovieInfo.RightEye = g_tWT.MovieInfo.RightEye;
g_tWT.MovieInfo.LeftEye = g_tWT.MovieInfo.LeftEye;
g_tWT.MovieInfo.Nose = wt_find_nose(g_tWT.MovieInfo.RightEye, g_tWT.MovieInfo.LeftEye, g_tWT.MovieInfo.EyeNoseAxLen);
set(g_tWT.Handles.hSlider, 'enable', 'on', 'value', nFirstFrame-1) % enable slider
wt_toggle_display_mode(1) % refresh frame
wt_display_frame(nFirstFrame-1)
return
%%%% VALIDCOORD
%%%% Check if ginput() coordinates is inside the frame
function nB = ValidCoord(nX,nY)
global g_tWT
nB = 1;
vYlim = get(g_tWT.FrameAx, 'ylim');
vXlim = get(g_tWT.FrameAx, 'xlim');
if nX < 1 | nX > vXlim(2), nB = 0; end
if nY < 1 | nY > vYlim(2), nB = 0; end
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_plot_signal_noise.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_plot_signal_noise.m
| 3,785 |
utf_8
|
16ae4d2f5488b3e23f73a272f627ff86
|
function bStop = wt_plot_signal_noise(vSR)
% WT_PLOT_SIGNAL_NOISE
% Plots the signal-to-noise ratio of the whisker against the background.
% The ratio itself is computed in the find_next_whisker.dll. This function
% just accepts the number(s) to plot. Adds a red, horizontal bar for
% setting the threshold at which tracking should be automatically stopped.
%
% Syntax:
% wt_plot_signal_noise(N) : add N to XDATA in SR window
% wt_plot_signal_noise([]) : reset SR plot
global g_tWT
persistent p_hSRWin
persistent p_nAutoclear
persistent p_nClock
persistent p_vFPS
% Clear tracking speed variable
if isempty(vSR), p_vFPS = []; end
% Update tracking speed counter (current and average FPS)
if ~isempty(p_nClock)
nElapsedTime = etime(clock, p_nClock);
p_nClock = clock;
p_vFPS = [p_vFPS length(vSR)/nElapsedTime]; % tracking speed, fps
set(findobj('tag','fps'), 'label', sprintf('Tracking speed: %.1f fps', mean(p_vFPS)))
else, p_nClock = clock; end
if isempty(p_nAutoclear), p_nAutoclear = 500;
else
if ~isempty(findobj('tag', 'AutoClearButton'))
p_nAutoclear = get(findobj('tag', 'AutoClearButton'), 'UserData');
end
end
% Figure
if isempty(p_hSRWin) | ~ishandle(p_hSRWin)
p_hSRWin = figure;
set(p_hSRWin, 'Name', 'S/N Use mouse to set threshold', ...
'MenuBar', 'none', ...
'NumberTitle', 'off', ...
'Position', [450 370 480 200], ...
'CloseRequestFcn', 'wt_toggle_signal_noise;delete(gcbo)', ...
'Color', 'k', ...
'Tag', 'SignalNoiseFig' )
uimenu(gcf, 'Label', 'Clear', 'callback', 'wt_plot_signal_noise([])')
uimenu(gcf, 'Label', sprintf('Set autoclear (%d frames)', p_nAutoclear), 'callback', @SetAutoClear, 'Tag', 'AutoClearButton')
uimenu(gcf, 'Label', 'Tracking speed: 0 fps', 'Tag', 'fps')
end
% Axes
hAxes = findobj('tag', 'sn_plot');
if isempty(hAxes)
hAxes = subplot('Position', [.1 .15 .8 .7]);
set(gca, 'FontSize', 7, 'color', 'k', ...
'xcolor', 'w', 'ycolor', 'w', ...
'ButtonDownFcn', @SetThreshold, ...
'tag', 'sn_plot' )
ylabel('S/N'); xlabel('Time (frames)')
end
% Plot
hLines = get(hAxes(end), 'children'); % there are two line objects: S/N and THRESHOLD
if isempty(hLines)
hLines(1) = line(1,1);
hThreshLine = line(0,2);
set(hLines(1), 'Tag', 'SR', 'Marker', '.', 'color', [0 .8 0]);
set(hThreshLine, 'Tag', 'THRESH', 'color', 'r', 'LineStyle', ':');
end
% Return if the input is empty
if isempty(vSR), vSR = 0;
else, vSR = [get(findobj('tag','SR'),'ydata') vSR]; end
set(hAxes, 'ylim', [min(vSR)-2 max(vSR)+2])
set(findobj('tag','SR'), 'ydata', vSR, 'xdata', 0:length(vSR)-1)
vYdata = get(findobj('tag','THRESH'), 'ydata');
set(findobj('tag','THRESH'), 'ydata', repmat(vYdata(1), 1, length(vSR)), 'xdata', 0:length(vSR)-1)
hLines = get(hAxes(end), 'children'); % there are two line objects: S/N and THRESHOLD
% Evaluate SR
vThresh = get(findobj('tag','THRESH'), 'ydata');
if (vSR(end) <= vThresh(end)) & vSR(end)~=0
beep
g_tWT.StopProc = 1;
end
% If length of vSR > p_nAutoclear, clear the display
if length(vSR) > p_nAutoclear, wt_plot_signal_noise([]), end
return
%%% Change SR threshold %%%
function SetThreshold(varargin)
mPnts = get(gca,'CurrentPoint');
nY = mPnts(1,2);
nXlim = get(gca, 'xlim');
set(findobj('tag','THRESH'), 'xdata', 0:nXlim(2), ...
'ydata', repmat(nY,1,length(0:nXlim(2))) )
return
%%% Change Autoclear %%%
function SetAutoClear( varargin )
sAutoClFrames = inputdlg('Number of frames between autoclear', 'Set autoclear', 1);
if isempty(char(sAutoClFrames)), return, end
nAutoClFrames = str2num(char(sAutoClFrames));
set(findobj('tag', 'AutoClearButton'), 'Label', sprintf('Set autoclear (%d frames)', nAutoClFrames), 'UserData', nAutoClFrames);
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_clear_selected_whisker.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_clear_selected_whisker.m
| 2,251 |
utf_8
|
aba3a703c9cf0c5ea4afc2e0ca864686
|
function wt_clear_selected_whisker()
% WT_CLEAR_SELECTED_WHISKER
% Delete all or parts of tracked data of selected whiskers, or delete all
% tracked whiskers.
global g_tWT
cIdents = {g_tWT.MovieInfo.WhiskerIdentity{:}};
nFontSize = 8;
nLinSep = 10;
vScrnSize = get(0, 'ScreenSize');
nFigHeight = (length(cIdents)-1) * (nFontSize*2 + nLinSep) + 60;
nFigWidth = 150;
vFigPos = [5 vScrnSize(4)-(nFigHeight+21) nFigWidth nFigHeight];
hCurrWin = figure;
set(hCurrWin, 'NumberTitle', 'off', ...
'Name', 'Select whisker', ...
'Position', vFigPos, ...
'Tag', 'ClearSelectedWhiskers', ...
'MenuBar', 'none' )
nCurrLine = nFigHeight;
nCurrLine = nCurrLine - (nFontSize*2 + nLinSep);
for w = 1:length(cIdents)
w_this = w;
if w > 10, w_this = w-10; end
if w > 20, w_this = w-20; end
if w > 30, w_this = w-30; end
if w > 40, w_this = w-40; end
if isempty(cIdents{w}), cIdents{w}{1} = ''; end
hBox = uicontrol(hCurrWin, 'Style', 'checkbox', 'Position', [10 nCurrLine 125 20], ...
'Callback', '', ...
'HorizontalAlignment', 'right', ...
'String', cIdents{w}, ...
'FontWeight', 'bold', ...
'Tag', sprintf('whisker_%d_%s', w, cIdents{w}{:}), ...
'BackgroundColor', g_tWT.Colors(w_this,:) );
nCurrLine = nCurrLine - (nFontSize*2 + nLinSep);
end
% Refresh pushbutton
uicontrol(hCurrWin, 'Style', 'pushbutton', 'Position', [10 nCurrLine 125 20], ...
'Callback', @ClearWhiskers, ...
'String', 'Clear whiskers', ...
'FontWeight', 'bold' );
uiwait(hCurrWin)
return
%%%%%%%%%%%%%% CLEAR WHISKERS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function ClearWhiskers(varargin)
global g_tWT
hCurrWin = findobj('Tag', 'ClearSelectedWhiskers');
% Iterate over checkboxes and decide which to delete
vDelWhiskers = [];
cIdents = {g_tWT.MovieInfo.WhiskerIdentity{:}};
for w = 1:length(cIdents)
if isempty(cIdents{w}), cIdents{w}{1} = ''; end
hCheckBox = findobj(hCurrWin, 'Tag', sprintf('whisker_%d_%s', w, cIdents{w}{:}));
if get(hCheckBox, 'Value')
vDelWhiskers(end+1) = w;
end
end
% Clear whiskers
if ~isempty(vDelWhiskers)
wt_clear_whisker(vDelWhiskers)
end
% Close window
close(hCurrWin)
% Re-open window
wt_clear_selected_whisker
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_rotate_frame.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_rotate_frame.m
| 993 |
utf_8
|
a92c107a47390dbb6d73e084fa620630
|
% WT_ROTATE_FRAME
%
function wt_rotate_frame( nDir )
global g_tWT
% Display warning message
if ~isfield(g_tWT.MovieInfo, 'SplinePoints'), return, end
if ~isempty(g_tWT.MovieInfo.SplinePoints)
sQuestResp = questdlg('Changing the ROI will delete already marked whiskers. Continue?', 'Warning', 'Yes', 'No', 'Yes');
if strcmp(sQuestResp, 'No') return; end
end
nAngles = [0 90 180 270];
nCurrPos = find(nAngles == g_tWT.MovieInfo.Rot);
% Determine new 'clock' position
if nDir == 0 % return to default
g_tWT.MovieInfo.Rot = 0;
g_tWT.MovieInfo.Roi = [1 1 g_tWT.MovieInfo.Width-1 g_tWT.MovieInfo.Height-1];% * g_tWT.MovieInfo.ResizeFactor;
else
nNewPos = nCurrPos - nDir;
switch nNewPos
case 0
g_tWT.MovieInfo.Rot = nAngles(4);
case 5
g_tWT.MovieInfo.Rot = nAngles(1);
otherwise
g_tWT.MovieInfo.Rot = nAngles(nNewPos);
end
end
g_tWT.MovieInfo.SplinePoints = [];
% Refresh frame
wt_display_frame
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_flip_frame.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_flip_frame.m
| 866 |
utf_8
|
9b7c021b84096aead6b9a000be27738e
|
%%%% WT_FLIP_FRAME %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Whisker Tracker (WT)
%
% Authors: Per Magne Knutsen, Dori Derdikman
%
% (c) Copyright 2004 Yeda Research and Development Company Ltd.,
% Rehovot, Israel
%
% This software is protected by copyright and patent law. Any unauthorized
% use, reproduction or distribution of this software or any part thereof
% is strictly forbidden.
%
% Citation:
% Knutsen, Derdikman, Ahissar (2004), Tracking whisker and head movements
% of unrestrained, behaving rodents, J. Neurophys, 2004, IN PRESS
%
function wt_flip_frame( sDirection )
global g_tWT
switch sDirection
case 'updown' % Flip Up-Down
g_tWT.MovieInfo.Flip(1) = ~g_tWT.MovieInfo.Flip(1);
case 'leftright' % Flip Left-Right
g_tWT.MovieInfo.Flip(2) = ~g_tWT.MovieInfo.Flip(2);
end
% Refresh display
wt_display_frame
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_create_filter.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_create_filter.m
| 6,277 |
utf_8
|
38d33983265ffab70c0fc85628361dbe
|
function tFilter = wt_create_filter(tDefaultFilter, sOption)
% Whisker Tracker (WT)
%
% Authors: Per Magne Knutsen, Dori Derdikman
%
% (c) Copyright 2004 Yeda Research and Development Company Ltd.,
% Rehovot, Israel
%
% This software is protected by copyright and patent law. Any unauthorized
% use, reproduction or distribution of this software or any part thereof
% is strictly forbidden.
%
% Citation:
% Knutsen, Derdikman, Ahissar (2004), Tracking whisker and head movements
% of unrestrained, behaving rodents, J. Neurophys, 2004, IN PRESS
% Create a mexican hat (DoG) filter interactively
%
% Usage:
% Set filter interactively
% tFilter = wt_create_filter(tDefaultFilter)
%
% Create filter only (don't open GUI)
% tFilter = wt_create_filter(tDefaultFilter, 'create-only')
%
if exist('sOption')
switch lower(sOption)
case 'create-only'
tFilter = CreateFilter(tDefaultFilter);
return
end
end
hWT_win = findobj('Tag', 'WTMainWindow');
if ~isempty(hWT_win)
wt_display_frame; % refresh frame
end
if ~exist('tDefaultFilter')
tDefaultFilter.Size = 10;
tDefaultFilter.Sigma_A = 3;
tDefaultFilter.Sigma_B = 1;
end
% Open window
hFig = figure;
set(hFig, 'Position', [350 520 520 180], 'MenuBar', 'none', 'NumberTitle', 'off', 'Name' ,'WT - GENERATE FILTER', 'Tag', 'WT_GENERATE_FILTER', 'Resize', 'off')
hSub = subplot('Position', [.65 .1 .35 .8]);
set(hSub, 'xtick', [], 'ytick', [], 'Color', 'k', 'Tag', 'WT_GENERATE_FILTER_SUBPLOT')
axis square
% Slide bars
hSliderAB_size = uicontrol(hFig, 'style', 'slider');
SetSliderProps(hSliderAB_size, [.15 .85 .4 .1], 1, 101, [.01 .1], tDefaultFilter.Size, 'AB_SIZE', 'Size', @UpdateFilter)
hSliderA_sigma = uicontrol(hFig, 'style', 'slider');
SetSliderProps(hSliderA_sigma, [.15 .54 .4 .1], 0.001, 10, [.01 .1], tDefaultFilter.Sigma_A, 'A_SIGMA', 'A sigma', @UpdateFilter)
hSliderB_sigma = uicontrol(hFig, 'style', 'slider');
SetSliderProps(hSliderB_sigma, [.15 .41 .4 .1], 0.001, 10, [.01 .1], tDefaultFilter.Sigma_B, 'B_SIGMA', 'B sigma', @UpdateFilter)
hTxt = uicontrol(gcf, 'style', 'text'); % Text string indicating slider value
set(hTxt, 'units', 'normalized', 'string', 'Size should greater than the maximal expected frame to frame displacement', 'Position', [.05 .675 .575 .15], 'HorizontalAlignment', 'left')
hTxt = uicontrol(gcf, 'style', 'text'); % Text string indicating slider value
set(hTxt, 'units', 'normalized', 'string', 'Sigmas should be adjusted so that the object of interest appears dark in the image', 'Position', [.05 .23 .575 .15], 'HorizontalAlignment', 'left')
hSaveButton = uicontrol(hFig, 'style', 'pushbutton'); % SAVE button
set(hSaveButton, 'units', 'normalized', 'Position', [.15 .05 .15 .15], 'string', 'Save', 'Callback', ['uiresume(gcf);'])
hCancelButton = uicontrol(hFig, 'style', 'pushbutton'); % CANCEL button
set(hCancelButton, 'units', 'normalized', 'Position', [.4 .05 .15 .15], 'string', 'Cancel', 'Callback', ['close(gcf);'])
TestFilter;
uiwait(hFig)
if ~isempty(findobj('Tag', 'WT_GENERATE_FILTER'))
tFilter.Size = round(get(findobj('Tag', 'AB_SIZE'), 'Value'));
tFilter.Sigma_A = get(findobj('Tag', 'A_SIGMA'), 'Value');
tFilter.Sigma_B = get(findobj('Tag', 'B_SIGMA'), 'Value');
tFilter = CreateFilter(tFilter);
close(hFig)
else
tFilter = tDefaultFilter;
end
wt_display_frame
TestFilter('clear')
return
% Create filter
function TestFilter(sOption)
global g_tWT
persistent mImg
if exist('sOption')
switch lower(sOption)
case 'clear'
clear mImg;
return
end
end
nSize = round(get(findobj('Tag', 'AB_SIZE'), 'Value'));
mGaussA = fspecial('gaussian', nSize, get(findobj('Tag', 'A_SIGMA'), 'Value')); % Gaussian A
mGaussB = fspecial('gaussian', nSize, get(findobj('Tag', 'B_SIGMA'), 'Value')); % Gaussian B
mFilter = mGaussA - mGaussB; % DoG (Difference of Gaussians)
hSub = findobj('Tag', 'WT_GENERATE_FILTER_SUBPLOT');
axis(hSub);
imagesc(mFilter);
colormap pink
set(hSub, 'xtick', [], 'ytick', [], 'Color', 'k', 'Tag', 'WT_GENERATE_FILTER_SUBPLOT')
axis square
drawnow
% Convolve WT window
hWT_win = findobj('Tag', 'WTMainWindow');
if ~isempty(hWT_win) % don't convolve if WT window is closed
if isempty(mImg)
hAx = findobj(hWT_win, 'type', 'axes');
mImg = get(findall(hAx, 'type', 'image'), 'cdata');
end
mImg_conv = conv2(double(mImg), mFilter, 'same'); % convolve
wt_display_frame(get(g_tWT.Handles.hSlider, 'value'), mImg_conv); % FIX FRAMENUMBER!!!!!!
end
figure(findobj('Tag', 'WT_GENERATE_FILTER'))
return
% end test filter
% Update filter parameters
function UpdateFilter(varargin)
hAB_SIZE = findobj('Tag', 'AB_SIZE');
hAB_SIZE_txt = findobj('Tag', 'AB_SIZE-txt');
set(hAB_SIZE_txt, 'String', round(get(hAB_SIZE, 'Value')));
hA_SIGMA = findobj('Tag', 'A_SIGMA');
hA_SIGMA_txt = findobj('Tag', 'A_SIGMA-txt');
set(hA_SIGMA_txt, 'String', get(hA_SIGMA, 'Value'));
hB_SIGMA = findobj('Tag', 'B_SIGMA');
hB_SIGMA_txt = findobj('Tag', 'B_SIGMA-txt');
set(hB_SIGMA_txt, 'String', get(hB_SIGMA, 'Value'));
TestFilter;
return
% end update filter
% Set slider properties
function SetSliderProps(hSlider, vPos, nMin, nMax, vStep, nDefault, sTag, sString, sCallback)
set(hSlider, 'units', 'normalized' ...
, 'Position', vPos ...
, 'Style', 'slider' ...
, 'Tag', sTag ...
, 'Min', nMin ...
, 'Max', nMax ...
, 'SliderStep', vStep ...
, 'Value', nDefault ...
, 'CallBack', sCallback );
hTxt = uicontrol(gcf, 'style', 'text'); % Text string indicating slider value
set(hTxt, 'units', 'normalized', 'string', get(hSlider, 'Value'), 'Position', [vPos(1)+vPos(3) vPos(2) .075 vPos(4)], 'Tag', sprintf('%s-txt', sTag))
hTxt = uicontrol(gcf, 'style', 'text'); % Descriptive text string
set(hTxt, 'units', 'normalized', 'string', sString, 'Position', [.05 vPos(2), vPos(1)-.05 vPos(4)], 'HorizontalAlignment', 'left', 'FontWeight','bold')
return
% end slider properties
% Create filter
function tFilter = CreateFilter(tFilter)
mGaussA = fspecial('gaussian', tFilter.Size, tFilter.Sigma_A); % Gaussian A
mGaussB = fspecial('gaussian', tFilter.Size, tFilter.Sigma_B); % Gaussian B
tFilter.Filter = mGaussA - mGaussB; % DoG (Difference of Gaussians)
return
% end create filter
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_crop_behaving_video.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_crop_behaving_video.m
| 7,146 |
utf_8
|
5176de9198f557e2304c65564f2de0a9
|
% WT_CROP_BEHAVING_VIDEO
% Extract region of interest parallel to whisker-pad.
% wt_crop_behaving_video(M, C, HOR, RAD, METHOD), where
% M is the loaded frame
% C is a 3-by-2 vector containing X Y coordinates of right-eye, left-eye
% and nose.
% HOR is the length of the extracted region (anterior-posterior axis)
% RAD is the width of the extracted region (distance from face)
% METHOD is the interpolation method used when rotating the extracted
% region, either 'linear' (fast) or 'bicubic' (slow, but better).
%
function mCropImg = wt_crop_behaving_video(mImg, mCoords, hor_ext, rad_ext, method);
global g_tWT
% Resize cropping parameters according to the ersize factor
%hor_ext = hor_ext * g_tWT.MovieInfo.ResizeFactor;
%rad_ext = rad_ext * g_tWT.MovieInfo.ResizeFactor;
%mCoords = mCoords * g_tWT.MovieInfo.ResizeFactor;
bDebug = g_tWT.VerboseMode;
switch lower(method)
case 'bicubic'
bBicubic = 1;
case 'nearest'
bBicubic = 0;
otherwise
error('Unknown method in wt_crop_behaving_vide')
end
% Rotate and extract the relevant parts of the image
% A small note: the routine first defines the vertices of the relevant
% section in the coordinates of the original frame. It then extracts this
% part, rotates it and re-crops it so only the defined rectangle is kept.
% An alternative would be to rotate the entire frame, and then crop. This is
% intuitively simpler, but because the imrotate(...) function is slow on
% large matrices (e.g. such as the entire frame), this method takes more
% than 3 times longer to execute than the first method.
% TODO:
% - account for possible errors coordinates are outside the frame
% - return both right and left side and the ROI in absolute coordinates
% - check consistency of mCoords input matrix
if bDebug
hFig = findobj('Tag', 'CROP_FRAME_WINDOW');
if isempty(hFig)
hFig = figure;
set(hFig, 'Tag', 'CROP_FRAME_WINDOW', 'DoubleBuffer', 'on', 'Name', 'WT - CROP_FRAME_WINDOW', 'numbertitle', 'off')
else, figure(hFig), end
clf;
end
nPadFact = 4;
% zero-pad image to avoid boundary errors
mImg = padarray(mImg, [hor_ext*nPadFact rad_ext*nPadFact], mean(mean(mImg(:,:,1))),'both');
% repeat once for right eye and once for left eye
new_coords = zeros(4,2);
for e = 1:2 % 1=right 2=left
% angle between eye and nose
y = abs(mCoords(e,2) - mCoords(3,2));
x = mCoords(e,1) - mCoords(3,1);
if x < 0
theta = -1*(90 + rad2deg(atan(y/x)));
else
theta = 90 - rad2deg(atan(y/abs(x)));
end
if (mCoords(3,1)-mCoords(e,1)) < 0
ang = pi + atan( (mCoords(3,2)-mCoords(e,2))/(mCoords(3,1)-mCoords(e,1)) ); % ang between points
else
ang = atan( (mCoords(3,2)-mCoords(e,2))/(mCoords(3,1)-mCoords(e,1)) ); % ang between points
end
eye_nose_zero_intersect = interp1([mCoords(3,2) mCoords(e,2)], [mCoords(3,1) mCoords(e,1)], 0, 'linear', 'extrap');
r_nose = sqrt(sum([(mCoords(3,1)-eye_nose_zero_intersect) mCoords(3,2)].^2)) + hor_ext;
new_coords(1,:) = [ r_nose*cos(ang)+eye_nose_zero_intersect r_nose*sin(ang) ]; % ant A
r_eye = sqrt(sum([(mCoords(e,1)-eye_nose_zero_intersect) mCoords(e,2)].^2)) - hor_ext;
new_coords(2,:) = [ r_eye*cos(ang)+eye_nose_zero_intersect r_eye*sin(ang) ]; % post A
adj = [rad_ext*cos(ang-deg2rad(90)) rad_ext*sin(ang-deg2rad(90))];
if e == 1 % right eye
new_coords(4,:) = new_coords(1,:) - adj; % ant B
new_coords(3,:) = new_coords(2,:) - adj; % post B
else % left eye
new_coords(4,:) = new_coords(1,:) + adj; % ant B
new_coords(3,:) = new_coords(2,:) + adj; % post B
end
% transform coordinates to take into account zero-padding
new_coords = [new_coords(:,1)+rad_ext*nPadFact new_coords(:,2)+hor_ext*nPadFact];
% extract the rectangle
x = min(new_coords(:,1));
y = min(new_coords(:,2));
w = max(new_coords(:,1)) - x; %end % use width of 1st frame
h = max(new_coords(:,2)) - y; %end % use height of 1st frame
try
mTemp = mImg(round(y:y+h), round(x:x+w));
catch
wt_error('Possible error with head-coordinates. Check by changing display mode.')
end
% calculate what the size of the rotate image will be (uncropped)
theta_rad = deg2rad(theta);
R = [cos(theta_rad) sin(theta_rad); -sin(theta_rad) cos(theta_rad)];
half_w = size(mTemp, 1)/2;
half_h = size(mTemp, 2)/2;
% corners = [up_left; up_right; low_left; low_right]
corners(1,:) = [-half_w half_h];
corners(2,:) = [half_w half_h];
corners(3,:) = [-half_w -half_h];
corners(4,:) = [half_w -half_h];
new_corners = corners * R;
if theta < 0
new_size = abs([new_corners(3,1)*2 new_corners(1,2)*2]);
else
new_size = abs([new_corners(1,1)*2 new_corners(2,2)*2]);
end
% zeropad image before rotating to take into account loss of pixels
% during cropping
vPad = ceil((new_size-size(mTemp))/2);
% remove negative values
vPad(vPad<0) = 0;
mTemp = padarray(mTemp, vPad, 'both');
% rotate rectangle
if bBicubic
% - use Matlab method if choosing bicubic interpolation
mTemp = imrotate(mTemp, theta, 'bicubic', 'crop');
else
% - use C script of choosing nearest interpolation
mTemp = rotate_matrix(double(mTemp), theta);
end
% crop again so only the relevant section is included in final image
% We have replaced the two lines below with parameters defined earlier
% in the global namespace, as we want all frames to have the same size.
%new_w = round(rad_ext);
%new_h = round(hor_ext*2 + sqrt(sum([mCoords(3,1)-mCoords(e,1) mCoords(3,2)-mCoords(e,2)].^2))); %end
new_w = g_tWT.MovieInfo.ImCropSize(1);% * g_tWT.MovieInfo.ResizeFactor;
new_h = g_tWT.MovieInfo.ImCropSize(2);% * g_tWT.MovieInfo.ResizeFactor;
x = round((size(mTemp, 2) - new_w) / 2);
y = round((size(mTemp, 1) - new_h) / 2);
mCropImg{e} = mTemp(round(y:y+new_h), round(x:x+new_w));
if bDebug
subplot(1,4,e+2)
imagesc(mCropImg{e}); SetPlotProps;
end
end
% Plot
if bDebug
subplot(1,4,1:2)
imagesc(mImg(hor_ext:size(mImg,1)-hor_ext,rad_ext:size(mImg,2)-rad_ext))
title('Original')
colormap gray; hold on
scatter(mCoords(:,1),mCoords(:,2),'g.') % eyes/nose
scatter(new_coords(:,1)-rad_ext, new_coords(:,2)-hor_ext, 'r.') % rect coords
plot(new_coords([1 2 3 4 1], 1)-rad_ext, new_coords([1 2 3 4 1], 2)-hor_ext, 'r')
SetPlotProps;
drawnow
end
% make sure that both rectangles have the same dimensions before returning
% them
min_height = min([size(mCropImg{1},1) size(mCropImg{2},1)]);
min_width = min([size(mCropImg{1},2) size(mCropImg{2},2)]);
% crop outwards (from whisker roots) and downwards (from neck)
mCropImg{1} = mCropImg{1}(1:min_height, (size(mCropImg{1},2)+1-min_width):end);
mCropImg{2} = mCropImg{2}(1:min_height, 1:min_width);
% flip right rectangle horizontally
mCropImg{1} = fliplr(mCropImg{1});
return;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function SetPlotProps
set(gca, 'xtick', [], 'ytick', [])
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_subtract_bg_frame.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_subtract_bg_frame.m
| 8,477 |
utf_8
|
aa677748a07abb05bd8819239e12c399
|
% WT_SUBTRACT_BG_FRAME
% IMG_OUT = wt_subtract_bg_frame(IMG, F), where
% IMG is the frame from which to subtract the background frame
% F is the current frame number
% IMG_OUT is IMG minus the background
%
% Subtract background frame from passed image. The passed coordinates are
% used to select what portion of the frames to subtract, in case the passed
% image has alredy been cropped. vCoords are in absolute coordinates. The
% current-frame parameter is used to determine whcih series of frames to
% subtract from the passed image, in case different background-frames have
% been calculated (e.g. before object entry and after object entry)
%
% The background frame is low-pass filtered if a number has been entered in
% the 'Low-pass background image (pixels)' field in the parameters GUI. The
% value entered is used to determine the diameter (in pixels) of a low-pass
% median filter.
%
% IMPORTANT NOTE:
% If in the matrix where background frame series are specified any row
% contains two zeros [0 0] then ALL background frames will be subtracted
% from ALL frames!
%
function mImgOut = wt_subtract_bg_frame(varargin)
global g_tWT
persistent p_tBgFrames
persistent p_nBGLowPass
if nargin == 1
switch varargin{1}
case 'reset'
p_tBgFrames = struct([]);
return;
end
else
mImgIn = varargin{1};
vCoords = [1 1 g_tWT.MovieInfo.Width-1 g_tWT.MovieInfo.Height-1];% * g_tWT.MovieInfo.ResizeFactor;
nCurrentFrame = varargin{2};
end
bDebug = g_tWT.VerboseMode;
% Iterate over p_cBgFrames and decide which background-frames to scrap and
% which to keep. If all are scrapped, calculate all background frames. If
% all are kept, then don't recalculate any of them. Here we also shuffle
% the order of the background frames and case some are kept and new ones
% are inserted. For instance, new background frames will be calculated if
% the user changes the start- and stop-frame values of the background
% frames in the GUI.
% Select frame-series to average
mAvgFrames = g_tWT.MovieInfo.AverageFrames;
% Determine whether to subtract ALL background frames from current frame
nZeroRow = find(any(~all(mAvgFrames,2)));
if ~isempty(nZeroRow)
bSubtractAll = 1;
mAvgFrames(nZeroRow, :) = [];
else, bSubtractAll = 0; end
% Exit immediately if background frames should not be used
if isempty(mAvgFrames)
p_tBgFrames = struct([]);
mImgOut = double(mImgIn);
return;
end
% If the size of the background-frame smoothing window has changed, scrap
% all existing background frames and calculate these again (and then smooth
% with the new window)
if p_nBGLowPass ~= g_tWT.MovieInfo.BGFrameLowPass
p_tBgFrames = struct([]); % clear persistent variable (we concatenate the existing frames below)
end
p_nBGLowPass = g_tWT.MovieInfo.BGFrameLowPass;
% Select which of the existing background frames to keep
tTempFrames = struct([]);
for bgA = 1:size(p_tBgFrames, 2)
for bgB = 1:size(mAvgFrames, 1)
if (p_tBgFrames(bgA).from == mAvgFrames(bgB,1)) ...
& (p_tBgFrames(bgA).to == mAvgFrames(bgB,2))
% Background-frame already exists...
mAvgFrames(bgB,:) = [NaN NaN];
nNewIndx = size(tTempFrames,2)+1;
tTempFrames(nNewIndx).img = p_tBgFrames(bgA).img;
tTempFrames(nNewIndx).from = p_tBgFrames(bgA).from;
tTempFrames(nNewIndx).to = p_tBgFrames(bgA).to;
end
end
end
mAvgFrames(find(isnan(mAvgFrames))) = [];
p_tBgFrames = struct([]); % clear persistent variable (we concatenate the existing frames below)
% Determine how many background frames to calculate.
if isempty(mAvgFrames), nNoBgFrames = 0;
else, nNoBgFrames = size(mAvgFrames, 1); end
% Initialize waitbar
for bg = 1:nNoBgFrames
if ~exist('hWaitBar'), hWaitBar = waitbar(0, ''); end
% Update waitbar
waitbar(bg/(nNoBgFrames+1), hWaitBar, sprintf('Calculating background-frame %d of %d', bg, nNoBgFrames))
nFrom = mAvgFrames(bg,1); % start range
nTo = mAvgFrames(bg,2); % end range
if nFrom == 0, nFrom = 1, end
if nTo == 0, nTo = nFrom + 1; end
if nFrom > nTo % check consistency in input
wt_error('The first background frame has a higher frame-number than the last. Check values in Image->Parameters.')
end
nAviTo = nTo; % limit nTo to max frames
if nTo > g_tWT.MovieInfo.NumFrames
nAviTo = g_tWT.MovieInfo.NumFrames;
end
% Load background frames in chunks to avoid memory problems
if g_tWT.MovieInfo.NoFramesToLoad >= (nTo - nFrom), vRanges = [nFrom nTo];
else, vRanges = nFrom:g_tWT.MovieInfo.NoFramesToLoad:nTo; end
mAveragedFrames = [];
for r = 2:length(vRanges)
vRange = [vRanges(r-1) (vRanges(r)-1)]; % [min max]
vFrames = max([1 vRange(1)]):min([vRange(2) g_tWT.MovieInfo.NumFrames]); % all frames to be loaded
if isempty(g_tWT.MovieInfo.FilenameUncompressed)
mFrames = wt_load_avi(g_tWT.MovieInfo.Filename, vFrames, 'noresize');
else
mFrames = wt_load_avi(g_tWT.MovieInfo.FilenameUncompressed, vFrames, 'noresize');
end
try, mFrames = double(mFrames);
catch, wt_error('Out of memory. Try to reduce the number of background frames.'), end
mAveragedFrame = mean(mFrames, 3);
mAveragedFrames(:,:,r-1) = mAveragedFrame;
end
mAveragedFrame = mean(mAveragedFrames,3);
% Crop image
mAveragedFrame = imcrop(mAveragedFrame, vCoords);%./g_tWT.MovieInfo.ResizeFactor);
% Smooth background image
if isfield(g_tWT.MovieInfo, 'BGFrameLowPass')
nLowPass = g_tWT.MovieInfo.BGFrameLowPass;
if ~isempty(nLowPass) & (nLowPass > 1)
mWin = ones(nLowPass);
mAveragedFrame = conv2(mAveragedFrame, mWin, 'same') ./ prod(size(mWin));
end
end
% Store averaged frame in the persistent holder variable
p_tBgFrames(bg).img = mAveragedFrame;
p_tBgFrames(bg).from = mAvgFrames(bg,1);
p_tBgFrames(bg).to = mAvgFrames(bg,2);
end
if exist('hWaitBar'), close(hWaitBar); end
% Concatenate new background frames with the exisiting ones we stored in the beginning of this function
p_tBgFrames = cat(2, p_tBgFrames, tTempFrames);
% Sort background frames in ascending order by 'from' field
[vNewOrder vNewIndxOrd] = sortrows(char(p_tBgFrames.from));
p_tBgFrames = p_tBgFrames(vNewIndxOrd);
% Show all background frames in debug mode
if bDebug
hFig = findobj('Tag', 'SUBTRACT_BACKGROUND_WINDOW');
if isempty(hFig)
hFig = figure;
set(hFig, 'Tag', 'SUBTRACT_BACKGROUND_WINDOW', 'DoubleBuffer', 'on', 'Name', 'WT - SUBTRACT_BACKGROUND_WINDOW', 'numbertitle', 'off')
else, figure(hFig), end
clf
for bg = 1:size(p_tBgFrames,2)
subplot(2,max([3 size(p_tBgFrames,2)]),bg)
imagesc(p_tBgFrames(bg).img); colormap gray;
title(sprintf('BG frame %d-%d', p_tBgFrames(bg).from, p_tBgFrames(bg).to))
end
end
% Finally, subtract the appropriate background frame from the passed frame
% (use input parameter nCurrentFrame to determine which background frame to
% subtract)
mBgFrame = zeros(size(mImgIn));
mImgOut = mImgIn;
if bSubtractAll
cAll = {p_tBgFrames(:).img};
mAll = cat(3, cAll{:,:,:});
mBgFrame = mean(mAll,3);
mBgFrameRe = mBgFrame;
mImgOut = double(mImgIn) - double(mBgFrameRe);
else
for bg = 1:size(p_tBgFrames,2)
% Subtract background frame is there is a such one for the current frame
if (nCurrentFrame >= p_tBgFrames(bg).from) & (nCurrentFrame <= p_tBgFrames(bg).to)
% Check images have same dimensions
if (size(mImgIn,1) == size(p_tBgFrames(bg).img,1)) & (size(mImgIn,2) == size(p_tBgFrames(bg).img,2))
mBgFrame = double(p_tBgFrames(bg).img);
mBgFrameRe = mBgFrame;
mBgFrameN = mBgFrameRe./max(max(mBgFrameRe));
mImgInN = double(mImgIn)./max(max(double(mImgIn)));
mImgOut = mImgInN - mBgFrameN;
else
wt_error('Current frame and its background frame do not have the same dimensions.')
end
end
end
end
% Plot original, background frame and adjusted image
if bDebug
subplot(2,3,4)
imagesc(mImgIn); title('Original')
subplot(2,3,5)
imagesc(mBgFrame); title('Background')
subplot(2,3,6)
imagesc(mImgOut); title('Adjusted')
colormap gray
drawnow
end
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_adjust_whisker_length.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_adjust_whisker_length.m
| 2,894 |
utf_8
|
390bc5df4dbfa6f89ebf615bca7636e6
|
% WT_ADJUST_WHISKER_LENGTH
% Adjust whisker length to that of first known frame.
%
% Syntax: [vX, vY] = wt_adjust_whisker_length(I,X,Y), where
% I = I'th whisker
% X = vector of X splinepoints
% Y = vector of Y splinepoints
% Output variables:
% X = adjusted X splinepoints
% Y = adjusted Y splinepoints
%
% This function works in conjunction with the WT GUI.
function [vX, vY] = wt_adjust_whisker_length(nChWhisker, vX, vY)
global g_tWT
vXorig = vX;
vYorig = vY;
% Make sure no values are equal on the x axis
while 1
vIndx = find(~diff(vX));
if length(vIndx) == 0, break, end
vX(vIndx+1) = vX(vIndx) + 3;
end
% Length of initially marked whisker
nKnownFrames = find(g_tWT.MovieInfo.SplinePoints(1, 1, :, nChWhisker));
vXinit = g_tWT.MovieInfo.SplinePoints(:, 1, nKnownFrames(1), nChWhisker);
vYinit = g_tWT.MovieInfo.SplinePoints(:, 2, nKnownFrames(1), nChWhisker);
nWhiskerLength = GetWhiskerLength(vXinit, vYinit);
% Length of new whisker
try, nLen = GetWhiskerLength(vX, vY);
catch, wt_error('Error when recalculating whisker length'); end
if (length(vX) == 4) & (vX(end)>0 & vY(end)>0), nLastIndx = 4;
else, nLastIndx = 3; end
if nLen > nWhiskerLength % new whisker is LONGER than original
vXX = min(vX((1:nLastIndx))):max(vX((1:nLastIndx))); % whisker spline in 1st known frame
[vXX, vYY] = wt_spline(vX(1:nLastIndx), vY(1:nLastIndx), vXX);
vCumLen = cumsum(sqrt(diff(vXX).^2 + diff(vYY).^2));
[nDiff, nDiffIndx] = min(abs(vCumLen - nWhiskerLength));
vX(nLastIndx) = vXX(nDiffIndx+1);
vY(nLastIndx) = vYY(nDiffIndx+1);
elseif nLen < nWhiskerLength % new whisker is SHORTER than original
% Increase length of new whisker by 1 pix until its same length as original
while nLen < nWhiskerLength
% Extrapolate Y value at new X position
vY(nLastIndx) = interp1(vX(1:nLastIndx), vY(1:nLastIndx), vX(nLastIndx)+1, 'spline', 'extrap');
vX(nLastIndx) = vX(nLastIndx)+1;
try, nLen = GetWhiskerLength(vX, vY);
catch, wt_error('Error when computing whisker length'), end
end
end
% Sort splinepoint in case 2nd and 3rd swapped places (should be in
% increasing order along X dimension)
vIndx = find(vX & vY);
mC = [vX vY];
mC(vIndx,:) = sortrows(mC(vIndx,:));
vX = mC(:,1);
vY = mC(:,2);
% Make sure no values are equal on the x axis
while 1
vIndx = find(~diff(vX));
if length(vIndx) == 0, break, end
vX(vIndx+1) = vX(vIndx) + 3;
end
return
%%%% GET_WHISKER_LENGTH %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function nLen = GetWhiskerLength(vX, vY)
% Remove 4th element if present AND zero
vKeepXIndx = find(vX);
vX = vX(vKeepXIndx);
vY = vY(vKeepXIndx);
vXX = min(vX):max(vX); % whisker spline in 1st known frame
[vXX, vYY] = wt_spline(vX, vY, vXX);
nLen = sum(sqrt(diff(vXX).^2 + diff(vYY).^2));
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_mark_whisker.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_mark_whisker.m
| 9,460 |
utf_8
|
4d40afc1c5ad815e172aff1e9cf8b192
|
function wt_mark_whisker(varargin)
% WT_MARK_WHISKER
% Mark new whisker, or add/remove spline-points that define whiskerpoints.
% Syntax: wt_mark_whisker(OPT), where
% OPT is an optional string that runs one of the following
% subroutines:
% 'new' - mark a new whisker
% 'addpoint' - add splinepoint to existing whisker
% 'removepoint' - remove splinepoint from existing whisker
% 'movebasepoint' - move the whisker base point
% 'setfulllength' - mark the full length of the whisker
% 'setlastframe' - mark the last frame on which to track the
% whisker
%
% The default subroutine is 'new'. For all other subroutines,
% you must provide a second parameter which is the whisker ID/index
% to modify.
if nargin >= 1
sSub = varargin{1};
nW = varargin{2};
else, sSub = 'new'; end
switch sSub
case 'new'
MarkNewWhisker;
case 'addpoint'
AddPoint(nW);
case 'removepoint'
RemovePoint(nW);
case 'setlastframe'
SetLastFrame(nW);
case 'setfulllength'
SetFullLength(nW);
return
case 'movebasepoint'
MoveBasePoint(nW);
end
wt_display_frame % refresh current frame
return;
%%%% MARKNEWWHISKER %%%%%%%%%%%%%%%%%%%%%%%
function MarkNewWhisker
global g_tWT
nFirstFrame = round(get(g_tWT.Handles.hSlider, 'Value'));
% If current frame is before head was tracked, move it to 1st frame with
% head
if ~isempty(g_tWT.MovieInfo.Nose)
vIndx = find(~isnan(g_tWT.MovieInfo.Nose(:,1)));
if nFirstFrame < vIndx(1), nFirstFrame = vIndx(1); end
wt_display_frame(nFirstFrame);
end
axes(g_tWT.FrameAx); hold on
vX = []; vY = [];
hDots = [];
try
for i = 1:3
[vX(i), vY(i)] = ginput(1); % user can hit RETURN
hDots(end+1) = line(vX(i), vY(i));
set(hDots(end), 'color', 'g', 'marker', '.')
end
catch
return % in case the user did not input data but instead hit RETURN
end
delete(hDots)
% Sort points
mCoords = round(sortrows([vX' vY']));
% If this is a two-sided frame, detect which side this whisker belongs to
nCurrentFrame = get(g_tWT.Handles.hSlider, 'Value');
if ~isempty(g_tWT.MovieInfo.EyeNoseAxLen)
if ~isnan(prod(g_tWT.MovieInfo.Nose(nCurrentFrame, :))) % head is known only if nose is known
vAxSize = get(g_tWT.FrameAx, 'XLim');
% Locate side based on x val of first point
if mCoords(1,1) < vAxSize(2)/2
% Left part of frame (right side of rat). Don't change mCoords
nSide = 1;
else
% Right part of frame (left side of rat)
% Change mCoords to absolute coordinates in right frame part
mCoords(:,1) = mCoords(:,1) - vAxSize(2)/2; % only change X
nSide = 2;
end
else, nSide = 1; end
else nSide = 1; end
% Save whisker splinepoints
if isempty(g_tWT.MovieInfo.SplinePoints), nIndx = 1;
else, nIndx = size(g_tWT.MovieInfo.SplinePoints, 4) + 1; end
g_tWT.MovieInfo.SplinePoints(1:3, 1:2, nFirstFrame, nIndx) = mCoords;% ./ g_tWT.MovieInfo.ResizeFactor;
g_tWT.MovieInfo.Angle(nFirstFrame, nIndx) = 0;
g_tWT.MovieInfo.Intersect(nFirstFrame, 1:2, nIndx) = [0 0];
g_tWT.MovieInfo.MidPointConstr(1:2, nIndx) = [0 0]';
g_tWT.MovieInfo.WhiskerSide(nIndx) = nSide; % 0=left, 1=right
g_tWT.MovieInfo.LastFrame(nIndx) = g_tWT.MovieInfo.NumFrames;
% Set whisker identity
wt_set_identity(nIndx);
return;
%%%% ADDPOINT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function AddPoint(nW)
global g_tWT
nPtLim = 4; % max num of allowed splinepoints
nCurrFrame = round(get(g_tWT.Handles.hSlider, 'Value'));
mWhisker = g_tWT.MovieInfo.SplinePoints(:,:,nCurrFrame,nW);
if size(mWhisker,1) >= 4
if mWhisker(4,1) ~= 0
hWarnDlg = warndlg(sprintf('The maximum number of allowed points (%d) has already been reached.', nPtLim), 'WT Error');
waitfor(hWarnDlg); return;
else
mWhisker = mWhisker(1:3,:);
end
end
% Get new point and check that its within X bounds of existing whisker
vAxSize = get(g_tWT.FrameAx, 'XLim');
while 1
[nX, nY] = ginput(1); % get position of new object
if g_tWT.MovieInfo.WhiskerSide(nW) == 2
nX = nX - vAxSize(2)/2;
end
if nX <= max(mWhisker(:,1)) & nX >= min(mWhisker(:,1)), break
else
sAns = questdlg('The marked point is outside boundaries of current whisker.', ...
'Error in input', ...
'Try again', 'Cancel', 'Try again' );
if strcmp(sAns, 'Cancel'), return; end
end
end
plot(nX + vAxSize(2)/2, nY, 'r.'); % plot new point
mWhisker = round(sortrows([mWhisker; nX nY]));
if size(g_tWT.MovieInfo.SplinePoints,1) ~= 4
g_tWT.MovieInfo.SplinePoints(4,1:2,:,nW) = 0; % expand all frames with an extra row of values (NaN)
end
g_tWT.MovieInfo.SplinePoints(:,:,nCurrFrame,nW) = mWhisker; % save new point
return;
%%%% REMOVEPOINT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function RemovePoint(nW)
global g_tWT
nCurrFrame = get(g_tWT.Handles.hSlider, 'Value');
mWhisker = g_tWT.MovieInfo.SplinePoints(:,:,nCurrFrame,nW);
if size(mWhisker,1) >= 4
if mWhisker(4,1) == 0
hWarnDlg = warndlg('There are no points to delete.', 'WT Error');
waitfor(hWarnDlg);
return;
end
end
[nX, nY] = ginput(1); % get position of new object
vAxSize = get(g_tWT.FrameAx, 'XLim');
if g_tWT.MovieInfo.WhiskerSide(nW) == 2
nX = nX - vAxSize(2)/2;
end
% Find closest point (only 2nd or 3rd)
[y, nIndx] = min(sqrt(abs(mWhisker(2:3,1)-nX).^2 + abs(mWhisker(2:3,2)-nY).^2));
nIndx = nIndx + 1;
% Verify removal of point
sAns = questdlg(sprintf('You have chosen to delete point number %d from the left. Please confirm.', nIndx), ...
'WT Confirm', ...
'OK', 'Cancel', 'Cancel');
if strcmp(sAns, 'Cancel'), return; end
% Remove point
switch nIndx
case 2 % remove 1st midpoint
g_tWT.MovieInfo.SplinePoints(2:3,:,nCurrFrame,nW) = g_tWT.MovieInfo.SplinePoints(3:4,:,nCurrFrame,nW);
g_tWT.MovieInfo.SplinePoints(4,:,nCurrFrame,nW) = 0;
case 3 % remove 2nd midpoint
g_tWT.MovieInfo.SplinePoints(3,:,nCurrFrame,nW) = g_tWT.MovieInfo.SplinePoints(4,:,nCurrFrame,nW);
g_tWT.MovieInfo.SplinePoints(4,:,nCurrFrame,nW) = 0;
end
return;
%%%% SETLASTFRAME %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function SetLastFrame(nW);
global g_tWT
% default is current frame
sLastFrame = inputdlg('Set last frame to track', 'Set last frame', 1, {num2str(get(g_tWT.Handles.hSlider, 'value'))});
% Change last frame value unless user hit Cancel or eXit
if ~isempty(sLastFrame)
g_tWT.MovieInfo.LastFrame(nW) = str2num(char(sLastFrame));
end
return;
%%%% SETFULLLENGTH %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function SetFullLength(nW);
global g_tWT
if ~isfield(g_tWT.MovieInfo, 'WhiskerLength')
g_tWT.MovieInfo.WhiskerLength = zeros(1,size(g_tWT.MovieInfo.SplinePoints,4)).*NaN;
elseif length(g_tWT.MovieInfo.WhiskerLength) < size(g_tWT.MovieInfo.SplinePoints,4)
g_tWT.MovieInfo.WhiskerLength(nW) = NaN;
end
sCurrLen = num2str(g_tWT.MovieInfo.WhiskerLength(nW));
sAns = questdlg('How do you want to set the full whisker length?', 'WT', 'Measure','Enter value','Cancel','Measure');
switch sAns
case 'Enter value'
sLen = inputdlg('Enter whisker length in millimeters', 'WT', 1, {sCurrLen});
if isempty(sLen), return, end
nLen = str2num(cell2mat(sLen));
case 'Measure'
% Check that movie is calibrated
if isempty(g_tWT.MovieInfo.CalBarLength) | all(g_tWT.MovieInfo.CalibCoords(:) == 0)
wt_error('You must calibrate before marking the full whisker length. Select Image -> Calibrate... from the menu.')
end
if g_tWT.DisplayMode == 1, wt_toggle_display_mode, end, wt_display_frame % absolute view mode
axes(g_tWT.FrameAx); hold on % get points
vX = []; vY = [];
try
for i = 1:3
[vX(i), vY(i)] = ginput(1);
plot(vX(i), vY(i), 'g.')
end
catch, return, end
mCoords = round(sortrows([vX' vY'])); % sort
vXX = mCoords(1,1):mCoords(end,1);
[vXX, vYY] = wt_spline(mCoords(:,1), mCoords(:,2), vXX); % spline
plot(vXX, vYY, 'w:', 'linewidth', 2) % plot whisker
nLen = sum(sqrt(diff(vXX).^2 + diff(vYY).^2)); % whisker length (pixels)
nLen = nLen / g_tWT.MovieInfo.PixelsPerMM; % length (mm)
msgbox(sprintf('Whisker length is %.1f mm', nLen), 'WT')
case 'Cancel', return
end
g_tWT.MovieInfo.WhiskerLength(nW) = nLen; % length (mm)
g_tWT.MovieInfo.WhiskerLength(find(g_tWT.MovieInfo.WhiskerLength == 0)) = NaN;
return
%%%% MOVEBASEPOINT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function MoveBasePoint(nW)
global g_tWT
nCurrentFrame = get(g_tWT.Handles.hSlider, 'Value');
[nX, nY] = ginput(1);
% If this is a two-sided frame, detect which side this whisker belongs to
nCurrentFrame = get(g_tWT.Handles.hSlider, 'Value');
if ~isempty(g_tWT.MovieInfo.EyeNoseAxLen) % if head has been tracked...
if ~isnan(prod(g_tWT.MovieInfo.Nose(nCurrentFrame, :))) % head is known only if nose is known
vAxSize = get(g_tWT.FrameAx, 'XLim');
if nX > vAxSize(2)/2 % Right part of frame (left side of rat)
nX = nX - vAxSize(2)/2; % change X
end
end
end
g_tWT.MovieInfo.SplinePoints(1,1:2,nCurrentFrame,nW) = [round(nX) nY];
wt_display_frame;
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_user_variables.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_user_variables.m
| 2,835 |
utf_8
|
74f02db2f7a53d0fb75ebcb184aaae2d
|
function wt_user_variables(varargin)
% Create and modify user-defined variables
% The purpose of this function is to provide the user with an easy way to
% store experiment variables inside the WT .mat file. These user variables
% can also be variables that are accessed from within scripts.
%
% Note that adding or modifying experiment variables can be performed as a
% batch job.
% Copy user variables from persistent variable instead of GUI/
% This option is used for batch jobs, i.e. copying the variables of one
% movies to all other movies in directory/tree
if ~isempty(varargin)
if strcmp(varargin{1}, 'copyfrommem')
RetrieveUserVariables();
return;
end
end
global g_tWT;
% Check if variables window is already open. If YES, then retrieve and save
% variables, and close window
hFig = findobj('Tag', 'WTUserVariables', 'type', 'figure');
if ~isempty(hFig)
RetrieveUserVariables();
return
end
hFig = figure('closeRequestFcn', 'set(gcbf,''userdata'',''closed'')');
cColumnNames = {'Variable', 'Value', 'Type'};
cColumnFormat = {'char', 'char', {'String','Number'}};
cColumnEditable = [true true true];
cData = repmat({''},200,3);
if isfield(g_tWT.MovieInfo, 'tUserVariables')
for i = 1:length(g_tWT.MovieInfo.tUserVariables)
cData{i, 1} = g_tWT.MovieInfo.tUserVariables(i).sVariable;
cData{i, 2} = g_tWT.MovieInfo.tUserVariables(i).sValue;
cData{i, 3} = g_tWT.MovieInfo.tUserVariables(i).sType;
end
end
set(hFig, 'color', [.2 .2 .2], 'Name', 'WT User Variables', 'NumberTitle', 'off', 'ToolBar', 'none', ...
'menuBar','none', 'Tag', 'WTUserVariables')
hTable = uitable('Units', 'normalized','Position', [0 0 1 1], 'Data', cData, 'ColumnName', ...
cColumnNames, 'ColumnEditable', cColumnEditable, 'ColumnFormat', cColumnFormat, ...
'ColumnWidth', {120, 282, 100}, 'Tag', 'WTUserVariablesTable');
% Create callback to this function when window is closed
set(hFig, 'CloseRequestFcn', 'wt_user_variables')
return
%%%% Retrieve and save user variables
function RetrieveUserVariables
global g_tWT
persistent cData
% Get figure handle
hFig = findobj('Tag', 'WTUserVariables', 'type', 'figure');
% If no window is open, then used persistent variable to fill g_tWT
if ~isempty(hFig)
% Get table handle
hTable = findobj('Tag', 'WTUserVariablesTable', 'type', 'uitable');
cData = get(hTable, 'data'); % modified data from table
end
g_tWT.MovieInfo.tUserVariables = struct([]); % clear variables
for c = 1:size(cData, 1)
if isempty(cData{c,1}) | isempty(cData{c,2}), continue, end
g_tWT.MovieInfo.tUserVariables(end+1).sVariable = cData{c, 1};
g_tWT.MovieInfo.tUserVariables(end).sValue = cData{c, 2};
g_tWT.MovieInfo.tUserVariables(end).sType = cData{c, 3};
end
% Delete user variables window
delete(hFig)
return
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_select_directory_tree.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_select_directory_tree.m
| 2,153 |
utf_8
|
417e8fdbcd1f4fd60f3f876e7994ed58
|
function wt_select_directory_tree
% WT_SELECT_DIRECTORY_TREE
% Select all movies recursively from all sub-directories below a selected
% top-level directory.
%
% This function prompts the user to select a top-level directory and
% generates a list of all AVI movies, with complete paths, contained in the
% entire directory tree under the selected top-level directory.
%
% The list of retrieved movies can be accessed through the menu item Files
% -> Movies.
%
global g_tWT
% Select top-level directory
if ~isempty(g_tWT.AccessedPaths), sCurrPath = g_tWT.AccessedPaths{1};
else, sCurrPath = '0'; end
sPath = uigetdir(sCurrPath, 'Select top-level directory of selection');
if ~all(sPath), return; end % cancel if no path was selected
% Iterate recursively over all sub-directories and extract paths of AVI
% movies
cSelection = GetFilePaths(sPath, '.avi');
% Display error and abort if no AVIs were found
if isempty(cSelection)
warndlg('No AVI movies were found below the chosen directory', 'No movies found')
return
end
% Reset current selection list
g_tWT.Movies = struct([]);
% Assign new selection to g_tWT
for f = 1:length(cSelection)
g_tWT.Movies(f).filename = wt_check_path(cSelection{f});
end
% Re-initialize GUI
wt_prep_gui;
% Load and display first movie
wt_load_movie(1);
return
% --- Get paths of videos in a directory and its sub-directories
% Recursive search for .bin files from a selected directory
% inputs: sSuffix Find files this file extension (e.g. '.avi')
% sBaseDir Base directory
function cPaths = GetFilePaths(sBaseDir, sSuffix)
cPaths = {};
tDirList = dir(sBaseDir);
for t1 = 3:length(tDirList)
if tDirList(t1).isdir % depth = 1
% recursively call this function
sBaseDirRecurs = wt_check_path([sBaseDir '/' tDirList(t1).name]);
cPaths2 = GetFilePaths(sBaseDirRecurs, sSuffix);
cPaths = {cPaths{:}, cPaths2{:}};
else
% Add .bin files to paths cell
if strcmp(tDirList(t1).name(end-3:end), sSuffix)
sFilename = wt_check_path([sBaseDir '/' tDirList(t1).name]);
cPaths{end+1} = sFilename;
end
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_set_last_frame.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_set_last_frame.m
| 1,021 |
utf_8
|
6199a5377c8aeda55264f84ac6b28483
|
%%%% WT_SET_LAST_FRAME %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function wt_set_last_frame
% Set Last Frame for all Whiskers defined so far
% Must check for Cancel or eXit
%
% Whisker Tracker (WT)
%
% Authors: Per Magne Knutsen, Dori Derdikman
%
% (c) Copyright 2004 Yeda Research and Development Company Ltd.,
% Rehovot, Israel
%
% This software is protected by copyright and patent law. Any unauthorized
% use, reproduction or distribution of this software or any part thereof
% is strictly forbidden.
%
% Citation:
% Knutsen, Derdikman, Ahissar (2004), Tracking whisker and head movements
% of unrestrained, behaving rodents, J. Neurophys, 2004, IN PRESS
%
global g_tWT
% default is current frame
L = inputdlg('Set last frame to track', 'Set last frame', 1, {num2str(get(g_tWT.Handles.hSlider, 'value'))} );
% Change last frame value unless user hit Cancel or eXit
if ~isempty(L)
for nW = 1:size(g_tWT.MovieInfo.SplinePoints, 4)
g_tWT.MovieInfo.LastFrame(nW) = str2num(char(L));
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_create_outline.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_create_outline.m
| 5,411 |
utf_8
|
5fca5ab8f2f3db6a7d388de56b54c24c
|
function wt_create_outline(sOption, nOL)
% WT_CREATE_OUTLINE Mark lines that denote various axis in image
% This function allows points, lines, polygons etc. to be labelled for
% later data analysis. WT itself does not use either of these
%
% wt_create_outline('add', OL)
% wt_create_outline('draw', OL)
% wt_create_outline('copy', OL)
% wt_create_outline('paste', OL)
% If OL is NaN, a new object will be created
% wt_create_outline('delete', OL)
% wt_create_outline('name', OL)
% wt_create_outline('hide', OL)
global g_tWT
switch lower(sOption)
case 'add'
set(g_tWT.Handles.hStatusText, 'string', 'LEFT = Add point, MIDDLE = Exit, RIGHT = Undo last');
tOutline = AddOutline;
set(g_tWT.Handles.hStatusText, 'string', '');
if isempty(tOutline.Coords), return, end % return if no coordinates entered
tOutline.Name = {''};
if ~isfield(g_tWT.MovieInfo, 'Outlines')
g_tWT.MovieInfo.Outlines = tOutline;
else
g_tWT.MovieInfo.Outlines(end+1) = tOutline;
end
wt_set_identity(length(g_tWT.MovieInfo.Outlines), 'outline')
wt_display_frame
case 'draw'
DrawOutline(nOL)
case 'copy'
CopyPasteOutline(nOL, 'copy')
case 'paste'
CopyPasteOutline(nOL, 'paste')
wt_display_frame
case 'delete' % delete outline
g_tWT.MovieInfo.Outlines(nOL) = [];
delete(findobj('tag',sprintf('outline-%d', nOL)))
wt_display_frame
case 'deleteall' % delete ALL outline
if isfield(g_tWT.MovieInfo, 'Outlines')
g_tWT.MovieInfo = rmfield(g_tWT.MovieInfo, 'Outlines');
wt_prep_gui
wt_display_frame
end
case 'name' % rename
wt_set_identity(nOL, 'outline')
case 'hide' % hide all outlines
if ~isfield(g_tWT, 'HideOutlines'), g_tWT.HideOutlines = 0; end
g_tWT.HideOutlines = ~g_tWT.HideOutlines;
switch g_tWT.HideOutlines % update user-menu
case 0, sStatus = 'off';
case 1, sStatus = 'on';
end
set(findobj('Label', 'Hide outlines'), 'checked', sStatus);
wt_display_frame
otherwise
return
end
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function DrawOutline(nOL)
global g_tWT
hOL = findobj('Tag', sprintf('outline-%d', nOL));
vX = g_tWT.MovieInfo.Outlines(nOL).Coords(:,1);
vY = g_tWT.MovieInfo.Outlines(nOL).Coords(:,2);
if ~isempty(hOL) % refresh
if g_tWT.HideOutlines % hide outlines
set(hOL, 'XData', vX, 'YData', vY, 'Visible', 'off')
else
set(hOL, 'XData', vX, 'YData', vY, 'Visible', 'on')
end
else % redraw
if ~isfield(g_tWT, 'HideOutlines'), g_tWT.HideOutlines = 0; end
if g_tWT.HideOutlines % hide outlines
hOL = plot(vX, vY, 'wx-', 'Tag', sprintf('outline-%d', nOL), 'Visible', 'off');
else
hOL = plot(vX, vY, 'wx-', 'Tag', sprintf('outline-%d', nOL), 'Visible', 'on');
end
end
hMenu = uicontextmenu;
set(hOL, 'uicontextmenu', hMenu)
uimenu(hMenu, 'Label', 'Set name', 'Callback', [sprintf('wt_create_outline(''name'',%d)', nOL)])
uimenu(hMenu, 'Label', 'Delete', 'Callback', [sprintf('wt_create_outline(''delete'',%d)', nOL)])
uimenu(hMenu, 'Label', 'Copy', 'Callback', [sprintf('wt_create_outline(''copy'',%d)', nOL)])
uimenu(hMenu, 'Label', 'Paste', 'Callback', [sprintf('wt_create_outline(''paste'',%d)', nOL)])
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function CopyPasteOutline(nOL, sAction)
global g_tWT
persistent vCopiedX
persistent vCopiedY
persistent sCopiedName
hOL = findobj('Tag', sprintf('outline-%d', nOL));
switch sAction
case 'copy'
vCopiedX = g_tWT.MovieInfo.Outlines(nOL).Coords(:,1);
vCopiedY = g_tWT.MovieInfo.Outlines(nOL).Coords(:,2);
sCopiedName = g_tWT.MovieInfo.Outlines(nOL).Name;
case 'paste'
if isempty(vCopiedX) | isempty(vCopiedY)
uiwait(warndlg('Nothing to paste'))
return
end
if ~isfield(g_tWT.MovieInfo, 'Outlines')
g_tWT.MovieInfo.Outlines = struct([]);
end
if isnan(nOL) % create new outline
g_tWT.MovieInfo.Outlines(end+1).Coords = [vCopiedX vCopiedY];
g_tWT.MovieInfo.Outlines(end).Name = sCopiedName;
else % copy coordinates into currently selected outline
g_tWT.MovieInfo.Outlines(nOL).Coords = [vCopiedX vCopiedY];
end
end
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function tOutline = AddOutline()
vX = [];
vY = [];
hOutline = plot(0,0,'wx-'); % outline handle
while 1
[nX, nY, nButton] = ginput(1);
switch nButton
case 1 % left ADD POINT
vX(end+1) = nX;
vY(end+1) = nY;
case 3 % middle UNDO LAST POINT
if ~isempty(vX)
vX(end) = [];
vY(end) = [];
end
case 2 % right FINISHED
break;
end
set(hOutline, 'xdata', vX, 'ydata', vY)
end
delete(hOutline)
tOutline.Coords = [vX' vY'];
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_copy_paste_whisker.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/wt_copy_paste_whisker.m
| 2,350 |
utf_8
|
1aa4c51e190eed32144a0a9ad9a72997
|
function wt_copy_paste_whisker(sOption, nW)
% Copy/paste a selected whisker to/from clipoard
switch sOption
case 'copy'
CopyPasteWhisker(nW, 'copy');
case 'paste'
CopyPasteWhisker(nW, 'paste');
wt_display_frame;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function CopyPasteWhisker(nW, sAction)
global g_tWT
persistent sCopiedName
persistent mCopiedCoords
nCurrFrame = g_tWT.CurrentFrameBuffer.Frame;
switch sAction
case 'copy'
% Get current frame
mCopiedCoords = g_tWT.MovieInfo.SplinePoints(:,:,nCurrFrame,nW); % copy current frame only
sCopiedName = cell2mat(g_tWT.MovieInfo.WhiskerIdentity{nW});
if ~isempty(sCopiedName)
wt_set_status(['Whisker ' sCopiedName ' has been copied to the clipboard'])
else
wt_set_status(['Whisker ' sCopiedName 'has been copied to the clipboard'])
end
case 'paste'
if isempty(mCopiedCoords)
wt_set_status('No available whisker in clipboard to paste')
return
end
% New whisker index
if isempty(g_tWT.MovieInfo.SplinePoints)
nNewW = 1;
else
nNewW = size(g_tWT.MovieInfo.SplinePoints, 4) + 1;
end
% Save whisker data
% Note: Copied whisker is copied into current frame
g_tWT.MovieInfo.SplinePoints(:,:,nCurrFrame,nNewW) = mCopiedCoords;
g_tWT.MovieInfo.Angle(1:nCurrFrame, nNewW) = NaN;
g_tWT.MovieInfo.Angle(nCurrFrame, nNewW) = 0;
g_tWT.MovieInfo.Intersect(1:nCurrFrame, 1:2, nNewW) = [NaN NaN];
g_tWT.MovieInfo.Intersect(nCurrFrame, 1:2, nNewW) = [0 0];
g_tWT.MovieInfo.MidPointConstr(1:2, nNewW) = [0 0]';
g_tWT.MovieInfo.WhiskerSide(nNewW) = 1; % 0=left, 1=right
g_tWT.MovieInfo.LastFrame(nNewW) = g_tWT.MovieInfo.NumFrames;
% TODO: Change all zeros to NaNs in SplinePoints!
%vIndx = find(g_tWT.MovieInfo.SplinePoints(:,:,:,nNewW) == 0);
if isempty(sCopiedName)
g_tWT.MovieInfo.WhiskerIdentity{nNewW} = '';
else
g_tWT.MovieInfo.WhiskerIdentity{nNewW} = mat2cell(sCopiedName);
end
wt_set_status('')
end
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
github
|
HelmchenLabSoftware/OCIA-master
|
checkfilename.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/bin/checkfilename.m
| 510 |
utf_8
|
6739291d3d5ed243836882af670df101
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Converts between forward and backward slash on Windows and Linux filesystems
function sFilename = CheckFilename(sFilename)
if ispc
sFilename = strrep(sFilename, '/', '\');
sFilename = strrep(sFilename, '\\', '\');
elseif isunix
sFilename = strrep(sFilename, '\', '/');
sFilename = strrep(sFilename, '//', '/');
end
return
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
github
|
HelmchenLabSoftware/OCIA-master
|
wt_create_filters.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/bin/wt_create_filters.m
| 690 |
utf_8
|
77a8b948154ca3fc7b9fcc69b7081298
|
%%%% WT_CREATE_FILTERS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% create a filter for each angle for checking "whiskeriness"
function filters_vec = wt_create_filters(whisker_width,whisker_length)
flt = zeros(whisker_length);
start_ind = ceil(whisker_length/2)-floor(3*whisker_width/2);
flt(start_ind:start_ind+3*whisker_width-1,:) = ...
[0.5 * ones(whisker_width,whisker_length); ...
-ones(whisker_width,whisker_length); ...
0.5 * ones(whisker_width,whisker_length)] ...
/whisker_width/ whisker_length;
min_ang = -90;
max_ang = 90;
for ang=min_ang:max_ang
filters_vec(:,:,ang-min_ang+1) = imrotate(flt,-ang,'bicubic','crop');
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
ExportToExcel.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/wt_knutsen/bin/windows/ExportToExcel.m
| 1,230 |
utf_8
|
9a793be148c08ea1554add206bccaf28
|
% ExportToExcel(cHeaders, cData)
% by Naama Rubin
function ExportToExcel(cHeaders, cData)
% Open new instance of Excel
Excel = actxserver('Excel.Application');
set(Excel, 'Visible', 1);
% Create new workbook
Workbooks = Excel.Workbooks;
Workbook = invoke(Workbooks, 'Add');
Sheets = Excel.ActiveWorkBook.Sheets;
% Sheet columns
cCols = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
% Make the 1st sheet active
invoke(get(Sheets, 'Item', 1), 'Activate');
Activesheet = Excel.Activesheet;
% Iterate over cells that contain data
for c = 1:length(cHeaders)
% Insert header
Range = get(Activesheet, 'Range', sprintf('%s1', cCols{c}), sprintf('%s1', cCols{c}));
set(Range, 'Value', cHeaders{c})
% Insert data
nLastRow = length(cData{c});
Range = get(Activesheet, 'Range', sprintf('%s2', cCols{c}), sprintf('%s%d', cCols{c}, nLastRow));
set(Range, 'Value', cData{c})
% Remove NaN's in data
vNaNIndx = find(isnan(cData{c}));
for i = 1:length(vNaNIndx)
Range = get(Activesheet, 'Range', sprintf('%s%d', cCols{c}, vNaNIndx(i)+1), sprintf('%s%d', cCols{c}, vNaNIndx(i)+1));
set(Range, 'Value', '')
end
end
return;
|
github
|
HelmchenLabSoftware/OCIA-master
|
concatanateSegmentsOriginalMovie.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/concatanate/concatanateSegmentsOriginalMovie.m
| 1,415 |
utf_8
|
9c753d4f1fb2ae25de3fc6958222f7a6
|
function f= concatanateSegments(dirname)
list = dir(dirname);
i=3;
oldExpName='Experiment';
whiskingAll = [];
mkdir(fullfile(dirname,'whiskByTrial'));
count = 0;
for i=3:length(list)
fname = list(i).name;
ind=strfind(fname,'_Whisker_Tracking');
if(~isempty(ind))
expname = fname(1:ind-1);
load(fullfile(dirname,fname));
if (strcmp(oldExpName,expname))
whiskingAll = [whiskingAll; MovieInfo.AvgWhiskerAngle'];
else
if ~isempty(whiskingAll)
count = count+1;
save(fullfile(dirname,'whiskByTrial',[oldExpName 't' num2str(count) '.mat']),'whiskingAll');
whiskingAll = [];
end
whiskingAll = [whiskingAll; MovieInfo.AvgWhiskerAngle'];
end
oldExpName = expname;
end
end
count=count+1;
save(fullfile(dirname,'whiskByTrial',[oldExpName 't' num2str(count) '.mat']),'whiskingAll');
%%
subdirname=fullfile(dirname,'whiskByTrial');
sublist = dir(subdirname);
load(fullfile(subdirname,sublist(3).name));
[nr nc] = size(whiskingAll);
whiskAngle = nan(nr+5,numel(sublist)-2);
for i=3:numel(sublist)
load(fullfile(subdirname,sublist(i).name));
whiskAngle(1:length(whiskingAll),i-2)=whiskingAll;
end
save(fullfile(dirname, 'whiskAngle.mat'),'whiskAngle');
xlswrite('whiskAngle',whiskAngle);
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
concatanateSegments.m
|
.m
|
OCIA-master/other/functions_widefield/whisker_tracking/concatanate/concatanateSegments.m
| 1,415 |
utf_8
|
f8c5c57461919a03ee74e82fcc5004ed
|
function f= concatanateSegments(dirname)
list = dir(dirname);
i=3;
oldExpName='Experiment';
whiskingAll = [];
mkdir(fullfile(dirname,'whiskByTrial'));
count = 0;
for i=3:length(list)
fname = list(i).name;
ind=strfind(fname,'_Whisker_Tracking');
if(~isempty(ind))
expname = fname(1:ind-3);
load(fullfile(dirname,fname));
if (strcmp(oldExpName,expname))
whiskingAll = [whiskingAll; MovieInfo.AvgWhiskerAngle'];
else
if ~isempty(whiskingAll)
count = count+1;
save(fullfile(dirname,'whiskByTrial',[oldExpName 't' num2str(count) '.mat']),'whiskingAll');
whiskingAll = [];
end
whiskingAll = [whiskingAll; MovieInfo.AvgWhiskerAngle'];
end
oldExpName = expname;
end
end
count=count+1;
save(fullfile(dirname,'whiskByTrial',[oldExpName 't' num2str(count) '.mat']),'whiskingAll');
%%
subdirname=fullfile(dirname,'whiskByTrial');
sublist = dir(subdirname);
load(fullfile(subdirname,sublist(3).name));
[nr nc] = size(whiskingAll);
whiskAngle = nan(nr+5,numel(sublist)-2);
for i=3:numel(sublist)
load(fullfile(subdirname,sublist(i).name));
whiskAngle(1:length(whiskingAll),i-2)=whiskingAll;
end
save(fullfile(dirname, 'whiskAngle.mat'),'whiskAngle');
xlswrite('whiskAngle',whiskAngle);
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
makePureTone_new.m
|
.m
|
OCIA-master/other/functions_widefield/Iwen_auditory_functions/makePureTone_new.m
| 1,496 |
utf_8
|
680b0d87131bb0a6a09654fa8797c3c8
|
function s = makePureTone_new(freqs,duration,varargin)
% generate a pure tone
% in1 ... carrier frequency in Hz
% in2 ... duration in s
% in3 ... sampling frequency in Hz {44100}
% in4 ... play tone {0}; 0 or 1
% in5 ... save wav file {[]}; filename of wav file
% out1 ... the sound vector s
% this file written by Henry Luetcke ([email protected])
if nargin > 2
sf = varargin{1};
if isempty(sf)
sf = 44100;
end
else
sf = 44100;
end
if nargin > 3
doPlay = varargin{2};
else
doPlay = 0;
end
if nargin > 4
saveWav = varargin{3};
else
saveWav = [];
end
modFreq = 0; % modulation frequency
modIndex = 1; % modulation index
rampDur = 0.1; % ramp duration (fraction of total duration, max. 0.5)
for i = 1:length(freqs)
% make the sound
s = MakeSound(sf,duration,freqs(i),modFreq,modIndex,rampDur);
if doPlay
sound(s,sf);
end
if ~isempty(saveWav)
wavwrite(s,sf,16,saveWav);
end
end
function s = MakeSound(sf,d,f,mf,mi,rd)
% frequency modulated sound
n = sf * d; % number of samples
c = (1:n) / sf; % carrier data preparation
c = 2 * pi * f * c;
% m = (1:n) / sf; % modulator data preparation
% m = mi * cos(2 * pi * mf * m); % sinusoidal modulation
m = 0;
s = sin(c + m); % frequency modulation
% ramp
rd = d .* rd;
nr = floor(sf * rd);
r = sin(linspace(0, pi/2, nr));
r = [r, ones(1, n - nr * 2), fliplr(r)];
% make ramped sound
s = s .* r;
|
github
|
HelmchenLabSoftware/OCIA-master
|
TDMS_dataToGroupChanStruct_v4.m
|
.m
|
OCIA-master/other/functions_widefield/behavior_functions/import_lick_data/TDMS_dataToGroupChanStruct_v4.m
| 2,718 |
utf_8
|
0a6dab50f4d81124788a530edfe98382
|
function output = TDMS_dataToGroupChanStruct_v4(inputStruct,varargin)
%TDMS_dataToGroupChanStruct_v4
%
% NOTE: This reproduces the data structure for the old lab functionality
% of the function getStructTDM
%
% See Also: TDMS_genvarname2, TDMS_readTDMSFile
REPLACE_STR = '_';
PREPEND_STR = 'p_';
PREPEND_GRP_STRING = 'g_';
PREPEND_CHAN_STRING = 'c_';
ALWAYS_PREPEND = false;
PROP_NAME = 'Props';
propNames = inputStruct.propNames;
propValues = inputStruct.propValues;
groupIndices = inputStruct.groupIndices;
groupNames = inputStruct.groupNames;
chanIndices = inputStruct.chanIndices;
chanNames = inputStruct.chanNames;
rootIndex = inputStruct.rootIndex;
data = inputStruct.data;
groupNames = cellfun(@(x) TDMS_genvarname2(x,REPLACE_STR,PREPEND_GRP_STRING,ALWAYS_PREPEND),groupNames,'UniformOutput',false);
rootPropStruct = propsToStruct(propNames{rootIndex},propValues{rootIndex},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND);
output = struct(PROP_NAME,rootPropStruct);
for iGroup = 1:length(groupIndices)
curGroupIndex = groupIndices(iGroup);
curChanIndices = chanIndices{iGroup};
curChanNames = chanNames{iGroup};
curChanNames = cellfun(@(x) TDMS_genvarname2(x,REPLACE_STR,PREPEND_CHAN_STRING,ALWAYS_PREPEND),curChanNames,'UniformOutput',false);
groupPropStruct = propsToStruct(propNames{curGroupIndex},propValues{curGroupIndex},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND);
groupStruct = struct('name',groupNames(iGroup),PROP_NAME,groupPropStruct);
for iChan = 1:length(curChanIndices)
curChanIndex = curChanIndices(iChan);
chanPropStruct = propsToStruct(propNames{curChanIndex},propValues{curChanIndex},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND);
chanStruct = struct('name',curChanNames{iChan},PROP_NAME,chanPropStruct,...
'data',[]);
chanStruct.data = data{curChanIndex};
%NOTE: I had a case statement in case the data type was a string,
%which would change the interpretation of the struct input
if strcmp(chanStruct.name,'name')
error('The variable "name" for a channel is off limits, need a different conversion wrapper (probably 2)')
end
groupStruct.(TDMS_genvarname2(chanStruct.name,...
REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)) = chanStruct;
end
output.(TDMS_genvarname2(groupStruct.name,...
REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)) = groupStruct;
end
end
function propStruct = propsToStruct(names,values,REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)
propStruct = struct([]);
for iProp = 1:length(names)
propStruct(1).(TDMS_genvarname2(names{iProp},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)) = values{iProp};
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
TDMS_dataToGroupChanStruct_v3.m
|
.m
|
OCIA-master/other/functions_widefield/behavior_functions/import_lick_data/TDMS_dataToGroupChanStruct_v3.m
| 2,710 |
utf_8
|
1ca966df0513a1925134cd2633570a53
|
function output = TDMS_dataToGroupChanStruct_v3(inputStruct,varargin)
%TDMS_dataToGroupChanStruct_v3
%
% translates objects AND properties to valid field names
%
% Similar to TDMS_dataToGroupChanStruct_v1, but also translates
% properties
%
% output = TDMS_dataToGroupChanStruct_v3(inputStruct)
%
% OPTIONAL INPUTS (property/value pairs)
% ============================================
% REPLACE_STR = default '_', what to replace invalid characters with
% PREPEND_STR = default 'v' (for variable), gets prepended if first
% character is invalid (must be alpha, not numeric or _)
% ALWAYS_PREPEND = default false, if true always prepends the prepend string,
% regardless of whether or not it is needed
%
%
%
% See Also: TDMS_genvarname2
REPLACE_STR = '_';
PREPEND_STR = 'v';
ALWAYS_PREPEND = false;
propNames = inputStruct.propNames;
propValues = inputStruct.propValues;
groupIndices = inputStruct.groupIndices;
groupNames = inputStruct.groupNames;
chanIndices = inputStruct.chanIndices;
chanNames = inputStruct.chanNames;
rootIndex = inputStruct.rootIndex;
data = inputStruct.data;
rootPropStruct = propsToStruct(propNames{rootIndex},propValues{rootIndex},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND);
output = struct('props',rootPropStruct);
for iGroup = 1:length(groupIndices)
curGroupIndex = groupIndices(iGroup);
curChanIndices = chanIndices{iGroup};
curChanNames = chanNames{iGroup};
groupPropStruct = propsToStruct(propNames{curGroupIndex},propValues{curGroupIndex},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND);
groupStruct = struct('name',groupNames(iGroup),'props',groupPropStruct);
for iChan = 1:length(curChanIndices)
curChanIndex = curChanIndices(iChan);
chanPropStruct = propsToStruct(propNames{curChanIndex},propValues{curChanIndex},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND);
chanStruct = struct('name',curChanNames{iChan},'props',chanPropStruct,...
'data',[]);
chanStruct.data = data{curChanIndex};
%NOTE: I had a case statement in case the data type was a string,
%which would change the interpretation of the struct input
groupStruct.(TDMS_genvarname2(chanStruct.name,...
REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)) = chanStruct;
end
output.(TDMS_genvarname2(groupStruct.name,...
REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)) = groupStruct;
end
end
function propStruct = propsToStruct(names,values,REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)
propStruct = struct([]);
for iProp = 1:length(names)
propStruct(1).(TDMS_genvarname2(names{iProp},REPLACE_STR,PREPEND_STR,ALWAYS_PREPEND)) = values{iProp};
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
TDMS_preprocessFile.m
|
.m
|
OCIA-master/other/functions_widefield/behavior_functions/import_lick_data/tdmsSubfunctions/TDMS_preprocessFile.m
| 24,202 |
utf_8
|
9027de756f8016d279addde445319f56
|
function metaStruct = TDMS_preprocessFile(fid,tdmsFileName,params)
%TDMS_preprocessFile Populates props and gets segment information
%
% NOTE: This file shouldn't be called directly by the user
%
% metaStruct = TDMS_preprocessFile(fid,tdmsFileName,params)
%
% INPUTS
% =======================================================================
% fid : file id of opened tdms file, may be null if INDEX_DEBUG is true
% tdmsFileName : full path to tdms file OR tdms index file for INDEX_DEBUG
% params : all optional inputs from TDMS_readTDMSFile
%
% OUTPUTS
% =======================================================================
% metaStruct :
% structure with fields:
%
% The following 3 variables are all the same length, and have one index
% for each unique object. Each object may be one of the following types,
% file root, group object, or channel object. Only channel objects may
% have data.
%
% rawDataInfo : (structure array)
% NOTE: This holds the most recent info for an object, and can be
% changed on a per segment basis, segInfo is used to hold
% information that is needed per segement
%
% .lengthOfIndex - length of raw data index (not used)
% .dataType - enumerated dataType (Labview)
% .dimensionData - currently ignored (should be 1d)
% .numberOfValues - # of values to read each time
% .totalSizeBytes - # of bytes per values
% .numberProperties - # of properties defined for the object
% .infoSet - a logical on whether or not this data has
% been set (for error checking)
% .propNames - a cell array for definining property names
% .propValues - cell array for holding property values
%
% numberDataPoints : an array which specifies the # of data points for
% each object (used for preallocation)
% objectNameList : (cell array of strings) names of all objects in the
% TDMS file
%
% Info for each segment ...
%
% segInfo : (struct array)
% .rawPos - position of raw data for that segment
% .kTocNewObjList - flag on whether a new channel list was
% created or not
% .objOrder - array specifying indices of the objects to assign
% data to, order specifies read order, and values
% are indexed
% into the objectNameList & rawDataInfo struct
% .nRawObjects - length of objOrder
% .nSamplesRead - array, # of samples to read for each object
% .isInterleaved - logical, whether that segment uses interleaved
% data or not
% .isBigEndian - logical
% .nChunks - # of times to read data using the parameters
% above before moving onto the next segment
%
% See also: TDMS_processLeadIn, TDMS_getDataSize, TDMS_getPropValue
%PARAMETERS - passed in from TDMS_readTDMSFile
%==========================================================================
UTC_DIFF = params.UTC_DIFF;
MAX_NUM_OBJECTS = params.MAX_NUM_OBJECTS;
MAX_NUM_PROPS = params.MAX_NUM_PROPS;
N_SEGS_GUESS = params.N_SEGS_GUESS;
N_SEGS_INC = params.N_SEGS_INC;
DEBUG = params.DEBUG;
DATE_STR_FORMAT = params.DATE_STR_FORMAT;
UNICODE_FORMAT = params.STRING_ENCODING;
USE_INDEX = params.USE_INDEX;
INIT_CHUNK_SIZE = params.INIT_CHUNK_SIZE;
TDMS_INDEX_EXT = params.TDMS_INDEX_EXT;
MACHINE_FORMAT = params.MACHINE_FORMAT;
STRING_ENCODING = params.STRING_ENCODING;
CURRENT_VERSION = params.CURRENT_VERSION;
INDEX_DEBUG = params.INDEX_DEBUG;
%DONT CHANGE THESE
%==========================================================================
LEAD_IN_LENGTH = 28; %# of bytes of lead in
%FIGURING OUT WHICH FILE TO READ
%==========================================================================
[tdmsPathToFile,tdmsNameOnly] = fileparts(tdmsFileName);
if isempty(params.META_STRUCT)
isIndexFID = false;
if USE_INDEX || INDEX_DEBUG
if INDEX_DEBUG
indexFile = tdmsFileName;
else
indexFile = fullfile(tdmsPathToFile,[tdmsNameOnly TDMS_INDEX_EXT]);
end
if exist(indexFile,'file')
fid = fopen(indexFile,'r',MACHINE_FORMAT,STRING_ENCODING);
isIndexFID = true;
else
%Just use the tdms file, which we have already tested to exist
if INDEX_DEBUG
%NOTE: With INDEX_DEBUG we explicitly passed in the index
%file to read and parse (generally for debugging purposes
%so if it doesn't exist, then we have a problem
error('Specified tdms_index file doesn not exist')
end
end
end
else
%Quits early if meta struct input is valid
%======================================================================
metaStruct = params.META_STRUCT;
if ~isstruct(metaStruct) || ~isfield(metaStruct,'version') || ~isfield(metaStruct,'fileName')
error('The META_STRUCT parameter passed should be a structure with fields "version" and "fileName"')
end
if metaStruct.version ~= CURRENT_VERSION
error('Mismatch in version creation, version of struct %d, please run with latest version: %d')
end
if ~strcmpi(metaStruct.fileName,tdmsNameOnly)
fprintf('Filename from metaStruct: %s\n',metaStruct.fileName);
fprintf('Filename from input: %s\n',tdmsNameOnly);
error('Mismatch in filenames, see printout above')
end
return
end
if isIndexFID
lastLetter = double('h'); %used for .tdms_index files
else
lastLetter = double('m'); %used for .tdms files
end
%INITIALIZE OUTPUTS
%==========================================================================
curNumTotalObjects = 0; %Current # of objects
numberDataPoints = zeros(1,MAX_NUM_OBJECTS);
objectNameList = cell(1,MAX_NUM_OBJECTS); %names of all objects
rawDataInfo = initRawInfoStruct(MAX_NUM_PROPS,MAX_NUM_OBJECTS);
segInfo = initSegStruct(N_SEGS_GUESS);
%==========================================================================
%TEMP VARIABLES
%==========================================================================
objectHasRawData = false(1,MAX_NUM_OBJECTS); %This is needed for adding
%# of data points together
ranOnce = false;
nSegs = 0;
%Get eof & return to start
fseek(fid,0,1);
eofPosition = ftell(fid);
fseek(fid,0,-1);
%START OF READING
%==========================================================================
curPosCounter = 0; %Used to keep track of where in the actual tdms file we
%would be at various points, this is used for parsing verification as well
%as assisting with more complicated reads
while ftell(fid) ~= eofPosition
nSegs = nSegs + 1;
if nSegs > length(segInfo)
segInfo = [segInfo initSegStruct(N_SEGS_INC)]; %#ok<AGROW>
end
if DEBUG
disp('------ START OF DEBUG -------')
fprintf(2,'CURRENT SEGMENT: %d\n',nSegs);
fprintf(2,'Current file position: %d\n',curPosCounter);
end
%LEAD IN HANDLING
%======================================================================
[flags,info] = TDMS_processLeadIn(fid,lastLetter);
curPosCounter = curPosCounter + LEAD_IN_LENGTH + info.segLength;
segInfo(nSegs).rawPos = curPosCounter - info.segLength + info.metaLength;
if ~ranOnce
%NOTE: This might be false if no channels are defined ...
if flags.kTocNewObjList == false
error('the kTocNewObjList was false when first run, this is not expected')
end
ranOnce = true;
end
%======================================================================
%======================================================================
% META INFORMATION PROCESSING
%======================================================================
if flags.hasMetaData
%Get # of changed objects
numNewObjInSeg = fread(fid,1,'uint32');
%Reinitialize order list if new
if flags.kTocNewObjList
curObjListCount = 0;
objOrder = zeros(1,2*numNewObjInSeg);
nValuesRead = zeros(1,2*numNewObjInSeg);
%NOTE: I padded this by doubling the #, we might append extra
%channels in subsequent reads, I currently don't resize this
%...
end
for iNewObject = 1:numNewObjInSeg
%1) GET OBJECT PATH
%-------------------------------
objPathLength = fread(fid,1,'uint32');
temp = fread(fid,objPathLength,'*uint8');
objName = native2unicode(temp,UNICODE_FORMAT)'; %#ok<*N2UNI>
%POPULATE ALL OBJECT LIST
%----------------------------------------
objIndex = find(strcmp(objectNameList(1:curNumTotalObjects),objName),1);
if isempty(objIndex)
curNumTotalObjects = curNumTotalObjects + 1;
if curNumTotalObjects > length(rawDataInfo)
rawDataInfo = [rawDataInfo ...
initRawInfoStruct(MAX_NUM_PROPS,MAX_NUM_OBJECTS)]; %#ok<AGROW>
numberDataPoints = [numberDataPoints zeros(1,MAX_NUM_OBJECTS)]; %#ok<AGROW>
objectNameList = [objectNameList cell(1,MAX_NUM_OBJECTS)]; %#ok<AGROW>
objectHasRawData = [objectHasRawData false(1,MAX_NUM_OBJECTS)]; %#ok<AGROW>
end
objIndex = curNumTotalObjects;
objectNameList{curNumTotalObjects} = objName;
end
%RAW DATA INDEX PROCESSING
%---------------------------------------------
curPos = ftell(fid);
rawDataIndexLength = fread(fid,1,'uint32');
rawDataInfo(objIndex).lengthOfIndex = rawDataIndexLength;
if DEBUG
fprintf(2,'RawDataLength: %d\n',rawDataIndexLength);
fprintf(2,'CurrentPos: %d\n',curPos);
end
switch rawDataIndexLength
case 0 %Same as previous
if rawDataInfo(objIndex).infoSet == false
error('Channel %s set to use previous rawDataIndex but this channel is new',objName)
end
case 2^32-1 %no raw data
rawDataInfo(objIndex).infoSet = true;
objectHasRawData(objIndex) = false;
otherwise
objectHasRawData(objIndex) = true;
rawDataInfo(objIndex).infoSet = true;
%DATA TYPE HANDLING
%------------------------------------------------------
dataType = fread(fid,1,'uint32');
if rawDataInfo(objIndex).infoSet && dataType ~= rawDataInfo(objIndex).dataType && numberDataPoints(objIndex) > 0
error('Raw data type for channel %s has changed from %d to %d',...
objName,rawDataInfo(objIndex).dataType,dataType)
else
rawDataInfo(objIndex).dataType = dataType;
end
%DATA SIZE HANDLING
%-----------------------------------------------------
rawDataInfo(objIndex).dimensionData = fread(fid,1,'uint32');
if rawDataInfo(objIndex).dimensionData ~= 1
error('Code doesn''t yet handle non 1D data')
end
rawDataInfo(objIndex).numberOfValues = fread(fid,1,'uint64');
%RawDaqMX
%------------------------------------------------------
%NOTES:
if dataType == 2^32-1
%JIM CODE IN PROGRESS
rawDataInfo(objIndex).isRawDAQmx = true; %We can
% % % %post process this to convert from bits to an
% % % %actual value
% % %
% % % %FORMAT:
% % % %1) -
% % % daqMXVersion = rawDataIndexLength;
% % % if ~ismember(daqMXVersion,[4713 4714])
% % % error('Unexpected version: %d',daqMXVersion)
% % % end
% % %
% % %
% % % %2) Let's get the remaining # of bytes
% % % %This seems to be 32 ...
% % %
% % % % % wtf = fread(fid,8,'uint32');
% % % % % disp(wtf)
% % % %4713
% % % %13000012
% % % %15000018
% % % %? -> 8th indicates data type? OR -> bytes per sample
% % %
% % % %4714
% % % %1 0 0 0 256 256 512
% % %
% % % %3) Update datetype - where the heck is it?
% % % %rawDataInfo(objIndex).dataType = dataType;
else %Non RawDAQmx type
if rawDataInfo(objIndex).dataType == 32
%If string, size is specified by an additional field
rawDataInfo(objIndex).totalSizeBytes = fread(fid,1,'uint64');
else
rawDataInfo(objIndex).totalSizeBytes = ...
rawDataInfo(objIndex).numberOfValues*TDMS_getDataSize(dataType);
end
%Another chance to check correct reading
if curPos + rawDataIndexLength ~= ftell(fid)
error(['Raw Data Index length was incorrect: %d stated vs %d observed,' ...
'likely indicates bad code or a bad tdms file'],rawDataIndexLength,ftell(fid) - curPos)
end
end
if DEBUG
fprintf(2,'nSegs: %d\n',nSegs);
fprintf(2,'objName: %s\n',objName);
end
end
%--------------------------------------------------------------
%POPULATE ORDER TO RETRIEVE RAW DATA
%--------------------------------------------------------------
if objectHasRawData(objIndex)
appendToList = false;
if flags.kTocNewObjList
appendToList = true;
else %Only append if not currently specified
I_objOrder = find(objOrder(1:curObjListCount) == objIndex,1);
if isempty(I_objOrder)
appendToList = true;
else
nValuesRead(I_objOrder) = rawDataInfo(objIndex).numberOfValues;
end
end
%NOTE: No overflow code in place yet, however we do
%initialize with twice the # of objects specified to be
%in a segement when a new list is created, new segments
%might add more objects to the list
if appendToList
curObjListCount = curObjListCount + 1;
objOrder(curObjListCount) = objIndex;
nValuesRead(curObjListCount) = rawDataInfo(objIndex).numberOfValues;
end
end
%PROPERTY HANDLING
%--------------------------------------------------------------
numberProperties = fread(fid,1,'uint32');
%Below is the # of props already assigned to that channel
nPropsChan = rawDataInfo(objIndex).numberProperties;
curProps = rawDataInfo(objIndex).propNames;
for iProp = 1:numberProperties
propNameLength = fread(fid,1,'uint32');
temp = fread(fid,propNameLength,'*uint8');
propName = native2unicode(temp,UNICODE_FORMAT)';
propDataType = fread(fid,1,'uint32');
propIndex = find(strcmp(curProps(1:nPropsChan),propName),1);
if isempty(propIndex)
%Updates needed for new properties
nPropsChan = nPropsChan + 1;
propIndex = nPropsChan;
curProps{propIndex} = propName;
rawDataInfo(objIndex).propNames{propIndex} = propName;
end
%Update value
propValue = TDMS_getPropValue(fid,propDataType,UTC_DIFF,DATE_STR_FORMAT);
rawDataInfo(objIndex).propValues{propIndex} = propValue;
end
rawDataInfo(objIndex).numberProperties = nPropsChan;
if DEBUG
fprintf(2,'end of index position: %d\n',ftell(fid));
end
end
end
%======================================================================
% END OF META DATA PROCESSING
%RAW DATA SAMPLE COUNTING
%======================================================================
segInfo(nSegs).kTocNewObjList = flags.kTocNewObjList;
byteSizeRaw = info.segLength - info.metaLength;
if ~flags.hasRawData || byteSizeRaw == 0
segInfo(nSegs).nChunks = 0;
else
segInfo(nSegs).objOrder = objOrder(1:curObjListCount);
segInfo(nSegs).nRawObjects = curObjListCount;
segInfo(nSegs).nSamplesRead = nValuesRead(1:curObjListCount);
segInfo(nSegs).isInterleaved = flags.isInterleaved;
segInfo(nSegs).isBigEndian = flags.isBigEndian;
%# OF CHUNK PROCESSING
%------------------------------------------------------------------
totalBytesPerChunk = sum([rawDataInfo(objOrder(1:curObjListCount)).totalSizeBytes]);
nChunks = byteSizeRaw/totalBytesPerChunk;
%Some error checking
%------------------------------------------
if DEBUG
fprintf(2,'nChunks: %d\n',nChunks);
fprintf(2,'nSamplesRead: %s\n',mat2str(nValuesRead(1:curObjListCount)));
fprintf(2,'totalBytesPerChunk: %d\n',totalBytesPerChunk);
fprintf(2,'byteSizeRaw: %d\n',byteSizeRaw);
end
if nChunks ~= floor(nChunks)
error(['The remaining data doesn''t split evently into' ...
' chunks, estimated # of chunks: %d'],nChunks)
end
chunkByteOffset = 0;
%Increment the number of data points
for iObject = 1:curObjListCount
curIndex = objOrder(iObject);
%This allows us to grow these values if we haven't sufficiently preallocated
if rawDataInfo(curIndex).chunkIndex + nChunks > rawDataInfo(curIndex).chunkLength
rawDataInfo(curIndex).dataMatrix = [rawDataInfo(curIndex).dataMatrix; zeros(INIT_CHUNK_SIZE,3)];
rawDataInfo(curIndex).chunkLength = rawDataInfo(curIndex).chunkLength + INIT_CHUNK_SIZE;
end
%DataMatrix:
%==============================================================
%This information is used for reading parts of an object during
%a single read instead of the entire object
%Column 1, file position
indices = (rawDataInfo(curIndex).chunkIndex+1):(rawDataInfo(curIndex).chunkIndex+nChunks);
rawDataInfo(curIndex).dataMatrix(indices,1) = ...
segInfo(nSegs).rawPos + chunkByteOffset + (0:totalBytesPerChunk:(nChunks-1)*totalBytesPerChunk);
%Column 2, first sample at that position
rawDataInfo(curIndex).dataMatrix(indices,2) = ...
numberDataPoints(curIndex) + (0:rawDataInfo(curIndex).numberOfValues:(nChunks-1)*rawDataInfo(curIndex).numberOfValues) + 1;
%Column 3, segment number
rawDataInfo(curIndex).dataMatrix(indices,3) = nSegs;
chunkByteOffset = chunkByteOffset + rawDataInfo(curIndex).totalSizeBytes;
numberDataPoints(curIndex) = numberDataPoints(curIndex) + rawDataInfo(curIndex).numberOfValues*nChunks;
rawDataInfo(curIndex).chunkIndex = rawDataInfo(curIndex).chunkIndex+nChunks;
end
%nChunksAll = nChunksAll + nChunks;
segInfo(nSegs).nChunks = nChunks;
%This needs to be handled in some manner for RawDaqMx
if ~isIndexFID
fseek(fid,byteSizeRaw,'cof');
end
end
%Addition for raw data (needs to be fixed)
%In general, the tdms_index requires skipping some meta data
%I think this is only needed for raw data (I need to flush this out
%better as it will cause an error when reading index files for regular
%tdms files)
% if isIndexFID
% fseek(fid,segInfo(nSegs).rawPos,'bof');
% end
end
%Trim output:
%==========================================================================
rawDataInfo = rawDataInfo(1:curNumTotalObjects);
for iObject = 1:length(rawDataInfo)
nProps = rawDataInfo(iObject).numberProperties;
rawDataInfo(iObject).propNames = rawDataInfo(iObject).propNames(1:nProps);
rawDataInfo(iObject).propValues = rawDataInfo(iObject).propValues(1:nProps);
%Add extra value for later processing
if rawDataInfo(iObject).chunkIndex ~= 0
rawDataInfo(iObject).chunkIndex = rawDataInfo(iObject).chunkIndex + 1;
rawDataInfo(iObject).dataMatrix(rawDataInfo(iObject).chunkIndex,2) = numberDataPoints(iObject) + 1;
end
end
numberDataPoints = numberDataPoints(1:curNumTotalObjects);
objectNameList = objectNameList(1:curNumTotalObjects);
segInfo = segInfo(1:nSegs);
metaStruct = struct(...
'numberDataPoints', numberDataPoints,...
'objectNameList', {objectNameList},...
'segInfo', segInfo,...
'rawDataInfo', rawDataInfo,...
'fileName', tdmsNameOnly,...
'version', CURRENT_VERSION);
if isIndexFID
%If using the index file to parse meta, close it
fclose(fid);
end
end
function segStruct = initSegStruct(nSegs)
%initSegStruct
%
% segStruct = initSegStruct(nSegs)
%
segStruct = struct(...
'rawPos',repmat({0},[1 nSegs]),...
'kTocNewObjList',0,...
'objOrder',[],...
'nRawObjects',0,...
'nSamplesRead',[],...
'isInterleaved',false,...
'isBigEndian',false,...
'nChunks',false);
end
function rawInfoStruct = initRawInfoStruct(MAX_NUM_PROPS,MAX_NUM_OBJECTS)
rawInfoStruct = struct( ...
'isRawDAQmx', false, ...
'lengthOfIndex', 0,...
'dataType', 0,...
'dimensionData', 0,...
'numberOfValues', 0,...
'totalSizeBytes', 0,... %Only valid for strings
'numberProperties', 0,...
'chunkIndex', 0,...
... %Could initialize to zero, this would save space
... %with non-raw data objects
'chunkLength', 0,...
... %SEE ALSO: chunk loop above for resizing
'dataMatrix', zeros(0,3),...
...%Position #
...%1st Sample #
...%Seg #
'infoSet', false, ...
'propNames', repmat({cell(1,MAX_NUM_PROPS)},1,MAX_NUM_OBJECTS),...
'propValues', repmat({cell(1,MAX_NUM_PROPS)},1,MAX_NUM_OBJECTS));
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
hanning.m
|
.m
|
OCIA-master/other/functions_slovin/spectogram_functions/hanning.m
| 292 |
utf_8
|
56fe015f155b73f7eb537f7a3093ead2
|
function w = hanning(n)
if ~rem(n,2)
w = .5*(1 - cos(2*pi*(1:n/2)'/(n+1)));
w = [w; w(end:-1:1)];
else
w = .5*(1 - cos(2*pi*(1:(n+1)/2)'/(n+1)));
w = [w; w(end-1:-1:1)];
end
function myprintf(verbose, varargin)
if strcmpi(verbose, 'on')
fprintf(varargin{:});
end;
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainer_GUI_export.m
|
.m
|
OCIA-master/behavior/mtrainer_GUI_export.m
| 57,797 |
utf_8
|
bb7ef417782c2fbef69065eee4adb42f
|
function varargout = mtrainer_GUI_export(varargin)
% TODO:
% - stopping the experiment: trial no 100 ? plot ? set buttons to stop ?
% - reward anyway system
% - forbid disconnecting HW or changing mouseID while experiment is running
% - lickThresh calibrator with setter
% - online lick ploting
% - online performance
% - logging into GUI window
% - config setter
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @mtrainer_GUI_export_OpeningFcn, ...
'gui_OutputFcn', @mtrainer_GUI_export_OutputFcn, ...
'gui_LayoutFcn', @mtrainer_GUI_export_LayoutFcn, ...
'gui_Callback', []);
if nargin && ischar(varargin{1});
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout;
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before mtrainer_GUI_export is made visible.
function mtrainer_GUI_export_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to mtrainer_GUI_export (see VARARGIN)
% Choose default command line output for mtrainer_GUI_export
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
initialize_gui(hObject, handles, false);
set(hObject, 'DeleteFcn', @onWindowClose);
set(hObject, 'Position', [100 100 800 620]);
% --- Outputs from this function are returned to the command line.
function varargout = mtrainer_GUI_export_OutputFcn(hObject, eventdata, handles) %#ok<*INUSL>
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --------------------------------------------------------------------
function initialize_gui(fig_handle, handles, isreset) %#ok<*INUSD>
% If the metricdata field is present and the start flag is false, it means
% we are we are just re-initializing a GUI by calling it from the cmd line
% while it is up. So, bail out as we dont want to start the data.
initMain(handles);
updateGUI();
% --- Executes on button press in connectHW.
function connectHW_Callback(hObject, eventdata, handles)
% hObject handle to connectHWButton_Callback (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if isfield(main.hw, 'connected') && main.hw.connected;
disconnectHW();
else
connectHW();
end
updateGUI();
% --- Executes on button press in start.
function start_Callback(hObject, eventdata, handles)
% hObject handle to start (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if main.isRunning;
warning('mtrainerGUI:CannotStartAlreadyRunning', ...
'Cannot start because experiment is already running and not paused.');
updateGUI();
return;
else
startExperiment();
end
updateGUI();
try
mainLoop();
catch e;
closeDiaryAndSaveOutput();
throw(e);
end;
% --- Executes on button press in pause.
function pause_Callback(hObject, eventdata, handles)
% hObject handle to pause (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if main.isRunning;
if main.isPaused;
main.isPaused = false;
else
main.isPaused = true;
end
else
warning('mtrainerGUI:CannotPauseNotRunning', ...
'Cannot pause because experiment is not running.');
end
updateGUI();
% --- Executes on button press in stop.
function stop_Callback(hObject, eventdata, handles) %#ok<*DEFNU>
% hObject handle to stop (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if main.isRunning;
main.isRunning = false;
closeDiaryAndSaveOutput();
else
warning('mtrainerGUI:CannotStopNotRunning', 'Cannot stop because experiment is not running.');
end
updateGUI();
% --- Executes on button press in reward.
function reward_Callback(hObject, eventdata, handles)
% hObject handle to reward (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
giveReward(main.rewardDur, 0);
% --- Executes on slider movement.
function rewardDurSetter_Callback(hObject, eventdata, handles)
% hObject handle to rewardDurSetter (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global main;
main.rewardDur = get(hObject,'Value');
set(handles.rewardDur, 'String', sprintf('%04.2f', main.rewardDur));
% --- Executes on slider movement.
function lickThreshSetter_Callback(hObject, eventdata, handles)
% hObject handle to lickThreshSetter (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global main;
main.lickThresh = get(hObject,'Value');
set(handles.lickThresh, 'String', sprintf('%04.2f', main.lickThresh));
% --- Executes when selected cell(s) is changed in config.
function config_CellSelectionCallback(hObject, eventdata, handles)
% hObject handle to config (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) currently selecteds
% handles structure with handles and user data (see GUIDATA)
global main;
o('#config_CellSelectionCallback: selection changed: row %d, col %d.', eventdata.Indices, 3, main.dbgLvl);
row = eventdata.Indices(1);
configCell = get(main.handles.config, 'Data');
main.mouseId = configCell{row, 1};
main.taskType = configCell{row, 2};
main.phase = configCell{row, 3};
main.configLoaded = false;
o('#config_CellSelectionCallback: mouseId: %s, taskType: %s, phase: %s.', ...
main.mouseId, main.taskType, main.phase, 3, main.dbgLvl);
updateGUI();
% --- Executes on button press in loadConfig.
function loadConfig_Callback(hObject, eventdata, handles)
% hObject handle to loadConfig (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
loadConfig();
%% #initMain
function initMain(handles)
global main;
main = struct();
main.dbgLvl = 3;
main.debugMode = 0;
main.basePath = 'P:/programming/Work/PhD/matlab/behavior/mtrainer/';
% main.basePath = 'D:/Users/BaL/programming/Work/PhD/matlab/behavior/mtrainer/';
configsPath = sprintf('%sconfigs.mat', main.basePath);
if ~exist(configsPath, 'file');
error('mtrainerGUI:initMain:ConfigsFileNotFound', ...
'Cannot find the configs at "%s" (file not found).', configsPath);
end;
configsMat = load(configsPath);
main.configs = configsMat.configs;
[~, computerName] = system('hostname');
roomMatch = regexp(computerName, '^HIFOWS(?<room>H\d+)\-\d+\s+$', 'names');
if main.debugMode;
warning('mtrainer_GUI:initMain:DebugMode', 'Debug mode is ON.');
roomMatch = struct('room', 'H30');
o('#initMain: debug mode => room tag enforced to: "%s".', roomMatch.room, 1, main.dbgLvl);
end;
if isempty(roomMatch);
error('mtrainerGUI:initMain:HardwareLoad:NoRoomTagFound', ...
'Cannot load hardware because there''s no room tag in the computer''s name.');
elseif ~isfield(main.configs.hardware, roomMatch.room);
error('mtrainerGUI:initMain:HardwareLoad:UnknownRoom', ...
'Cannot load hardware because room "%s" is unknown.', roomMatch.room);
end;
main.hw = main.configs.hardware.(roomMatch.room);
main.hw.connected = false;
main.updateRate = 0.1; % 100ms update rate
main.isRunning = false;
main.isPaused = false;
main.isClosed = false;
main.configLoaded = false;
main.iTrial = 0;
main.rewardDur = str2double(get(handles.rewardDur,'String'));
main.handles = handles;
stateData = get(main.handles.state, 'Data');
stateData(:, 1) = getTrialInfo(0);
stateData(:, 2) = getTrialInfo(0);
stateData(:, 3) = getTrialInfo(0);
set(main.handles.state, 'Data', stateData);
set(main.handles.config, 'Data', main.configs.animals);
main.mouseId = '';
o('Mouse trainer v1.0 initiated.', 1, main.dbgLvl);
function onWindowClose(src, eventData)
global main;
main.isClosed = true;
%% #connectHW
function connectHW()
global main;
o('Connecting hardware ...', 1, main.dbgLvl);
set(main.handles.connectHW, 'BackgroundColor', 'yellow');
if ~main.debugMode;
main.hw.lickSensor = daq.createSession(main.hw.adaptorID);
main.hw.lickSensor.Rate = main.hw.analogIn_SampleRate;
main.hw.lickSensor.addAnalogInputChannel(main.hw.analogIn_Device, main.hw.analogIn_Channel, 'Voltage');
main.hw.lickSensor.Channels(1).InputType = main.hw.analogIn_InputType;
main.hw.lickSensor.Channels(1).Range = main.hw.analogIn_Range;
main.hw.lickSensor.IsNotifyWhenDataAvailableExceedsAuto = true;
main.hw.lickSensorListener = main.hw.lickSensor.addlistener('DataAvailable', ...
@(src, event) recordAndStop(src, event));
main.hw.lickSensor.IsContinuous = true;
main.hw.lickSensor.prepare();
else
o(' "Connecting" fake analog input.', 1, main.dbgLvl);
main.hw.lickSensor = struct();
main.hw.lickSensorListener = struct();
main.hw.lickSensor.stop = 1;
main.hw.lickSensor.startBackground = 1;
% main.hw.lickSensor.IsRunning = @()(round(rand + 0.4));
% main.hw.lickSensor.IsRunning = @()(round(rand - 0.4));
main.hw.lickSensor.IsRunning = 1;
pause(1);
end;
o(' Analog input (lick sensor and listener): OK.', 1, main.dbgLvl);
if ~main.debugMode;
main.hw.valveControl = daq.createSession(main.hw.adaptorID);
main.hw.valveControl.addDigitalChannel(main.hw.digitalOut_Device, main.hw.digitalOut_PortLine, 'OutputOnly');
main.hw.valveControl.outputSingleScan(0); % make sure valve is closed
else
o(' "Connecting" fake digital output.', 1, main.dbgLvl);
main.hw.valveControl = struct();
pause(1);
end;
o(' Digital output (valve control): OK.', 1, main.dbgLvl);
main.hw.connected = true;
o('Hardware connected.', 1, main.dbgLvl);
%% #disconnectHW
function disconnectHW()
global main;
o('Disconnecting hardware ...', 1, main.dbgLvl);
% analog input
if ~main.debugMode;
if isfield(main.hw, 'lickSensorListener');
main.hw = rmfield(main.hw, 'lickSensorListener');
end;
if isfield(main.hw, 'lickSensor');
main.hw.lickSensor.stop();
main.hw = rmfield(main.hw, 'lickSensor');
end;
if isfield(main.hw, 'valveControl');
% main.hw.valveControl.stop();
main.hw = rmfield(main.hw, 'valveControl');
end;
daqreset;
end;
main.hw.connected = false;
o('Hardware disconnected.', 1, main.dbgLvl);
%% #giveReward
function giveReward(rewDur, rewDelay)
global main;
if main.hw.connected && isfield(main.hw, 'valveControl');
if ~main.debugMode;
t_rewardStart = tic;
% wait until for start delay
while toc(t_rewardStart) < rewDelay; end;
t_rewardStart = tic;
% open digital out
% main.hw.valveControl.outputSingleScan(0);
main.hw.valveControl.outputSingleScan(1);
% wait until for open duration
while toc(t_rewardStart) < rewDur; end;
% close digital out
% main.hw.valveControl.outputSingleScan(1);
main.hw.valveControl.outputSingleScan(0);
end;
o('Rewarding for %.2f sec with a delay of %.2f.', rewDur, rewDelay, 3, main.dbgLvl);
else
warning('mtrainerGUI:NoRewardHardwareDisconnected', 'Cannot give reward because hardware is disconnected.');
end
%% #updateGUI
function updateGUI()
global main;
if main.isClosed; return; end;
stateData = get(main.handles.state, 'Data');
handles = main.handles;
if main.hw.connected;
set(handles.connectHW, 'BackgroundColor', 'green');
set(handles.connectHW, 'Value', 1);
else
set(handles.connectHW, 'BackgroundColor', 'red');
set(handles.connectHW, 'Value', 0);
end;
if main.isRunning;
set(handles.start, 'Value', 1);
set(handles.start, 'BackgroundColor', 'green');
if main.isPaused;
set(handles.pause, 'Value', 1);
set(handles.pause, 'BackgroundColor', [1 1 0]);
else
set(handles.pause, 'Value', 0);
set(handles.pause, 'BackgroundColor', 'green');
end;
if isfield(main, 'lickData');
axes(handles.lickSensorAxes);
data = abs(main.lickData);
nSamples = numel(data);
t = (1 : nSamples) / main.hw.analogIn_SampleRate;
plot(t, data);
line([0, t(end)], [main.lickThresh, main.lickThresh], 'Color', 'r');
ylim([0, 1]);
end;
% stateData(:, 1) = stateData(:, 2);
stateData(:, 1) = getTrialInfo(main.iTrial - 1);
stateData(:, 2) = getTrialInfo(main.iTrial);
if main.iTrial < main.config.training.nTrials;
stateData(:, 3) = getTrialInfo(main.iTrial + 1);
else
stateData(:, 3) = getTrialInfo(0);
end;
else
axes(handles.lickSensorAxes);
plot(0, 0);
set(handles.start, 'Value', 0);
set(handles.start, 'BackgroundColor', 'red');
set(handles.pause, 'Value', 0);
set(handles.pause, 'BackgroundColor', 'red');
if main.configLoaded && main.iTrial == 0;
stateData(:, 3) = getTrialInfo(1);
else
stateData(:, 3) = getTrialInfo(0);
end;
end;
set(main.handles.state, 'Data', stateData);
set(main.handles.configLoaded, 'Value', logical(main.configLoaded));
%% #getTrialInfo
function trialInfo = getTrialInfo(iTrial)
global main;
if iTrial;
freq = sprintf('%4.2f', main.config.tone.freqs(main.stims(iTrial)) / 1000);
if isfield(main.config.tone, 'oddProba') && main.config.tone.oddProba > 0; % oddball discrimination
isTarget = double(main.stims(iTrial) ~= main.odds(iTrial) && main.config.tone.goStim);
else % frequency discrimination
isTarget = double(main.stims(iTrial) == main.config.tone.goStim);
end;
if isfield(main, 'resps') && ~isnan(main.resps(iTrial));
resp = main.resps(iTrial);
respTime = main.respTimes(iTrial);
if isnan(respTime); respTime = '-'; end;
corr = double((isTarget && resp) || (~isTarget && ~resp));
ITL = main.nInTriLick(iTrial);
else
resp = '-';
respTime = '-';
corr = '-';
ITL = '-';
end;
trialInfo = {iTrial, freq, isTarget, resp, respTime, corr, ITL};
else
trialInfo = {'-', '-', '-', '-', '-', '-', '-'};
end;
%% #loadConfig
function loadConfig()
global main;
o('Loading configuration ...', 2, main.dbgLvl);
if isempty(main.mouseId);
warning('loadConfig:NoMouseIdSelected', 'Cannot load config because no mouseId is selected.');
return;
end;
% main.doEmptyWater = 0;
% main.doEmptyWater = 1;
% if > 0, sets the number of seconds to wait before a new run of mtrainer
% main.automode = 5;
main.iTrial = 0;
main.lickThresh = 0.14;
% main.lickThresh = NaN;
main.config = main.configs.behavior.(main.taskType).(main.phase);
%% Setup - stimuli and trials
o(' loadConfig#: setup stimuli and trials... ', 3, main.dbgLvl);
% set up stimulus vector
stims = [];
for iFreq = 1 : numel(main.config.tone.freqs);
stimForFreq = repmat(iFreq, 1, ...
round(main.config.tone.stimProba(iFreq) * main.config.training.nTrials));
stims = [stims, stimForFreq]; %#ok<AGROW>
end
% stim vector should not be randomly permuted
stims = stims(randperm(numel(stims)));
stims = stims(1 : main.config.training.nTrials);
clear stim;
switch(main.taskType);
case {'freqDiscr', 'oddDiscr'};
% set up oddball vector by altering stims with a certain probability
odds = stims;
oddPos = zeros(size(odds));
uniqueStims = unique(stims);
isOdd = rand(1, numel(stims)) < main.config.tone.oddProba;
uniqueOddPos = main.config.tone.nTones - 1 : main.config.tone.nTones; % last 2 tones can be odd
for iStim = 1 : numel(isOdd);
if isOdd(iStim);
otherStims = uniqueStims(uniqueStims ~= stims(iStim));
otherStims = otherStims(randperm(numel(otherStims)));
mixedOddPos = uniqueOddPos(randperm(numel(uniqueOddPos)));
odds(iStim) = otherStims(1);
oddPos(iStim) = mixedOddPos(1);
end;
end;
% set up tone array
main.toneArray = MakePureMultiToneOddballArray(main.config.tone.freqs, stims, odds, oddPos, ...
main.config.tone.nTones, main.config.tone.stimDur, main.config.tone.ISI, ...
main.config.tone.samplingFreq);
case 'cotDiscr';
odds = zeros(size(stims));
oddPos = zeros(size(stims));
isOdd = zeros(size(stims));
atten = 0.5;
main.toneArray = MakeCloudOfTonesSound(main.config.tone.uniqueFreqs, main.config.tone.freqIndexes, ...
main.config.tone.cloudDispersion, stims, main.config.tone.toneDur, main.config.tone.toneISI, ...
main.config.tone.stimDur, atten, main.config.tone.samplingFreq, 0, 0);
end;
main.stims = stims;
main.odds = odds;
main.oddPos = oddPos;
main.isOdd = isOdd;
main.configLoaded = true;
updateGUI();
o(' loadConfig#: setup stimuli and trials done. ', 2, main.dbgLvl);
o('Loading configuration done.', 2, main.dbgLvl);
%% #startExperiment
function startExperiment()
global main;
if ~main.configLoaded;
warning('startExperiment:configNotLoaded', 'Cannot start experiment because config is not loaded.');
return;
end;
if isempty(main.mouseId);
warning('startExperiment:NoMouseId', 'Cannot start experiment because there is no mouseId.');
return;
end;
if ~main.hw.connected;
warning('startExperiment:HardwareDisconnected', ...
'Cannot start experiment because hardware is disconnected.');
return;
end;
o('startExperiment#: initializing experiment ... ', 2, main.dbgLvl);
main.isPaused = false;
main.isRunning = true;
main.iTrial = 1;
main.saveTime = datestr(now(), 'yyyy_mm_dd__HH_MM_SS');
% saveFolder = sprintf('D:/Balazs/2013/mtrainerTests/%s/', ...
% saveFolder = sprintf('C:/Users/laurenczy.HIFO/Documents/LocalData/2013/mtrainerTests/%s/', ...
saveFolder = sprintf('C:/Users/laurenczy/mtrainerTests/%s/', main.mouseId);
% saveFolder = sprintf('D:/Users/BaL/PhD/mtrainerTests/%s/', main.mouseId);
main.savePath = sprintf('%s%s__%s', saveFolder, main.mouseId, main.saveTime);
mkdir(saveFolder);
logfile = sprintf('%s_log.txt', main.savePath);
main.logDateFormat = 'yyyy-mm-dd HH:MM:SS.FFF';
% % create an 'onCleanup' function to handle interruptions by CTRL+C
% c = onCleanup(@()closeDiaryAndSaveOutput(main.savePath, main.hw.lickSensorListener, ...
% main.hw.lickSensor, main.hw.valveControl));
o(' startExperiment#: logFile initialized. Starting diary...', 2, main.dbgLvl);
diary(logfile);
%% Start experiment
o('Experiment start: %s\n\n', datestr(now(), main.logDateFormat), 1, main.dbgLvl);
%% Setup - saving settings
global recordedValues;
recordedValues = 0;
o('config: %s phase %s (%dF%dT)', main.taskType, main.phase, numel(main.config.tone.freqs), ...
main.config.tone.nTones, 0, main.dbgLvl);
o('animal: %s', main.mouseId, 0, main.dbgLvl);
o('savePath: %s', main.savePath, 0, main.dbgLvl);
o('lickThresh: %1.2f, ISI: %1.2f', main.lickThresh, main.config.tone.ISI, 1, main.dbgLvl);
o('rewardCollectionTime: %1.2f, InTriLickTimerDur: %1.2f', main.config.training.rewCollTime, ...
main.config.training.InTriLickTimerDur, 1, main.dbgLvl);
nTrials = main.config.training.nTrials;
main.trialStartDelays = zeros(1, nTrials);
main.trialStartTimes = zeros(1, nTrials);
main.trialEndTimes = zeros(1, nTrials);
main.respTimes = nan(1, nTrials);
main.nInTriLick = nan(1, nTrials);
main.resps = nan(1, nTrials);
main.respDelays = nan(1, nTrials);
% for each trial: 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
main.respTypes = nan(1, nTrials);
main.expStartTime = tic;
main.isPunish = 0;
%% #mainLoop
function mainLoop()
global main;
displayedPause = 0;
while main.isRunning;
o('mainLoop#: iTrial = %d.', main.iTrial, 4, main.dbgLvl);
if ~main.isPaused;
if displayedPause; o(' --- RESUMED --- ', 1, main.dbgLvl); displayedPause = 0; end;
o('mainLoop#: running trial %d.', main.iTrial, 3, main.dbgLvl);
runTrial();
if main.isRunning;
o('Trial %d: pause ended, updating trial number.', main.iTrial, 2, main.dbgLvl);
if main.iTrial == main.config.training.nTrials;
main.isRunning = false;
%% End experiment
o('\nExperiment end: %s', datestr(now(), main.logDateFormat), 1, main.dbgLvl);
main.expTotDurTime = toc(main.expStartTime);
o('Total time: %02.0f:%02.0f', ...
main.expTotDurTime / 60, mod(main.expTotDurTime, 60), main.dbgLvl);
mtrainerAnalyser_performance(main.respTypes, 2, main.savePath, main.nInTriLick);
closeDiaryAndSaveOutput();
else
main.iTrial = main.iTrial + 1;
o('Trial %d: updated trial number: %d.', main.iTrial - 1, main.iTrial, 2, main.dbgLvl);
end;
else
o('Trial %d: not running anymore, no update of trial number.', main.iTrial, 2, main.dbgLvl);
end;
o('mainLoop#: running trial %d done.', main.iTrial, 3, main.dbgLvl);
updateGUI();
else
if ~displayedPause; o(' --- PAUSED --- ', 1, main.dbgLvl); displayedPause = 1; end;
o('mainLoop#: waiting for %f sec (trial %d).', main.updateRate, main.iTrial, 3, main.dbgLvl);
pause(main.updateRate);
end;
end;
%% #runTrial
function runTrial()
global main recordedValues;
nTrials = main.config.training.nTrials;
iTrial = main.iTrial;
% listen for response
main.hw.lickSensor.startBackground();
pause(0.01)
interTrialLickCount = 0;
main.trialStartTimes(iTrial) = tic;
% introduce a random delay for starting the tone
main.trialStartDelays(iTrial) = main.config.training.startDelay + ...
(rand(1) - 0.5) * 2 * main.config.training.startDelayRand;
% add punishement time-out if needed
if main.isPunish;
main.trialStartDelays(iTrial) = main.trialStartDelays(iTrial) + main.config.training.timeoutPunish;
end;
%% Experiment - initial wait
while toc(uint64(main.trialStartTimes(iTrial))) < main.trialStartDelays(iTrial);
% fprintf('CheckingA: main.hw.lickSensor.IsRunning()? %d\n', main.hw.lickSensor.IsRunning());
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
% check if no lick has been done
if ~main.hw.lickSensor.IsRunning(); % if not running anymore, it means a licking has been done
remainingTime = main.trialStartDelays(iTrial) - toc(uint64(main.trialStartTimes(iTrial)));
if interTrialLickCount > 0;
fprintf('|%.1f', remainingTime);
else
fprintf(' inter-trial licking: |%.1f', remainingTime);
end;
% reset the starting delay to main.config.training.InTriLickTimerDur
main.trialStartTimes(iTrial) = tic;
if main.isPunish;
main.trialStartDelays(iTrial) = max(main.config.training.InTriLickTimerDur, remainingTime);
else
main.trialStartDelays(iTrial) = main.config.training.InTriLickTimerDur;
end;
interTrialLickCount = interTrialLickCount + 1;
pause(1);
% restart the listening
main.hw.lickSensor.startBackground();
pause(0.1);
% fprintf('CheckingB: main.hw.lickSensor.IsRunning()? %d\n', main.hw.lickSensor.IsRunning());
end
% avoid full-speed looping
pause(0.01);
end;
if interTrialLickCount;
fprintf('|: %d inter-trial lick(s).\n', interTrialLickCount);
end
main.nInTriLick(iTrial) = interTrialLickCount;
resp = 0;
main.isPunish = 0;
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
t_trialStart = tic;
fprintf('Trial %03d/%03d - %s ... ', iTrial, nTrials, datestr(now(), main.logDateFormat));
%% Experiment - play sound
if main.hw.lickSensor.IsRunning();
soundToPlay = main.toneArray{iTrial};
player = audioplayer(soundToPlay, main.config.tone.samplingFreq);
player.play;
else
fprintf('early (already licking, lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
main.isPunish = 1;
main.respTypes(iTrial) = 5;
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(main.respTypes, 0);
end;
return;
end
breakOut = 0;
%% Experiment - wait for response
while toc(t_trialStart) < main.config.training.trialDur;
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
if main.hw.lickSensor.IsRunning()
% no response detected
else
% seconds since trial start
respTime = toc(t_trialStart);
main.respTimes(iTrial) = respTime;
% response should be 'minRespTime' after the end of the tone!
totStimDur = (main.config.tone.stimDur + main.config.tone.ISI) * main.config.tone.nTones - main.config.tone.ISI;
limitRespTime = totStimDur + main.config.training.minRespTime;
% limitRespTime = main.config.training.minRespTime;
main.respDelays(iTrial) = limitRespTime - respTime;
% early response, count as kind of false alarm
if respTime < limitRespTime;
% fprintf('early (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
fprintf('early (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
main.isPunish = 1;
main.respTypes(iTrial) = 5;
breakOut = 1;
break;
else
% fprintf('Lick at %s\n', datestr(clock, main.logDateFormat))
resp = 1;
end;
break; % break out of while loop
end;
pause(0.02); % necessary to allow time for data collection
end;
if breakOut;
main.trialEndTimes(iTrial) = toc(uint64(main.trialStartTimes(iTrial)));
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(main.respTypes, 0);
end;
return; % continue for loop
end;
if main.hw.lickSensor.IsRunning();
main.hw.lickSensor.stop();
end;
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
%% Experiment - analyse response
main.resps(iTrial) = resp;
isOddTrial = main.stims(iTrial) ~= main.odds(iTrial);
if isfield(main.config.tone, 'oddProba') && main.config.tone.oddProba > 0; % oddball discrimination
isTargetStim = isOddTrial && main.config.tone.goStim;
else % frequency discrimination
isTargetStim = main.stims(iTrial) == main.config.tone.goStim;
end;
if resp == 1 && isTargetStim;
% correct response
% fprintf('correct detection (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
fprintf('correct detection (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
main.respTypes(iTrial) = 1;
% give reward
giveReward(main.config.training.rewDur, main.config.training.rewDelay);
% wait to collect the reward
pause(main.config.training.rewCollTime);
elseif resp == 1 && ~isTargetStim;
% false alarm
% fprintf('false alarm (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
fprintf('false alarm (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
main.respTypes(iTrial) = 3;
% punish time-out
main.isPunish = 1;
elseif resp == 0 && isTargetStim;
fprintf('miss.\n');
main.respTypes(iTrial) = 4;
% punish time-out
main.isPunish = 1;
elseif resp == 0 && ~isTargetStim;
fprintf('correct rejection.\n');
main.respTypes(iTrial) = 2;
% go to next trial
end
main.trialEndTimes(iTrial) = toc(uint64(main.trialStartTimes(iTrial)));
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(main.respTypes, 0);
end;
%% #recordAndStop
function recordAndStop(src, event)
global main recordedValues;
[recordedValues, main.lickData] = stopWhenExceedThreshold(src, event, main.lickThresh);
updateGUI();
%% #closeDiaryAndSaveOutput
function closeDiaryAndSaveOutput()
global main;
o('\nClosing diary... ', 2, main.dbgLvl);
diary off;
o('Closing diary done.', 1, main.dbgLvl);
out = main;
try out.hw = rmfield(out.hw, 'toneArray'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'lickSensorListener'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'lickSensor'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'valveControl'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'lickData'); catch e; end; %#ok<NASGU>
if exist('out', 'var');
matFileName = sprintf('%s_out.mat', main.savePath);
o('Saving output as %s... ', matFileName, 2, main.dbgLvl);
save(matFileName, 'out');
o('Saving output done.', matFileName, 1, main.dbgLvl);
else
o('/!\\ Output not saved !', 1, main.dbgLvl);
end;
% disconnectHW();
% --- Creates and returns a handle to the GUI figure.
function h1 = mtrainer_GUI_export_LayoutFcn(policy)
% policy - create a new figure or use a singleton. 'new' or 'reuse'.
persistent hsingleton;
if strcmpi(policy, 'reuse') & ishandle(hsingleton)
h1 = hsingleton;
return;
end
load mtrainer_GUI_export.mat
appdata = [];
appdata.GUIDEOptions = struct(...
'active_h', [], ...
'taginfo', struct(...
'figure', 2, ...
'pushbutton', 15, ...
'text', 24, ...
'edit', 8, ...
'frame', 4, ...
'radiobutton', 22, ...
'uipanel', 15, ...
'slider', 5, ...
'popupmenu', 4, ...
'listbox', 3, ...
'togglebutton', 3, ...
'checkbox', 4, ...
'uitable', 4, ...
'axes', 2), ...
'override', 1, ...
'release', 13, ...
'resize', 'none', ...
'accessibility', 'callback', ...
'mfile', 1, ...
'callbacks', 1, ...
'singleton', 1, ...
'syscolorfig', 1, ...
'blocking', 0, ...
'lastSavedFile', 'P:\programming\Work\PhD\matlab\behavior\mtrainer_GUI_export.m', ...
'lastFilename', 'P:\programming\Work\PhD\matlab\behavior\mtrainer\mtrainer_GUI.fig');
appdata.lastValidTag = 'figure1';
appdata.GUIDELayoutEditor = [];
appdata.initTags = struct(...
'handle', [], ...
'tag', 'figure1');
h1 = figure(...
'PaperUnits',get(0,'defaultfigurePaperUnits'),...
'Color',[0.941176470588235 0.941176470588235 0.941176470588235],...
'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],...
'DockControls','off',...
'IntegerHandle','off',...
'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),...
'MenuBar','none',...
'Name','mtrainer_GUI',...
'NumberTitle','off',...
'PaperPosition',get(0,'defaultfigurePaperPosition'),...
'PaperSize',get(0,'defaultfigurePaperSize'),...
'PaperType',get(0,'defaultfigurePaperType'),...
'Position',[544 0 801 625],...
'Resize','off',...
'HandleVisibility','callback',...
'UserData',[],...
'Tag','figure1',...
'Visible','on',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'hwPanel';
h2 = uipanel(...
'Parent',h1,...
'Units','characters',...
'Title','Hardware',...
'Tag','hwPanel',...
'Clipping','on',...
'Position',[1.8 28.6923076923077 24.2 18.5384615384615],...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'connectHW';
h3 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'BackgroundColor',[1 0 0],...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('connectHW_Callback',hObject,eventdata,guidata(hObject)),...
'Position',[1.8 15.3846153846154 20 1.76923076923077],...
'String','CONNECT HW',...
'Style','togglebutton',...
'Tag','connectHW',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'reward';
h4 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('reward_Callback',hObject,eventdata,guidata(hObject)),...
'CData',[],...
'ListboxTop',0,...
'Position',[1.8 13.0769230769231 20.2 1.76923076923077],...
'String','REWARD',...
'UserData',[],...
'Tag','reward',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'rewardDurLabel';
h5 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'HorizontalAlignment','left',...
'Position',[1.8 10 17.2 2.46153846153846],...
'String',{ 'reward dur.'; '[sec]' },...
'Style','text',...
'Tag','rewardDurLabel',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'rewardDur';
h6 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'FontSize',10,...
'Position',[13.8 10.3076923076923 8.2 1.61538461538462],...
'String','0.3',...
'Style','text',...
'Tag','rewardDur',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'rewardDurSetter';
h7 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'BackgroundColor',[0.9 0.9 0.9],...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('rewardDurSetter_Callback',hObject,eventdata,guidata(hObject)),...
'Max',20,...
'Min',0.01,...
'Position',[1.6 8.38461538461538 20.2 1.61538461538462],...
'String',{ 'Slider' },...
'Style','slider',...
'SliderStep',[0.01 0],...
'Value',0.3,...
'Tag','rewardDurSetter',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'lickThreshLabel';
h8 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'HorizontalAlignment','left',...
'Position',[2 5.46153846153846 17.2 2.46153846153846],...
'String',{ 'lick threshold'; '[sec]' },...
'Style','text',...
'Tag','lickThreshLabel',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'lickThresh';
h9 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'FontSize',10,...
'Position',[14 5.76923076923077 8.2 1.61538461538462],...
'String','0.14',...
'Style','text',...
'Tag','lickThresh',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'lickThreshSetter';
h10 = uicontrol(...
'Parent',h2,...
'Units','characters',...
'BackgroundColor',[0.9 0.9 0.9],...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('lickThreshSetter_Callback',hObject,eventdata,guidata(hObject)),...
'Max',0.5,...
'Min',0.01,...
'Position',[1.8 3.84615384615385 20.2 1.61538461538462],...
'String',{ 'Slider' },...
'Style','slider',...
'SliderStep',[0.01 0],...
'Value',0.3,...
'Tag','lickThreshSetter',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'expControlPanel';
h11 = uipanel(...
'Parent',h1,...
'Units','characters',...
'Title','Experiment control',...
'Tag','expControlPanel',...
'Clipping','on',...
'Position',[26.6 43.3076923076923 56.4 3.92307692307692],...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'stop';
h12 = uicontrol(...
'Parent',h11,...
'Units','characters',...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('stop_Callback',hObject,eventdata,guidata(hObject)),...
'CData',[],...
'ListboxTop',0,...
'Position',[38 0.538461538461539 16.4 1.76923076923077],...
'String','STOP',...
'UserData',[],...
'Tag','stop',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'start';
h13 = uicontrol(...
'Parent',h11,...
'Units','characters',...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('start_Callback',hObject,eventdata,guidata(hObject)),...
'CData',[],...
'ListboxTop',0,...
'Position',[1.8 0.538461538461539 16.2 1.76923076923077],...
'String','START',...
'Style','togglebutton',...
'HitTest','off',...
'UserData',[],...
'Tag','start',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'pause';
h14 = uicontrol(...
'Parent',h11,...
'Units','characters',...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('pause_Callback',hObject,eventdata,guidata(hObject)),...
'CData',[],...
'ListboxTop',0,...
'Position',[19.8 0.538461538461539 16.2 1.76923076923077],...
'String','PAUSE',...
'Style','togglebutton',...
'UserData',[],...
'Tag','pause',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'currStatePanel';
h15 = uipanel(...
'Parent',h1,...
'Units','characters',...
'Title','Current state',...
'Tag','currStatePanel',...
'Clipping','on',...
'Position',[27 27.9230769230769 55 14.6923076923077],...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'state';
appdata.PropertyMetaData = { { 'DataPropertyDimension' 'DataPropertyConditionedDimension' 'DataPropertySource' 'BackgroundColorPropertyDimension' 'ColumnNameTyped' 'RowNameTyped' } { [4 2] [7 3] 'DataDefault' [2 3] { 'prev' 'curr' 'next' } { 'iTrial' 'freq' 'targ?' 'resp?' 'respTime' 'corr?' 'ITL' } } };
h16 = uitable(...
'Parent',h15,...
'Units','characters',...
'BackgroundColor',[1 1 1;0.96078431372549 0.96078431372549 0.96078431372549],...
'ColumnFormat',{ 'numeric' 'numeric' 'numeric' },...
'ColumnEditable',mat{1},...
'ColumnName',{ 'prev'; 'curr'; 'next' },...
'ColumnWidth',{ 53 53 53 },...
'Data',{ [] [] []; [] [] []; [] [] []; [] [] []; [] [] []; [] [] []; [] [] [] },...
'FontSize',7,...
'Position',[1.8 0.692307692307692 50.4 12.4615384615385],...
'RowName',{ 'iTrial'; 'freq'; 'targ?'; 'resp?'; 'respTime'; 'corr?'; 'ITL' },...
'UserData',[],...
'Tag','state',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'configPanel';
h17 = uipanel(...
'Parent',h1,...
'Units','characters',...
'Title','Config',...
'Tag','configPanel',...
'Clipping','on',...
'Position',[83.8 14.0769230769231 74.2 33.1538461538462],...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'config';
appdata.PropertyMetaData = { { 'DataPropertyDimension' 'DataPropertyConditionedDimension' 'DataPropertySource' 'BackgroundColorPropertyDimension' 'ColumnNameTyped' 'RowNameTyped' } { [4 2] [4 3] 'DataDefault' [2 3] { 'mouseId' 'taskType' 'phase' } { blanks(0) blanks(0) blanks(0) blanks(0) } } };
h18 = uitable(...
'Parent',h17,...
'Units','characters',...
'ColumnFormat',{ [] [] [] },...
'ColumnEditable',mat{2},...
'ColumnName',{ 'mouseId'; 'taskType'; 'phase' },...
'ColumnWidth',{ 85 100 50 },...
'Data',{ blanks(0) blanks(0) blanks(0); blanks(0) blanks(0) blanks(0); blanks(0) blanks(0) blanks(0); blanks(0) blanks(0) blanks(0) },...
'Position',[1.4 17.6153846153846 48.6 13.9230769230769],...
'RowName',blanks(0),...
'CellSelectionCallback',@(hObject,eventdata)mtrainer_GUI_export('config_CellSelectionCallback',hObject,eventdata,guidata(hObject)),...
'UserData',[],...
'Tag','config',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'loadConfig';
h19 = uicontrol(...
'Parent',h17,...
'Units','characters',...
'Callback',@(hObject,eventdata)mtrainer_GUI_export('loadConfig_Callback',hObject,eventdata,guidata(hObject)),...
'CData',[],...
'ListboxTop',0,...
'Position',[51.8 29.7692307692308 16.4 1.76923076923077],...
'String','LOAD',...
'UserData',[],...
'Tag','loadConfig',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'configLoaded';
h20 = uicontrol(...
'Parent',h17,...
'Units','characters',...
'Enable','inactive',...
'Position',[51.8 27.4615384615385 21.2 1.76923076923077],...
'String','Config loaded ?',...
'Style','checkbox',...
'SelectionHighlight','off',...
'Tag','configLoaded',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
appdata = [];
appdata.lastValidTag = 'lickSensorAxes';
h21 = axes(...
'Parent',h1,...
'Units','characters',...
'Position',[5.8 14.8461538461538 74.2 12.4615384615385],...
'CameraPosition',[0.5 0.5 9.16025403784439],...
'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...
'Color',get(0,'defaultaxesColor'),...
'ColorOrder',get(0,'defaultaxesColorOrder'),...
'LooseInset',[23.218 6.19384615384616 16.967 4.22307692307692],...
'XColor',get(0,'defaultaxesXColor'),...
'YColor',get(0,'defaultaxesYColor'),...
'ZColor',get(0,'defaultaxesZColor'),...
'Tag','lickSensorAxes',...
'CreateFcn', {@local_CreateFcn, blanks(0), appdata} );
h22 = get(h21,'title');
set(h22,...
'Parent',h21,...
'Units','data',...
'FontUnits','points',...
'BackgroundColor','none',...
'Color',[0 0 0],...
'DisplayName',blanks(0),...
'EdgeColor','none',...
'EraseMode','normal',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
'FontWeight','normal',...
'HorizontalAlignment','center',...
'LineStyle','-',...
'LineWidth',0.5,...
'Margin',2,...
'Position',[0.5 1.04012345679012 1.00005459937205],...
'Rotation',0,...
'String',blanks(0),...
'Interpreter','tex',...
'VerticalAlignment','bottom',...
'ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey',blanks(0),...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag',blanks(0),...
'UserData',[],...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'IncludeRenderer','on',...
'Clipping','off');
h23 = get(h21,'xlabel');
set(h23,...
'Parent',h21,...
'Units','data',...
'FontUnits','points',...
'BackgroundColor','none',...
'Color',[0 0 0],...
'DisplayName',blanks(0),...
'EdgeColor','none',...
'EraseMode','normal',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
'FontWeight','normal',...
'HorizontalAlignment','center',...
'LineStyle','-',...
'LineWidth',0.5,...
'Margin',2,...
'Position',[0.497304582210243 -0.145061728395062 1.00005459937205],...
'Rotation',0,...
'String',blanks(0),...
'Interpreter','tex',...
'VerticalAlignment','cap',...
'ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey',blanks(0),...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag',blanks(0),...
'UserData',[],...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'IncludeRenderer','on',...
'Clipping','off');
h24 = get(h21,'ylabel');
set(h24,...
'Parent',h21,...
'Units','data',...
'FontUnits','points',...
'BackgroundColor','none',...
'Color',[0 0 0],...
'DisplayName',blanks(0),...
'EdgeColor','none',...
'EraseMode','normal',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
'FontWeight','normal',...
'HorizontalAlignment','center',...
'LineStyle','-',...
'LineWidth',0.5,...
'Margin',2,...
'Position',[-0.0768194070080863 0.490740740740741 1.00005459937205],...
'Rotation',90,...
'String',blanks(0),...
'Interpreter','tex',...
'VerticalAlignment','bottom',...
'ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey',blanks(0),...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag',blanks(0),...
'UserData',[],...
'Visible','on',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'IncludeRenderer','on',...
'Clipping','off');
h25 = get(h21,'zlabel');
set(h25,...
'Parent',h21,...
'Units','data',...
'FontUnits','points',...
'BackgroundColor','none',...
'Color',[0 0 0],...
'DisplayName',blanks(0),...
'EdgeColor','none',...
'EraseMode','normal',...
'DVIMode','auto',...
'FontAngle','normal',...
'FontName','Helvetica',...
'FontSize',10,...
'FontWeight','normal',...
'HorizontalAlignment','right',...
'LineStyle','-',...
'LineWidth',0.5,...
'Margin',2,...
'Position',[-0.0795148247978437 2.65740740740741 1.00005459937205],...
'Rotation',0,...
'String',blanks(0),...
'Interpreter','tex',...
'VerticalAlignment','middle',...
'ButtonDownFcn',[],...
'CreateFcn', {@local_CreateFcn, [], ''} ,...
'DeleteFcn',[],...
'BusyAction','queue',...
'HandleVisibility','off',...
'HelpTopicKey',blanks(0),...
'HitTest','on',...
'Interruptible','on',...
'SelectionHighlight','on',...
'Serializable','on',...
'Tag',blanks(0),...
'UserData',[],...
'Visible','off',...
'XLimInclude','on',...
'YLimInclude','on',...
'ZLimInclude','on',...
'CLimInclude','on',...
'ALimInclude','on',...
'IncludeRenderer','on',...
'Clipping','off');
hsingleton = h1;
% --- Set application data first then calling the CreateFcn.
function local_CreateFcn(hObject, eventdata, createfcn, appdata)
if ~isempty(appdata)
names = fieldnames(appdata);
for i=1:length(names)
name = char(names(i));
setappdata(hObject, name, getfield(appdata,name));
end
end
if ~isempty(createfcn)
if isa(createfcn,'function_handle')
createfcn(hObject, eventdata);
else
eval(createfcn);
end
end
% --- Handles default GUIDE GUI creation and callback dispatch
function varargout = gui_mainfcn(gui_State, varargin)
gui_StateFields = {'gui_Name'
'gui_Singleton'
'gui_OpeningFcn'
'gui_OutputFcn'
'gui_LayoutFcn'
'gui_Callback'};
gui_Mfile = '';
for i=1:length(gui_StateFields)
if ~isfield(gui_State, gui_StateFields{i})
error(message('MATLAB:guide:StateFieldNotFound', gui_StateFields{ i }, gui_Mfile));
elseif isequal(gui_StateFields{i}, 'gui_Name')
gui_Mfile = [gui_State.(gui_StateFields{i}), '.m'];
end
end
numargin = length(varargin);
if numargin == 0
% MTRAINER_GUI_EXPORT
% create the GUI only if we are not in the process of loading it
% already
gui_Create = true;
elseif local_isInvokeActiveXCallback(gui_State, varargin{:})
% MTRAINER_GUI_EXPORT(ACTIVEX,...)
vin{1} = gui_State.gui_Name;
vin{2} = [get(varargin{1}.Peer, 'Tag'), '_', varargin{end}];
vin{3} = varargin{1};
vin{4} = varargin{end-1};
vin{5} = guidata(varargin{1}.Peer);
feval(vin{:});
return;
elseif local_isInvokeHGCallback(gui_State, varargin{:})
% MTRAINER_GUI_EXPORT('CALLBACK',hObject,eventData,handles,...)
gui_Create = false;
else
% MTRAINER_GUI_EXPORT(...)
% create the GUI and hand varargin to the openingfcn
gui_Create = true;
end
if ~gui_Create
% In design time, we need to mark all components possibly created in
% the coming callback evaluation as non-serializable. This way, they
% will not be brought into GUIDE and not be saved in the figure file
% when running/saving the GUI from GUIDE.
designEval = false;
if (numargin>1 && ishghandle(varargin{2}))
fig = varargin{2};
while ~isempty(fig) && ~ishghandle(fig,'figure')
fig = get(fig,'parent');
end
designEval = isappdata(0,'CreatingGUIDEFigure') || isprop(fig,'__GUIDEFigure');
end
if designEval
beforeChildren = findall(fig);
end
% evaluate the callback now
varargin{1} = gui_State.gui_Callback;
if nargout
[varargout{1:nargout}] = feval(varargin{:});
else
feval(varargin{:});
end
% Set serializable of objects created in the above callback to off in
% design time. Need to check whether figure handle is still valid in
% case the figure is deleted during the callback dispatching.
if designEval && ishghandle(fig)
set(setdiff(findall(fig),beforeChildren), 'Serializable','off');
end
else
if gui_State.gui_Singleton
gui_SingletonOpt = 'reuse';
else
gui_SingletonOpt = 'new';
end
% Check user passing 'visible' P/V pair first so that its value can be
% used by oepnfig to prevent flickering
gui_Visible = 'auto';
gui_VisibleInput = '';
for index=1:2:length(varargin)
if length(varargin) == index || ~ischar(varargin{index})
break;
end
% Recognize 'visible' P/V pair
len1 = min(length('visible'),length(varargin{index}));
len2 = min(length('off'),length(varargin{index+1}));
if ischar(varargin{index+1}) && strncmpi(varargin{index},'visible',len1) && len2 > 1
if strncmpi(varargin{index+1},'off',len2)
gui_Visible = 'invisible';
gui_VisibleInput = 'off';
elseif strncmpi(varargin{index+1},'on',len2)
gui_Visible = 'visible';
gui_VisibleInput = 'on';
end
end
end
% Open fig file with stored settings. Note: This executes all component
% specific CreateFunctions with an empty HANDLES structure.
% Do feval on layout code in m-file if it exists
gui_Exported = ~isempty(gui_State.gui_LayoutFcn);
% this application data is used to indicate the running mode of a GUIDE
% GUI to distinguish it from the design mode of the GUI in GUIDE. it is
% only used by actxproxy at this time.
setappdata(0,genvarname(['OpenGuiWhenRunning_', gui_State.gui_Name]),1);
if gui_Exported
gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt);
% make figure invisible here so that the visibility of figure is
% consistent in OpeningFcn in the exported GUI case
if isempty(gui_VisibleInput)
gui_VisibleInput = get(gui_hFigure,'Visible');
end
set(gui_hFigure,'Visible','off')
% openfig (called by local_openfig below) does this for guis without
% the LayoutFcn. Be sure to do it here so guis show up on screen.
movegui(gui_hFigure,'onscreen');
else
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
% If the figure has InGUIInitialization it was not completely created
% on the last pass. Delete this handle and try again.
if isappdata(gui_hFigure, 'InGUIInitialization')
delete(gui_hFigure);
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt, gui_Visible);
end
end
if isappdata(0, genvarname(['OpenGuiWhenRunning_', gui_State.gui_Name]))
rmappdata(0,genvarname(['OpenGuiWhenRunning_', gui_State.gui_Name]));
end
% Set flag to indicate starting GUI initialization
setappdata(gui_hFigure,'InGUIInitialization',1);
% Fetch GUIDE Application options
gui_Options = getappdata(gui_hFigure,'GUIDEOptions');
% Singleton setting in the GUI M-file takes priority if different
gui_Options.singleton = gui_State.gui_Singleton;
if ~isappdata(gui_hFigure,'GUIOnScreen')
% Adjust background color
if gui_Options.syscolorfig
set(gui_hFigure,'Color', get(0,'DefaultUicontrolBackgroundColor'));
end
% Generate HANDLES structure and store with GUIDATA. If there is
% user set GUI data already, keep that also.
data = guidata(gui_hFigure);
handles = guihandles(gui_hFigure);
if ~isempty(handles)
if isempty(data)
data = handles;
else
names = fieldnames(handles);
for k=1:length(names)
data.(char(names(k)))=handles.(char(names(k)));
end
end
end
guidata(gui_hFigure, data);
end
% Apply input P/V pairs other than 'visible'
for index=1:2:length(varargin)
if length(varargin) == index || ~ischar(varargin{index})
break;
end
len1 = min(length('visible'),length(varargin{index}));
if ~strncmpi(varargin{index},'visible',len1)
try set(gui_hFigure, varargin{index}, varargin{index+1}), catch break, end
end
end
% If handle visibility is set to 'callback', turn it on until finished
% with OpeningFcn
gui_HandleVisibility = get(gui_hFigure,'HandleVisibility');
if strcmp(gui_HandleVisibility, 'callback')
set(gui_hFigure,'HandleVisibility', 'on');
end
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
if isscalar(gui_hFigure) && ishghandle(gui_hFigure)
% Handle the default callbacks of predefined toolbar tools in this
% GUI, if any
guidemfile('restoreToolbarToolPredefinedCallback',gui_hFigure);
% Update handle visibility
set(gui_hFigure,'HandleVisibility', gui_HandleVisibility);
% Call openfig again to pick up the saved visibility or apply the
% one passed in from the P/V pairs
if ~gui_Exported
gui_hFigure = local_openfig(gui_State.gui_Name, 'reuse',gui_Visible);
elseif ~isempty(gui_VisibleInput)
set(gui_hFigure,'Visible',gui_VisibleInput);
end
if strcmpi(get(gui_hFigure, 'Visible'), 'on')
figure(gui_hFigure);
if gui_Options.singleton
setappdata(gui_hFigure,'GUIOnScreen', 1);
end
end
% Done with GUI initialization
if isappdata(gui_hFigure,'InGUIInitialization')
rmappdata(gui_hFigure,'InGUIInitialization');
end
% If handle visibility is set to 'callback', turn it on until
% finished with OutputFcn
gui_HandleVisibility = get(gui_hFigure,'HandleVisibility');
if strcmp(gui_HandleVisibility, 'callback')
set(gui_hFigure,'HandleVisibility', 'on');
end
gui_Handles = guidata(gui_hFigure);
else
gui_Handles = [];
end
if nargout
[varargout{1:nargout}] = feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles);
else
feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles);
end
if isscalar(gui_hFigure) && ishghandle(gui_hFigure)
set(gui_hFigure,'HandleVisibility', gui_HandleVisibility);
end
end
function gui_hFigure = local_openfig(name, singleton, visible)
% openfig with three arguments was new from R13. Try to call that first, if
% failed, try the old openfig.
if nargin('openfig') == 2
% OPENFIG did not accept 3rd input argument until R13,
% toggle default figure visible to prevent the figure
% from showing up too soon.
gui_OldDefaultVisible = get(0,'defaultFigureVisible');
set(0,'defaultFigureVisible','off');
gui_hFigure = openfig(name, singleton);
set(0,'defaultFigureVisible',gui_OldDefaultVisible);
else
gui_hFigure = openfig(name, singleton, visible);
%workaround for CreateFcn not called to create ActiveX
if feature('HGUsingMATLABClasses')
peers=findobj(findall(allchild(gui_hFigure)),'type','uicontrol','style','text');
for i=1:length(peers)
if isappdata(peers(i),'Control')
actxproxy(peers(i));
end
end
end
end
function result = local_isInvokeActiveXCallback(gui_State, varargin)
try
result = ispc && iscom(varargin{1}) ...
&& isequal(varargin{1},gcbo);
catch
result = false;
end
function result = local_isInvokeHGCallback(gui_State, varargin)
try
fhandle = functions(gui_State.gui_Callback);
result = ~isempty(findstr(gui_State.gui_Name,fhandle.file)) || ...
(ischar(varargin{1}) ...
&& isequal(ishghandle(varargin{2}), 1) ...
&& (~isempty(strfind(varargin{1},[get(varargin{2}, 'Tag'), '_'])) || ...
~isempty(strfind(varargin{1}, '_CreateFcn'))) );
catch
result = false;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
daq_sessionInterfaceH45.m
|
.m
|
OCIA-master/behavior/daq/daq_sessionInterfaceH45.m
| 4,666 |
utf_8
|
4bfeda072efe6d1b8ef7c49d06067dcc
|
function [data, S, F, T, P] = daq_sessionInterfaceH45(dur, recordRate, condition, doPlot)
% s = daq.createSession('ni');
% s.Rate = 50;
% s.DurationInSeconds = 40;
% s.addAnalogInputChannel('Dev1','ai0', 'Voltage');
% s.Channels.InputType = 'SingleEnded';
% s.Channels.Range = [-10 10];
realTimePlot = 0;
recordChanNames = {'shutter'};
recordChanRanges = {1, 1, 1, 5, 5};
nChans = numel(recordChanNames);
recordChans = cell(nChans, 1);
daqreset;
fprintf('Connecting hardware...\n');
s = daq.createSession('nidaq');
s.Rate = recordRate;
for iChan = 1 : nChans;
recordChans{iChan} = s.addAnalogInputChannel('ExtraChannels', iChan, 'Voltage');
recordChans{iChan}.Name = recordChanNames{iChan};
recordChans{iChan}.Range = repmat(recordChanRanges{iChan}, 1, 2) .* [-1 1];
recordChans{iChan}.InputType = 'SingleEnded';
end;
% s.addAnalogInputChannel('ExtraChannels', 'ai0', 'Voltage'); % shutter
% s.addAnalogInputChannel('ExtraChannels', 'ai1', 'Voltage'); % laser power
% s.addAnalogInputChannel('ExtraChannels', 2, 'Voltage'); % motion
% s.addAnalogInputChannel('ExtraChannels', 'ai3', 'Voltage'); % microphone
% s.addAnalogInputChannel('ExtraChannels', 'ai4', 'Voltage'); % resonnance X position
% s.addAnalogInputChannel('ExtraChannels', 'ai5', 'Voltage');
% s.addAnalogInputChannel('ExtraChannels', 'ai6', 'Voltage');
% s.addAnalogInputChannel('ExtraChannels', 'ai7', 'Voltage');
% s.Channels.InputType = 'SingleEnded';
chanRange = [-5, 5];
% s.Channels.Range = chanRange;
fprintf('s1 ok.\n');
% s2 = daq.createSession(config.hardware.adaptorID);
% s2.addDigitalChannel(config.hardware.digitalOut_Device, config.hardware.digitalOut_PortLine, 'OutputOnly');
% fprintf('And s2 ok. Ready to go.\n');
s.DurationInSeconds = dur;
data = [];
if realTimePlot;
% 'Position', [150, 300, 950, 350],
h = figure('Name', 'Recording', 'NumberTitle', 'off', 'WindowStyle', 'docked');
plot(0, 0);
hold on;
ylim(chanRange);
xlim([0, s.DurationInSeconds]);
end;
s.addlistener('DataAvailable', @collectAndPlotData);
s.startForeground();
function collectAndPlotData(~, event)
data = [data (event.Data - bsxfun(@rdivide, event.Data, mean(event.Data)))'];
if realTimePlot;
figure(h);
t = 1 : size(data, 2);
plot(repmat(t ./ recordRate, 1, nChans), data(:, t)');
end;
end
if realTimePlot;
figure(h);
else
h = figure('Name', 'Recording', 'NumberTitle', 'off', 'WindowStyle', 'docked');
end;
colors = jet(nChans);
t = 1 : size(data, 2);
for iChan = 1 : nChans;
subplot(nChans, 1, iChan);
plot(t' ./ recordRate, data(iChan, t)', 'Color', colors(iChan, :));
ylim([min(data(iChan, :)) max(data(iChan, :))]);
ylabel(recordChanNames{iChan});
end;
N = 8;
% figure('Name', 'Spectrogram', 'NumberTitle', 'off', 'WindowStyle', 'docked');
% % spectrogram(data, 512, 480, 512, recordRate);
% spectrogram(data, 128 * N, 120 * N, 128 * N, recordRate);
% colorbar;
S = cell(nChans, 1);
F = cell(nChans, 1);
T = cell(nChans, 1);
P = cell(nChans, 1);
for iChan = 1 : nChans;
[S{iChan}, F{iChan}, T{iChan}, P{iChan}] = spectrogram(data(iChan, :), 128 * N, 120 * N, 128 * N, recordRate);
if ~doPlot; continue; end;
%% plotting
figure('Name', sprintf('Spectrogram_%s_%s', condition, recordChanNames{iChan}), ...
'NumberTitle', 'off', 'WindowStyle', 'docked');
realLogS = real(log(S{iChan}));
subplot(2, 1, 1);
imagesc(realLogS');
nFreqs = size(realLogS, 1);
nSamples = size(realLogS, 2);
maxFreq = recordRate * 0.5;
maxT = s.DurationInSeconds;
freqIDs = (0 : 1000 : round(maxFreq / 1000) * 1000) / 1000;
toShowFreqs = round(0 : nFreqs / (maxFreq / 1000) : nFreqs);
t = 0 : 1 : s.DurationInSeconds;
timeIndex = round(0 : nSamples / (maxT / 1) : nSamples);
set(gca, 'XTick', toShowFreqs, 'XTickLabel', freqIDs, 'YTick', timeIndex, 'YTickLabel', t);
xlabel('Frequencies [kHz]');
ylabel('Time [s]');
subplot(2, 1, 2);
freqDist = sum(realLogS, 2);
secDeriv = diff(freqDist, 2);
secDerivMinThresh = prctile(secDeriv, 2);
peakInd = find(secDeriv < secDerivMinThresh);
peakIndSingle = peakInd;
peakIndSingle(diff(peakIndSingle) < 15) = [];
plot(F{iChan}, freqDist);
hold on;
% scatter(F(peakIndSingle), freqDist(peakIndSingle) + 300, 'bx');
for iPeak = 1 : numel(peakIndSingle);
text(F{iChan}(peakIndSingle(iPeak)) + 100, freqDist(peakIndSingle(iPeak)) + 400, ...
sprintf('%d Hz', round(F{iChan}(peakIndSingle(iPeak)))), 'FontSize', 8);
end;
suptitle(strrep(sprintf('%s_%s', condition, recordChanNames{iChan}), '_', '\_'));
end;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
daq_sessionInterfaceH30.m
|
.m
|
OCIA-master/behavior/daq/daq_sessionInterfaceH30.m
| 6,252 |
utf_8
|
0ea24a3bcc0b8963af28024c82ae66b6
|
function [data, S, F, T, P] = daq_sessionInterfaceH30(dur, recordRate, condition, doPlot)
% s = daq.createSession('ni');
% s.Rate = 50;
% s.DurationInSeconds = 40;
% s.addAnalogInputChannel('Dev1','ai0', 'Voltage');
% s.Channels.InputType = 'SingleEnded';
% s.Channels.Range = [-10 10];
realTimePlot = 0;
% recordChanNames = {'shutter', 'breathing', 'microphone', 'laserPower', 'resXPos'};
% recordChanNames = {'lickSensor'};
% recordChanNames = {'lickSensor', 'microphone'};
recordChanNames = {'piezo', 'micr', 'yscan'};
% recordChanRanges = {1, 1, 1, 5, 5};
nChans = numel(recordChanNames);
recordChans = cell(nChans, 1);
daqreset;
fprintf('Connecting hardware...\n');
s = daq.createSession('ni');
s.Rate = recordRate;
% for iChan = 1 : nChans;
% recordChans{iChan} = s.addAnalogInputChannel('ExtraChannels', iChan, 'Voltage');
% % recordChans{iChan} = s.addAnalogInputChannel('BehaviorBox', iChan, 'Voltage');
% recordChans{iChan}.Name = recordChanNames{iChan};
% recordChans{iChan}.Range = repmat(recordChanRanges{iChan}, 1, 2) .* [-1 1];
% recordChans{iChan}.InputType = 'SingleEnded';
% end;
% s.addAnalogInputChannel('BehaviorBox', 'ai0', 'Voltage'); % piezo
% s.addAnalogInputChannel('BehaviorBox', 'ai1', 'Voltage'); % micr
% s.addAnalogInputChannel('BehaviorBox', 'ai2', 'Voltage'); % yscan
% s.addAnalogInputChannel('ExtraChannels', 'ai0', 'Voltage'); % shutter
% s.addAnalogInputChannel('ExtraChannels', 'ai1', 'Voltage'); % laser power
% s.addAnalogInputChannel('ExtraChannels', 2, 'Voltage'); % motion
% s.addAnalogInputChannel('ExtraChannels', 'ai3', 'Voltage'); % microphone
% s.addAnalogInputChannel('ExtraChannels', 'ai4', 'Voltage'); % resonnance X position
% s.addAnalogInputChannel('ExtraChannels', 'ai5', 'Voltage');
% s.addAnalogInputChannel('ExtraChannels', 'ai6', 'Voltage');
% s.addAnalogInputChannel('ExtraChannels', 'ai7', 'Voltage');
s.addAnalogOutputChannel('ExtraChannels', 'ao0', 'Voltage'); % imaging TTL gate
% s.Channels.InputType = 'SingleEnded';
chanRange = [-10, 10];
% s.Channels.Range = chanRange;
fprintf('Hardware connected.\n');
% s2 = daq.createSession(config.hardware.adaptorID);
% s2.addDigitalChannel(config.hardware.digitalOut_Device, config.hardware.digitalOut_PortLine, 'OutputOnly');
% fprintf('And s2 ok. Ready to go.\n');
s.DurationInSeconds = dur;
data = [];
if realTimePlot;
% 'Position', [150, 300, 950, 350],
h = figure('Name', 'Recording', 'NumberTitle', 'off', 'WindowStyle', 'docked');
plot(0, 0);
hold on;
ylim(chanRange);
xlim([0, s.DurationInSeconds]);
end;
s.addlistener('DataAvailable', @collectAndPlotData);
% gongMat = load('gong.mat');
% m = load('C:\Users\laurenczy\Desktop\cloudOfTonesParameters.mat');
% cloudOfTones = MakeCloudOfTonesSound(m.freqs * 0.5, m.uniqueCloudCenterIndexes, m.cloudDispersion, m.stims, m.toneDur, ...
% m.toneISI, m.stimDur, 1, m.sampFreq, 0, 0);
% s.startForeground();
s.startBackground();
% pause(1);
% sound(gongMat.y * 0.3);
% sound(repmat(cloudOfTones{2}, 1, 10), m.sampFreq);
% pause(0.5);
% sound(cloudOfTones{2}, m.sampFreq);
% pause(0.5);
% sound(cloudOfTones{3}, m.sampFreq);
% pause(0.5);
% sound(cloudOfTones{4}, m.sampFreq);
% pause(0.5);
% sound(cloudOfTones{5}, m.sampFreq);
s.wait();
function collectAndPlotData(~, event)
currentData = event.Data;
if isempty(data);
currentData(fix(0.001 * recordRate) : end, :) = NaN;
end;
data = [data (currentData - bsxfun(@rdivide, currentData, mean(currentData)))'];
if realTimePlot;
figure(h);
t = 1 : size(data, 2);
plot(repmat(t ./ recordRate, 1, nChans), data(:, t)');
end;
end
if realTimePlot;
figure(h);
else
h = figure('Name', 'Recording', 'NumberTitle', 'off', 'WindowStyle', 'docked');
end;
colors = lines(nChans);
% colors = jet(nChans);
t = 1 : size(data, 2);
for iChan = 1 : nChans;
subplot(nChans, 1, iChan);
dataForChan = data(iChan, :);
% normData = linScale(dataForChan - nanmean(dataForChan), -1, 1);
normData = dataForChan - nanmean(dataForChan);
% normData = dataForChan;
plot(t' ./ recordRate, normData', 'Color', colors(iChan, :));
% minData = nanmin(normData);
% maxData = nanmax(normData);
% ylim([min(minData, -1) max(maxData, 1)]);
ylabel(recordChanNames{iChan});
end;
N = 8;
% figure('Name', 'Spectrogram', 'NumberTitle', 'off', 'WindowStyle', 'docked');
% % spectrogram(data, 512, 480, 512, recordRate);
% spectrogram(data, 128 * N, 120 * N, 128 * N, recordRate);
% colorbar;
S = cell(nChans, 1);
F = cell(nChans, 1);
T = cell(nChans, 1);
P = cell(nChans, 1);
for iChan = 1 : nChans;
[S{iChan}, F{iChan}, T{iChan}, P{iChan}] = spectrogram(data(iChan, :), 128 * N, 120 * N, 128 * N, recordRate);
if ~doPlot; continue; end;
%% plotting
figure('Name', sprintf('Spectrogram_%s_%s', condition, recordChanNames{iChan}), ...
'NumberTitle', 'off', 'WindowStyle', 'docked');
realLogS = real(log(S{iChan}));
subplot(2, 1, 1);
imagesc(realLogS');
nFreqs = size(realLogS, 1);
nSamples = size(realLogS, 2);
maxFreq = recordRate * 0.5;
maxT = s.DurationInSeconds;
freqIDs = (0 : 1000 : round(maxFreq / 1000) * 1000) / 1000;
toShowFreqs = round(0 : nFreqs / (maxFreq / 1000) : nFreqs);
t = 0 : 1 : s.DurationInSeconds;
timeIndex = round(0 : nSamples / (maxT / 1) : nSamples);
set(gca, 'XTick', toShowFreqs, 'XTickLabel', freqIDs, 'YTick', timeIndex, 'YTickLabel', t);
xlabel('Frequencies [kHz]');
ylabel('Time [s]');
subplot(2, 1, 2);
freqDist = nansum(realLogS, 2);
secDeriv = diff(freqDist, 2);
secDerivMinThresh = prctile(secDeriv, 2);
peakInd = find(secDeriv < secDerivMinThresh);
peakIndSingle = peakInd;
peakIndSingle(diff(peakIndSingle) < 15) = [];
plot(F{iChan}, freqDist);
hold on;
% scatter(F(peakIndSingle), freqDist(peakIndSingle) + 300, 'bx');
for iPeak = 1 : numel(peakIndSingle);
text(F{iChan}(peakIndSingle(iPeak)) + 100, freqDist(peakIndSingle(iPeak)) + 400, ...
sprintf('%d Hz', round(F{iChan}(peakIndSingle(iPeak)))), 'FontSize', 8);
end;
suptitle(strrep(sprintf('%s_%s', condition, recordChanNames{iChan}), '_', '\_'));
end;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
daq_sessionInterface.m
|
.m
|
OCIA-master/behavior/daq/daq_sessionInterface.m
| 1,475 |
utf_8
|
7db7e719bbb05c2ed3fc8276d2d00939
|
function daq_sessionInterface(config)
% s = daq.createSession('ni');
% s.Rate = 50;
% s.DurationInSeconds = 40;
% s.addAnalogInputChannel('Dev1','ai0', 'Voltage');
% s.Channels.InputType = 'SingleEnded';
% s.Channels.Range = [-10 10];
% daqreset;
fprintf('Connecting hardware...\n');
s = daq.createSession(config.hardware.adaptorID);
recordRate = config.hardware.analogIn_SampleRate;
recordRate = 1000;
s.Rate = recordRate;
s.addAnalogInputChannel(config.hardware.analogIn_Device, ...
config.hardware.analogIn_Channel, 'Voltage');
s.Channels.InputType = config.hardware.analogIn_InputType;
s.Channels.Range = config.hardware.analogIn_Range;
fprintf('s1 ok.\n');
% s2 = daq.createSession(config.hardware.adaptorID);
% s2.addDigitalChannel(config.hardware.digitalOut_Device, config.hardware.digitalOut_PortLine, 'OutputOnly');
% fprintf('And s2 ok. Ready to go.\n');
s.DurationInSeconds = 10;
global data;
data = [];
global h;
% 'Position', [150, 300, 950, 350],
h = figure('Name', 'ContinuousRecording', 'NumberTitle', 'off', ...
'MenuBar', 'none', 'ToolBar', 'none', 'WindowStyle', 'docked');
plot(0, 0);
hold on;
xlim([-0.3, s.DurationInSeconds * s.Rate * 1.1]);
% ylim([-0.3 0.3]);
lh = s.addlistener('DataAvailable', @collectAndPlotData);
s.startForeground();
function collectAndPlotData(~, event)
% fprintf('#collectData\n');
data = [data (event.Data - mean(event.Data))'];
t = 1 : numel(data(data ~= 0));
plot(t, data(t));
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
daq_ni_usb6008.m
|
.m
|
OCIA-master/behavior/daq/daq_ni_usb6008.m
| 2,637 |
utf_8
|
8f4ab52789a17dc8daf2ef4e7fcd36ee
|
function daq_ni_usb6008
ai=analoginput('nidaq','Dev1');
ao=analogoutput('nidaq','Dev1');
dio=digitalio('nidaq','Dev1');
disp('done create device')
testMode = 'analogIn'; % analogOut or analogIn or digital
switch lower(testMode)
case 'analogin'
%% Collect analog input
% analog input channel
addchannel(ai, 0);
disp('done add channel')
% get available properties
% get(ai);
% set some properties
set(ai,'InputType','SingleEnded')
% sample rate and recording duration
ai.SampleRate = 10000;
ai.SamplesPerTrigger = 50000; % can be Inf for continuous acquisition
disp('Press any key to start')
pause
% start acquisition
start(ai);
% get data
data = getdata(ai);
plot(data)
stop(ai), delete(ai)
case 'analogout'
%% Write analog output
% analog output channel
addchannel(ao, 1)
% get available properties
get(ao);
% sample rate and recording duration
samplingInterval = 0.005; % in s
tMax = 100; n = tMax ./samplingInterval;
a = [0 1]; a = repmat(a,1,n./2);
startDelay = 0.5; % in s
% have to send each sample separately (USB-6008 does not support
% putdata / start combination)
% use a timer object
% create the timer
t = timer('period',samplingInterval,'startDelay',startDelay,...
'TasksToExecute',numel(a),'ExecutionMode','fixedRate');
% callback functions
t.StartFcn = @timerStartFcn;
t.StopFcn = @timerStopFcn;
t.TimerFcn = {@timerFcn,a,ao};
% start timer
start(t)
case 'digital'
%% Digital IO
% digital io
digital_out = addline(dio,0:7,'out');
digital_in = addline(dio,8:11,'in');
% output loop
value = [0 0 0 0 0 0 0 0];
for n = 1:50
if value(1) == 0 % only change line 1
value(1) = 1;
else
value(1) = 0;
end
% change digital out
putvalue(digital_out,value)
% get digital in
io1 = getvalue(dio.Line(9));
fprintf('\nDigital in is %1.0f\n',io1)
pause(0.5)
end
% switch off
value = [1 0 0 0 0 0 0 0];
putvalue(digital_out,value)
end
function timerFcn(t,event,data,ao)
putsample(ao,data(t.TasksExecuted))
function timerStartFcn(t,event)
disp('Timer started')
function timerStopFcn(t,event)
disp('Timer stopped')
delete(t)
|
github
|
HelmchenLabSoftware/OCIA-master
|
waitForExternalTrigger_H30.m
|
.m
|
OCIA-master/behavior/daq/waitForExternalTrigger_H30.m
| 1,558 |
utf_8
|
080163444a2aff0f5793c00952a3c729
|
function status = waitForExternalTrigger_H30(timeout)
% input argument: timeout in seconds
% RETURNS:
% - status = 0 if waiting timed out
% - status = 1 if trigger was successfully received
% - status = 2 if could not connect to the nidaq analog input (or other error)
% created on 2014-02-01 by Balazs Laurenczy ([email protected])
status = 0;
try
s = daq.createSession('ni');
s.Rate = 1000;
s.addAnalogInputChannel('ScanOutputCard', 'ai0', 'Voltage');
s.Channels.Range = [-1 1];
s.Channels.InputType = 'SingleEnded';
s.DurationInSeconds = timeout;
s.NotifyWhenDataAvailableExceeds = 50;
s.addlistener('DataAvailable', @checkTriggerInData);
catch err; %#ok<NASGU>
warning('externalTrigger_nidaq:ConnectError', 'Could not connect to nidaq analog input!');
status = 2;
return;
end;
thresh = NaN;
status = 0;
function checkTriggerInData(~, event)
if isnan(thresh);
thresh = max(max(event.Data) * 5, 0.15);
% o('Defined thresh: %6.4f, max(data): %6.4f.', thresh, max(event.Data), 0, 0);
end;
% o('Collected data, thresh: %6.4f, max(data): %6.4f.', thresh, max(event.Data), 0, 0);
timePointAboveThresh = find(event.Data > thresh, 1);
if ~isempty(timePointAboveThresh);
% firstTimePointAboveThresh = timePointAboveThresh(1);
% o('Found trigger, firstTimePointAboveThresh: %d/%d.', firstTimePointAboveThresh, numel(event.Data), 0, 0);
status = 1;
s.stop();
end;
end
try
s.startForeground();
catch err; %#ok<NASGU>
end;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
externalTrigger_nidaq.m
|
.m
|
OCIA-master/behavior/daq/externalTrigger_nidaq.m
| 1,910 |
utf_8
|
52a0ca32193ecd4ba0079915dae9e268
|
function status = waitForExternalTrigger_H30(timeout)
% input argument: timeout in seconds
% RETURNS:
% - status = 0 if waiting timed out
% - status = 1 if trigger was successfully received
% - status = 2 if could not connect to the nidaq analog input
% this file written by Henry Luetcke ([email protected])
% modified on 2013-03-20 by Balazs Laurenczy ([email protected])
% modified more on 2013-12-19 by Balazs Laurenczy ([email protected])
status = 0;
% Create an analog input object using Board ID "Dev1".
try
s = daq.createSession('ni');
s.Rate = 2000000;
s.addAnalogInputChannel('ExtraChannels', 'ai0', 'Voltage');
s.Channels.Range = [-1 1];
s.Channels.InputType = 'SingleEnded';
s.DurationInSeconds = 3;
lh = s.addlistener('DataAvailable', @checkTriggerInData);
catch err; %#ok<NASGU>
warning('externalTrigger_nidaq:ConnectError', 'Could not connect to nidaq analog input!');
status = 2;
return;
end;
thresh = NaN;
function checkTriggerInData(~, event)
if isnan(thresh);
thresh = max(event.Data) * 5;
end;
o('Collected data, thresh: %6.4f, max(data): %6.4f.', thresh, max(event.Data), 0, 0);
timePointAboveThresh = find(event.Data > thresh);
if ~isempty(timePointAboveThresh);
firstTimePointAboveThresh = timePointAboveThresh(1);
o('Found trigger, firstTimePointAboveThresh: %d/%d.', firstTimePointAboveThresh, numel(event.Data), 0, 0);
end;
end
% set(ai,'TriggerType','HwAnalog');
% set(s.Channels, 'TriggerType', 'HwDigital');
% set(s.Channels, 'TriggerCondition', 'PositiveEdge'); % for HelioScan
% set(s.Channels, 'HwDigitalTriggerSource', 'PFI0');
s.startForeground();
% % Wait up to timeout seconds for the acquisition to complete
% try
% wait(ai, timeout);
% data = getdata(ai);
% status = 1;
% catch
% status = 0;
% end
%
% % Clean up
% stop(ai);
% delete(ai);
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
analyseBehavPerf.m
|
.m
|
OCIA-master/behavior/perfAnalysis/analyseBehavPerf.m
| 5,182 |
utf_8
|
6051e144aa04de4837f45fd6cc287d3c
|
%% Function - analyseBehavPerf
function counts = analyseBehavPerf(respTypes, binWidthProp, binWidthCum, doBinCout)
dbgLvl = 0;
o(' #analyzeBehavPerf(): nTrials: %d.', size(respTypes, 2), 1, dbgLvl);
% transform the response types into sums
respTypeToRespCountTic = tic; % for performance timing purposes
respCount = zeros(5, 1);
respTypes(isnan(respTypes)) = 6;
for i = 1:5; respCount(i) = sum(respTypes == i); end;
o(' #analyzeBehavPerf(): respTypeToRespCountTic: %.2f ms...', toc(respTypeToRespCountTic) * 1000, 2, dbgLvl);
singleCountsTic = tic; % for performance timing purposes
counts = struct();
% responseCount columns: correct detect, correct reject, false alarm, miss
counts.TOT = sum(respCount);
counts.INVALID = respCount(5);
counts.INVALIDP = counts.INVALID / counts.TOT * 100; % INVALID response (kind of false alarm)
counts.VTOT = counts.TOT - counts.INVALID;
counts.VTOTP = counts.VTOT / counts.TOT * 100; % "valid" responses (non-INVALID)
% all response types with their percent
counts.TGO = respCount(1);
counts.NTNGO = respCount(2);
counts.NTGO = respCount(3);
counts.TNGO = respCount(4);
% targets and targets in percent
counts.T = counts.TGO + counts.TNGO;
counts.TP = counts.T / counts.VTOT * 100;
% non-targets and non-targets in percent
counts.NT = counts.NTNGO + counts.NTGO;
counts.NTP = counts.NT / counts.VTOT * 100;
% GOs and GOs in percent
counts.GO = counts.TGO + counts.NTGO;
counts.GOP = counts.GO / counts.VTOT * 100;
% NO-GOs and NO-GO in percent
counts.NGO = counts.TNGO + counts.NTNGO;
counts.NGOP = counts.NGO / counts.VTOT * 100;
% corrects and corrects in percent
counts.C = counts.TGO + counts.NTNGO;
counts.CP = counts.C / counts.VTOT * 100;
% falses and falses in percent
counts.F = counts.TNGO + counts.NTGO;
counts.FP = counts.F / counts.VTOT * 100;
% correctness index taking into acount falses
counts.CiP = (counts.CP - counts.FP + 100) / 2 ;
counts.DPRIME = dprime(counts.TGO ./ counts.T, ...
counts.NTGO ./ counts.NT, counts.T, counts.NT);
% reponse type percents
counts.TGOP = counts.TGO / counts.T * 100;
counts.NTNGOP = counts.NTNGO / counts.NT * 100;
counts.NTGOP = counts.NTGO / counts.NT * 100;
counts.TNGOP = counts.TNGO / counts.T * 100;
o(' #analyzeBehavPerf(): singleCountsTic: %.2f ms...', toc(singleCountsTic) * 1000, 2, dbgLvl);
if ~doBinCout; return; end;
binCountsTic = tic; % for performance timing purposes
% evolution of indexes over time
counts.TGOs = zeros(1, counts.TOT);
counts.NTNGOs = zeros(1, counts.TOT);
counts.NTGOs = zeros(1, counts.TOT);
counts.TNGOs = zeros(1, counts.TOT);
counts.INVALIDs = zeros(1, counts.TOT);
counts.DPRIMEs = zeros(1, counts.TOT);
if isempty(binWidthCum);
useProp = 1;
binWidth = max(fix(counts.TOT * binWidthProp), 1);
else
useProp = 0;
binWidth = binWidthCum;
end;
if isempty(binWidth);
error('mtrainerAnalyzer_getCounts:NoBinWidth', 'No bin width specified');
end;
for i = 1 : counts.TOT;
if binWidth ~= -1;
if useProp;
iStart = max(i - binWidth, 1);
iEnd = min(i + binWidth, counts.TOT);
else
iStart = ceil(max(i - 0.5 * (binWidth - 1), 1));
iEnd = floor(min(i + 0.5 * (binWidth - 1), counts.TOT));
end;
T = sum(ismember(respTypes(iStart : iEnd), [1 4]));
NT = sum(ismember(respTypes(iStart : iEnd), [2 3]));
counts.TGOs(i) = (sum(respTypes(iStart : iEnd) == 1) / T) * 100;
counts.NTNGOs(i) = (sum(respTypes(iStart : iEnd) == 2) / NT) * 100;
counts.NTGOs(i) = (sum(respTypes(iStart : iEnd) == 3) / NT) * 100;
counts.TNGOs(i) = (sum(respTypes(iStart : iEnd) == 4) / T) * 100;
counts.INVALIDs(i) = (sum(respTypes(iStart : iEnd) == 5) / (iEnd - iStart)) * 100;
countsForBin = analyseBehavPerf(respTypes(iStart : iEnd), binWidthProp, binWidthCum, 0);
counts.DPRIMEs(i) = dprime(countsForBin.TGO ./ countsForBin.T, ...
countsForBin.NTGO ./ countsForBin.NT, countsForBin.T, countsForBin.NT);
else
counts.TGOs(i) = sum(respTypes(1 : i) == 1) / i * 100;
counts.NTNGOs(i) = sum(respTypes(1 : i) == 2) / i * 100;
counts.NTGOs(i) = sum(respTypes(1 : i) == 3) / i * 100;
counts.TNGOs(i) = sum(respTypes(1 : i) == 4) / i * 100;
counts.INVALIDs(i) = sum(respTypes(1 : i) == 5) / i * 100;
countsForBin = analyseBehavPerf(respTypes(1 : i), binWidthProp, binWidthCum, 0);
counts.DPRIMEs(i) = dprime(countsForBin.TGO ./ countsForBin.T, ...
countsForBin.NTGO ./ countsForBin.NT, countsForBin.T, countsForBin.NT);
end;
end;
counts.RESPs = (counts.TGOs + counts.NTGOs) / 2;
o(' #analyzeBehavPerf(): binCountsTic: %.2f ms...', toc(binCountsTic) * 1000, 2, dbgLvl);
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainerAnalyser_pooledPerformance_bins.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainerAnalyser_pooledPerformance_bins.m
| 6,607 |
utf_8
|
542605197d955dd0ad8e813ec2c311a0
|
%% Function - mtrainerAnalyser_pooledPerformance
function figHand = mtrainerAnalyser_pooledPerformance_bins(outAll, titleStr, binWidth)
% dbgLevel = 2;
nTrials = length(outAll.respTypes);
% calculate number of bins, make sure that there is at least one
nBins = max(round(nTrials / binWidth), 1);
figName = titleStr;
figName = strrep(figName, '\_', '_');
figName = strrep(figName, '''', '');
figName = strrep(figName, ' ', '');
figHand = figure('NumberTitle', 'off', 'WindowStyle', 'docked', 'Name', figName);
hitRate = zeros(1, nBins); % correct detection, CR+, hitRate
% hitRateError = zeros(1, nBins); % correct detection, CR+, hitRate errors
falsePosRate = zeros(1, nBins); % false alarm, CR-, false positive
% falsePosRateError = zeros(1, nBins); % false alarm, CR-, false positive errors
dprimes = zeros(1, nBins); % d prime
% dprimesError = zeros(1, nBins); % d prime errors
useSEM = 1;
prevNFreqs = 0;
prevNTones = 0;
dprimeMaxVal = 3.5;
dprimeMinVal = -2;
changeOfFreqOrToneNum = zeros(1, nBins);
for iBin = 1 : nBins;
iStart = (iBin - 1) * binWidth + 1; % for binWidth = 10: 1, 11, 21, etc.
iEnd = min(iBin * binWidth, nTrials); % for binWidth = 10: 10, 20, 30, etc.
countsForBin = mtrainerAnalyzer_getCounts(outAll.respTypes(iStart : iEnd));
% extract the current session's number of frequency and number of tones
nFreqs = outAll.nFreqs(iStart : iEnd);
nTones = outAll.nTones(iStart : iEnd);
if ~numel(nFreqs); continue; end;
nFreqs = nFreqs(1);
nTones = nTones(1);
% skip basic sessions
% if nFreqs == 1 && nTones == 1;
% hitRate(iBin) = NaN;
% falsePosRate(iBin) = NaN;
% dprimes(iBin) = NaN;
% continue;
% end;
% if there is a change in the number of frequencies or tones, mark it
if prevNFreqs ~= 0 && (nFreqs ~= prevNFreqs || nTones ~= prevNTones);
changeOfFreqOrToneNum(iBin) = iBin - 1;
end;
% store for next iteration
prevNFreqs = nFreqs;
prevNTones = nTones;
hitRate(iBin) = 100 * countsForBin.TGO / countsForBin.T;
falsePosRate(iBin) = 100 * countsForBin.NTGO / countsForBin.NT;
if isnan(countsForBin.DPRIME) || isinf(countsForBin.DPRIME);
countsForBin.DPRIME = 0;
end;
% restrict the dprime value between +dprimeMaxVal and -dprimeMaxVal
countsForBin.DPRIME = min(dprimeMaxVal, countsForBin.DPRIME);
countsForBin.DPRIME = max(-dprimeMaxVal, countsForBin.DPRIME);
dprimes(iBin) = countsForBin.DPRIME;
end;
TGOsHand = plot(1 : nBins, hitRate, '-sg', 'MarkerFaceColor', 'green');
% TGOsErrHand = errorbar(1 : nBins, hitRate, hitRateError, '-sg', 'MarkerFaceColor', 'green');
% removeErrorBarEnds(TGOsErrHand);
hold all;
hitRateAxes = gca;
NTNGOsHand = plot((1 : nBins) + 0.15, falsePosRate, '-sr', 'MarkerFaceColor', 'red');
% NTNGOsErrHand = errorbar((1 : nBins) + 0.15, falsePosRate, falsePosRateError, '-sr', 'MarkerFaceColor', 'red');
% removeErrorBarEnds(NTNGOsErrHand);
set(hitRateAxes, 'ylim', [0 110], 'YTick', 0 : 10 : 110, 'YTickLabel', 0 : 10 : 110);
if useSEM;
% ylabel('% of Trials \pm SEM'); %%#ok<UNRCH>
ylabel('% of trials'); %%#ok<UNRCH>
else
% ylabel('% of Trials \pm SD'); %#ok<UNRCH>
ylabel('% of trials'); %#ok<UNRCH>
end;
vertLineHandles = zeros(1, sum(changeOfFreqOrToneNum > 0));
vertLineTextHandles = zeros(2, sum(changeOfFreqOrToneNum > 0));
iLineHandle = 1;
for iChange = 1 : numel(changeOfFreqOrToneNum);
if ~changeOfFreqOrToneNum(iChange); continue; end;
changeX = changeOfFreqOrToneNum(iChange) - 0.5;
iBin = changeOfFreqOrToneNum(iChange);
iStart = (iBin - 1) * binWidth + 1; % for binWidth = 10: 1, 11, 21, etc.
iEnd = min(iBin * binWidth, nTrials); % for binWidth = 10: 10, 20, 30, etc.
nFreqs1 = outAll.nFreqs(iStart : iEnd);
nFreqs1 = nFreqs1(1);
iBin = changeOfFreqOrToneNum(iChange) + 1;
iStart = (iBin - 1) * binWidth + 1; % for binWidth = 10: 1, 11, 21, etc.
iEnd = min(iBin * binWidth, nTrials); % for binWidth = 10: 10, 20, 30, etc.
nFreqs2 = outAll.nFreqs(iStart : iEnd);
nFreqs2 = nFreqs2(1);
if mod(iChange, 2) == 0;
changeY = 9;
else
changeY = 12;
end;
vertLineTextHandles(1, iLineHandle) = text(changeX, changeY, ...
sprintf('%d freq \\leftarrow ', nFreqs1), 'HorizontalAlignment', 'right');
vertLineTextHandles(2, iLineHandle) = text(changeX, changeY, sprintf(' \\rightarrow %d freq', nFreqs2));
vertLineHandles(iLineHandle) = line([changeX changeX], [0 100], ...
'LineStyle', ':', 'Color', 'black');
iLineHandle = iLineHandle + 1;
end;
xlimits = [0 nBins * 1.05];
xlim(xlimits);
set(hitRateAxes, 'XTick', [], 'XTickLabel', []);
xTickAxes = axes('Position', get(gca, 'Position'), ...
'YAxisLocation', 'right', 'XAxisLocation', 'bottom', 'Color', 'none');
step = nBins / (nTrials / 500);
set(xTickAxes, 'xlim', xlimits, ...
'XTick', 1 : step : (nBins + 1), 'XTickLabel', 0 : 500 : ((nBins + 1) * binWidth));
set(xTickAxes, 'YTick', [], 'YTickLabel', []);
xlabel('Trials');
dprimeAxes = axes('Position', get(gca, 'Position'), ...
'YAxisLocation', 'right', 'XAxisLocation', 'top', 'Color', 'none');
hold all;
dprimesHand = plot((1 : nBins) + 0.3, dprimes, '-sb', 'MarkerFaceColor', 'blue');
% dprimesErrHand = errorbar((1 : nBins) + 0.3, dprimes, dprimesError, '-sb', 'MarkerFaceColor', 'blue');
% removeErrorBarEnds(dprimesErrHand);
set(dprimeAxes, 'ylim', [dprimeMinVal dprimeMaxVal], 'YTick', dprimeMinVal : 0.5 : dprimeMaxVal, ...
'YTickLabel', dprimeMinVal : 0.5 : dprimeMaxVal);
set(dprimeAxes, 'XTick', [], 'XTickLabel', []);
xlim(xlimits);
if useSEM;
% ylabel('d'' value \pm SEM'); %%#ok<UNRCH>
ylabel('d'' value'); %%#ok<UNRCH>
else
% ylabel('d'' value \pm SD'); %#ok<UNRCH>
ylabel('d'' value'); %#ok<UNRCH>
end;
% legend([TGOsErrHand, NTNGOsErrHand, dprimesErrHand], {'HitRate', 'FalsePos', 'd'''}, ...
% 'Location', 'NorthWest');
legend([TGOsHand, NTNGOsHand, dprimesHand], {'HitRate', 'FalsePos', 'd'''}, ...
'Location', 'NorthWest');
% title(sprintf('%s \\fontsize{10} [Total number of trials = %.0f, binWidth = %.0f]', ...
% titleStr, nTrials, binWidth));
title(titleStr);
hold off;
makePrettyFigure(figHand);
set(xTickAxes, 'FontSize', 9);
for iLineHandle = 1 : numel(vertLineHandles);
set(vertLineHandles(iLineHandle), 'LineWidth', 0.5);
set(vertLineTextHandles(1, iLineHandle), 'FontSize', 10);
set(vertLineTextHandles(2, iLineHandle), 'FontSize', 10);
end;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainer.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainer.m
| 16,753 |
utf_8
|
f5cf1c7c0cf86007548ef75917035e5c
|
function mtrainer()
% main function for mtrainer experiment suite
% all times are in s!
% written by Henry Luetcke ([email protected])
% 2013-05-07
% modified by Balazs Laurenczy ([email protected])
% 2013-05-15
% modified by Balazs Laurenczy ([email protected])
% 2013-08-08
doEmptyWater = 0;
% doEmptyWater = 1;
automode = 5; % if > 0, sets the number of seconds to wait before a new run of mtrainer
lickThresh = 0.13;
% lickThresh = NaN;
unsavedOut = struct();
% mouseId = 'testing'; taskType = 'freqDiscrimination'; phase = 'C';
% mouseId = '130801_01'; taskType = 'freqDiscrimination'; phase = 'F';
mouseId = '130801_03'; taskType = 'freqDiscrimination'; phase = 'F';
% mouseId = '130408_02'; taskType = 'freqDiscrimination'; phase = 'D';
% mouseId = '130416_01'; taskType = 'oddballDiscrimination'; phase = 'E';
% mouseId = '130425_01'; taskType = 'freqDiscrimination'; phase = 'B';
% mouseId = '130425_02'; taskType = 'oddballDiscrimination'; phase = 'C';
% mouseId = '130528_01'; taskType = 'oddballDiscrimination'; phase = 'B';
% mouseId = '130528_02'; taskType = 'oddballDiscrimination'; phase = 'B';
basePath = 'P:\matlab\daq\mtrainer\configs\';
configMat = load([basePath taskType filesep taskType '_phase' phase '.mat']);
config = configMat.config;
unsavedOut.mouseId = mouseId;
unsavedOut.taskType = taskType;
unsavedOut.phase = phase;
unsavedOut.basePath = basePath;
unsavedOut.config = config;
%% Setup - stimuli and trials
fprintf('Setup stimuli and trials... ');
% set up stimulus vector
stims = [];
for iFreq = 1 : numel(config.tone.freqs)
stimForFreq = repmat(iFreq, 1, round(config.tone.stimProba(iFreq) * config.training.nTrials));
stims = [stims, stimForFreq]; %#ok<AGROW>
end
stims = stims(randperm(numel(stims)));
clear stim;
% set up oddball vector by altering stims with a certain probability
odds = stims;
oddPos = zeros(size(odds));
uniqueStims = unique(stims);
isOdd = rand(1, numel(stims)) < config.tone.oddProba;
uniqueOddPos = config.tone.nTones - 1 : config.tone.nTones; % last 2 tones can be odd
for iStim = 1 : numel(isOdd);
if isOdd(iStim);
otherStims = uniqueStims(uniqueStims ~= stims(iStim));
otherStims = otherStims(randperm(numel(otherStims)));
mixedOddPos = uniqueOddPos(randperm(numel(uniqueOddPos)));
odds(iStim) = otherStims(1);
oddPos(iStim) = mixedOddPos(1);
end;
end;
% set up tone array
toneArray = MakePureMultiToneOddballArray(config.tone.freqs, stims, odds, oddPos, ...
config.tone.nTones, config.tone.toneDur, config.tone.ISI, config.tone.samplingFreq);
unsavedOut.stims = stims;
unsavedOut.odds = odds;
unsavedOut.oddPos = oddPos;
unsavedOut.isOdd = isOdd;
fprintf('done.\n');
%% Setup - hardware
% define globals
global recordedValues;
% analog input
daqreset;
fprintf('Connecting hardware...\n');
s1 = daq.createSession(config.hardware.adaptorID);
recordRate = config.hardware.analogIn_SampleRate;
% recordRate = 700;
s1.Rate = recordRate;
s1.addAnalogInputChannel(config.hardware.analogIn_Device, ...
config.hardware.analogIn_Channel, 'Voltage');
s1.Channels(1).InputType = config.hardware.analogIn_InputType;
s1.Channels(1).Range = config.hardware.analogIn_Range;
fprintf('s1 ok.\n');
s2 = daq.createSession(config.hardware.adaptorID);
s2.addDigitalChannel(config.hardware.digitalOut_Device, config.hardware.digitalOut_PortLine, 'OutputOnly');
fprintf('And s2 ok. Ready to go.\n');
if isnan(lickThresh);
% baseline measurement
fprintf('Testing analog input for licking threshold (baseline)... ');
recordDuration = 2;
s1.DurationInSeconds = recordDuration;
baseline = s1.startForeground; % this will block the command line
meanData = mean(baseline);
stdData = std(baseline);
lickThresh = 2.8 * stdData;
fprintf('done.\n')
pause(1);
% lick measurement
fprintf('Testing analog input for licking threshold (licking)... ');
s1.DurationInSeconds = recordDuration;
lick = s1.startForeground; % this will block the command line
fprintf('done.\n2SD: %1.2f, lick threshold: %1.2f\n', 2 * stdData, lickThresh);
% plotting
figure('Name', 'LickingThreshold', 'Position', [150, 300, 950, 350], 'NumberTitle', 'off' ...
... % , 'MenuBar', 'none', 'ToolBar', 'none');
);
plot((1:numel(baseline)) / recordRate, baseline - meanData, 'b');
hold on;
plot((1:numel(lick)) / recordRate, lick - meanData, 'r');
line([0, recordDuration], [lickThresh, lickThresh], 'Color', 'green');
line([0, recordDuration], [2 * stdData, 2 * stdData], 'Color', 'cyan');
line([0, recordDuration], [- 2 * stdData, - 2 * stdData], 'Color', 'cyan');
legend({'baseline', 'licking', 'lickTreshold', '\pm 2SD'});
title(sprintf('2SD: %1.2f, lick thresh %1.2f', 2 * stdData, lickThresh));
else
fprintf('Testing analog input for licking threshold... skipped.\nLick threshold: %1.2f\n', ...
lickThresh);
end;
unsavedOut.lickThresh = lickThresh;
% digital out
fprintf('Testing reward system by opening for %.2fs after a delay of %.2fs... ', ...
config.training.rewDur, config.training.rewDelay);
giveReward(s2, config.training.rewDur * 3, config.training.rewDelay);
fprintf('done!\n')
if doEmptyWater > 0;
doEmptyWater = str2double(input('Empty water ? >0 = yes, <0 = no\n', 's')); %#ok<UNRCH>
while doEmptyWater > 0;
fprintf('Emptying water... ');
giveReward(s2, doEmptyWater, 0);
fprintf(' done.');
doEmptyWater = str2double(input('Empty more ? >0 = yes, <0 = no\n', 's'));
if isnan(doEmptyWater); doEmptyWater = 0; end;
if ~doEmptyWater; break; end;
end;
end;
s1.IsNotifyWhenDataAvailableExceedsAuto = true;
lh = s1.addlistener('DataAvailable', @(src, event) recordAndStop(src, event, lickThresh));
s1.IsContinuous = true;
s1.prepare;
%% Setup - saving settings
recordedValues = 0;
saveTime = datestr(now, 'yyyy_mm_dd__HH_MM_SS');
saveFolder = sprintf('C:\\Users\\laurenczy\\mtrainerData\\%s\\', mouseId);
savePath = sprintf('%s%s__%s', saveFolder, mouseId, saveTime);
mkdir(saveFolder);
logfile = sprintf('%s_log.txt', savePath);
logDateFormat = 'yyyy-mm-dd HH:MM:SS.FFF';
% create an 'onCleanup' function to handle interruptions by CTRL+C
c = onCleanup(@()closeDiaryAndSaveOutput(savePath, lh, s1, s2));
fprintf('Finished setting up and hardware tests.\n');
fprintf('CHECK MOUSE ID!! currently: %s.\n', mouseId);
if automode;
pause(automode);
else
fprintf('Then press any key to start!'); %#ok<UNRCH>
pause;
end;
unsavedOut.savePath = savePath;
unsavedOut.saveTime = saveTime;
diary(logfile);
%% Start experiment
fprintf('Experiment start: %s\n\n', datestr(now, logDateFormat));
try
%% Experiment - initialize variables
dbgLevel = 0;
out = unsavedOut;
o('config: %s phase %s (%dF%dT)', out.taskType, out.phase, numel(config.tone.freqs), ...
config.tone.nTones, 0, dbgLevel);
o('animal: %s', mouseId, 0, dbgLevel);
o('savePath: %s', savePath, 0, dbgLevel);
o('lickThresh: %1.2f, ISI: %1.2f', lickThresh, config.tone.ISI, 0, 0);
o('rewardCollectionTime: %1.2f, InTriLickTimerDur: %1.2f', ...
config.training.rewCollTime, ...
config.training.InTriLickTimerDur, 0, dbgLevel);
nTrials = config.training.nTrials;
% totalTrialDur = config.training.trialDur + config.training.startDelay + ...
% config.training.rewCollTime;
% compute relative start times for each trial
% out.trialStarts_sched = 0 : totalTrialDur : (nTrials - 1) * totalTrialDur;
% out.trialStarts_obs = zeros(1, nTrials);
% out.trialEnds_obs = zeros(1, nTrials);
out.trialStartDelays = zeros(1, nTrials);
out.trialStartTimes = zeros(1, nTrials);
out.trialEndTimes = zeros(1, nTrials);
out.respTimes = nan(1, nTrials);
out.nInTriLick = nan(1, nTrials);
out.resps = nan(1, nTrials);
out.respDelays = nan(1, nTrials);
% for each trial: 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
out.respTypes = nan(1, nTrials);
out.expStartTime = tic;
isPunish = 0;
for iTrial = 1 : nTrials;
out.iTrial = iTrial;
% listen for response
s1.startBackground;
pause(0.01)
interTrialLickCount = 0;
out.trialStartTimes(iTrial) = tic;
% introduce a random delay for starting the tone
out.trialStartDelays(iTrial) = config.training.startDelay + ...
(rand(1) - 0.5) * 2 * config.training.startDelayRand;
% add punishement time-out if needed
if isPunish;
out.trialStartDelays(iTrial) = out.trialStartDelays(iTrial) + config.training.timeoutPunish;
end;
%% Experiment - initial wait
while toc(uint64(out.trialStartTimes(iTrial))) < out.trialStartDelays(iTrial);
% fprintf('CheckingA: s1.IsRunning? %d\n', s1.IsRunning);
% check if no lick has been done
if ~s1.IsRunning; % if not running anymore, it means a licking has been done
remainingTime = out.trialStartDelays(iTrial) - toc(uint64(out.trialStartTimes(iTrial)));
if interTrialLickCount > 0;
fprintf('|%.1f', remainingTime);
else
fprintf(' inter-trial licking: |%.1f', remainingTime);
end;
% reset the starting delay to config.training.InTriLickTimerDur
out.trialStartTimes(iTrial) = tic;
if isPunish;
out.trialStartDelays(iTrial) = max(config.training.InTriLickTimerDur, remainingTime);
else
out.trialStartDelays(iTrial) = config.training.InTriLickTimerDur;
end;
interTrialLickCount = interTrialLickCount + 1;
pause(1);
% restart the listening
s1.startBackground;
pause(0.1);
% fprintf('CheckingB: s1.IsRunning? %d\n', s1.IsRunning);
end
% avoid full-speed looping
pause(0.01);
end;
if interTrialLickCount;
fprintf('|: %d inter-trial lick(s).\n', interTrialLickCount);
end
out.nInTriLick(iTrial) = interTrialLickCount;
resp = 0;
isPunish = 0;
t_trialStart = tic;
fprintf('Trial %03d/%03d - %s ... ', iTrial, nTrials, datestr(now, logDateFormat));
%% Experiment - play sound
if s1.IsRunning
soundToPlay = toneArray{iTrial};
player = audioplayer(soundToPlay, config.tone.samplingFreq); %#ok<TNMLP>
player.play;
else
fprintf('early (already licking, lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
recordedValues);
isPunish = 1;
out.respTypes(iTrial) = 5;
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(out.respTypes, 0);
end;
continue;
end
breakOut = 0;
%% Experiment - wait for response
while toc(t_trialStart) < config.training.trialDur;
if s1.IsRunning
% no response detected
else
% seconds since trial start
respTime = toc(t_trialStart);
out.respTimes(iTrial) = respTime;
% response should be 'minRespTime' after the end of the tone!
totToneDur = (config.tone.toneDur + config.tone.ISI) * config.tone.nTones - config.tone.ISI;
limitRespTime = totToneDur + config.training.minRespTime;
% limitRespTime = config.training.minRespTime;
out.respDelays(iTrial) = limitRespTime - respTime;
% early response, count as kind of false alarm
if respTime < limitRespTime;
% fprintf('early (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
% recordedValues);
fprintf('early (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
isPunish = 1;
out.respTypes(iTrial) = 5;
breakOut = 1;
break;
else
% fprintf('Lick at %s\n', datestr(clock, logDateFormat))
resp = 1;
end;
break; % break out of while loop
end;
pause(0.02); % necessary to allow time for data collection
end;
if breakOut;
out.trialEndTimes(iTrial) = toc(uint64(out.trialStartTimes(iTrial)));
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(out.respTypes, 0);
end;
continue; % continue for loop
end;
if s1.IsRunning;
s1.stop;
end;
%% Experiment - analyse response
out.resps(iTrial) = resp;
isOddTrial = stims(iTrial) ~= odds(iTrial);
if config.tone.oddProba > 0; % oddball discrimination
isTargetStim = isOddTrial && config.tone.goStim;
else % frequency discrimination
isTargetStim = stims(iTrial) == config.tone.goStim;
end;
if resp == 1 && isTargetStim;
% correct response
% fprintf('correct detection (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
% recordedValues);
fprintf('correct detection (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
out.respTypes(iTrial) = 1;
% give reward
giveReward(s2,config.training.rewDur,config.training.rewDelay);
% wait to collect the reward
pause(config.training.rewCollTime);
elseif resp == 1 && ~isTargetStim;
% false alarm
% fprintf('false alarm (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
% recordedValues);
fprintf('false alarm (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
out.respTypes(iTrial) = 3;
% punish time-out
isPunish = 1;
elseif resp == 0 && isTargetStim;
fprintf('miss.\n');
out.respTypes(iTrial) = 4;
% punish time-out
isPunish = 1;
elseif resp == 0 && ~isTargetStim;
fprintf('correct rejection.\n');
out.respTypes(iTrial) = 2;
% go to next trial
end
out.trialEndTimes(iTrial) = toc(uint64(out.trialStartTimes(iTrial)));
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(out.respTypes, 0);
end
end
%% End experiment
fprintf('\nExperiment end: %s\n', datestr(now, logDateFormat));
out.expTotDurTime = toc(out.expStartTime);
fprintf('Total time: %02.0f:%02.0f\n', out.expTotDurTime / 60, mod(out.expTotDurTime, 60));
mtrainerAnalyser_performance(out.respTypes, 2, out.savePath, out.nInTriLick);
catch err
fprintf('\n\nAn error occured. Last trial: %1.0f. Cleaning up ...\n\n', iTrial)
rethrow(err);
end
%% Function - giveReward
function giveReward(s2, rewDur, rewDelay)
t_rewardStart = tic;
% wait until for start delay
while toc(t_rewardStart) < rewDelay; end;
t_rewardStart = tic;
% open digital out
s2.outputSingleScan(0);
% wait until for open duration
while toc(t_rewardStart) < rewDur; end;
% close digital out
s2.outputSingleScan(1);
end
function recordAndStop(src, event, lickThresh)
recordedValues = stopWhenExceedThreshold(src, event, lickThresh);
end
function closeDiaryAndSaveOutput(savePath, lh, s1, s2)
fprintf('\nClosing diary... ');
diary off;
fprintf('done.\n');
if (exist('out', 'var'));
matFileName = sprintf('%s_out.mat', savePath);
fprintf('Saving output as %s... ', matFileName);
save(matFileName, 'out');
fprintf('done.\n');
else
fprintf('/!\\ Output not saved\n');
end;
fprintf('Closing channels... ');
if exist('lh', 'var'); delete(lh); end;
if exist('s1', 'var'); delete(s1); end;
if exist('s2', 'var'); delete(s2); end;
fprintf('done.\n');
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainerAnalyser_performance.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainerAnalyser_performance.m
| 8,824 |
utf_8
|
7c3efc292a98890cdd2df684966b8536
|
%% Function - mtrainerAnalyser_performance
function mtrainerAnalyser_performance(varargin)
if nargin >= 1;
% for each trial: 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
respTypes = varargin{1};
doSavePlots = 0;
savePath = '';
end;
if nargin >= 2;
doSavePlots = varargin{2};
savePath = 'perf.png';
end;
if nargin >= 3;
savePath = varargin{3};
end;
if nargin == 4;
nIntrLick = varargin{4};
end;
if nargin < 1 || nargin > 4;
error('mtrainerAnalyser_performance:WrongArgumentNumberException', ...
['Number of arguments should be 1 ', ...
'(responseTypeVector), 2 (responseTypeVector, doSavePlots) ', ...
'or 3 (responseTypeVector, doSavePlots, savePath) (or 4 with nIntrLick)', ...
'Please see the help for this function.']);
end;
counts_all = mtrainerAnalyzer_getCounts(respTypes);
% print out a 'nicely' formatted table
% 'fprintf' patterns for the content of the headers and the cells
n = '3'; % number of digits to display for number
np = '3'; % number of digits to display for percents
headerPattern = [' (%0' n 'd|%0' np '.f%%) '];
cellPattern = ['%0' n 'd (%0' np '.0f%%) '];
fprintf(['Performance: d'' = %.3f, early: %0' n 'd/%0' n 'd (%0' np '.f%%), ' ...
'correctness: %0' np '.f%%\n'], counts_all.DPRIME, counts_all.EARLY, counts_all.TOT, ...
counts_all.EARLYP, counts_all.CiP);
if ~counts_all.NT; tableContent = cell(3, 2);
else tableContent = cell(3, 3); end;
% header line
tableContent{1, 1} = sprintf([' VALID: %0' n 'd/%0' n 'd (%0' np '.f%%)'], ...
counts_all.VTOT, counts_all.TOT, counts_all.VTOTP);
tableContent{1, 2} = sprintf(['TARG.', headerPattern], counts_all.T, counts_all.TP);
if counts_all.NT; tableContent{1, 3} = sprintf(['NON-TARG.', headerPattern], ...
counts_all.NT, counts_all.NTP); end;
% GO line
tableContent{2, 1} = sprintf([' GO ', headerPattern], counts_all.GO, counts_all.GOP);
tableContent{2, 2} = sprintf(cellPattern, counts_all.TGO, counts_all.TGOP);
if counts_all.NT; tableContent{2, 3} = sprintf(cellPattern, counts_all.NTGO, counts_all.NTGOP); end;
% NO-GO line
tableContent{3, 1} = sprintf([' NO-GO ', headerPattern], counts_all.NGO, counts_all.NGOP);
tableContent{3, 2} = sprintf(cellPattern, counts_all.TNGO, counts_all.TNGOP);
if counts_all.NT; tableContent{3, 3} = sprintf(cellPattern, counts_all.NTNGO, counts_all.NTNGOP); end;
tprintf(23, tableContent);
fprintf('(Percentages of the table are relative to valid trials (non-early))\n');
if doSavePlots < 1;
return;
end;
saveName = strrep(regexp(savePath, '\\[\d_]+$', 'match'), '\', '');
if numel(saveName);
saveName = ['Perf - ' saveName{1}];
else
saveName = 'Perf';
end;
fprintf('Plotting... (doSavePlots: %d)\n', doSavePlots);
figure('Name', saveName, 'NumberTitle', 'off', 'MenuBar', 'none', 'WindowStyle', 'docked');
title(strrep(saveName, '_', '\_'));
% Valid trials
subplot(3, 2, 1);
bar(1, counts_all.EARLY, 1, 'FaceColor', [0.3 0.3 0.3]);
hold on;
bar(2, counts_all.VTOT, 1, 'FaceColor', [0 1 0]);
text(1.3, - max(ylim) / 10, sprintf('Early (%3.f%%)', counts_all.EARLYP), ...
'horizontalalignment', 'right', 'FontSize', 10);
text(2.3, - max(ylim) / 10, sprintf('Valid (%3.f%%)', counts_all.VTOTP), ...
'horizontalalignment', 'right', 'FontSize', 10);
set(gca, 'XTickLabel', '');
title(sprintf('Early versus valid trials (%d trials)', counts_all.TOT));
% ylim([0 counts_all.TOT * 1.01]);
ylim([0 max(counts_all.EARLY, counts_all.VTOT) * 1.2]);
ylabel('Number of Trials');
% Correct vs false
subplot(3, 2, 2);
bar(1, counts_all.C, 1, 'FaceColor', [0 1 0]);
hold on;
bar(2, counts_all.F, 1, 'FaceColor', [1 0 0]);
text(1.4, - max(ylim) / 10, sprintf('Correct (%3.f%%)', counts_all.CP), ...
'horizontalalignment', 'right', 'FontSize', 10);
text(2.4, - max(ylim) / 10, sprintf('Wrong (%3.f%%)', counts_all.FP), ...
'horizontalalignment', 'right', 'FontSize', 10);
set(gca, 'XTickLabel', '');
title(sprintf('Correct versus wrong trials (%d valid trials)', counts_all.VTOT));
ylim([0 max(counts_all.C, counts_all.F) * 1.2]);
% ylim([0 counts_all.TOT * 1.01]);
ylabel('Number of Trials');
TGOovTimeP = zeros(1, counts_all.TOT);
NTNGOovTimeP = zeros(1, counts_all.TOT);
NTGOovTimeP = zeros(1, counts_all.TOT);
TNGOovTimeP = zeros(1, counts_all.TOT);
EARLYovTimeP = zeros(1, counts_all.TOT);
% binWidth = -1; % cumulative
binWidth = fix(counts_all.TOT * 0.1); % binning
% binWidth = 3; % binning
for i = 1 : counts_all.TOT;
% for i = 1 : binWidth : counts_all.TOT;
if binWidth ~= -1;
% iStart = max(i - 0.5 * (binWidth - 1), 1);
% iEnd = min(i + 0.5 * (binWidth - 1), counts_all.TOT);
iStart = max(i - binWidth, 1);
iEnd = min(i + binWidth, counts_all.TOT);
TGOovTimeP(i) = (sum(respTypes(iStart : iEnd) == 1) / (iEnd - iStart)) * 100;
NTNGOovTimeP(i) = (sum(respTypes(iStart : iEnd) == 2) / (iEnd - iStart)) * 100;
NTGOovTimeP(i) = (sum(respTypes(iStart : iEnd) == 3) / (iEnd - iStart)) * 100;
TNGOovTimeP(i) = (sum(respTypes(iStart : iEnd) == 4) / (iEnd - iStart)) * 100;
EARLYovTimeP(i) = (sum(respTypes(iStart : iEnd) == 5) / (iEnd - iStart)) * 100;
else
TGOovTimeP(i) = sum(respTypes(1 : i) == 1) / i * 100;
NTNGOovTimeP(i) = sum(respTypes(1 : i) == 2) / i * 100;
NTGOovTimeP(i) = sum(respTypes(1 : i) == 3) / i * 100;
TNGOovTimeP(i) = sum(respTypes(1 : i) == 4) / i * 100;
EARLYovTimeP(i) = sum(respTypes(1 : i) == 5) / i * 100;
end;
end;
pause(0.05);
subplot(3, 2, 3);
percents = [TGOovTimeP; NTNGOovTimeP; NTGOovTimeP; ...
TNGOovTimeP; EARLYovTimeP];
bar(percents', 1, 'stacked', 'EdgeColor', 'none');
% bar(percents', binWidth, 'stacked', 'EdgeColor', 'none');
hold off;
title('Percent of trials types over time');
ylim([0 100]);
xlim([1 counts_all.TOT]);
ylabel('% Trials');
xlabel('Trials');
% legHand = legend({'Corr. det.', 'Corr. rej.', 'False alarm', 'Miss', 'Early'}, 'Location', 'EastOutside', ...
% 'FontSize', 12, 'Orientation', 'vertical');
DPRIMEovTimeP = zeros(1, counts_all.TOT);
% binWidth = -1; % cumulative
binWidth = fix(counts_all.TOT * 0.1); % binning
% binWidth = 5; % binning
for i = 1 : counts_all.TOT;
% for i = 1 : binWidth : counts_all.TOT;
if binWidth ~= -1;
% iStart = max(i - 0.5 * (binWidth - 1), 1);
% iEnd = min(i + 0.5 * (binWidth - 1), counts_all.TOT);
iStart = max(i - binWidth, 1);
iEnd = min(i + binWidth, counts_all.TOT);
counts_till_i = mtrainerAnalyzer_getCounts(respTypes(iStart : iEnd));
DPRIMEovTimeP(i) = dprime(counts_till_i.TGO ./ counts_till_i.T, ...
counts_till_i.NTGO ./ counts_till_i.NT, counts_till_i.T, counts_till_i.NT);
else
counts_till_i = mtrainerAnalyzer_getCounts(respTypes(1 : i));
DPRIMEovTimeP(i) = dprime(counts_till_i.TGO ./ counts_till_i.T, ...
counts_till_i.NTGO ./ counts_till_i.NT, counts_till_i.T, counts_till_i.NT);
end;
end;
subplot(3, 2, 4);
plot(1 : counts_all.TOT, DPRIMEovTimeP);
title('d'' over time');
% ylim([0 100]);
xlim([1 counts_all.TOT]);
ylabel('d''');
xlabel('Trials');
% legHand = legend({'Corr. det.', 'Corr. rej.', 'False alarm', 'Miss', 'Early'}, 'Location', 'EastOutside', ...
% 'FontSize', 12, 'Orientation', 'vertical');
subplot(3, 2, 5);
plot(1 : counts_all.TOT, TGOovTimeP + NTGOovTimeP + EARLYovTimeP);
title('Responsiveness');
ylim([0 100]);
xlim([1 counts_all.TOT]);
ylabel('% of GO');
xlabel('Trials');
if exist('nIntrLick', 'var');
subplot(3, 2, 6);
plot(1 : numel(nIntrLick), nIntrLick);
title('Number of inter-trial licking');
% ylim([0 100]);
xlim([1 numel(nIntrLick)]);
ylabel('Number of lick');
xlabel('Trials');
end;
pause(0.05);
% makePrettyFigure(gcf);
% set(legHand, 'FontSize', 12);
if doSavePlots < 2;
return;
end;
fprintf('Saving... (doSavePlots: %d)\n', doSavePlots);
saveas(gcf, [savePath '_perf.png']);
saveas(gcf, [savePath '_perf.fig']);
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainerAnalyser_loadAllFromFolder.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainerAnalyser_loadAllFromFolder.m
| 11,698 |
utf_8
|
f65b08bd16909d18e68a76b009bf88ee
|
%% Function - mtrainerAnalyser_loadAllFromFolder
function outAll = mtrainerAnalyser_loadAllFromFolder(folderPath, skipIncomplete, doMakeConsistent, ...
doRemoveUnresponsive, doSavePlots)
%% Initialize variables
dbgLevel = 4;
% output structure for all data in the requested folder
outAll = struct();
% fields that need to be gathered
toGatherFields = {
'respTypes', 'nInTriLick', 'datesAsNum', 'taskTypes', ...
'nFreqs', 'nTones', 'freqs', 'goFreq' ...
};
% initialize the structure with these fields
for iField = 1 : numel(toGatherFields);
outAll.(toGatherFields{iField}) = [];
end;
% remodelling of the saved out structrures
toRemoveField = { ...
'trialEnds_obs'
'trialStarts_obs'
'trialStarts_sched'
}; %#ok<NASGU>
toRenameField = { ... %#ok<NASGU>
% 'responseTypeVector', 'respTypes';
% 'responseTimeVector', 'respTimes';
% 'trial', 'iTrial';
% 'trialEndVector_observed', 'trialEnds_obs';
% 'trialStartVector_observed', 'trialStarts_obs';
% 'trialStartVector_scheduled', 'trialStarts_sched';
'trialEndsTimes', 'trialEndTimes';
'respDelay', 'respDelays';
}; %#ok<NASGU>
requiredFields = { ... %#ok<NASGU>
'mouseId', 'MOUSE_ID';
'taskType', 'TASK_TYPE';
'phase', '?';
'basePath', '?';
'config', struct();
'stims', [];
'odds', [];
'oddPos', [];
'isOdd', [];
'savePath', '?';
'saveTime', 'SAVE_TIME';
% 'trialStarts_sched', [];
% 'trialStarts_obs', [];
% 'trialEnds_obs', [];
'respTimes', [];
'nInTriLick', [];
'resps', [];
'respDelays', [];
'respTypes', [];
'expStartTime', -1;
'expTotDurTime', -1;
}; %#ok<NASGU>
%% Gather mat-files and loop through them
matFiles = dir([folderPath '/*.mat']);
o('#mtrainerAnalyser_loadAllFromFolder: processing %d mat-file(s) in folder "%s" ...', ...
numel(matFiles), folderPath, 1, dbgLevel);
nValidMatFiles = 0;
for iExp = 1 : numel(matFiles);
% get the full path and load the mat-file
fullPath = sprintf('%s/%s', folderPath, matFiles(iExp).name);
mat = load(fullPath);
mouseId = matFiles(iExp).name(1:9); %#ok<NASGU>
saveTime = matFiles(iExp).name(12:31); %#ok<NASGU>
% check for the presence of the 'out' struct inside, otherwise create it
if ~isfield(mat, 'out');
out = mat;
save(fullPath, 'out');
else
out = mat.out;
end;
% extract the task type, the number of tones/frequencies used from the logFile
out = parseLogFile(out, fullPath, iExp, dbgLevel);
% remodelling of the out.mat file: change names, delete useless fields, etc.
if doMakeConsistent;
out = makeConsistent(out, fullPath, iExp, toRemoveField, toRenameField, requiredFields, dbgLevel); %#ok<UNRCH>
end;
% skip problematic vectors
if ~isfield(out, 'respTypes');
o(' #mtrain...FromFolder: %d: %s has no ''respTypes'' field.', ...
iExp, matFiles(iExp).name, 2, dbgLevel);
continue;
elseif skipIncomplete && any(out.respTypes == 0);
o(' #mtrain...FromFolder: %d: %s has an incomplete ''respTypes''.', ...
iExp, matFiles(iExp).name, 2, dbgLevel);
continue;
else
o(' #mtrain...FromFolder: %d: %s is valid.', iExp, matFiles(iExp).name, 2, dbgLevel);
nValidMatFiles = nValidMatFiles + 1;
end;
% remodelling of the out.mat file: removing long non responsive parts
if doRemoveUnresponsive;
outOri = out;
[out, unResps] = removeUnresponsive(out, iExp, dbgLevel); %#ok<UNRCH>
end;
dateAsStr = matFiles(iExp).name(12:31);
if doSavePlots;
mtrainerAnalyser_performance(outOri.respTypes, 1, ['\01_' dateAsStr], outOri.nInTriLick);
mtrainerAnalyser_performance(out.respTypes, 1, ['\02_' dateAsStr], out.nInTriLick);
end;
dateAsNum = datenum(dateAsStr, 'yyyy_mm_dd__HH_MM_SS');
nTrials = numel(out.respTypes);
outAll.respTypes = [outAll.respTypes out.respTypes];
outAll.nInTriLick = [outAll.nInTriLick out.nInTriLick];
outAll.freqs = [outAll.freqs out.config.tone.freqs(out.stims)];
outAll.datesAsNum = [outAll.datesAsNum repmat(dateAsNum, 1, nTrials)];
outAll.taskTypes = [outAll.taskTypes repmat(sum(out.taskType), 1, nTrials)];
outAll.nFreqs = [outAll.nFreqs repmat(numel(out.config.tone.freqs), 1, nTrials)];
outAll.nTones = [outAll.nTones repmat(out.config.tone.nTones, 1, nTrials)];
outAll.goFreq = [outAll.goFreq repmat(out.config.tone.freqs(out.config.tone.goStim), ...
1, nTrials)];
if numel(outAll.respTypes) ~= numel(outAll.nInTriLick);
o(' #mtrain...FromFolder: %d: %s problem!', iExp, matFiles(iExp).name, 0, dbgLevel);
end;
end;
nDays = numel(unique(cellstr(datestr(outAll.datesAsNum, 'yyyymmdd'))));
o('#mtrain...FromFolder: found %d/%d valid file(s), %d trial(s) in %d unique day(s).', ...
nValidMatFiles, numel(matFiles), numel(outAll.respTypes), nDays, 1, dbgLevel);
end
function out = parseLogFile(out, fullPath, iExp, dbgLevel)
% try the taskType first in the out file
if isfield(out, 'taskType') && ~strcmp(out.taskType, '?') && ~strcmp(out.taskType, 'UNKNOWN') ...
&& isfield(out.config, 'tone') && isfield(out.config.tone, 'nTones');
taskType = out.taskType;
o(' #mtrain...FromFolder: %d: checking for taskType, taskType present: "%s"...', ...
iExp, taskType, 3, dbgLevel);
else
taskType = '?';
% extract taskType
o(' #mtrain...FromFolder: %d: checking for taskType, so far unset ("%s")...', ...
iExp, taskType, 3, dbgLevel);
fid = fopen(strrep(fullPath, '_out.mat', '_log.txt'));
line = fgetl(fid);
while ischar(line);
m = regexp(line, '(?<nFreqs>\d+)F(?<nTones>\d+)T', 'names');
if ~isempty(m);
nFreqs = str2double(m.nFreqs);
nTones = str2double(m.nTones);
if nFreqs == 1 && nTones > 1;
taskType = 'oddballDiscrimination';
elseif nFreqs == 2 && nTones > 1;
taskType = 'oddballDiscrimination';
elseif nFreqs > 1 && nTones == 1;
taskType = 'freqDiscrimination';
elseif nFreqs == 1 && nTones == 1;
taskType = 'basic';
else
taskType = 'UNKNOWN';
end;
o(' #mtrain...FromFolder: %d: MATCH: nFreqs = %d, nTones = %d, taskType = "%s".', ...
iExp, nFreqs, nTones, taskType, 3, dbgLevel);
out.taskType = taskType;
if ~isfield(out.config, 'tone');
out.config.tone = struct();
end;
out.config.tone.nTones = nTones;
if ~isfield(out.config.tone, 'freqs');
if nFreqs == 1; out.config.tone.freqs = 12000;
elseif nFreqs == 2; out.config.tone.freqs = [7000, 12000];
elseif nFreqs == 4; out.config.tone.freqs = [5000, 7000, 12000, 15000];
else out.config.freqs = repmat(-1, 1, nFreqs);
end;
end;
save(fullPath, 'out');
break;
end;
line = fgetl(fid);
end
fclose(fid);
end;
if strcmp(out.taskType, '?');
o(' #mtrain...FromFolder: %d: task type not found ("%s")...', ...
iExp', out.taskType, 1, dbgLevel);
end;
end
function out = makeConsistent(out, fullPath, iExp, toRemoveField, toRenameField, requiredFields, dbgLevel)
if exist('toRemoveField', 'var');
nFields = 0;
for iField = 1 : size(toRemoveField, 1);
if isfield(out, toRemoveField{iField});
out = rmfield(out, toRemoveField{iField});
nFields = nFields + 1;
end;
end;
if nFields;
save(fullPath, 'out');
o(' #mtrain...FromFolder: %d: removed %d field(s).', iExp, nFields, 3, dbgLevel);
end;
end;
if exist('toRenameField', 'var');
nFields = 0;
for iField = 1 : size(toRenameField, 1);
if isfield(out, toRenameField{iField, 1});
out.(toRenameField{iField, 2}) = out.(toRenameField{iField, 1});
out = rmfield(out, toRenameField{iField, 1});
nFields = nFields + 1;
end;
end;
if nFields;
o(' #mtrain...FromFolder: %d: renamed %d field(s).', iExp, nFields, 3, dbgLevel);
save(fullPath, 'out');
end;
end;
if exist('requiredFields', 'var');
nFields = 0;
for iField = 1 : size(requiredFields, 1);
if ~isfield(out, requiredFields{iField, 1});
if exist(requiredFields{iField, 1}, 'var');
eval(['out.(requiredFields{iField, 1}) = ' requiredFields{iField, 1} ';']);
else
out.(requiredFields{iField, 1}) = requiredFields{iField, 2};
end;
nFields = nFields + 1;
end;
end;
if nFields;
o(' #mtrain...FromFolder: %d: created %d required fields.', iExp, nFields, 3, dbgLevel);
save(fullPath, 'out');
end;
end;
end
function [out, unResps] = removeUnresponsive(out, iExp, dbgLevel)
o(' #mtrain...FromFolder: %d: removing unresponsive trials ...', iExp, 3, dbgLevel);
unrespSeriesIndexes = [];
unResps = cell(1);
minUnrespLength = 15; % minimum number of consecutive unresponsive trials
toKeepIndexes = true(size(out.resps));
toKeepIndexes(isnan(out.resps)) = false;
fieldNames = {
'stims', 'odds', 'oddPos', 'isOdd', 'trialStartDelays', 'trialStartTimes', 'trialEndTimes', ...
'respTimes', 'nInTriLick', 'resps', 'respDelays', 'respTypes'
};
% remove NaNs
for iField = 1 : numel(fieldNames);
if numel(out.(fieldNames{iField})) < max(toKeepIndexes);
o(' #mtrain...FromFolder: %d: problem with field "%s"...', iExp, fieldNames{iField}, ...
3, dbgLevel);
continue;
end;
out.(fieldNames{iField}) = out.(fieldNames{iField})(toKeepIndexes);
end;
% separate the trials by unresponsive 'bins'/'blobs'
CC = bwconncomp(~out.resps);
% go through each bin of unresponsive consecutive trials
for iBin = 1 : numel(CC.PixelIdxList);
indexList = CC.PixelIdxList{iBin}'; % extract the list of indexes
% if the bin is long enough and contains at least one 'correct rejection' and one 'miss' ...
if numel(indexList) >= minUnrespLength && any(out.respTypes(indexList) == 2) && any(out.respTypes(indexList) == 4);
% then we can consider it as unresponsive and gather the indexes
unrespSeriesIndexes = [unrespSeriesIndexes indexList]; %#ok<AGROW>
unResps{end + 1} = indexList; %#ok<AGROW>
end;
end;
toKeepIndexes = true(size(out.resps));
toKeepIndexes(unrespSeriesIndexes) = false;
for iField = 1 : numel(fieldNames);
if numel(out.(fieldNames{iField})) < max(toKeepIndexes);
o(' #mtrain...FromFolder: %d: problem with field "%s"...', iExp, fieldNames{iField}, ...
3, dbgLevel);
continue;
end;
out.(fieldNames{iField}) = out.(fieldNames{iField})(toKeepIndexes);
end;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainerAnalyser_pooledPerformance.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainerAnalyser_pooledPerformance.m
| 13,056 |
utf_8
|
b60d5cf1801f259ba926464fd19f619c
|
%% Function - mtrainerAnalyser_pooledPerformance
function mtrainerAnalyser_pooledPerformance(outAll, titleStr)
dbgLevel = 2;
uniqueDays = unique(cellstr(datestr(outAll.datesAsNum, 'yyyymmdd')));
nDays = numel(uniqueDays);
o('#mtrain...pooledPerf: %d trial(s) in %d day(s).', numel(outAll.respTypes), nDays, 1, dbgLevel);
runs = unique(cellstr(datestr(outAll.datesAsNum, 'yyyymmdd_HHMMSS')));
nextSessThreshIndiv = 0.08; % pool data with morning and afternoon sessions separately
% nextSessThreshIndiv = 0.0005; % pool data with each run (100 trials) separately
nextSessThreshDaily = 0.35; % pool data daily
[~, sessionIndexesIndiv, nTrialsPerSessIndiv] = separateIntoSessions(outAll, runs, ...
nextSessThreshIndiv, dbgLevel);
[runs, sessionIndexesDaily, nTrialsPerSessDaily] = separateIntoSessions(outAll, runs, ...
nextSessThreshDaily, dbgLevel); %#ok<ASGLU>
sessionIndexes = sessionIndexesDaily;
nTrialsPerSess = nTrialsPerSessDaily;
nSessionIndiv = max(sessionIndexesIndiv);
nSessionDaily = max(sessionIndexesDaily);
nSession = nSessionDaily;
o('#mtrain...pooledPerf: found %d daily session(s) and %d individual session(s).', ...
nSessionDaily, nSessionIndiv, 2, dbgLevel);
o('#mtrain...pooledPerf: mean nTrials per day: %03.0f, per indiv session: %03.0f.', ...
mean(nTrialsPerSessDaily), mean(nTrialsPerSessIndiv), 2, dbgLevel);
figName = titleStr;
figName = strrep(figName, '\_', '_');
figName = strrep(figName, '''', '');
figName = strrep(figName, ' ', '');
figHand = figure('NumberTitle', 'off', 'WindowStyle', 'docked', 'Name', figName);
hitRate = zeros(1, nSession); % correct detection, CR+, hitRate
hitRateError = zeros(1, nSession); % correct detection, CR+, hitRate errors
falsePosRate = zeros(1, nSession); % false alarm, CR-, false positive
falsePosRateError = zeros(1, nSession);% false alarm, CR-, false positive errors
dprimes = zeros(1, nSession); % d prime
dprimesError = zeros(1, nSession); % d prime errors
useSEM = 1;
iBinAll = 1;
prevNFreqs = 0;
prevNTones = 0;
dprimeMaxVal = 3.5;
dprimeMinVal = -2;
changeOfFreqOrToneNum = zeros(1, nSession);
for iSess = 1 : nSession;
% extract the current session's number of frequency and number of tones
nFreqs = outAll.nFreqs(sessionIndexes == iSess);
nTones = outAll.nTones(sessionIndexes == iSess);
if ~numel(nFreqs); continue; end;
nFreqs = nFreqs(1);
nTones = nTones(1);
% skip basic sessions
% if nFreqs == 1 && nTones == 1;
% hitRate(iBinAll) = NaN;
% falsePosRate(iBinAll) = NaN;
% dprimes(iBinAll) = NaN;
% iBinAll = iBinAll + 1;
% continue;
% end;
% if there is a change in the number of frequencies or tones, mark it
if prevNFreqs ~= 0 && (nFreqs ~= prevNFreqs || nTones ~= prevNTones);
changeOfFreqOrToneNum(iSess) = iSess - 1;
end;
% store for next iteration
prevNFreqs = nFreqs;
prevNTones = nTones;
% extract the respTypes for this session
% for each trial, 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
sessionRespTypes = outAll.respTypes(sessionIndexes == iSess);
sessInDay = sessionIndexesIndiv(sessionIndexes == iSess);
sessStart = min(sessInDay);
sessEnd = max(sessInDay);
dPrimesIndivSess = zeros(1, sessEnd - sessStart + 1);
hitRatesIndivSess = zeros(1, sessEnd - sessStart + 1);
falsePosIndivSess = zeros(1, sessEnd - sessStart + 1);
for iSessIndiv = sessStart : sessEnd;
indivSessionRespTypes = outAll.respTypes(sessionIndexesIndiv == iSessIndiv);
countsForIndivSession = mtrainerAnalyzer_getCounts(indivSessionRespTypes);
if isnan(countsForIndivSession.DPRIME);
countsForIndivSession.DPRIME = 0;
end;
dPrimesIndivSess(iSessIndiv - sessStart + 1) = countsForIndivSession.DPRIME;
hitRatesIndivSess(iSessIndiv - sessStart + 1) = ...
100 * countsForIndivSession.TGO / countsForIndivSession.T;
falsePosIndivSess(iSessIndiv - sessStart + 1) = ...
100 * countsForIndivSession.NTGO / countsForIndivSession.NT;
end;
if useSEM;
dprimesError(iBinAll) = sem(dPrimesIndivSess); %%#ok<UNRCH>
hitRateError(iBinAll) = sem(hitRatesIndivSess);
falsePosRateError(iBinAll) = sem(falsePosIndivSess);
else
dprimesError(iBinAll) = std(dPrimesIndivSess); %#ok<UNRCH>
hitRateError(iBinAll) = std(hitRatesIndivSess);
falsePosRateError(iBinAll) = std(falsePosIndivSess);
end;
% make an overall counting for the session
countsForSession = mtrainerAnalyzer_getCounts(sessionRespTypes);
o(' #mtrain...pooledPerf: session %d, taskType: "%s".', iSess, ...
sprintf('%F%T', nFreqs, nTones), 3, dbgLevel);
hitRate(iBinAll) = 100 * countsForSession.TGO / countsForSession.T;
falsePosRate(iBinAll) = 100 * countsForSession.NTGO / countsForSession.NT;
if isnan(countsForSession.DPRIME);
countsForSession.DPRIME = 0;
end;
% restrict the dprime value between dprimeMaxVal and dprimeMinVal
countsForSession.DPRIME = min(dprimeMaxVal, countsForSession.DPRIME);
countsForSession.DPRIME = max(dprimeMinVal, countsForSession.DPRIME);
dprimes(iBinAll) = countsForSession.DPRIME;
o(' #mtrain...pooledPerf: session %d, HitRate: %04.1f, FalsePosRate = %04.1f, d'' = %.2f.', ...
iSess, hitRate(iBinAll), falsePosRate(iBinAll), dprimes(iBinAll), 3, dbgLevel);
iBinAll = iBinAll + 1;
%
% binWidth = 100;
%
% % calculate number of bins, make sure that there is at least one
% nBins = max(round(countsForSession.TOT / binWidth), 1);
% for iBin = 1 : nBins;
% iStart = (iBin - 1) * binWidth + 1; % for binWidth = 10: 1, 11, 21, etc.
% iEnd = min(iBin * binWidth, countsForSession.TOT); % for binWidth = 10: 10, 20, 30, etc.
% countsForBin = mtrainerAnalyzer_getCounts(sessionRespTypes(iStart : iEnd));
%
% if countsForBin.GOP < 50;
% trialIndex = find(sessionIndexes == iSess);
% trialIndex = trialIndex(1) + iBin * binWidth;
% runsForSession = runs(cell2mat(runs(:, 2)) == iSess);
% iRun = 1;
% while iRun < numel(runsForSession);
% if sum(nTrialsPerSess
% end;
% o(' #mtrain...pooledPerf: session %d, %s, bin %d (trial %.0f) has a GOP of %.2f.', ...
% iSess, runsForSession{1}, iBin, trialIndex, countsForBin.GOP, 3, dbgLevel);
% hitRate(iBinAll) = NaN;
% falsePosRate(iBinAll) = NaN;
% dprimes(iBinAll) = NaN;
% iBinAll = iBinAll + 1;
% continue;
% end;
%
% hitRate(iBinAll) = 100 * countsForBin.TGO / countsForBin.T;
% falsePosRate(iBinAll) = 100 * countsForBin.NTGO / countsForBin.NT;
% if isnan(countsForBin.DPRIME) || isinf(countsForBin.DPRIME);
% countsForBin.DPRIME = 0;
% end;
%
% % restrict the dprime value between +dprimeMaxVal and -dprimeMaxVal
% countsForBin.DPRIME = min(dprimeMaxVal, countsForBin.DPRIME);
% countsForBin.DPRIME = max(-dprimeMaxVal, countsForBin.DPRIME);
%
% dprimes(iBinAll) = countsForBin.DPRIME;
% iBinAll = iBinAll + 1;
% end;
end;
nTotBins = iBinAll - 1;
% TGOsHand = plot(hitRate, '-sg', 'MarkerFaceColor', 'green');
TGOsErrHand = errorbar(1 : nSession, hitRate, hitRateError, '-sg', 'MarkerFaceColor', 'green');
removeErrorBarEnds(TGOsErrHand);
hold all;
hitRateAxes = gca;
% NTNGOsHand = plot(falsePosRate, '-sr', 'MarkerFaceColor', 'red');
NTNGOsErrHand = errorbar((1 : nSession) + 0.15, falsePosRate, falsePosRateError, '-sr', 'MarkerFaceColor', 'red');
removeErrorBarEnds(NTNGOsErrHand);
set(hitRateAxes, 'ylim', [0 110], 'YTick', 0 : 10 : 110, 'YTickLabel', 0 : 10 : 110);
if useSEM;
ylabel('% of Trials \pm SEM'); %%#ok<UNRCH>
else
ylabel('% of Trials \pm SD'); %#ok<UNRCH>
end;
vertLineHandles = zeros(1, sum(changeOfFreqOrToneNum > 0));
vertLineTextHandles = zeros(2, sum(changeOfFreqOrToneNum > 0));
iLineHandle = 1;
for iChange = 1 : numel(changeOfFreqOrToneNum);
if ~changeOfFreqOrToneNum(iChange); continue; end;
changeX = changeOfFreqOrToneNum(iChange) + 0.5;
nFreqs1 = outAll.nFreqs(sessionIndexes == changeOfFreqOrToneNum(iChange));
nFreqs1 = nFreqs1(1);
nFreqs2 = outAll.nFreqs(sessionIndexes ==changeOfFreqOrToneNum(iChange) + 1);
nFreqs2 = nFreqs2(1);
if mod(iChange, 2) == 0;
changeY = 9;
else
changeY = 12;
end;
vertLineTextHandles(1, iLineHandle) = text(changeX, changeY, ...
sprintf('%d freq \\leftarrow ', nFreqs1), 'HorizontalAlignment', 'right');
vertLineTextHandles(2, iLineHandle) = text(changeX, changeY, sprintf(' \\rightarrow %d freq', nFreqs2));
vertLineHandles(iLineHandle) = line([changeX changeX], [0 100], ...
'LineStyle', ':', 'Color', 'black');
iLineHandle = iLineHandle + 1;
end;
xlimits = [0 nTotBins * 1.05];
xlim(xlimits);
set(hitRateAxes, 'XTick', [], 'XTickLabel', []);
xTickAxes = axes('Position', get(gca, 'Position'), ...
'YAxisLocation', 'right', 'XAxisLocation', 'bottom', 'Color', 'none');
sessionLabels = cellstr(datestr(outAll.datesAsNum([diff(sessionIndexes) > 0, true]), 'dd/mm'));
set(xTickAxes, 'xlim', xlimits, ...
'XTick', 1 : nSession, 'XTickLabel', sessionLabels(1 : nSession));
% set(xTickAxes, 'xlim', xlimits, ...
% 'XTick', 0 : 10 : nTotBins, 'XTickLabel', (0 : 10 : nTotBins) * binWidth);
set(xTickAxes, 'YTick', [], 'YTickLabel', []);
xlabel('Sessions');
dprimeAxes = axes('Position', get(gca, 'Position'), ...
'YAxisLocation', 'right', 'XAxisLocation', 'top', 'Color', 'none');
hold all;
% dprimesHand = plot(dprimes, '-sb', 'MarkerFaceColor', 'blue');
dprimesErrHand = errorbar((1 : nSession) + 0.3, dprimes, dprimesError, '-sb', 'MarkerFaceColor', 'blue');
removeErrorBarEnds(dprimesErrHand);
set(dprimeAxes, 'ylim', [dprimeMinVal dprimeMaxVal], 'YTick', dprimeMinVal : 0.5 : dprimeMaxVal, ...
'YTickLabel', dprimeMinVal : 0.5 : dprimeMaxVal);
set(dprimeAxes, 'XTick', [], 'XTickLabel', []);
xlim(xlimits);
if useSEM;
ylabel('d'' value \pm SEM'); %%#ok<UNRCH>
else
ylabel('d'' value \pm SD'); %#ok<UNRCH>
end;
legend([TGOsErrHand, NTNGOsErrHand, dprimesErrHand], {'HitRate', 'FalsePos', 'd'''}, ...
'Location', 'NorthWest');
% legend([TGOsHand, NTNGOsHand, dprimesHand], {'HitRate', 'FalsePos', 'd'''}, ...
% 'Location', 'NorthWest');
title(sprintf('%s \\fontsize{10} [Total number of trials = %.0f, mean trials per session = %.0f]', ...
titleStr, sum(nTrialsPerSess), mean(nTrialsPerSess)));
hold off;
makePrettyFigure(figHand);
set(xTickAxes, 'FontSize', 9);
for iLineHandle = 1 : numel(vertLineHandles);
set(vertLineHandles(iLineHandle), 'LineWidth', 0.5);
set(vertLineTextHandles(1, iLineHandle), 'FontSize', 10);
set(vertLineTextHandles(2, iLineHandle), 'FontSize', 10);
end;
end
function [runs, sessionIndexes, nTrialsPerSess] = separateIntoSessions(outAll, runs, nextSessThresh, dbgLevel)
sessionIndexes = zeros(1, numel(outAll.respTypes));
nTrialsPerSess = zeros(1, 1);
iRun = 1;
iSess = 1;
% loop trough all runs
while iRun <= size(runs, 1);
% current run's date as number
dateAsNum = datenum(runs{iRun, 1}, 'yyyymmdd_HHMMSS');
o(' #mtrain...pooledPerf: run %d, date: %s (%8.3f).', iRun, runs{iRun, 1}, dateAsNum, 3, dbgLevel);
% for all runs before the last, check with next run
if iRun < size(runs, 1);
dateAsNumNext = datenum(runs{iRun + 1, 1}, 'yyyymmdd_HHMMSS');
else % for last run, make the difference big enough
dateAsNumNext = dateAsNum + 100 * nextSessThresh;
end;
runs{iRun, 2} = iSess;
o(' #mtrain...pooledPerf: run %d''s session: %d, dateAsNumNext: %8.3f, diff: %.2f, thresh: %.2f.', ...
iRun, iSess, dateAsNumNext, abs(dateAsNum - dateAsNumNext), nextSessThresh, 3, dbgLevel);
% if they are too different, next run is in a new session
if abs(dateAsNum - dateAsNumNext) > nextSessThresh;
% get all the respTypes for that session (earlier dates that are not yet assigned to a sessions)
respTypesForSession = outAll.respTypes(outAll.datesAsNum <= dateAsNum & ~sessionIndexes);
nTrials = numel(respTypesForSession);
zeroIndex = find(~sessionIndexes); % get indexes where sessionIndex is still 0
sessionIndexes(zeroIndex(1) : zeroIndex(1) + nTrials - 1) = ones(1, nTrials) * iSess;
nTrialsPerSess(iSess) = nTrials;
o(' #mtrain...pooledPerf: run %d is the last of session %d, nTrials: %d, tagging from %d to %d.', ...
iRun, iSess, nTrials, zeroIndex(1), zeroIndex(1) + nTrials - 1, 3, dbgLevel);
iSess = iSess + 1;
iRun = iRun + 1;
else % otherwise if they are not too different, go on
iRun = iRun + 1;
end;
end;
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainerAnalyser_freqAnalysis_bins.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainerAnalyser_freqAnalysis_bins.m
| 2,389 |
utf_8
|
e6cff6d257bc5bfe9d98519822f2e677
|
%% Function - mtrainerAnalyser_pooledPerformance
function figHand = mtrainerAnalyser_freqAnalysis_bins(outAll, titleStr, binWidth)
dbgLevel = 2;
nFreqs = 5;
% for each trial: 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
respTypes = outAll.respTypes(outAll.nFreqs == nFreqs);
freqs = outAll.freqs(outAll.nFreqs == nFreqs);
uniqueFreqs = unique(freqs);
goFreq = unique(outAll.goFreq(outAll.nFreqs == nFreqs));
figHand = 0;
if numel(goFreq) > 1; o('Oh-oh. Problem ! Multiple go freqs', 1, dbgLevel); return; end;
nTrials = length(respTypes);
% calculate number of bins, make sure that there is at least one
nBins = max(round(nTrials / binWidth), 1);
figName = titleStr;
figName = strrep(figName, '\_', '_');
figName = strrep(figName, '''', '');
figName = strrep(figName, ' ', '');
figHand = figure('NumberTitle', 'off', 'WindowStyle', 'docked', 'Name', figName);
% errors = nan(nFreqs, nBins);
errors = nan(nFreqs - 1, nBins);
for iBin = 1 : nBins;
iStart = (iBin - 1) * binWidth + 1; % for binWidth = 10: 1, 11, 21, etc.
iEnd = min(iBin * binWidth, nTrials); % for binWidth = 10: 10, 20, 30, etc.
for iFreq = 1 : nFreqs;
respTypesForFreq = respTypes(freqs(iStart : iEnd) == uniqueFreqs(iFreq));
o('Bin %d - freq %d, respTypes: %d', iBin, iFreq, numel(respTypesForFreq), 3, dbgLevel);
if uniqueFreqs(iFreq) == goFreq;
continue;
% errors(iFreq, iBin) = 100 * sum(respTypesForFreq == 4) / numel(respTypesForFreq);
else
errors(iFreq, iBin) = 100 * sum(respTypesForFreq == 3) / numel(respTypesForFreq);
end;
end;
end;
errors = errors(setdiff(1 : nFreqs, find(uniqueFreqs == goFreq)), :);
colors = lines(nFreqs - 1);
% colors = lines(nFreqs);
plotHandles = plot(errors', '-s');
for iHandle = 1 : numel(plotHandles);
set(plotHandles(iHandle), 'Color', colors(iHandle, :), 'MarkerFaceColor', colors(iHandle, :));
end;
% legend({'4kHz', '8kHz', '12kHz', '16kHz', '20kHz'});
legend({'4kHz', '8kHz', '16kHz', '20kHz'});
ylabel('Errors in %');
step = nBins / (nTrials / 500);
set(gca, 'xlim', [0.8 nBins + 0.2], 'XTick', 1 : step : (nBins + 1), ...
'XTickLabel', 0 : 500 : ((nBins + 1) * binWidth));
% set(gca, 'YTick', [], 'YTickLabel', []);
xlabel('Trials');
title(titleStr);
makePrettyFigure(figHand);
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainer_oldversion_scheduledStarts.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainer_oldversion_scheduledStarts.m
| 16,949 |
utf_8
|
cb689fcefe86d96085f1a191049aa7cd
|
function mtrainer()
% main function for mtrainer experiment suite
% all times are in s!
% written by Henry Luetcke ([email protected])
% 2013-05-07
% modified by Balazs Laurenczy ([email protected])
% 2013-05-15
doEmptyWater = 1;
automode = 1;
unsavedOut = struct();
mouseId = 'testing'; taskType = 'freqDiscrimination'; phase = 'D';
% mouseId = '130408_02'; taskType = 'freqDiscrimination'; phase = 'D';
% mouseId = '130416_01'; taskType = 'oddballDiscrimination'; phase = 'E';
% mouseId = '130425_01'; taskType = 'freqDiscrimination'; phase = 'B';
% mouseId = '130425_02'; taskType = 'oddballDiscrimination'; phase = 'C';
% mouseId = '130528_01'; taskType = 'oddballDiscrimination'; phase = 'B';
% mouseId = '130528_02'; taskType = 'oddballDiscrimination'; phase = 'B';
basePath = 'P:\matlab\daq\mtrainer\configs\';
configMat = load([basePath taskType filesep taskType '_phase' phase '.mat']);
config = configMat.config;
unsavedOut.mouseId = mouseId;
unsavedOut.taskType = taskType;
unsavedOut.phase = phase;
unsavedOut.basePath = basePath;
unsavedOut.config = config;
%% Setup - stimuli and trials
fprintf('Setup stimuli and trials... ');
% set up stimulus vector
stims = [];
for iFreq = 1 : numel(config.tone.freqs)
stimForFreq = repmat(iFreq, 1, round(config.tone.stimProba(iFreq) * config.tone.nTrials));
stims = [stims, stimForFreq]; %#ok<AGROW>
end
stims = stims(randperm(numel(stims)));
clear stim;
% set up oddball vector by altering stims with a certain probability
odds = stims;
oddPos = zeros(size(odds));
uniqueStims = unique(stims);
isOdd = rand(1, numel(stims)) < config.tone.oddProba;
uniqueOddPos = config.tone.nTones - 1 : config.tone.nTones; % last 2 tones can be odd
for iStim = 1 : numel(isOdd);
if isOdd(iStim);
otherStims = uniqueStims(uniqueStims ~= stims(iStim));
otherStims = otherStims(randperm(numel(otherStims)));
mixedOddPos = uniqueOddPos(randperm(numel(uniqueOddPos)));
odds(iStim) = otherStims(1);
oddPos(iStim) = mixedOddPos(1);
end;
end;
% set up tone array
toneArray = MakePureMultiToneOddballArray(config.tone.freqs, stims, odds, oddPos, ...
config.tone.nTones, config.tone.toneDur, config.tone.ISI, config.tone.samplingFreq);
unsavedOut.stims = stims;
unsavedOut.odds = odds;
unsavedOut.oddPos = oddPos;
unsavedOut.isOdd = isOdd;
fprintf('done.\n');
%% Setup - hardware
% define globals
global recordedValues;
% analog input
daqreset;
fprintf('Connecting hardware...\n');
s1 = daq.createSession(config.hardware.adaptorID);
s1.Rate = config.hardware.analogIn_SampleRate;
s1.addAnalogInputChannel(config.hardware.analogIn_Device, config.hardware.analogIn_Channel, 'Voltage');
s1.Channels(1).InputType = config.hardware.analogIn_InputType;
s1.Channels(1).Range = config.hardware.analogIn_Range;
fprintf('s1 ok.\n');
s2 = daq.createSession(config.hardware.adaptorID);
s2.addDigitalChannel(config.hardware.digitalOut_Device, config.hardware.digitalOut_PortLine, 'OutputOnly');
fprintf('And s2 ok. Ready to go.\n');
lickThresh = 0.18;
% lickThresh = NaN;
if isnan(lickThresh);
% baseline measurement
fprintf('Testing analog input for licking threshold (baseline)... ');
recordDuration = 2;
s1.DurationInSeconds = recordDuration;
baseline = s1.startForeground; % this will block the command line
meanData = mean(baseline);
stdData = std(baseline);
lickThresh = 2.5 * stdData;
fprintf('done.\n')
pause(1);
% lick measurement
fprintf('Testing analog input for licking threshold (licking)... ');
s1.DurationInSeconds = recordDuration;
lick = s1.startForeground; % this will block the command line
fprintf('done.\n2SD: %1.2f, lick threshold: %1.2f\n', 2 * stdData, lickThresh);
% plotting
figure('Name', 'LickingThreshold', 'Position', [150, 300, 950, 350], 'NumberTitle', 'off', ...
'MenuBar', 'none', 'ToolBar', 'none');
plot((1:numel(baseline)) / 1000, baseline - meanData, 'b');
hold on;
plot((1:numel(lick)) / 1000, lick - meanData, 'r');
line([0, recordDuration], [lickThresh, lickThresh], 'Color', 'green');
line([0, recordDuration], [2 * stdData, 2 * stdData], 'Color', 'cyan');
line([0, recordDuration], [- 2 * stdData, - 2 * stdData], 'Color', 'cyan');
legend({'baseline', 'licking', 'lickTreshold', '\pm 2SD'});
else
fprintf('Testing analog input for licking threshold... skipped.\nLick threshold: %1.2f\n', ...
lickThresh);
end;
unsavedOut.lickThresh = lickThresh;
% digital out
fprintf('Testing reward system by opening for %.2fs after a delay of %.2fs... ', ...
config.training.rewDur, config.training.rewDelay);
giveReward(s2, config.training.rewDur, config.training.rewDelay);
fprintf('done!\n')
if doEmptyWater;
doEmptyWater = str2double(input('Empty water ? 1 = yes, 0 = no\n', 's')); %#ok<UNRCH>
while doEmptyWater;
fprintf('Emptying water... ');
giveReward(s2, 0.03, 0);
% giveReward(s2, 3, 0);
fprintf(' done.');
doEmptyWater = str2double(input('Empty more ? 1 = yes, 0 = no\n', 's'));
if ~doEmptyWater; break; end;
end;
end;
s1.IsNotifyWhenDataAvailableExceedsAuto = true;
lh = s1.addlistener('DataAvailable', @(src, event) recordAndStop(src, event, lickThresh));
s1.IsContinuous = true;
s1.prepare;
%% Setup - saving settings
recordedValues = 0;
saveTime = datestr(now, 'yyyy_mm_dd__HH_MM_SS');
saveFolder = sprintf('C:\\Users\\laurenczy\\mtrainerData\\%s\\', mouseId);
savePath = sprintf('%s%s__%s', saveFolder, mouseId, saveTime);
mkdir(saveFolder);
logfile = sprintf('%s_log.txt', savePath);
logDateFormat = 'yyyy-mm-dd HH:MM:SS.FFF';
% create an 'onCleanup' function to handle interruptions by CTRL+C
c = onCleanup(@()closeDiaryAndSaveOutput(savePath, lh, s1, s2));
fprintf('Finished setting up and hardware tests.\n');
fprintf('CHECK MOUSE ID!! currently: %s.\n', mouseId);
if automode;
pause(5);
else
fprintf('Then press any key to start!'); %#ok<UNRCH>
pause;
end;
unsavedOut.savePath = savePath;
unsavedOut.saveTime = saveTime;
diary(logfile);
%% Start experiment
fprintf('Experiment start: %s\n\n', datestr(now, logDateFormat));
try
%% Experiment - initialize variables
dbgLevel = 0;
out = unsavedOut;
o('config: %s phase %s (%dF%dT)', out.taskType, out.phase, numel(config.tone.freqs), ...
config.tone.nTones, 0, dbgLevel);
o('animal: %s', mouseId, 0, dbgLevel);
o('savePath: %s', savePath, 0, dbgLevel);
o('lickThresh: %1.2f, ISI: %1.2f', lickThresh, config.tone.ISI, 0, 0);
o('rewardCollectionTime: %1.2f, InTriLickTimerDur: %1.2f', ...
config.training.rewCollTime, ...
config.training.InTriLickTimerDur, 0, dbgLevel);
totalTrialDur = config.training.trialDur + config.training.startDelay + ...
config.training.rewCollTime;
nTrials = numel(stims);
% compute relative start times for each trial
out.trialStarts_sched = 0 : totalTrialDur : (nTrials - 1) * totalTrialDur;
out.trialStarts_obs = zeros(1, nTrials);
out.trialEnds_obs = zeros(1, nTrials);
out.respTimes = nan(1, nTrials);
out.nInTriLick = zeros(1, nTrials);
out.resps = nan(1, nTrials);
out.respDelay = nan(1, nTrials);
% for each trial: 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
out.respTypes = zeros(1, nTrials);
out.expStartTime = tic;
for iTrial = 1 : nTrials;
out.iTrial = iTrial;
% listen for response
s1.startBackground;
pause(0.01)
interTrialLickCount = 0;
%% Experiment - initial wait
while toc(out.expStartTime) < out.trialStarts_sched(iTrial);
% fprintf('CheckingA: s1.IsRunning? %d\n', s1.IsRunning);
% check if no lick has been done
if ~s1.IsRunning;
remainingTime = out.trialStarts_sched(iTrial) - toc(out.expStartTime);
addedDelay = 0;
% delay the schedule if needed
if (remainingTime < config.training.InTriLickTimerDur);
addedDelay = config.training.InTriLickTimerDur - remainingTime;
out.trialStarts_sched(iTrial:end) = out.trialStarts_sched(iTrial:end) + addedDelay;
% refresh the remaining time
remainingTime = out.trialStarts_sched(iTrial) - toc(out.expStartTime);
end;
if interTrialLickCount > 0;
fprintf('|%.1f', remainingTime);
else
fprintf(' inter-trial licking, delaying for %.1fs: |%.1f', ...
addedDelay, remainingTime);
end;
interTrialLickCount = interTrialLickCount + 1;
pause(1);
% restart the listening
s1.startBackground;
pause(0.1);
% fprintf('CheckingB: s1.IsRunning? %d\n', s1.IsRunning);
end
% avoid full-speed looping
pause(0.01);
end
if interTrialLickCount;
fprintf('|: %d inter-trial lick(s).\n', interTrialLickCount);
end
out.nInTriLick(iTrial) = interTrialLickCount;
out.trialStarts_obs(iTrial) = toc(out.expStartTime);
resp = 0;
t_trialStart = tic;
fprintf('Trial %03d/%03d - %s ... ', iTrial, nTrials, datestr(now, logDateFormat));
%% Experiment - play sound
if s1.IsRunning
soundToPlay = toneArray{iTrial};
player = audioplayer(soundToPlay, config.tone.samplingFreq); %#ok<TNMLP>
player.play;
else
fprintf('early (already licking, lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
recordedValues);
if iTrial < nTrials
out.trialStarts_sched(iTrial+1:end) = ...
out.trialStarts_sched(iTrial+1:end) + config.training.timeoutPunish;
end
out.respTypes(iTrial) = 5;
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(out.respTypes, 0);
end
continue
end
breakOut = 0;
%% Experiment - wait for response
while toc(t_trialStart) < config.training.trialDur
if s1.IsRunning
% no response detected
else
% seconds since trial start
respTime = toc(t_trialStart);
out.respTimes(iTrial) = respTime;
% response should be 'minRespTime' after the end of the tone!
totToneDur = (config.tone.toneDur + config.tone.ISI) * config.tone.nTones - config.tone.ISI;
limitRespTime = totToneDur + config.training.minRespTime;
out.respDelay(iTrial) = limitRespTime - respTime;
% early response, count as kind of false alarm
if respTime < limitRespTime;
% fprintf('early (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
% recordedValues);
fprintf('early (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
if iTrial < nTrials
out.trialStarts_sched(iTrial+1:end) = out.trialStarts_sched(iTrial+1:end) ...
+ config.training.timeoutPunish;
end;
pause(config.training.timeoutPunish * 0.2);
out.respTypes(iTrial) = 5;
breakOut = 1;
break;
else
% fprintf('Lick at %s\n', datestr(clock, logDateFormat))
resp = 1;
end;
break; % break out of while loop
end;
pause(0.02); % necessary to allow time for data collection
end;
if breakOut;
out.trialEnds_obs(iTrial) = toc(out.expStartTime);
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(out.respTypes, 0);
end;
continue; % continue for loop
end;
if s1.IsRunning;
s1.stop;
end;
%% Experiment - analyse response
out.resps(iTrial) = resp;
isOddTrial = stims(iTrial) ~= odds(iTrial);
if config.tone.oddProba > 0; % oddball discrimination
isTargetStim = isOddTrial && config.tone.goStim;
else % frequency discrimination
isTargetStim = stims(iTrial) == config.tone.goStim;
end;
if resp == 1 && isTargetStim;
% correct response
% fprintf('correct detection (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
% recordedValues);
fprintf('correct detection (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
out.respTypes(iTrial) = 1;
% give reward
giveReward(s2,config.training.rewDur,config.training.rewDelay);
% wait so they can collect the reward
pause(config.training.rewCollTime);
if iTrial < nTrials;
out.trialStarts_sched(iTrial+1:end) = ...
out.trialStarts_sched(iTrial+1:end) ...
+ (config.training.rewDur + config.training.rewDelay);
end;
elseif resp == 1 && ~isTargetStim;
% false alarm
% fprintf('false alarm (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', ...
% recordedValues);
fprintf('false alarm (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
out.respTypes(iTrial) = 3;
if iTrial < nTrials;
out.trialStarts_sched(iTrial+1:end) = ...
out.trialStarts_sched(iTrial+1:end) + config.training.timeoutPunish;
end
elseif resp == 0 && isTargetStim;
fprintf('miss.\n');
out.respTypes(iTrial) = 4;
if iTrial < nTrials
out.trialStarts_sched(iTrial+1:end) = ...
out.trialStarts_sched(iTrial+1:end) + config.training.timeoutPunish;
end
elseif resp == 0 && ~isTargetStim;
fprintf('correct rejection.\n');
out.respTypes(iTrial) = 2;
% go to next trial
% give reward and wait so they can collect it
% giveReward(s2,config.training.rewDur,config.training.rewDelay);
% pause(config.training.rewCollTime);
% if iTrial < nTrials
% out.trialStarts_sched(iTrial+1:end) = out.trialStarts_sched(iTrial+1:end) + ...
% config.training.rewDur + config.training.rewDelay;
% end
end
out.trialEnds_obs(iTrial) = toc(out.expStartTime);
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(out.respTypes, 0);
end
end
%% End experiment
fprintf('\nExperiment end: %s\n', datestr(now, logDateFormat));
out.expTotDurTime = toc(out.expStartTime);
fprintf('Total time: %02.0f:%02.0f\n', out.expTotDurTime / 60, mod(out.expTotDurTime, 60));
mtrainerAnalyser_performance(out.respTypes, 2, out.savePath, out.nInTriLick);
catch err
fprintf('\n\nAn error occured. Last trial: %1.0f. Cleaning up ...\n\n', iTrial)
rethrow(err);
end
%% Function - giveReward
function giveReward(s2, rewDur, rewDelay)
t_rewardStart = tic;
% wait until for start delay
while toc(t_rewardStart) < rewDelay; end;
t_rewardStart = tic;
% open digital out
s2.outputSingleScan(0);
% wait until for open duration
while toc(t_rewardStart) < rewDur; end;
% close digital out
s2.outputSingleScan(1);
end
function recordAndStop(src, event, lickThresh)
recordedValues = stopWhenExceedThreshold(src, event, lickThresh);
end
function closeDiaryAndSaveOutput(savePath, lh, s1, s2)
fprintf('\nClosing diary... ');
diary off;
fprintf('done.\n');
if (exist('out', 'var'));
matFileName = sprintf('%s_out.mat', savePath);
fprintf('Saving output as %s... ', matFileName);
save(matFileName, 'out');
fprintf('done.\n');
else
fprintf('/!\\ Output not saved\n');
end;
fprintf('Closing channels... ');
if exist('lh', 'var'); delete(lh); end;
if exist('s1', 'var'); delete(s1); end;
if exist('s2', 'var'); delete(s2); end;
fprintf('done.\n');
end
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainer_oldversion_legacyInterface.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainer_oldversion_legacyInterface.m
| 8,514 |
utf_8
|
745363c7c815304e2e4265dd8ef8ab38
|
function mtrainer(varargin)
% main function for mtrainer experiment suite
% all times are in s!
% written by Henry Luetcke ([email protected])
% 2012-11-08
if ~nargin
% gui select mat-file with config structure
[FileName,PathName] = uigetfile('*.mat','Select configuration file');
S = load(fullfile(PathName,FileName));
fields = fieldnames(S);
config = S.(fields{1});
else
config = varargin{1};
end
try
parseConfig(config);
catch
rethrow(lasterror)
error('Failed to parse config struture')
end
%% Setup stimuli and trials
% set up stimVector
stimVector = [];
for n = 1:length(config.tone.fVector)
stim = repmat(n,1,round(config.tone.stimProbabilities(n)*config.tone.trials));
stimVector = [stimVector, stim];
end
stimVector = stimVector(randperm(numel(stimVector)));
% set up tone array
toneArray = MakePureToneArray(config.tone.fVector,stimVector,...
config.tone.toneDuration,config.tone.sf);
%% Start hardware
% analog input
daqreset
ai=analoginput(config.hardware.adaptorID,config.hardware.analogIn_Device);
addchannel(ai, config.hardware.analogIn_Channel);
set(ai,'InputType','SingleEnded')
% sample rate and recording duration
ai.SampleRate = config.hardware.aiSampleRate;
% digital IO
dio=digitalio(config.hardware.adaptorID,config.hardware.digitalIO_Device);
digitalOut = addline(dio,config.hardware.digitalOut_Channel,'out');
% hardware 'warm-up'
% analog in
ai.SamplesPerTrigger = 100;
start(ai);
% get data
data = getdata(ai);
figure, plot(data)
lickThresh = 10.*std(data) + max(data);
fprintf('Lick threshold: %1.2f\n',lickThresh)
stop(ai), clear data
% digital out
putvalue(digitalOut,1) % 1 is light off, 0 is light on (strangely enough)
for n = 1:10; putvalue(digitalOut,0), putvalue(digitalOut,1), pause(0.1); end
% some changes to ai
ai.SamplesPerTrigger = Inf;
% % timer function
% trial = 1; t_trialStart = clock;
% ai.TimerFcn = {@daqTimerFunction};
% ai.TimerPeriod = 0.01;
% set(ai, 'TriggerRepeat', Inf);
logfile = sprintf('mtrainerLogfile_%s.txt',datestr(clock,30));
diary(logfile)
disp('Finished set up and hardware tests. Press any key to start!')
pause
%% Start experiment
fprintf('Experiment start: %s\n\n',datestr(now,'dd-mm-yyyy HH:MM:SS.FFF'))
try
totalTrialDur = config.training.trialDuration(1) + config.training.startDelay;
samplesPerTrial = round((totalTrialDur-0.1).*ai.SampleRate); % a bit less to allow for processing time
maxTrials = numel(stimVector);
maxTrials = 50; % for testing
responseCount = zeros(1,4); % correct detect, correct reject, false alarm, miss
% compute relative start times for each trial
trialStartVector_scheduled = [0:totalTrialDur:(maxTrials-1)*totalTrialDur];
trialStartVector_observed = zeros(1,maxTrials);
trialEndVector_observed = zeros(1,maxTrials);
daqStartTime = cell(1,maxTrials);
start(ai);
t_expStart = tic;
for trial = 1:maxTrials
while toc(t_expStart) < trialStartVector_scheduled(trial)
% do nothing
end
trialStartVector_observed(trial) = toc(t_expStart);
t_trialStart = tic;
fprintf('Trial %1.0f - %s\n',trial, datestr(now, 'HH:MM:SS.FFF'))
% play tone
sound(toneArray{trial},config.tone.sf)
response = 0;
% listen for response
while toc(t_trialStart) < config.training.trialDuration(1)
size = min([ai.SamplesAvailable 10]);
data = peekdata(ai, size);
if max(data) > 0.1 % lick detected
fprintf('Lick at %s (max = %1.2f)\n',datestr(clock,'HH:MM:SS.FFF'),max(data))
response = 1;
if stimVector(trial) == config.tone.goStim
% correct response
fprintf('Correct detection\n')
responseCount(1) = responseCount(1) + 1;
% give reward
giveReward(digitalOut,config.training.rewardDuration,config.training.rewardDelay);
if trial < maxTrials
trialStartVector_scheduled(trial+1:end) = ...
trialStartVector_scheduled(trial+1:end) + (config.training.rewardDuration+config.training.rewardDelay);
end
else
% false alarm
fprintf('False alarm\n')
responseCount(3) = responseCount(3) + 1;
if trial < maxTrials
trialStartVector_scheduled(trial+1:end) = ...
trialStartVector_scheduled(trial+1:end) + config.training.timeoutPunish;
end
end
break
end
end
if ~response && stimVector(trial) == config.tone.goStim
fprintf('Miss\n')
responseCount(4) = responseCount(4) + 1;
if trial < maxTrials
trialStartVector_scheduled(trial+1:end) = ...
trialStartVector_scheduled(trial+1:end) + config.training.timeoutPunish;
end
elseif ~response && stimVector(trial) ~= config.tone.goStim
fprintf('Correct rejection\n')
responseCount(2) = responseCount(2) + 1;
giveReward(digitalOut,config.training.rewardDuration,config.training.rewardDelay);
if trial < maxTrials
trialStartVector_scheduled(trial+1:end) = ...
trialStartVector_scheduled(trial+1:end) + (config.training.rewardDuration+config.training.rewardDelay);
end
end
trialEndVector_observed(trial) = toc(t_expStart);
end
fprintf('\nExperiment end: %s\n\n',datestr(now,'dd-mm-yyyy HH:MM:SS.FFF'))
[lickData,lickDataT,daqStartTime] = ...
getdata(ai,ai.SamplesAcquired);
stop(ai); delete(ai); delete(dio)
save('out.mat','lickData','lickDataT','daqStartTime',...
'trialStartVector_scheduled','trialStartVector_observed',...
'trialEndVector_observed')
figure('Name','Trial start difference')
plot((trialStartVector_observed-trialStartVector_scheduled).*1000,'k')
xlabel('Trial'), ylabel('actual - scheduled / ms')
doPerformanceAnalysis(responseCount);
diary off
catch
disp('An error occured. Cleaning up ...')
stop(ai), delete(ai), delete(dio), diary off
rethrow(lasterror)
end
%% Function - giveReward
function giveReward(digitalOut,rewardDuration,rewardDelay)
t_rewardStart = tic;
while toc(t_rewardStart) < rewardDelay
% do nothing
end
t_rewardStart = tic;
% open digital out
putvalue(digitalOut,0)
while toc(t_rewardStart) < rewardDuration
% do nothing
end
putvalue(digitalOut,1)
%% Function - doPerformanceAnalysis
function doPerformanceAnalysis(responseCount)
% responseCount columns: correct detect, correct reject, false alarm, miss
trials = sum(responseCount);
T = responseCount(1)+responseCount(4); % targets
N = responseCount(2)+responseCount(3); % non-targets
fprintf('\n\nPerformance:\n')
fprintf('Trials: %1.0f\n',trials)
fprintf('Correct detections: %1.0f (%1.2f%%)\n',responseCount(1),responseCount(1)./T.*100)
fprintf('Correct rejections: %1.0f (%1.2f%%)\n',responseCount(2),responseCount(2)./N.*100)
fprintf('False alarms: %1.0f (%1.2f%%)\n',responseCount(3),responseCount(3)./N.*100)
fprintf('Miss: %1.0f (%1.2f%%)\n',responseCount(4),responseCount(4)./T.*100)
fprintf('Total correct: %1.0f (%1.2f%%)\n',sum(responseCount(1:2)),sum(responseCount(1:2))./trials.*100)
fprintf('Total errors: %1.0f (%1.2f%%)\n',sum(responseCount(3:4)),sum(responseCount(3:4))./trials.*100)
dPrim = dprime(responseCount(1)./trials,responseCount(3)./trials,T,N);
fprintf('d'':%1.3f\n',dPrim)
%% Function - parseConfig
function parseConfig(config)
% list of required hardware fields:
requiredFields = {...
'adaptorID'
'analogIn_Device'
'analogIn_Channel'
'aiSampleRate'
'digitalIO_Device'
'digitalOut_Channel'
};
accessFields(config.hardware,requiredFields);
% list of required tone fields:
requiredFields = {...
'sf'
'fVector'
'stimProbabilities'
'trials'
'goStim'
'toneDuration'
};
accessFields(config.tone,requiredFields);
% list of required training fields:
requiredFields = {...
'responseTime'
'trialDuration'
'startDelay'
'rewardDuration'
'rewardDelay'
'timeoutPunish'
};
accessFields(config.training,requiredFields);
function accessFields(S,fields)
for n = 1:numel(fields)
S.(fields{n});
end
|
github
|
HelmchenLabSoftware/OCIA-master
|
mtrainer_GUI.m
|
.m
|
OCIA-master/behavior/mtrainer/mtrainer_GUI.m
| 34,409 |
utf_8
|
3d5a15b6438819e18ebd58da906241e8
|
function varargout = mtrainer_GUI(varargin)
% TODO:
% - stopping the experiment: trial no 100 ? plot ? set buttons to stop ?
% - reward anyway system
% - forbid disconnecting HW or changing mouseID while experiment is running
% - piezoThresh calibrator with setter
% - online lick ploting
% - online performance
% - logging into GUI window
% - config setter
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @mtrainer_GUI_OpeningFcn, ...
'gui_OutputFcn', @mtrainer_GUI_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1});
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout;
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before mtrainer_GUI is made visible.
function mtrainer_GUI_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to mtrainer_GUI (see VARARGIN)
% Choose default command line output for mtrainer_GUI
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
initialize_gui(hObject, handles, false);
set(hObject, 'DeleteFcn', @onWindowClose);
set(hObject, 'Position', [200 800 800 620]);
% --- Outputs from this function are returned to the command line.
function varargout = mtrainer_GUI_OutputFcn(hObject, eventdata, handles) %#ok<*INUSL>
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --------------------------------------------------------------------
function initialize_gui(fig_handle, handles, isreset) %#ok<*INUSD>
% If the metricdata field is present and the start flag is false, it means
% we are we are just re-initializing a GUI by calling it from the cmd line
% while it is up. So, bail out as we dont want to start the data.
initMain(handles);
% updateGUI();
% --- Executes on button press in connectHW.
function connectHW_Callback(hObject, eventdata, handles)
% hObject handle to connectHWButton_Callback (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if isfield(main.hw, 'connected') && main.hw.connected;
disconnectHW();
else
connectHW();
end
% updateGUI();
% --- Executes on button press in start.
function start_Callback(hObject, eventdata, handles)
% hObject handle to start (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if main.isRunning;
warning('mtrainerGUI:CannotStartAlreadyRunning', ...
'Cannot start because experiment is already running and not paused.');
updateGUI();
return;
else
startExperiment();
end
% updateGUI();
try
mainLoop();
catch e;
closeDiaryAndSaveOutput();
throw(e);
end;
% --- Executes on button press in pause.
function pause_Callback(hObject, eventdata, handles)
% hObject handle to pause (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if main.isRunning;
if main.isPaused;
main.isPaused = false;
else
main.isPaused = true;
end
else
warning('mtrainerGUI:CannotPauseNotRunning', ...
'Cannot pause because experiment is not running.');
end
% updateGUI();
% --- Executes on button press in stop.
function stop_Callback(hObject, eventdata, handles) %#ok<*DEFNU>
% hObject handle to stop (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
if main.isRunning;
main.isRunning = false;
closeDiaryAndSaveOutput();
else
warning('mtrainerGUI:CannotStopNotRunning', 'Cannot stop because experiment is not running.');
end
% updateGUI();
% --- Executes on button press in reward.
function reward_Callback(hObject, eventdata, handles)
% hObject handle to reward (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global main;
giveReward(main.rewardDur, 0);
% --- Executes on slider movement.
function rewardDurSetter_Callback(hObject, eventdata, handles)
% hObject handle to rewardDurSetter (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global main;
main.rewardDur = get(hObject,'Value');
set(handles.rewardDur, 'String', sprintf('%04.2f', main.rewardDur));
% --- Executes on slider movement.
function piezoThreshSetter_Callback(hObject, eventdata, handles)
% hObject handle to piezoThreshSetter (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global main;
main.piezoThresh = get(hObject, 'Value');
set(handles.piezoThresh, 'String', sprintf('%04.2f', main.piezoThresh));
% --- Executes when selected cell(s) is changed in config.
function config_CellSelectionCallback(hObject, eventdata, handles)
% hObject handle to config (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) currently selecteds
% handles structure with handles and user data (see GUIDATA)
global main;
o('#config_CellSelectionCallback: selection changed: row %d, col %d.', eventdata.Indices, 3, main.dbgLvl);
row = eventdata.Indices(1);
configCell = get(main.handles.config, 'Data');
main.mouseId = configCell{row, 1};
main.taskType = configCell{row, 2};
main.phase = configCell{row, 3};
main.configLoaded = false;
o('#config_CellSelectionCallback: mouseId: %s, taskType: %s, phase: %s.', ...
main.mouseId, main.taskType, main.phase, 3, main.dbgLvl);
% updateGUI();
% --- Executes on button press in loadConfig.
function loadConfig_Callback(hObject, eventdata, handles)
% hObject handle to loadConfig (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
loadConfig();
%% #initMain
function initMain(handles)
global main;
main = struct();
main.dbgLvl = 3;
main.debugMode = 0;
main.basePath = 'C:/Users/laurenczy/Documents/programming/Work/PhD/matlab/behavior/mtrainer/';
% main.basePath = 'D:/Users/BaL/programming/Work/PhD/matlab/behavior/mtrainer/';
configsPath = sprintf('%sconfigs.mat', main.basePath);
if ~exist(configsPath, 'file');
error('mtrainerGUI:initMain:ConfigsFileNotFound', ...
'Cannot find the configs at "%s" (file not found).', configsPath);
end;
configsMat = load(configsPath);
main.configs = configsMat.configs;
[~, computerName] = system('hostname');
roomMatch = regexp(computerName, '^HIFOWS(?<room>H\d+)\-\d+\s+$', 'names');
if main.debugMode;
warning('mtrainer_GUI:initMain:DebugMode', 'Debug mode is ON.');
roomMatch = struct('room', 'H30');
o('#initMain: debug mode => room tag enforced to: "%s".', roomMatch.room, 1, main.dbgLvl);
end;
if isempty(roomMatch);
error('mtrainerGUI:initMain:HardwareLoad:NoRoomTagFound', ...
'Cannot load hardware because there''s no room tag in the computer''s name.');
elseif ~isfield(main.configs.hardware, roomMatch.room);
error('mtrainerGUI:initMain:HardwareLoad:UnknownRoom', ...
'Cannot load hardware because room "%s" is unknown.', roomMatch.room);
end;
main.hw = struct();
main.hw.conf = main.configs.hardware.(roomMatch.room);
main.hw.connected = false;
main.hw.analogIns = {'piezo', 'micr', 'yscan'};
main.hw.digitalOuts = {'valve'};
main.hw.recordDur = 8.1;
main.updateRate = 0.1; % 100ms update rate
main.piezoThresh = 0.1;
main.isRunning = false;
main.isPaused = false;
main.isClosed = false;
main.configLoaded = false;
main.iTrial = 0;
main.rewardDur = str2double(get(handles.rewardDur,'String'));
main.handles = handles;
stateData = get(main.handles.state, 'Data');
stateData(:, 1) = getTrialInfo(0);
stateData(:, 2) = getTrialInfo(0);
stateData(:, 3) = getTrialInfo(0);
set(main.handles.state, 'Data', stateData);
set(main.handles.config, 'Data', main.configs.animals);
main.GUIUpdateTimer = timer('TimerFcn', @(~, ~)updateGUI(), 'ExecutionMode', 'fixedRate', ...
'Period', main.updateRate * 1, 'StopFcn', @(~, ~)o('GUIUpdateTimer stopped.', 1, main.dbgLvl), ...
'ErrorFcn', @(~, ~)o('GUIUpdateTimer stopped with error.', 1, main.dbgLvl));
start(main.GUIUpdateTimer);
main.mouseId = '';
o('Mouse trainer v1.0 initiated.', 1, main.dbgLvl);
function onWindowClose(src, eventData)
global main;
stop(main.GUIUpdateTimer);
delete(main.GUIUpdateTimer);
main.isClosed = true;
%% #connectHW
function connectHW()
global main;
o('Connecting hardware ...', 1, main.dbgLvl);
set(main.handles.connectHW, 'BackgroundColor', 'yellow');
main.hw.sampleRate = 0;
nAnIn = numel(main.hw.analogIns);
if nAnIn;
main.analogInData = struct();
main.hw.anIn = daq.createSession(main.hw.conf.adaptorID);
end;
for iAnIn = 1 : nAnIn;
anInName = main.hw.analogIns{iAnIn};
if ~main.debugMode;
main.hw.sampleRate = main.hw.sampleRate + main.hw.conf.(anInName).sampleRate;
main.hw.anIn.addAnalogInputChannel(main.hw.conf.(anInName).deviceName, ...
main.hw.conf.(anInName).channel, 'Voltage');
main.hw.anIn.Channels(iAnIn).Name = anInName;
main.hw.anIn.Channels(iAnIn).InputType = main.hw.conf.(anInName).inputType;
main.hw.anIn.Channels(iAnIn).Range = main.hw.conf.(anInName).range;
main.analogInData.(anInName) = [];
else
o(' "Connecting" fake analog input %d/%d (%s).', iAnIn, nAnIn, anInName, 1, main.dbgLvl);
main.hw.(anInName) = struct();
% main.hw.([anInName 'Listener']) = struct();
main.hw.(anInName).stop = 1;
main.hw.(anInName).startBackground = 1;
% main.hw.(analogInName).IsRunning = @()(round(rand + 0.4));
% main.hw.(analogInName).IsRunning = @()(round(rand - 0.4));
main.hw.(anInName).IsRunning = 1;
pause(1);
end;
o(' Analog input %d/%d (%s): OK.', iAnIn, nAnIn, anInName, 1, main.dbgLvl);
end;
if nAnIn;
main.hw.([anInName 'Listener']) = main.hw.anIn.addlistener('DataAvailable', @(src, event) storeData(src, event));
main.hw.anIn.IsNotifyWhenDataAvailableExceedsAuto = true;
main.hw.anIn.IsContinuous = true;
main.hw.sampleRate = main.hw.sampleRate / nAnIn;
main.hw.anIn.Rate = main.hw.sampleRate;
main.hw.anIn.NotifyWhenDataAvailableExceeds = 200;
% main.hw.anIn.Rate = 3000;
main.hw.anIn.prepare();
end;
for iDigOut = 1 : numel(main.hw.digitalOuts);
digOutName = main.hw.digitalOuts{iDigOut};
if ~main.debugMode;
main.hw.(digOutName) = daq.createSession(main.hw.conf.adaptorID);
main.hw.(digOutName).addDigitalChannel(main.hw.conf.(digOutName).deviceName, ...
main.hw.conf.(digOutName).portLine, 'OutputOnly');
main.hw.(digOutName).outputSingleScan(0); % make sure valve is closed
else
o(' "Connecting" fake digital output %d (%s).', iDigOut, digOutName, 1, main.dbgLvl);
main.hw.valve = struct();
pause(1);
end;
o(' Digital output %d (%s): OK.', iDigOut, digOutName, 1, main.dbgLvl);
end;
main.hw.connected = true;
o('Hardware connected.', 1, main.dbgLvl);
if ~strcmp(main.GUIUpdateTimer.Running, 'on');
start(main.GUIUpdateTimer);
end;
main.hw.anIn.startBackground();
%% #disconnectHW
function disconnectHW()
global main;
o('Disconnecting hardware ...', 1, main.dbgLvl);
if ~main.debugMode;
main.hw.anIn.stop();
% % analog inputs
% for iAnIn = 1 : numel(main.hw.analogIns);
% anInName = main.hw.analogIns{iAnIn};
% if isfield(main.hw, ([anInName 'Listener']));
% main.hw = rmfield(main.hw, [anInName 'Listener']);
% end;
% if isfield(main.hw, anInName);
% main.hw.(anInName).stop();
% main.hw = rmfield(main.hw, anInName);
% end;
% end;
% % digital outputs
% for iDigOut = 1 : numel(main.hw.digitalOuts);
% digOutName = main.hw.digitalOuts{iDigOut};
% if isfield(main.hw, digOutName);
% % main.hw.(digOutName).stop();
% main.hw = rmfield(main.hw, digOutName);
% end;
% end;
daqreset();
end;
main.hw.connected = false;
o('Hardware disconnected.', 1, main.dbgLvl);
%% #giveReward
function giveReward(rewDur, rewDelay)
global main;
if main.hw.connected && isfield(main.hw, 'valve');
if ~main.debugMode;
t_rewardStart = tic;
% wait until for start delay
while toc(t_rewardStart) < rewDelay; end;
t_rewardStart = tic;
% open digital out
% main.hw.valve.outputSingleScan(0);
main.hw.valve.outputSingleScan(1);
% wait until for open duration
while toc(t_rewardStart) < rewDur; end;
% close digital out
% main.hw.valve.outputSingleScan(1);
main.hw.valve.outputSingleScan(0);
end;
o('Rewarding for %.2f sec with a delay of %.2f.', rewDur, rewDelay, 3, main.dbgLvl);
else
warning('mtrainerGUI:NoRewardHardwareDisconnected', 'Cannot give reward because hardware is disconnected.');
end
%% #updateGUI
function updateGUI()
global main;
% o('#updateGUI()', 1, main.dbgLvl);
if main.isClosed; return; end;
stateData = get(main.handles.state, 'Data');
handles = main.handles;
if main.hw.connected;
set(handles.connectHW, 'BackgroundColor', 'green');
set(handles.connectHW, 'Value', 1);
else
set(handles.connectHW, 'BackgroundColor', 'red');
set(handles.connectHW, 'Value', 0);
end;
if main.isRunning;
set(handles.start, 'Value', 1);
set(handles.start, 'BackgroundColor', 'green');
if main.isPaused;
set(handles.pause, 'Value', 1);
set(handles.pause, 'BackgroundColor', [1 1 0]);
else
set(handles.pause, 'Value', 0);
set(handles.pause, 'BackgroundColor', 'green');
end;
% stateData(:, 1) = stateData(:, 2);
stateData(:, 1) = getTrialInfo(main.iTrial - 1);
stateData(:, 2) = getTrialInfo(main.iTrial);
if main.iTrial < main.config.training.nTrials;
stateData(:, 3) = getTrialInfo(main.iTrial + 1);
else
stateData(:, 3) = getTrialInfo(0);
end;
else
set(handles.start, 'Value', 0);
set(handles.start, 'BackgroundColor', 'red');
set(handles.pause, 'Value', 0);
set(handles.pause, 'BackgroundColor', 'red');
if main.configLoaded && main.iTrial == 0;
stateData(:, 3) = getTrialInfo(1);
else
stateData(:, 3) = getTrialInfo(0);
end;
end;
delete(get(handles.piezoAxes, 'Children')); % delete previous plot
if isfield(main, 'analogInData');
hold(handles.piezoAxes, 'on');
if isfield(main.analogInData, 'yscan');
nSamples = size(main.analogInData.yscan, 1);
if nSamples;
t = (1 : nSamples) / main.hw.sampleRate;
plot(handles.piezoAxes, t, main.analogInData.yscan * 3, 'b');
end;
end;
if isfield(main.analogInData, 'micr');
nSamples = size(main.analogInData.micr, 1);
if nSamples;
t = (1 : nSamples) / main.hw.sampleRate;
plot(handles.piezoAxes, t, main.analogInData.micr * 2, 'g');
end;
end;
if isfield(main.analogInData, 'piezo');
nSamples = size(main.analogInData.piezo, 1);
if nSamples;
t = (1 : nSamples) / main.hw.sampleRate;
plot(handles.piezoAxes, t, main.analogInData.piezo * 10, 'r');
if isfield(main, 'piezoThresh');
plot(handles.piezoAxes, [0, t(end)], [main.piezoThresh, main.piezoThresh] * 10, 'r:');
end;
end;
end;
end;
xlim(handles.piezoAxes, [0 main.hw.recordDur]);
ylim(handles.piezoAxes, [-3, 3]);
set(main.handles.state, 'Data', stateData);
set(main.handles.configLoaded, 'Value', logical(main.configLoaded));
%% #getTrialInfo
function trialInfo = getTrialInfo(iTrial)
global main;
if iTrial;
freq = sprintf('%4.2f', main.config.tone.freqs(main.stims(iTrial)) / 1000);
if isfield(main.config.tone, 'oddProba') && main.config.tone.oddProba > 0; % oddball discrimination
isTarget = double(main.stims(iTrial) ~= main.odds(iTrial) && main.config.tone.goStim);
else % frequency discrimination
isTarget = double(main.stims(iTrial) == main.config.tone.goStim);
end;
if isfield(main, 'resps') && ~isnan(main.resps(iTrial));
resp = main.resps(iTrial);
respTime = main.respTimes(iTrial);
if isnan(respTime); respTime = '-'; end;
corr = double((isTarget && resp) || (~isTarget && ~resp));
ITL = main.nInTriLick(iTrial);
else
resp = '-';
respTime = '-';
corr = '-';
ITL = '-';
end;
trialInfo = {iTrial, freq, isTarget, resp, respTime, corr, ITL};
else
trialInfo = {'-', '-', '-', '-', '-', '-', '-'};
end;
%% #loadConfig
function loadConfig()
global main;
o('Loading configuration ...', 2, main.dbgLvl);
if isempty(main.mouseId);
warning('loadConfig:NoMouseIdSelected', 'Cannot load config because no mouseId is selected.');
return;
end;
% main.doEmptyWater = 0;
% main.doEmptyWater = 1;
% if > 0, sets the number of seconds to wait before a new run of mtrainer
% main.automode = 5;
main.iTrial = 0;
% main.piezoThresh = NaN;
main.config = main.configs.behavior.(main.taskType).(main.phase);
%% Setup - stimuli and trials
o(' loadConfig#: setup stimuli and trials... ', 3, main.dbgLvl);
% set up stimulus vector
stims = [];
for iFreq = 1 : numel(main.config.tone.freqs);
stimForFreq = repmat(iFreq, 1, ...
round(main.config.tone.stimProba(iFreq) * main.config.training.nTrials));
stims = [stims, stimForFreq]; %#ok<AGROW>
end
% stim vector should not be randomly permuted
stims = stims(randperm(numel(stims)));
stims = stims(1 : main.config.training.nTrials);
clear stim;
switch(main.taskType);
case {'freqDiscr', 'oddDiscr'};
% set up oddball vector by altering stims with a certain probability
odds = stims;
oddPos = zeros(size(odds));
uniqueStims = unique(stims);
isOdd = rand(1, numel(stims)) < main.config.tone.oddProba;
uniqueOddPos = main.config.tone.nTones - 1 : main.config.tone.nTones; % last 2 tones can be odd
for iStim = 1 : numel(isOdd);
if isOdd(iStim);
otherStims = uniqueStims(uniqueStims ~= stims(iStim));
otherStims = otherStims(randperm(numel(otherStims)));
mixedOddPos = uniqueOddPos(randperm(numel(uniqueOddPos)));
odds(iStim) = otherStims(1);
oddPos(iStim) = mixedOddPos(1);
end;
end;
% set up tone array
main.toneArray = MakePureMultiToneOddballArray(main.config.tone.freqs, stims, odds, oddPos, ...
main.config.tone.nTones, main.config.tone.stimDur, main.config.tone.ISI, ...
main.config.tone.samplingFreq);
case 'cotDiscr';
odds = zeros(size(stims));
oddPos = zeros(size(stims));
isOdd = zeros(size(stims));
atten = 0.5;
main.toneArray = MakeCloudOfTonesSound(main.config.tone.uniqueFreqs, main.config.tone.freqIndexes, ...
main.config.tone.cloudDispersion, stims, main.config.tone.toneDur, main.config.tone.toneISI, ...
main.config.tone.stimDur, atten, main.config.tone.samplingFreq, 0, 0);
end;
main.stims = stims;
main.odds = odds;
main.oddPos = oddPos;
main.isOdd = isOdd;
main.configLoaded = true;
updateGUI();
o(' loadConfig#: setup stimuli and trials done. ', 2, main.dbgLvl);
o('Loading configuration done.', 2, main.dbgLvl);
%% #startExperiment
function startExperiment()
global main;
if ~main.configLoaded;
warning('startExperiment:configNotLoaded', 'Cannot start experiment because config is not loaded.');
return;
end;
if isempty(main.mouseId);
warning('startExperiment:NoMouseId', 'Cannot start experiment because there is no mouseId.');
return;
end;
if ~main.hw.connected;
warning('startExperiment:HardwareDisconnected', ...
'Cannot start experiment because hardware is disconnected.');
return;
end;
o('startExperiment#: initializing experiment ... ', 2, main.dbgLvl);
main.isPaused = false;
main.isRunning = true;
main.iTrial = 1;
main.saveTime = datestr(now(), 'yyyy_mm_dd__HH_MM_SS');
% saveFolder = sprintf('D:/Balazs/2013/mtrainerTests/%s/', ...
% saveFolder = sprintf('C:/Users/laurenczy.HIFO/Documents/LocalData/2013/mtrainerTests/%s/', ...
saveFolder = sprintf('C:/Users/laurenczy/mtrainerTests/%s/', main.mouseId);
% saveFolder = sprintf('D:/Users/BaL/PhD/mtrainerTests/%s/', main.mouseId);
main.savePath = sprintf('%s%s__%s', saveFolder, main.mouseId, main.saveTime);
mkdir(saveFolder);
logfile = sprintf('%s_log.txt', main.savePath);
main.logDateFormat = 'yyyy-mm-dd HH:MM:SS.FFF';
% % create an 'onCleanup' function to handle interruptions by CTRL+C
% c = onCleanup(@()closeDiaryAndSaveOutput(main.savePath, main.hw.piezoListener, ...
% main.hw.piezo, main.hw.valve));
o(' startExperiment#: logFile initialized. Starting diary...', 2, main.dbgLvl);
diary(logfile);
%% Start experiment
o('Experiment start: %s\n\n', datestr(now(), main.logDateFormat), 1, main.dbgLvl);
%% Setup - saving settings
global recordedValues;
recordedValues = 0;
o('config: %s phase %s (%dF%dT)', main.taskType, main.phase, numel(main.config.tone.freqs), ...
main.config.tone.nTones, 0, main.dbgLvl);
o('animal: %s', main.mouseId, 0, main.dbgLvl);
o('savePath: %s', main.savePath, 0, main.dbgLvl);
o('piezoThresh: %1.2f, ISI: %1.2f', main.piezoThresh, main.config.tone.ISI, 1, main.dbgLvl);
o('rewardCollectionTime: %1.2f, InTriLickTimerDur: %1.2f', main.config.training.rewCollTime, ...
main.config.training.InTriLickTimerDur, 1, main.dbgLvl);
nTrials = main.config.training.nTrials;
main.trialStartDelays = zeros(1, nTrials);
main.trialStartTimes = zeros(1, nTrials);
main.trialEndTimes = zeros(1, nTrials);
main.respTimes = nan(1, nTrials);
main.nInTriLick = nan(1, nTrials);
main.resps = nan(1, nTrials);
main.respDelays = nan(1, nTrials);
% for each trial: 1 = correct detect, 2 = correct reject, 3 = false alarm, 4 = miss, 5 = early
main.respTypes = nan(1, nTrials);
main.expStartTime = tic;
main.isPunish = 0;
%% #mainLoop
function mainLoop()
global main;
displayedPause = 0;
while main.isRunning;
o('mainLoop#: iTrial = %d.', main.iTrial, 4, main.dbgLvl);
if ~main.isPaused;
if displayedPause; o(' --- RESUMED --- ', 1, main.dbgLvl); displayedPause = 0; end;
o('mainLoop#: running trial %d.', main.iTrial, 3, main.dbgLvl);
runTrial();
if main.isRunning;
% o('Trial %d: pause ended, updating trial number.', main.iTrial, 2, main.dbgLvl);
if main.iTrial == main.config.training.nTrials;
main.isRunning = false;
%% End experiment
o('\nExperiment end: %s', datestr(now(), main.logDateFormat), 1, main.dbgLvl);
main.expTotDurTime = toc(main.expStartTime);
o('Total time: %02.0f:%02.0f', ...
main.expTotDurTime / 60, mod(main.expTotDurTime, 60), main.dbgLvl);
mtrainerAnalyser_performance(main.respTypes, 2, main.savePath, main.nInTriLick);
closeDiaryAndSaveOutput();
else
main.iTrial = main.iTrial + 1;
o('Trial %d: updated trial number: %d.', main.iTrial - 1, main.iTrial, 2, main.dbgLvl);
end;
else
o('Trial %d: not running anymore, no update of trial number.', main.iTrial, 2, main.dbgLvl);
end;
o('mainLoop#: running trial %d done.', main.iTrial, 3, main.dbgLvl);
% updateGUI();
else
if ~displayedPause; o(' --- PAUSED --- ', 1, main.dbgLvl); displayedPause = 1; end;
o('mainLoop#: waiting for %f sec (trial %d).', main.updateRate, main.iTrial, 3, main.dbgLvl);
pause(main.updateRate);
end;
end;
%% #runTrial
function runTrial()
global main;
nTrials = main.config.training.nTrials;
iTrial = main.iTrial;
% listen for response
% main.hw.anIn.startBackground();
pause(0.01)
interTrialLickCount = 0;
main.trialStartTimes(iTrial) = tic;
% introduce a random delay for starting the tone
main.trialStartDelays(iTrial) = main.config.training.startDelay + ...
(rand(1) - 0.5) * 2 * main.config.training.startDelayRand;
% add punishement time-out if needed
if main.isPunish;
main.trialStartDelays(iTrial) = main.trialStartDelays(iTrial) + main.config.training.timeoutPunish;
end;
%% Experiment - initial wait
while toc(uint64(main.trialStartTimes(iTrial))) < main.trialStartDelays(iTrial);
% fprintf('CheckingA: main.hw.piezo.IsRunning()? %d\n', main.hw.piezo.IsRunning());
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
while main.isPaused; pause(main.updateRate); end;
if ~main.isRunning; return; end;
% % check if no lick has been done
% if ~main.hw.piezo.IsRunning(); % if not running anymore, it means a licking has been done
% remainingTime = main.trialStartDelays(iTrial) - toc(uint64(main.trialStartTimes(iTrial)));
% if interTrialLickCount > 0;
% fprintf('|%.1f', remainingTime);
% else
% fprintf(' inter-trial licking: |%.1f', remainingTime);
% end;
%
% % reset the starting delay to main.config.training.InTriLickTimerDur
% main.trialStartTimes(iTrial) = tic;
% if main.isPunish;
% main.trialStartDelays(iTrial) = max(main.config.training.InTriLickTimerDur, remainingTime);
% else
% main.trialStartDelays(iTrial) = main.config.training.InTriLickTimerDur;
% end;
% interTrialLickCount = interTrialLickCount + 1;
% pause(1);
% % restart the listening
% % main.hw.piezo.startBackground();
% % pause(0.1);
% % fprintf('CheckingB: main.hw.piezo.IsRunning()? %d\n', main.hw.piezo.IsRunning());
% end
% avoid full-speed looping
pause(0.1);
% updateGUI();
end;
% if interTrialLickCount;
% fprintf('|: %d inter-trial lick(s).\n', interTrialLickCount);
% end
main.nInTriLick(iTrial) = interTrialLickCount;
resp = 0;
main.isPunish = 0;
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
t_trialStart = tic;
fprintf('Trial %03d/%03d - %s ... ', iTrial, nTrials, datestr(now(), main.logDateFormat));
%% Experiment - play sound
% if main.hw.piezo.IsRunning();
soundToPlay = main.toneArray{iTrial};
player = audioplayer(soundToPlay, main.config.tone.samplingFreq);
player.play;
% else
% fprintf('early (already licking, lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
% main.isPunish = 1;
% main.respTypes(iTrial) = 5;
% % analyse every 10 trials
% if ~rem(iTrial, 10) && iTrial ~= nTrials;
% mtrainerAnalyser_performance(main.respTypes, 0);
% end;
% return;
% end
breakOut = 0;
%% Experiment - wait for response
while toc(t_trialStart) < main.config.training.trialDur;
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
% if main.hw.piezo.IsRunning();
if 1;
% no response detected
else
% seconds since trial start
respTime = toc(t_trialStart);
main.respTimes(iTrial) = respTime;
% response should be 'minRespTime' after the end of the tone!
totStimDur = (main.config.tone.stimDur + main.config.tone.ISI) * main.config.tone.nTones - main.config.tone.ISI;
limitRespTime = totStimDur + main.config.training.minRespTime;
% limitRespTime = main.config.training.minRespTime;
main.respDelays(iTrial) = limitRespTime - respTime;
% early response, count as kind of false alarm
if respTime < limitRespTime;
% fprintf('early (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
fprintf('early (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
main.isPunish = 1;
main.respTypes(iTrial) = 5;
breakOut = 1;
break;
else
% fprintf('Lick at %s\n', datestr(clock, main.logDateFormat))
resp = 1;
end;
break; % break out of while loop
end;
pause(0.02); % necessary to allow time for data collection
% updateGUI();
end;
if breakOut;
main.trialEndTimes(iTrial) = toc(uint64(main.trialStartTimes(iTrial)));
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(main.respTypes, 0);
end;
return; % continue for loop
end;
% if main.hw.piezo.IsRunning();
% main.hw.piezo.stop();
% end;
% check if experiment is paused/stopped
if ~main.isRunning; return; end;
% while main.isPaused; pause(main.updateRate); end;
% if ~main.isRunning; return; end;
%% Experiment - analyse response
main.resps(iTrial) = resp;
isOddTrial = main.stims(iTrial) ~= main.odds(iTrial);
if isfield(main.config.tone, 'oddProba') && main.config.tone.oddProba > 0; % oddball discrimination
isTargetStim = isOddTrial && main.config.tone.goStim;
else % frequency discrimination
isTargetStim = main.stims(iTrial) == main.config.tone.goStim;
end;
if resp == 1 && isTargetStim;
% correct response
% fprintf('correct detection (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
fprintf('correct detection (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
main.respTypes(iTrial) = 1;
% give reward
giveReward(main.config.training.rewDur, main.config.training.rewDelay);
% wait to collect the reward
pause(main.config.training.rewCollTime);
elseif resp == 1 && ~isTargetStim;
% false alarm
% fprintf('false alarm (lick sensor: min/mean/max: %.2f/%.2f/%.2f).\n', recordedValues);
fprintf('false alarm (response time: %.4f, limit response time: %.4f, diff: %.5f).\n', ...
respTime, limitRespTime, limitRespTime - respTime);
main.respTypes(iTrial) = 3;
% punish time-out
main.isPunish = 1;
elseif resp == 0 && isTargetStim;
fprintf('miss.\n');
main.respTypes(iTrial) = 4;
% punish time-out
main.isPunish = 1;
elseif resp == 0 && ~isTargetStim;
fprintf('correct rejection.\n');
main.respTypes(iTrial) = 2;
% go to next trial
end
main.trialEndTimes(iTrial) = toc(uint64(main.trialStartTimes(iTrial)));
% analyse every 10 trials
if ~rem(iTrial, 10) && iTrial ~= nTrials;
mtrainerAnalyser_performance(main.respTypes, 0);
end;
%% #recordAndStop
function recordAndStop(src, event)
% global main recordedValues;
% [recordedValues, main.recordedData] = stopWhenExceedThreshold(src, event, main.piezoThresh);
% updateGUI();
%% #storeData
function storeData(src, event)
global main;
nChans = size(event.Data, 2);
for iChan = 1 : nChans;
anInName = main.hw.analogIns{iChan};
prevData = main.analogInData.(anInName);
% currChanData = linScale(event.Data(:, iChan) - mean(event.Data(:, iChan)));
currChanData = event.Data(:, iChan) - mean(event.Data(:, iChan));
% currChanData = event.Data(:, iChan);
allChanData = [prevData; currChanData];
if size(allChanData, 1) / main.hw.sampleRate > main.hw.recordDur;
main.analogInData.(anInName) = currChanData;
else
main.analogInData.(anInName) = allChanData;
end;
% if (size(allChanData, 1) + nSamples) / main.hw.sampleRate > main.hw.recordDur;
% updateGUI();
% end;
end;
% normAbsData = abs(normData);
% allData = event.Data;
% supThreshData = normAbsData(normAbsData > main.piezoThresh);
% recordedValues = [min(supThreshData), mean(supThreshData), max(supThreshData)];
% main.recordedData = allData;
% recordDur
% if any(normAbsData > threshold);
% end;
%
% [recordedValues, main.recordedData] = stopWhenExceedThreshold(src, event, main.piezoThresh);
% updateGUI();
%% #closeDiaryAndSaveOutput
function closeDiaryAndSaveOutput()
global main;
o('\nClosing diary... ', 2, main.dbgLvl);
diary off;
o('Closing diary done.', 1, main.dbgLvl);
out = main;
try out.hw = rmfield(out.hw, 'toneArray'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'piezoListener'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'piezo'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'valve'); catch e; end; %#ok<NASGU>
try out.hw = rmfield(out.hw, 'recordedData'); catch e; end; %#ok<NASGU>
if exist('out', 'var');
matFileName = sprintf('%s_out.mat', main.savePath);
o('Saving output as %s... ', matFileName, 2, main.dbgLvl);
save(matFileName, 'out');
o('Saving output done.', matFileName, 1, main.dbgLvl);
else
o('/!\\ Output not saved !', 1, main.dbgLvl);
end;
% disconnectHW();
|
github
|
PacktPublishing/ROS-Programming-Building-Powerful-Robots-master
|
teleop.m
|
.m
|
ROS-Programming-Building-Powerful-Robots-master/Module03/Chapter08/Matlab/teleop.m
| 10,043 |
utf_8
|
7f1f1a8bd40b2cbd4fb318fe3d696aa9
|
function varargout = teleop(varargin)
%Before starting this code, you have to launch any robotic simulation on
%ROS PC or start a ROS robot
% For example, you can test it using turtlebot simulation
% You can launch turtlebot simulation using following command
% $ roslaunch turtlebot_gazebo turtlebot_world.launch
% Retreive IP of the PC and put it on the MATLAB app, also note the command
% velocity
% TELEOP MATLAB code for teleop.fig
% TELEOP, by itself, creates a new TELEOP or raises the existing
% singleton*.
%
% H = TELEOP returns the handle to a new TELEOP or the handle to
% the existing singleton*.
%
% TELEOP('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in TELEOP.M with the given input arguments.
%
% TELEOP('Property','Value',...) creates a new TELEOP or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before teleop_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to teleop_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help teleop
% Last Modified by GUIDE v2.5 07-Dec-2016 22:22:30
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @teleop_OpeningFcn, ...
'gui_OutputFcn', @teleop_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before teleop is made visible.
function teleop_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to teleop (see VARARGIN)
% Choose default command line output for teleop
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes teleop wait for user response (see UIRESUME)
% uiwait(handles.figure1);
%Declaring some initial variables globally
global ros_master_ip
global ros_master_port
global teleop_topic_name
%DEFAULT ROS MASTER IP, PORT AND TELEOP TOPIC
ros_master_ip = '192.168.1.102';
ros_master_port = '11311';
teleop_topic_name = '/cmd_vel_mux/input/teleop';
%Initializing robot speed
global left_spinVelocity
global right_spinVelocity
global forwardVelocity
global backwardVelocity
left_spinVelocity = 2; % Angular velocity (rad/s)
right_spinVelocity = -2; % Angular velocity (rad/s)
forwardVelocity = 3; % Linear velocity (m/s)
backwardVelocity = -3; % Linear velocity (reverse) (m/s)
% --- Outputs from this function are returned to the command line.
function varargout = teleop_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in pushbutton2.
%Right movement
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global velmsg
global robot
global right_spinVelocity
global teleop_topic_name
%Assigning data to Twist message
velmsg.Angular.Z = right_spinVelocity;
velmsg.Linear.X = 0;
%Publishing message
send(robot,velmsg);
latchpub = rospublisher(teleop_topic_name, 'IsLatching', true);
% --- Executes on button press in pushbutton3.
%Left movement
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global velmsg
global robot
global left_spinVelocity
global teleop_topic_name
velmsg.Angular.Z = left_spinVelocity;
velmsg.Linear.X = 0;
send(robot,velmsg);
latchpub = rospublisher(teleop_topic_name, 'IsLatching', true);
% --- Executes on button press in pushbutton4.
%Forward movement
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global velmsg
global robot
global teleop_topic_name
global forwardVelocity
velmsg.Angular.Z = 0;
velmsg.Linear.X = forwardVelocity;
send(robot,velmsg);
latchpub = rospublisher(teleop_topic_name, 'IsLatching', true);
% --- Executes on button press in pushbutton5.
%Backward motion
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global velmsg
global robot
global backwardVelocity
global teleop_topic_name
velmsg.Angular.Z = 0;
velmsg.Linear.X = backwardVelocity;
send(robot,velmsg);
latchpub = rospublisher(teleop_topic_name, 'IsLatching', true);
% --- Executes on button press in pushbutton6.
%This button will connect to a ROS network
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global ros_master_ip
global ros_master_port
global teleop_topic_name
global robot
global velmsg
ros_master_uri = strcat('http://',ros_master_ip,':',ros_master_port)
setenv('ROS_MASTER_URI',ros_master_uri)
rosinit
%Initializing ROS publishers
robot = rospublisher(teleop_topic_name,'geometry_msgs/Twist');
velmsg = rosmessage(robot);
% --- Executes on button press in pushbutton7.
%This button disconnect from ROS network
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
rosshutdown
% setting ROS master ip from edit box
%This function will retreive ROS MASTER IP from editbox
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
global ros_master_ip
ros_master_ip = get(hObject,'String')
% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
%Retreiving ROS MASTER PORT from edit box
function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
global ros_master_port
ros_master_port = get(hObject,'String')
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
%We can retreive teleop topic from this box
function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit3 as text
% str2double(get(hObject,'String')) returns contents of edit3 as a double
global teleop_topic_name
teleop_topic_name = get(hObject,'String')
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
|
github
|
thigiacmaytinh/FaceDetection-master
|
modelConvert.m
|
.m
|
FaceDetection-master/lib/opencv320/contrib/ximgproc/tutorials/scripts/modelConvert.m
| 2,117 |
utf_8
|
dd8b0dc376b1da49ced7529a9e3a7723
|
function modelConvert(model, outname)
%% script for converting Piotr's matlab model into YAML format
outfile = fopen(outname, 'w');
fprintf(outfile, '%%YAML:1.0\n\n');
fprintf(outfile, ['options:\n'...
' numberOfTrees: 8\n'...
' numberOfTreesToEvaluate: 4\n'...
' selfsimilarityGridSize: 5\n'...
' stride: 2\n'...
' shrinkNumber: 2\n'...
' patchSize: 32\n'...
' patchInnerSize: 16\n'...
' numberOfGradientOrientations: 4\n'...
' gradientSmoothingRadius: 0\n'...
' regFeatureSmoothingRadius: 2\n'...
' ssFeatureSmoothingRadius: 8\n'...
' gradientNormalizationRadius: 4\n\n']);
fprintf(outfile, 'childs:\n');
printToYML(outfile, model.child', 0);
fprintf(outfile, 'featureIds:\n');
printToYML(outfile, model.fids', 0);
fprintf(outfile, 'thresholds:\n');
printToYML(outfile, model.thrs', 0);
N = 1000;
fprintf(outfile, 'edgeBoundaries:\n');
printToYML(outfile, model.eBnds, N);
fprintf(outfile, 'edgeBins:\n');
printToYML(outfile, model.eBins, N);
fclose(outfile);
gzip(outname);
end
function printToYML(outfile, A, N)
%% append matrix A to outfile as
%% - [a11, a12, a13, a14, ..., a1n]
%% - [a21, a22, a23, a24, ..., a2n]
%% ...
%%
%% if size(A, 2) == 1, A is printed by N elemnent per row
if (length(size(A)) ~= 2)
error('printToYML: second-argument matrix should have two dimensions');
end
if (size(A,2) ~= 1)
for i=1:size(A,1)
fprintf(outfile, ' - [');
fprintf(outfile, '%d,', A(i, 1:end-1));
fprintf(outfile, '%d]\n', A(i, end));
end
else
len = length(A);
for i=1:ceil(len/N)
first = (i-1)*N + 1;
last = min(i*N, len) - 1;
fprintf(outfile, ' - [');
fprintf(outfile, '%d,', A(first:last));
fprintf(outfile, '%d]\n', A(last + 1));
end
end
fprintf(outfile, '\n');
end
|
github
|
imistyrain/ssd-master
|
classification_demo.m
|
.m
|
ssd-master/matlab/demo/classification_demo.m
| 5,412 |
utf_8
|
8f46deabe6cde287c4759f3bc8b7f819
|
function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% ****************************************************************************
% For detailed documentation and usage on Caffe's Matlab interface, please
% refer to Caffe Interface Tutorial at
% http://caffe.berkeleyvision.org/tutorial/interfaces.html#matlab
% ****************************************************************************
%
% input
% im color image as uint8 HxWx3
% use_gpu 1 to use the GPU, 0 to use the CPU
%
% output
% scores 1000-dimensional ILSVRC score vector
% maxlabel the label of the highest score
%
% You may need to do the following before you start matlab:
% $ export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64:/usr/local/cuda-5.5/lib64
% $ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
% Or the equivalent based on where things are installed on your system
%
% Usage:
% im = imread('../../examples/images/cat.jpg');
% scores = classification_demo(im, 1);
% [score, class] = max(scores);
% Five things to be aware of:
% caffe uses row-major order
% matlab uses column-major order
% caffe uses BGR color channel order
% matlab uses RGB color channel order
% images need to have the data mean subtracted
% Data coming in from matlab needs to be in the order
% [width, height, channels, images]
% where width is the fastest dimension.
% Here is the rough matlab for putting image data into the correct
% format in W x H x C with BGR channels:
% % permute channels from RGB to BGR
% im_data = im(:, :, [3, 2, 1]);
% % flip width and height to make width the fastest dimension
% im_data = permute(im_data, [2, 1, 3]);
% % convert from uint8 to single
% im_data = single(im_data);
% % reshape to a fixed size (e.g., 227x227).
% im_data = imresize(im_data, [IMAGE_DIM IMAGE_DIM], 'bilinear');
% % subtract mean_data (already in W x H x C with BGR channels)
% im_data = im_data - mean_data;
% If you have multiple images, cat them with cat(4, ...)
% Add caffe/matlab to you Matlab search PATH to use matcaffe
if exist('../+caffe', 'dir')
addpath('..');
else
error('Please run this demo from caffe/matlab/demo');
end
% Set caffe mode
if exist('use_gpu', 'var') && use_gpu
caffe.set_mode_gpu();
gpu_id = 0; % we will use the first gpu in this demo
caffe.set_device(gpu_id);
else
caffe.set_mode_cpu();
end
% Initialize the network using BVLC CaffeNet for image classification
% Weights (parameter) file needs to be downloaded from Model Zoo.
model_dir = '../../models/bvlc_reference_caffenet/';
net_model = [model_dir 'deploy.prototxt'];
net_weights = [model_dir 'bvlc_reference_caffenet.caffemodel'];
phase = 'test'; % run with phase test (so that dropout isn't applied)
if ~exist(net_weights, 'file')
error('Please download CaffeNet from Model Zoo before you run this demo');
end
% Initialize a network
net = caffe.Net(net_model, net_weights, phase);
if nargin < 1
% For demo purposes we will use the cat image
fprintf('using caffe/examples/images/cat.jpg as input image\n');
im = imread('../../examples/images/cat.jpg');
end
% prepare oversampled input
% input_data is Height x Width x Channel x Num
tic;
input_data = {prepare_image(im)};
toc;
% do forward pass to get scores
% scores are now Channels x Num, where Channels == 1000
tic;
% The net forward function. It takes in a cell array of N-D arrays
% (where N == 4 here) containing data of input blob(s) and outputs a cell
% array containing data from output blob(s)
scores = net.forward(input_data);
toc;
scores = scores{1};
scores = mean(scores, 2); % take average scores over 10 crops
[~, maxlabel] = max(scores);
% call caffe.reset_all() to reset caffe
caffe.reset_all();
% ------------------------------------------------------------------------
function crops_data = prepare_image(im)
% ------------------------------------------------------------------------
% caffe/matlab/+caffe/imagenet/ilsvrc_2012_mean.mat contains mean_data that
% is already in W x H x C with BGR channels
d = load('../+caffe/imagenet/ilsvrc_2012_mean.mat');
mean_data = d.mean_data;
IMAGE_DIM = 256;
CROPPED_DIM = 227;
% Convert an image returned by Matlab's imread to im_data in caffe's data
% format: W x H x C with BGR channels
im_data = im(:, :, [3, 2, 1]); % permute channels from RGB to BGR
im_data = permute(im_data, [2, 1, 3]); % flip width and height
im_data = single(im_data); % convert from uint8 to single
im_data = imresize(im_data, [IMAGE_DIM IMAGE_DIM], 'bilinear'); % resize im_data
im_data = im_data - mean_data; % subtract mean_data (already in W x H x C, BGR)
% oversample (4 corners, center, and their x-axis flips)
crops_data = zeros(CROPPED_DIM, CROPPED_DIM, 3, 10, 'single');
indices = [0 IMAGE_DIM-CROPPED_DIM] + 1;
n = 1;
for i = indices
for j = indices
crops_data(:, :, :, n) = im_data(i:i+CROPPED_DIM-1, j:j+CROPPED_DIM-1, :);
crops_data(:, :, :, n+5) = crops_data(end:-1:1, :, :, n);
n = n + 1;
end
end
center = floor(indices(2) / 2) + 1;
crops_data(:,:,:,5) = ...
im_data(center:center+CROPPED_DIM-1,center:center+CROPPED_DIM-1,:);
crops_data(:,:,:,10) = crops_data(end:-1:1, :, :, 5);
|
github
|
LidkeLab/matlab-instrument-control-master
|
readH5File.m
|
.m
|
matlab-instrument-control-master/@MIC_H5/readH5File.m
| 12,944 |
utf_8
|
672b14572a6fdb018bd3c7db059ca5ae
|
function [H5Structure] = readH5File(FilePath, GroupName)
%Extracts contents of an h5 file into H5Structure.
% This method will extract the Data and Attributes from a group
% named GroupName in the .h5 file specified by FilePath.
% Examples:
% H5Structure = readH5File('C:\file.h5') will extract all
% contents of file.h5 and store them in H5Structure.
% H5Structure = readH5File('C:\file.h5', 'Laser647') will extract
% contents of the group 'Laser647' from file.h5 given only
% the group name.
% H5Structure = readH5File('C:\file.h5', ...
% '/Channel01/Zposition001/Laser647') will extract contents
% of the group 'Laser647' from file.h5 given a full group
% path.
%
% INPUTS:
% FilePath: String containing the path to the .h5 file of interest.
% GroupName: (optional) Name of a specific group in the .h5 file to be
% extracted.
%
% OUTPUTS:
% H5Structure: Structured array containing the information extracted from
% the .h5 file at FilePath.
%
% REQUIRES:
% MATLAB 2016b or later
%
% CITATION:
% Created by:
% David James Schodt (LidkeLab, 2018)
% Ensure that FilePath points to a valid file.
% NOTE: == 2 means a file indeed exists at FilePath
if exist(FilePath, 'file') ~= 2
error(['File specified by FilePath = ', ...
'''%s'' does not exist.'], FilePath)
end
% If GroupName was not specified, set a flag to indicate we
% want to extract all contents from the .h5 file.
if exist('GroupName', 'var')
% Groupname was given, don't set the SaveAll flag.
SaveAll = 0;
else
% GroupName was not given, set the SaveAll flag.
SaveAll = 1;
end
% Read in all of the information available about the structure of the h5
% file using MATLAB's built-in h5info() method.
CurrentGroups = h5info(FilePath); % named for later convenience
% Determine the .h5 file structure being used (i.e. is each
% dataset in its own group or does one group contain all of
% the datasets).
% NOTE: DataFormat==1 means each dataset is in its own group,
% DataFormat==0 means each dataset is contained in one
% "supergroup" of all datasets.
DataFormat = contains(CurrentGroups.Groups.Groups.Groups(1).Name, 'Data');
% Search the .h5 file for the desired groups and store their location
% within the file for later extraction.
DesiredGroups = []; % groups that we wish to save
if DataFormat
% For .h5 files in the DataFormat, we need to continue searching
% through the data groups so that we find all instances of the
% requested group.
DataGroupsSearched = 0; % boolean
else
% For .h5 files that do not have the DataFormat, there is only one data
% group to search.
DataGroupsSearched = 1;
end
while isempty(DesiredGroups) || ~DataGroupsSearched
% If we are extracting all contents in the .h5 file at FilePath, we
% don't want to perform the search procedure in this while loop. Set
% DesiredGroups to CurrentGroups (all of the groups found in the .h5
% file) and break out of the loop.
if SaveAll
DesiredGroups = CurrentGroups;
break
end
% Search the current groups for the group of interest.
DesiredGroups = [DesiredGroups, ...
findGroupPaths(CurrentGroups, GroupName)];
% If using the data group format and we are at the .h5 structure data
% group level, we need to search for the group of interest within the
% sub-groups of each data group. Otherwise, we need to move one level
% deeper into the structure to continue the search.
CurrentGroupNameFormat = extractGroupName(CurrentGroups(1).Name);
if contains(CurrentGroupNameFormat, 'Data')
% We are at the data group level and must search each data
% group individually.
for ii = 1:numel(CurrentGroups)
DesiredGroups = [DesiredGroups, ...
findGroupPaths(CurrentGroups(ii).Groups, GroupName)];
end
% Set the DataGroupsSearched flag to indicate we've searched all of
% the data groups.
DataGroupsSearched = 1;
else
% Move one level deeper into the structure and continue searching
% for the group of interest.
try
% Attempt to move one level deeper into the structure.
CurrentGroups = CurrentGroups.Groups;
catch
% We've reached the end of the structure, there are no more
% groups to explore.
error(['No group named ''%s'' was found in ', ...
'the file specified by FilePath = ''%s'''], ...
GroupName, FilePath)
end
end
end
% Now that we've found the desired group(s), store the
% Attributes, Data, and Children in a more useable format.
for ii = 1:numel(DesiredGroups)
% Set DesiredGroup = DesiredGroups(ii) to reduce indexing
% clutter/improve code readability.
DesiredGroup = DesiredGroups(ii);
% Determine if the current group is the child of a data group (this
% will be needed later).
DesiredGroupParentName = extractGroupName(DesiredGroup.Name, 2);
IsDataGroupChild = DataFormat ...
&& contains(DesiredGroupParentName, 'Data');
% If the desired group has attributes, store them in the
% output structure.
if ~isempty(DesiredGroup.Attributes)
for jj = 1:numel(DesiredGroup.Attributes)
% Store each attribute as a field in the output structure
% accesible directly by that attributes name. If the
% DesiredGroup is a data group, we'll place the attribute
% information one level deeper into the output structure.
AttributeName = DesiredGroup.Attributes(jj).Name;
if IsDataGroupChild
% For children of a datagroup, we need a different path
% format within the structure (for consistency with the
% structure produced for non-datagroup files).
H5Structure(ii).Attributes.(AttributeName) = ...
DesiredGroup.Attributes(jj).Value;
else
H5Structure.Attributes.(AttributeName) = ...
DesiredGroup.Attributes(jj).Value;
end
end
else
% Create an empty field for the Attributes to prevent
% issues with functions that may be using this method, proceeding
% depending on whether or not we are currently storing a data group
% (for files that contain separate groups for each dataset).
if IsDataGroupChild
% For children of a datagroup, we need a different path
% format within the structure (for consistency with the
% structure produced for non-datagroup files).
H5Structure(ii).Attributes = [];
else
H5Structure.Attributes = [];
end
end
% If the desired group has data, store the data in the output OldStruct
% structure.
if ~isempty(DesiredGroup.Datasets)
for jj = 1:numel(DesiredGroup.Datasets)
% Read the ii-th dataset from the h5 file and store the data
% in a field of the output structure, matching the datasets
% name in the h5 file to the name of the field in the output
% structure. If the DesiredGroup is a data group, we'll place
% the dataset information one level deeper into the output
% structure.
DatasetName = DesiredGroup.Datasets(jj).Name;
if IsDataGroupChild
% For children of a datagroup, we need a different path
% format within the structure (for consistency with the
% structure produced for non-datagroup files).
H5Structure(ii).Data.(DatasetName) = h5read(...
FilePath, [DesiredGroup.Name, '/', ...
DesiredGroup.Datasets(jj).Name]);
else
H5Structure.Data.(DatasetName) = ...
h5read(FilePath, [DesiredGroup.Name, '/', ...
DesiredGroup.Datasets(jj).Name]);
end
end
else
% Create an empty field for the Data to prevent issues
% with functions that may be using this method, proceeding
% depending on whether or not we are currently storing a data group
% (for files that contain separate groups for each dataset).
if IsDataGroupChild
% For children of a datagroup, we need a different path
% format within the structure (for consistency with the
% structure produced for non-datagroup files).
H5Structure(ii).Data = [];
else
H5Structure.Data = [];
end
end
% If the desired group has Children (subgroups), recurse
% through those to store their Attributes, Data, and
% Children.
if ~isempty(DesiredGroup.Groups)
% Create a cell array of subgroup names (if subgroups
% exist).
% NOTE: If you are comparing the output structure to
% the Data, Attributes, and Children format used in the
% exportState() method, the subgroups are assumed to be
% the Children.
SubgroupNames = {DesiredGroup.Groups.Name};
for jj = 1:numel(SubgroupNames)
% Iteratively explore subgroups of the desired
% group to store their attributes and data.
SubgroupStructure = MIC_H5.readH5File(FilePath, ...
SubgroupNames{jj});
% Remove the path information from the subgroup name, e.g.
% /Channel01/Zposition001 will become Zposition001.
SubgroupName = extractGroupName(SubgroupNames{jj});
% Store the subgroup structure into the output H5Structure.
H5Structure.Children.(SubgroupName) = SubgroupStructure;
end
else
% Create an empty field for the Children to prevent
% issues with functions that may be using this method, proceeding
% depending on whether or not we are currently storing a data group
% (for files that contain separate groups for each dataset).
if IsDataGroupChild
% For children of a datagroup, we need yet another path
% format within the structure (for consistency with the
% structure produced for non-datagroup files).
H5Structure(ii).Children = [];
else
H5Structure.Children = [];
end
end
end
end
function [DesiredGroups] = findGroupPaths(CurrentGroups, GroupName)
% This function will create a list of paths to a group with name GroupName
% within the set of groups CurrentGroups.
% Iterate through each of the CurrentGroups to search for GroupName.
DesiredGroups = [];
CurrentGroupNames = {CurrentGroups.Name};
for ii = 1:numel(CurrentGroupNames)
% If the GroupName isn't provided as a full path, simplify the current
% group name to remove group structure e.g. if
% CurrentGroupNames{ii} = '/Channel01/Zposition001', simplify it to
% 'ZPosition001' for comparison to GroupName.
if GroupName(1) == '/'
% If the first character of the input GroupName is '/', assume
% that a full path was provided to the desired group.
CurrentGroupName = CurrentGroupNames{ii};
else
% The full path was not given, just a raw group name was given.
CurrentGroupName = extractGroupName(CurrentGroupNames{ii});
end
% Check if the CurrentGroupName matches the desired GroupName, storing
% the path to the current group if we have a match.
if strcmp(CurrentGroupName, GroupName)
DesiredGroups = [DesiredGroups, CurrentGroups(ii)];
end
end
end
function [GroupName] = extractGroupName(FullGroupName, PathLength)
% This function will extract the group name from a full group
% path within an .h5 file, e.g. input
% FullGroupName = '/Channel01/Zposition001/Data001'
% will yield GroupName = 'Data001'. The optional input PathLength
% specifies how many levels from the bottom to extract, e.g. in the
% previous example PathLength would be 1, but if PathLength was 2 we would
% have GroupName = 'Zposition001'.
% Set default parameters if needed.
if ~exist('PathLength', 'var')
PathLength = 1;
end
% If the last character of FullGroupName is a '/', we should remove it.
if (FullGroupName(end) == '/') && (numel(FullGroupName) > 1)
FullGroupName = FullGroupName(end-1);
end
% Find the last PathLength indices within FullGroupName corresponding to
% the appearance of a '/' character.
LastSlashIndex = find(FullGroupName=='/', PathLength, 'last');
% Return either the GroupName of interest or the name of the lowest level
% group in FullGroupName as appropriate.
if numel(LastSlashIndex) > 1
GroupName = FullGroupName(LastSlashIndex(1)+1:LastSlashIndex(2)-1);
else
GroupName = FullGroupName(LastSlashIndex+1:end);
end
end
|
github
|
LidkeLab/matlab-instrument-control-master
|
gui.m
|
.m
|
matlab-instrument-control-master/@MIC_GalvoDigital/gui.m
| 7,602 |
utf_8
|
8de2934750c217a43375207089f3210f
|
% gui: Graphical User Interface to MIC_GalvoDigital
%
% Functions: gui2properties, properties2gui, closeFigure, CalAngle,
% setAngle_Button, setParameters_Button, ToggleGalvo
%
% REQUIREMENTS:
% MIC_Abstract.m
% MATLAB NI-DAQmx driver installed via the Support Package Installer
%
% CITATION: Hanieh Mazloom-Farsibaf, Lidlelab, 2017.
function guiFig = gui(obj)
%gui Graphical User Interface to MIC_LightSource_Abstract
%Prevent opening more than one figure for same instrument
if ishandle(obj.GuiFigure)
guiFig = obj.GuiFigure;
figure(obj.GuiFigure);
return
end
%Open figure
guiFig = figure('NumberTitle','off','Resize','off','Units','pixels','MenuBar','none',...
'ToolBar','none','Visible','on', 'Position',[100 300 500 310]);
%Construct the components
handles.output = guiFig;
guidata(guiFig,handles);
% Scanning Parametes
rangeAngle = sprintf('Angle [%g, %g] ',-obj.Range,obj.Range);
textangle = uicontrol('Style','text','String',rangeAngle,...
'Position',[10 250,180,25],'FontSize',10);
textScanningParameters = uicontrol('Style','text','String','Scanning Parameters',...
'Position',[10 200,180,25],'FontSize',11,'FontWeight','bold');
textNoStepsPerScan = uicontrol('Style','text','String','Number of Steps Per Scan',...
'Position',[10 160,180,20],'FontSize',10);
textNoScan = uicontrol('Style','text','String','Number of Scans',...
'Position',[10 120,180,20],'FontSize',10);
textStepSize = uicontrol('Style','text','String','Step Size',...
'Position',[10 80,180,20],'FontSize',10);
textOffset = uicontrol('Style','text','String','Starting Position (offset)',...
'Position',[10 40,180,20],'FontSize',10);
handles.edit_angle = uicontrol('Parent',guiFig, 'Style', 'edit', 'String', ...
'','Position', [210 250 80 25],'Tag','EditAngle','Callback',@CalAngle);
handles.edit_NoStepsPerScan = uicontrol('Parent',guiFig, 'Style', 'edit', 'String', ...
'','Tag','EditNSteps','Position', [210 160 80 25]);
handles.edit_NoScan = uicontrol('Parent',guiFig, 'Style', 'edit', 'String', ...
'','Tag','EditNScans','Position', [210 120 80 25]);
handles.edit_StepSize = uicontrol('Parent',guiFig,'Style', 'edit', 'String', ...
'','Tag','EditStepsize','Position', [210 80 80 25]);
handles.edit_Offset = uicontrol('Parent',guiFig, 'Style', 'edit', 'String', ...
'','Tag','EditOffset','Position', [210 40 80 25]);
handles.setAngle=uicontrol('Style', 'pushbutton', 'String', 'Set Angle',...
'Position', [350 250 80 30], 'Callback', @setAngle_Button);
handles.setParameters=uicontrol('Style', 'pushbutton', 'String', 'Set Parameters',...
'Position', [350 130 110 30], 'Callback', @setParameters_Button);
handles.Toggle_EnableGalvo=uicontrol('Style','togglebutton',...
'String','Disable','Position',[350 50 65,50],...
'BackgroundColor',[0.8 0.8 0.8],'Tag','positionToggle','Callback',@ToggleGalvo);
%
align([textNoStepsPerScan,textNoScan,textStepSize,textOffset,textScanningParameters],'Center','None');
align([handles.edit_NoStepsPerScan,handles.edit_NoScan,handles.edit_StepSize...
,handles.edit_Offset],'Center','None');
align([handles.Toggle_EnableGalvo,handles.setParameters,handles.setAngle],'Center','None');
% Create a property based on GuiFigure
obj.GuiFigure = guiFig;
obj.GuiFigure.Name = obj.InstrumentName;
%Prevent closing after a 'close' or 'close all'
obj.GuiFigure.HandleVisibility='off';
%Save Propeties upon close
obj.GuiFigure.CloseRequestFcn = @closeFigure;
%Initialize GUI properties
properties2gui();
function gui2properties()
end
function properties2gui()
if ~isempty(obj.N_Step) || ~isempty(obj.N_Scan)|| ~isempty(obj.StepSize)|| ~isempty(obj.Offset)
set(handles.edit_NoStepsPerScan,'Value',obj.N_Step)
set(handles.edit_NoScan,'Value',obj.N_Scan);
set(handles.edit_StepSize,'Value',obj.StepSize);
set(handles.edit_Offset,'Value',obj.Offset);
end
set(handles.Toggle_EnableGalvo,'Value',obj.IsEnable);
if ~isempty(obj.Angle)
if isempty(obj.Word)
obj.angle2word(obj.Angle)
end
set(handles.edit_angle,'Value',obj.Angle)
else
obj.Angle=0;
set(handles.edit_angle,'Value',obj.Angle)
obj.angle2word(obj.Angle)
end
if obj.IsEnable==1
set(handles.Toggle_EnableGalvo,'String','Enable');
set(handles.Toggle_EnableGalvo,'BackgroundColor','green');
else
set(handles.Toggle_EnableGalvo,'String','Disable');
set(handles.Toggle_EnableGalvo,'BackgroundColor',[.8 .8 .8]);
end
end
function closeFigure(~,~)
% gui2properties();
% obj.clear; Ask Keith
delete(obj.GuiFigure);
end
%calculate word based on input angle
function CalAngle(~,~)
Angle=str2double(get(handles.edit_angle,'String'));
if isnan(Angle)
error('Enter a valid angle')
end
obj.angle2word(Angle);
state=get(handles.Toggle_EnableGalvo,'Value');
% turn off the togglebutton if it is already on
if state
set(handles.Toggle_EnableGalvo,'Value',0);
set(handles.Toggle_EnableGalvo,'BackgroundColor',[0.8 0.8 0.8]);%,[0.6 0.8 0])
set(handles.Toggle_EnableGalvo,'String','Disable')
end
end
%Callback function to set angle
function setAngle_Button(~,~)
Angle=str2double(get(handles.edit_angle,'String'));
if isnan(Angle)
error('Enter a valid angle')
end
obj.setAngle();
end
%Callback function to set Sequence
function setParameters_Button(~,~)
%take Scanning Parameters
N_Step=str2double(get(handles.edit_NoStepsPerScan,'String'));
N_Scan=str2double(get(handles.edit_NoScan,'String'));
StepSize=str2double(get(handles.edit_StepSize,'String'));
Offset=str2double(get(handles.edit_Offset,'String'));
if isnan(N_Step) || isnan(N_Scan)|| isnan(StepSize)|| isnan(Offset)
error('Choose proper values for Scanning Parameters')
end
% set Scanning Parameters
obj.N_Step=N_Step;
obj.N_Scan=N_Scan;
obj.StepSize=StepSize;
obj.Offset=Offset;
%set the sequence of Words to move the Galvo Mirror
obj.setSequence();
end
%Callback function for toggle button
function ToggleGalvo(~,~)
state=get(handles.Toggle_EnableGalvo,'Value');
%
% N_Step=str2double(get(handles.edit_NoStepsPerScan,'String'));
% N_Scan=str2double(get(handles.edit_NoScan,'String'));
% StepSize=str2double(get(handles.edit_StepSize,'String'));
% Offset=str2double(get(handles.edit_Offset,'String'));
%
% if isnan(N_Step) || isnan(N_Scan)|| isnan(StepSize)|| isnan(Offset)
% error('Choose proper values for Scanning Parameters')
% end
if state
% obj.Power=str2double(get(handles.SetPower,'String'));
set(handles.Toggle_EnableGalvo,'BackgroundColor','green');%,[0.6 0.8 0])
set(handles.Toggle_EnableGalvo,'String','Enable')
obj.enable();
else
set(handles.Toggle_EnableGalvo,'BackgroundColor',[0.8 0.8 0.8])
set(handles.Toggle_EnableGalvo,'String','Disable')
obj.disable();
end
end
end
|
github
|
LidkeLab/matlab-instrument-control-master
|
errorcheck.m
|
.m
|
matlab-instrument-control-master/@MIC_MCLNanoDrive/errorcheck.m
| 3,188 |
utf_8
|
2abc63fb57985d22013e75228d9714dc
|
function varargout = errorcheck(obj,fname,varargin)
% certain errors throw variable error codes but are specific to axis controls, this is logical branch for that
if obj.LastError ~= obj.ErrorCode.MCL_SUCCESS
displayError(fname,varargin);
end
% Error check function for processing most of the MCL Nano Drive errors
switch obj.LastError
case obj.ErrorCode.MCL_SUCCESS
% nest if statements for when we call this, not sure what
% this needs to be yet
switch fname
case 'MCL_GetProductInfo'
obj.ProductInfo.ADC_resolution=varargin{1}.ADC_resolution;
obj.ProductInfo.DAC_resolution=varargin{1}.DAC_resolution;
obj.ProductInfo.Product_id=varargin{1}.Product_id;
obj.ProductInfo.FirmwareVersion=varargin{1}.FirmwareVersion;
obj.ProductInfo.FirmwareProfile=varargin{1}.FirmwareProfile;
case 'MCL_SingleWriteN'
obj.Position(varargin{2}) = varargin{1};
end
case obj.ErrorCode.MCL_GENERAL_ERROR
error('Some Internal Sanity Check Failed');
case obj.ErrorCode.MCL_DEV_ERROR
error('A problem occurred when transferring data to the Nano-Drive');
case obj.ErrorCode.MCL_DEV_NOT_ATTACHED
error('The Nano-Drive cannot complete the task because it is not attached.');
case obj.ErrorCode.MCL_USAGE_ERROR
error('This library function is not supported by this particular Nano-Drive');
case obj.ErrorCode.MCL_DEV_NOT_READY
error('The Nano-Drive is currently completing or waiting to complete another task');
case obj.ErrorCode.MCL_ARGUMENT_ERROR
error('An argument is out of range or a required pointer is equal to NULL');
case obj.ErrorCode.MCL_INVALID_AXIS
varargout{1} = 'Invalid Axis'; % axis returns as invalid
warning('The Attempted operation on this axis does not exist in the Nano-Drive');
case obj.ErrorCode.MCL_INVALID_HANDLE
error('The handle is not valid, or at least not in this instance of the DLL');
case obj.ErrorCode.MCL_MISC
switch fname
case 'MCL_InitHandle'
error('MCLNanoDrive:NoHandle','Cannot get a handle to the device. Make sure device is on. If on, try ''MCLNanoDrive.libreset''');
case 'MCL_CorrectDriverVersion'
warning('MCLNanoDriveStage:WrongDLL','DLL in use does not match the current driver version');
end
otherwise
switch fname
case 'MCL_GetCalibration'
varargout{1} = obj.LastError; % return correct axis values
obj.LastError = 0;
end
end
end
% I had to make a static function because sometimes MCL will throw variable error codes for a single command
function displayError(fname,varargin)
switch fname
case 'MCL_SingleWriteN'
switch varargin{2}
case 1
dimChar = X;
case 2
dimChar = Y;
case 3
dimChar = Z;
end
disp(obj.LastError);
error('MCLNanoDrive:MoveFailed','Could not move to new %s position',dimChar);
end
end
|
github
|
LidkeLab/matlab-instrument-control-master
|
gui.m
|
.m
|
matlab-instrument-control-master/@MIC_SPTCollect/gui.m
| 23,826 |
utf_8
|
efd104ecb8670653062f168d48d398c1
|
function gui(obj)
% GUI SRcollect Gui for TIRF microscope
% Detailed explanation goes here
h = findall(0,'tag','TIRF-SRcollect.gui');
if ~(isempty(h))
figure(h);
return;
end
%%
xsz=400;
ysz=1000;
xst=100;
yst=50;
pw=.95;
psep=.001;
staticst=10;
editst=110;
guiFig = figure('Units','pixels','Position',[xst yst xsz ysz],...
'MenuBar','none','ToolBar','none','Visible','on',...
'NumberTitle','off','UserData',0,'Tag',...
'SPTCollect.gui','HandleVisibility','off','name','SPTcollect.gui','CloseRequestFcn',@FigureClose);
defaultBackground = get(0,'defaultUicontrolBackgroundColor');
set(guiFig,'Color',defaultBackground);
handles.output = guiFig;
guidata(guiFig,handles);
refh=1;
% File Panel
ph=0.09;
php = ph*ysz;
hFilePanel = uipanel('Parent',guiFig,'Title','FILE','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String', 'Save Directory:','Enable','off','Position', [staticst php-40 100 20]);
handles.Edit_FileDirectory = uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String','Set Auto','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-40 250 20]);
uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String', 'Base FileName:','Enable','off','Position', [staticst php-65 100 20]);
handles.Edit_FileName = uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String','Set Auto','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-65 250 20]);
uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String','File type:','Enable','off','Position', [staticst php-90 100 20]);
handles.saveFileType = uicontrol('Parent',hFilePanel, 'Style', 'popupmenu', 'String',{'.mat','.h5'},'Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-90 250 20],'CallBack',@saveFile);
% Camera Panel
ph=0.17;
php = ph*ysz;
hCameraPanel = uipanel('Parent',guiFig,'Title','CAMERA','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Camera Gain:','Enable','off','Position', [staticst php-40 100 20]);
handles.Popup_CameraGain = uicontrol('Parent',hCameraPanel, 'Style', 'popupmenu', 'String',{'Low (Alexa647)','High (FAP/FP)'},'Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-40 250 20],'CallBack',@gain_set);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Camera ROI:','Enable','off','Position', [staticst php-70 80 20]);
ROIlist={'Full','Left','Right','Left Center','Right Center','Center Horizontally','Center Horizontally Half','128*16 Center','64*32 low right','64*32 low left','64*16 low right'};
handles.Popup_CameraROI = uicontrol('Parent',hCameraPanel, 'Style', 'popupmenu', 'String',ROIlist,'Enable','on','BackgroundColor',[1 1 1],'Position', [90 php-70 85 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','IRCamera ROI:','Enable','off','Position', [staticst+180 php-70 80 20]);
ROIlist_IR={'Full','Center 350' ,'Center 256','Center 128'};
handles.Popup_IRCameraROI = uicontrol('Parent',hCameraPanel, 'Style', 'popupmenu', 'String',ROIlist_IR,'Enable','on','BackgroundColor',[1 1 1],'Position', [90+180 php-70 85 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Exp. Time Focus:','Enable','off','Position', [staticst php-100 100 20]);
handles.Edit_CameraExpTimeFocusSet = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','0.01','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-100 50 20]);
% uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Actual:','Enable','off','Position', [175 php-100 100 20]);
% handles.Edit_CameraExpTimeFocusActual = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','','Enable','off','Position', [250 php-100 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','IRCamera Zoom:','Enable','off','Position', [staticst+180 php-100 100 20]);
handles.Popup_CameraDispZoom_IR = uicontrol('Parent',hCameraPanel, 'Style','popupmenu','String',{'50%','100%','200%','400%','1000%'},'Value',2,'Enable','on','BackgroundColor',[1 1 1],'Position', [280 php-100 50 20],'CallBack',@zoom_set_IR);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Exp. Time Seq.:','Enable','off','Position', [staticst php-130 100 20]);
handles.Edit_CameraExpTimeSeqSet = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','0.01','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-130 50 20],'CallBack',@sequence_set);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Actual:','Enable','off','Position', [175 php-130 100 20]);
handles.Edit_CameraExpTimeSeqActual = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String',num2str(obj.CameraObj.SequenceCycleTime),'Enable','off','Position', [250 php-130 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Num Frames:','Enable','off','Position', [staticst php-160 100 20]);
handles.Edit_CameraNumFrames = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','2000','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-160 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Zoom:','Enable','off','Position', [175 php-160 100 20]);
handles.Popup_CameraDispZoom = uicontrol('Parent',hCameraPanel, 'Style','popupmenu','String',{'50%','100%','200%','400%','1000%'},'Value',4,'Enable','on',...
'BackgroundColor',[1 1 1],'Position', [250 php-160 50 20],'CallBack',@zoom_set);
% Registration Panel
ph=0.213;
php = ph*ysz;
hRegPanel = uipanel('Parent',guiFig,'Title','REGISTRATION','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol('Parent',hRegPanel, 'Style', 'edit', 'String','Exp. Time Reg.:','Enable','off','Position', [staticst php-40 100 20]);
handles.Edit_RegExpTime = uicontrol('Parent',hRegPanel, 'Style', 'edit', ...
'String','0.01','Enable','on','BackgroundColor',[1 1 1],...
'Position', [editst php-40 50 20]);
handles.Button_RegLoadRef=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Load Reference','Enable','on',...
'Position', [staticst php-70 100 20],'Callback',@LoadRef);
handles.Edit_RegFileName = uicontrol('Parent',hRegPanel, 'Style', 'edit', ...
'String','File Name','Enable','on','BackgroundColor',[1 1 1],...
'Position', [editst php-70 250 20]);
handles.Button_RegAlign=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Align','Enable','on','Position', ...
[staticst php-100 80 20],'Callback',@Align);
handles.Button_RegShowRef=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton', ...
'String','Show Reference','Enable','on','Position', ...
[staticst+80 php-100 100 20],'Callback',@ShowRef);
handles.Button_RegTakeCurrent=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Take Current','Enable','on','Position', ...
[staticst+180 php-40 90 20],'Callback',@TakeCurrent);
handles.Button_RegCenterStage=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton', ...
'String','Center Stage','Enable','on','Position', ...
[staticst+270 php-40 90 20],'Callback',@CenterStage);
handles.Button_RegTakeReference=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Take Reference','Enable','on','Position', ...
[staticst+180 php-100 90 20],'Callback',@TakeReference);
handles.Button_RegSaveReference=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton', ...
'String','Save Reference','Enable','on','Position', ...
[staticst+270 php-100 90 20],'Callback',@SaveReference);
BGh=100;
handles.ButtonGroup_RegCollectType=uibuttongroup('Parent',hRegPanel, 'Position', [.02 (php-130-BGh+30)/php .96 BGh/php]);
b1=uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'radio', 'tag','None','String','No Registration','Enable','on','Position', [staticst BGh-30 250 20]);
b2=uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'radio','tag','Self', 'String','Align to Self (Takes/Saves Reference Image)','Enable','on','Position', [staticst BGh-60 250 20]);
b3=uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'radio','tag','Ref','String','Align to Reference','Enable','on','Position', [staticst BGh-90 250 20]);
b4=uicontrol('Parent',handles.ButtonGroup_RegCollectType,'Style','text','String','Reg Camera Type','Position',[staticst+125 BGh-34 140 20]);
b5 = uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'popupmenu', 'String',{'Andor Camera','IRCamera'},'Enable','on','BackgroundColor',[1 1 1],...
'Position', [staticst+240 BGh-30 100 20],'CallBack',@RegCamType_set);
b6=uicontrol('Parent',handles.ButtonGroup_RegCollectType,'Style','text','String','Active Stabilization','Position',[staticst+125 BGh-94 210 20]);
b7=uicontrol('Parent',handles.ButtonGroup_RegCollectType,'Style', 'checkbox', 'Value',0,'Position', [staticst+165 BGh-90 15 20],'Callback',@ActiveStabilization);
% LIGHTSOURCE Panel
ph=0.3;
hLampPanel = uipanel('Parent',guiFig,'Title','LIGHT SOURCE','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol(hLampPanel,'Style','text','String','On during Focus',...
'Position',[-3 240,60,25]);
uicontrol(hLampPanel,'Style','text','String','On during Aquisition',...
'Position',[-3 180,60,28]);
uicontrol(hLampPanel,'Style','text','String','Low Power',...
'Position',[0 120,60,25]);
uicontrol(hLampPanel,'Style','text','String','High Power',...
'Position',[0 70,60,25]);
uicontrol(hLampPanel,'Style','text','String','[MinPower,MaxPower]',...
'Position',[-1 5,60,35]);
h561Panel=uipanel(hLampPanel,'Title','561 nm','TitlePosition','centertop',...
'Position',[1/5 1/5 1/5 4/5]);
handles.Focus561 = uicontrol(h561Panel,'Style','checkbox',...
'Value',0,'Position',[29 185 130 20]);
handles.Aquisition561 = uicontrol(h561Panel,'Style','checkbox',...
'Value',0,'Position',[29 130 130 20]);
handles.LP561 = uicontrol(h561Panel,'Style','edit',...
'Position',[21 80 30 20],'Callback',@setLaser561Low);
handles.HP561 = uicontrol(h561Panel,'Style','edit',...
'Position',[21 25 30 20]);
% powerString561 = sprintf('[%g, %g] (%s)',obj.Laser561Obj.MinPower,obj.Laser561Obj.MaxPower, obj.Laser561.PowerUnit);
% uicontrol(hLampPanel,'Style','text','String',powerString561,...
% 'Position',[75, 5,60,35]);
h638Panel=uipanel(hLampPanel,'Title','638 nm','TitlePosition','centertop',...
'Position',[2/5 1/5 1/5 4/5]);
handles.Focus638 = uicontrol(h638Panel,'Style','checkbox',...
'Value',0,'Position',[29 185 130 20]);
handles.Aquisition638 = uicontrol(h638Panel,'Style','checkbox',...
'Value',0,'Position',[29 130 130 20]);
handles.LP638 = uicontrol(h638Panel,'Style','edit',...
'Position',[21 80 30 20],'Callback',@setLaser638Low);
handles.HP638 = uicontrol(h638Panel,'Style','edit',...
'Position',[21 25 30 20]);
powerString638 = sprintf('[%g, %g] (%s)',obj.Laser638Obj.MinPower,obj.Laser638Obj.MaxPower, obj.Laser638Obj.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerString638,...
'Position',[160 5,60,35]);
hlamp850Panel=uipanel(hLampPanel,'Title','Lamp 850 nm','TitlePosition','centertop',...
'Position',[3/5 1/5 1/5 4/5]);
handles.Focuslamp850 = uicontrol(hlamp850Panel,'Style','checkbox',...
'Value',0,'Position',[29 185 130 20]);
handles.Aquisitionlamp850 = uicontrol(hlamp850Panel,'Style','checkbox',...
'Value',0,'Position',[29 130 130 20]);
handles.LED850lLampPower = uicontrol(hlamp850Panel,'Style','edit',...
'Position',[21 80 30 20],'Callback',@setLamp850Power);
powerString850 = sprintf('[%g, %g] (%s)',obj.Lamp850Obj.MinPower,obj.Lamp850Obj.MaxPower, obj.Lamp850Obj.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerString850,...
'Position',[235 5,60,35]);
hX71Panel=uipanel(hLampPanel,'Title','Lamp','TitlePosition','centertop',...
'Position',[4/5 1/5 1/5 4/5]);
handles.FocusIX71Lamp = uicontrol(hX71Panel,'Style','checkbox',...
'Value',0,'Position',[29 185 130 20]);
handles.AquisitionIX71Lamp = uicontrol(hX71Panel,'Style','checkbox',...
'Value',0,'Position',[29 130 130 20]);
handles.IX71LampPower = uicontrol(hX71Panel,'Style','edit',...
'Position',[21 80 30 20],'Callback',@setLampPower);
powerStringLamp = sprintf('[%g, %g] (%s)',obj.LampObj.MinPower,obj.LampObj.MaxPower, obj.LampObj.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerStringLamp,...
'Position',[310 5,60,35]);
% CONTROL Panel
ph=0.190;
hControlPanel = uipanel('Parent',guiFig,'Title','CONTROL','Position',[(1-pw)/2 refh-ph-psep pw ph]);
php = ph*ysz;
uicontrol('Parent',hControlPanel, 'Style', 'edit', 'String','Number of Sequences:','Enable','off','Position', [staticst php-40 150 20]);
handles.Edit_ControlNSequence = uicontrol('Parent',hControlPanel, 'Style', 'edit', 'String','20','Enable','on','BackgroundColor',[1 1 1],'Position', [editst+50 php-40 50 20]);
handles.Button_ControlFocusLamp=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Lamp','Enable','on','Position', [staticst php-90 103 35],'BackgroundColor',[1 1 .8],'Callback',@FocusLamp);
handles.Button_ControlFocusLaserLow=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Laser (Low)','Enable','on','Position', [staticst+123 php-90 103 35],'BackgroundColor',[1 .8 .8],'Callback',@FocusLow);
handles.Button_ControlFocusLamp850=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Lamp 850','Enable','on','Position', [staticst+246 php-90 103 35],'BackgroundColor',[1 1 .8],'Callback',@FocusLamp850);
handles.Toggle_LaserLamp=uicontrol('Parent',hControlPanel, 'Style', 'toggle', 'String','Lamp','Enable','on','Position', [staticst php-138 103 35],'BackgroundColor',[1 1 .8],'Callback',@ToggleLamp);
handles.Button_ControlStart=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','START (SR)','Enable','on','Position', [staticst php-186 103 35],'BackgroundColor',[0 1 0],'Callback',@Start);
handles.Button_ControlFocusLaserHigh=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Laser (High)','Enable','on','Position', [staticst+123 php-138 103 35],'BackgroundColor',[1 0 0],'Callback',@FocusHigh);
handles.Button_ControlAbort=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','ABORT','Enable','on','Position', [staticst+123 php-186 103 35],'BackgroundColor',[1 0 1],'Callback',@Abort);
handles.Button_ControlStart_SPT=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','START (SPT+SR)','Enable','on','Position', [staticst+246 php-186 103 35],'BackgroundColor',[0 1 0],'Callback',@Start_SPT);
%% Setup GUI Values
properties2gui();
%% Figure Callbacks
function saveFile(~,~)
file_val=get(handles.saveFileType,'value');
switch file_val
case 1
obj.SaveFileType='mat';
case 2
obj.SaveFileType='h5';
end
end
function LoadRef(~,~)
obj.loadref();
set(handles.Edit_RegFileName,'String',obj.R3DObj.RefImageFile);
end
function Align(~,~)
gui2properties();
obj.align();
end
function ShowRef(~,~)
obj.showref();
end
function TakeCurrent(~,~)
gui2properties();
obj.takecurrent();
end
function CenterStage(~,~)
obj.StageObj.center();
end
function TakeReference(~,~)
gui2properties();
obj.takeref();
end
function SaveReference(~,~)
obj.saveref();
properties2gui();
end
function ToggleLamp(~,~)
gui2properties();
stateLamp1=get(handles.Toggle_LaserLamp,'Value');
if stateLamp1
obj.LampObj.setPower(obj.LampPower);
obj.LampObj.on;
else
obj.LampObj.off;
% pause(obj.LampWait);
end
end
function FocusLamp(~,~)
gui2properties();
obj.focusLamp();
end
function FocusLamp850(~,~)
gui2properties();
obj.focusLamp850();
end
function FocusLow(~,~)
gui2properties();
obj.focusLow();
end
function FocusHigh(~,~)
gui2properties();
obj.focusHigh();
end
function Abort(~,~)
obj.AbortNow=1;
set(handles.Button_ControlStart, 'String','START (SR)','Enable','on');
set(handles.Button_ControlStart_SPT, 'String','START (SPT+SR)','Enable','on');
end
function Start(~,~)
gui2properties();
[temp status]=obj.CameraObj.call_temperature
if status==2
error('Camera is cooling down! Please wait for a few mintues!')
end
set(handles.Button_ControlStart, 'String','Acquiring','Enable','off');
obj.sequenceType='SRCollect';
obj.StartSequence(handles);
set(handles.Button_ControlStart, 'String','START (SR)','Enable','on');
end
function Start_SPT(~,~)
gui2properties();
[temp status]=obj.CameraObj.call_temperature
if status==2
error('Camera is cooling down! Please wait for a few mintues!')
end
set(handles.Button_ControlStart, 'String','Acquiring','Enable','off');
obj.sequenceType='Tracking+SRCollect';
obj.StartSequence(handles);
set(handles.Button_ControlStart, 'String','START (SPT+SR)','Enable','on');
end
function setLampPower(~,~)
gui2properties();
obj.setLampPower();
end
function setLamp850Power(~,~)
gui2properties();
obj.setLampPower();
end
function setLaser561Low(~,~)
obj.Laser561Obj.setPower(str2double(handles.LP561.String));
end
function setLaser638Low(~,~)
obj.Laser638Obj.setPower(str2double(handles.LP638.String));
end
function FigureClose(~,~)
gui2properties();
delete(guiFig);
end
function zoom_set(~,~)
zoom_val = get(handles.Popup_CameraDispZoom,'Value');
switch zoom_val
case 1
obj.CameraObj.DisplayZoom = 0.5;
case 2
obj.CameraObj.DisplayZoom = 1;
case 3
obj.CameraObj.DisplayZoom = 2;
case 4
obj.CameraObj.DisplayZoom = 4;
case 5
obj.CameraObj.DisplayZoom = 10;
end
end
function zoom_set_IR(~,~)
zoom_val = get(handles.Popup_CameraDispZoom_IR,'Value');
switch zoom_val
case 1
obj.IRCameraObj.DisplayZoom = 0.5;
case 2
obj.IRCameraObj.DisplayZoom = 1;
case 3
obj.IRCameraObj.DisplayZoom = 2;
case 4
obj.IRCameraObj.DisplayZoom = 4;
case 5
obj.IRCameraObj.DisplayZoom = 10;
end
end
function gain_set(~,~)
gain_val=get(handles.Popup_CameraGain,'value');
switch gain_val
case 1
obj.CameraEMGainHigh=100;
case 2
obj.CameraEMGainHigh=200;
end
end
function RegCamType_set(~,~)
RegCamType=get(b5,'Value');
switch RegCamType
case 1
obj.RegCamType='Andor Camera';
case 2
obj.RegCamType='IRCamera';
end
obj.set_RegCamType();
end
function ActiveStabilization(~,~)
obj.ActiveRegCheck=get(b7,'Value');
end
function sequence_set(~,~)
gui2properties();
obj.CameraObj.ExpTime_Sequence = obj.ExpTime_Sequence_Set;
obj.CameraObj.AcquisitionType = 'sequence';
obj.CameraObj.setup_acquisition;
set(handles.Edit_CameraExpTimeSeqActual,'String',num2str(obj.CameraObj.SequenceCycleTime));
end
function gui2properties()
%Get GUI values and update to object properties
obj.SaveDir=get(handles.Edit_FileDirectory,'String');
obj.BaseFileName=get(handles.Edit_FileName,'String');
obj.CameraGain=get(handles.Popup_CameraGain,'value');
obj.CameraROI=get(handles.Popup_CameraROI,'value');
obj.IRCameraROI=get(handles.Popup_IRCameraROI,'value');
obj.ExpTime_Focus_Set=str2double(get(handles.Edit_CameraExpTimeFocusSet,'string'));
obj.ExpTime_Sequence_Set=str2double(get(handles.Edit_CameraExpTimeSeqSet,'string'));
obj.NumFrames=str2double(get(handles.Edit_CameraNumFrames,'string'));
obj.R3DObj.ExposureTime=str2double(get(handles.Edit_RegExpTime,'string'));
obj.R3DObj.RefImageFile=get(handles.Edit_RegFileName,'string');
obj.ActiveRegCheck=get(b7,'Value')
obj.focus561Flag=get(handles.Focus561,'Value');
obj.focus638Flag=get(handles.Focus638,'Value');
obj.focusLampFlag=get(handles.FocusIX71Lamp,'Value');
obj.focusLamp850Flag=get(handles.Focuslamp850,'Value');
obj.Laser561Low=str2double(handles.LP561.String);
obj.Laser638Low=str2double(handles.LP638.String);
obj.Laser561High=str2double(handles.HP561.String);
obj.Laser638High=str2double(handles.HP638.String);
obj.LampPower=str2double(handles.IX71LampPower.String);
obj.Lamp850Power=str2double(handles.LED850lLampPower.String);
obj.Laser561Aq=handles.Aquisition561.Value;
obj.Laser638Aq=handles.Aquisition638.Value;
obj.LampAq=handles.AquisitionIX71Lamp.Value;
obj.Lamp850Aq=handles.Aquisitionlamp850.Value;
obj.NumSequences=str2double(get(handles.Edit_ControlNSequence,'string'));
obj.RegType=get(get(handles.ButtonGroup_RegCollectType,'SelectedObject'),'Tag');
end
function properties2gui()
%Set GUI values from object properties
set(handles.Edit_FileDirectory,'String',obj.SaveDir);
set(handles.Edit_FileName,'String',obj.BaseFileName);
set(handles.Popup_CameraGain,'value',obj.CameraGain);
set(handles.Popup_CameraROI,'value',obj.CameraROI);
set(handles.Popup_IRCameraROI,'value',obj.IRCameraROI);
set(handles.Edit_CameraExpTimeFocusSet,'string',num2str(obj.ExpTime_Focus_Set));
set(handles.Edit_CameraExpTimeSeqSet,'string',num2str(obj.ExpTime_Sequence_Set));
% set(handles.Edit_RegExpTime,'string',num2str(obj.R3DObj.ExposureTime));
set(handles.Edit_CameraNumFrames,'string',num2str(obj.NumFrames));
% set(handles.Edit_RegFileName,'string',obj.R3DObj.RefImageFile);
if strcmp(obj.RegCamType,'Andor Camera')
v=1;
elseif strcmp(obj.RegCamType,'IRCamera')
v=2;
end
set(b5,'value',v);
set(b7,'value',obj.ActiveRegCheck);
set(handles.LP561,'string',obj.Laser561Low);
set(handles.LP638,'string',obj.Laser638Low);
set(handles.HP561,'string',obj.Laser561High);
set(handles.HP638,'string',obj.Laser638High);
set(handles.IX71LampPower,'string',obj.LampPower);
set(handles.LED850lLampPower,'string',obj.Lamp850Power);
set(handles.Focus561,'value',obj.focus561Flag);
set(handles.Focus638,'value',obj.focus638Flag);
set(handles.FocusIX71Lamp,'value',obj.focusLampFlag);
set(handles.Focuslamp850,'value',obj.focusLamp850Flag);
set(handles.Edit_ControlNSequence,'string',num2str(obj.NumSequences));
set(handles.Edit_CameraExpTimeSeqActual,'String',num2str(obj.CameraObj.SequenceCycleTime));
switch obj.RegType
case 'None'
set(handles.ButtonGroup_RegCollectType,'SelectedObject',b1);
case 'Self'
set(handles.ButtonGroup_RegCollectType,'SelectedObject',b2);
case 'Ref'
set(handles.ButtonGroup_RegCollectType,'SelectedObject',b3);
end
end
end
|
github
|
LidkeLab/matlab-instrument-control-master
|
setCamProperties.m
|
.m
|
matlab-instrument-control-master/@MIC_AndorCamera/setCamProperties.m
| 5,290 |
utf_8
|
00353ba3ce9c36d6a6457121019fb226
|
function setCamProperties(obj,CamSetting)
%SETCAMERAPROPERTIES Summary of this function goes here
% in: a duplicate CameraSetting structure to be checked and set
% this function sets the camera properties on the camera so that what you
% select on the gui is committed to the API
obj.ReadyForAcq=0;
%obj.CameraParameters=in;
% ADChannel;
% Amp;
% BaselineClamp;
% Cooler;
% Fan;
% HSSpeed;
% PreAmpGain;
% Shutter;
% Trigger;
% VSAmplitudes;
% VSSpeed;
% VerShiftVoltage;
setCamSDK(obj,CamSetting);
obj.get_parameters;
obj.ReadyForAcq=1;
end
function setCamSDK(obj,CamSetting)
% sub function to set the property given the input field, works on case by case basis!
% all of these are copied and pasted from other legacy code so variables
% will have to be renamed shortly!
camFields = fields(CamSetting);
debug = false;
for ii=1:length(camFields)
switch (camFields{ii})
case 'ManualShutter'
obj.CameraSetting.ManualShutter.Bit = CamSetting.ManualShutter.Bit;
case 'EMGain'
obj.LastError = SetEMCCDGain(CamSetting.EMGain.Value);
obj.errorcheck('SetEMCCDGain');
obj.CameraSetting.EMGain.Value=CamSetting.EMGain.Value;
if debug
% check low level behavior
[obj.LastError,EMGainVal] = GetEMCCDGain;
disp(['Check EMGain: set ', num2str(CamSetting.EMGain.Value),' , get ' num2str(EMGainVal)]);
end
case 'ADChannel'
obj.LastError = SetADChannel(CamSetting.ADChannel.Bit);
obj.errorcheck('SetADChannel');
obj.CameraSetting.ADChannel.Bit=CamSetting.ADChannel.Bit;
if debug
% check low level behavior
disp(['Check ADChannel: set ', CamSetting.ADChannel.Desc]);
end
case 'Amp'
obj.LastError = SetOutputAmplifier(CamSetting.Amp.Bit);
obj.errorcheck('SetOutputAmplifier');
obj.CameraSetting.Amp.Bit=CamSetting.Amp.Bit;
if debug
% check low level behavior
disp(['Check Amp: set ', CamSetting.Amp.Desc]);
end
case 'HSSpeed'
AmpBit = CamSetting.Amp.Bit;
obj.LastError = SetHSSpeed(AmpBit,CamSetting.HSSpeed.Bit);
obj.errorcheck('SetHSSpeed');
obj.CameraSetting.HSSpeed.Bit=CamSetting.HSSpeed.Bit;
if debug
% check low level behavior
disp(['Check HSSpeed: set ', CamSetting.HSSpeed.Desc]);
end
case 'BaselineClamp'
obj.LastError = SetBaselineClamp(CamSetting.BaselineClamp.Bit);
obj.errorcheck('SetBaselineClamp');
obj.CameraSetting.BaselineClamp.Bit=CamSetting.BaselineClamp.Bit;
if debug
% check low level behavior
disp(['Check BaselineClamp: set ', CamSetting.BaselineClamp.Desc]);
end
case 'Cooler'
obj.LastError = SetCoolerMode(CamSetting.Cooler.Bit);
obj.errorcheck('SetCoolerMode');
obj.CameraSetting.Cooler.Bit=CamSetting.Cooler.Bit;
case 'Fan'
obj.LastError = SetFanMode(CamSetting.Fan.Bit);
obj.errorcheck('SetFanMode');
obj.CameraSetting.Fan.Bit=CamSetting.Fan.Bit;
case 'PreAmpGain'
obj.LastError = SetPreAmpGain(CamSetting.PreAmpGain.Bit);
obj.errorcheck('SetPreAmpGain');
obj.CameraSetting.PreAmpGain.Bit=CamSetting.PreAmpGain.Bit;
case 'Shutter'
% obj.LastError = SetShutter(value.typ{1},value.mode{1},...
% value.closingtime,value.openingtime);
% obj.errorcheck('SetShutter');
% Set Shutter to Auto (1) or Manual (0)
obj.CameraSetting.ManualShutter.Bit = CamSetting.ManualShutter.Bit;
case 'Trigger'
obj.LastError=SetTriggerMode(CamSetting.Trigger.Bit); % Set trigger mode; 0 for Internal
obj.errorcheck('SetTriggerMode');
obj.CameraSetting.Trigger.Bit=CamSetting.Trigger.Bit;
if debug
% check low level behavior
disp(['Check Trigger: set ', CamSetting.Trigger.Desc]);
end
case 'VSAmplitude' % this is the vertical shift voltage!
obj.LastError = SetVSAmplitude(CamSetting.VSAmplitude.Bit);
obj.errorcheck('SetVSAmplitude');
obj.CameraSetting.VSAmplitude.Bit=CamSetting.VSAmplitude.Bit;
if debug
% check low level behavior
disp(['Check VSAmplitude: set ', CamSetting.VSAmplitude.Desc]);
end
case 'VSSpeed'
obj.LastError = SetVSSpeed(CamSetting.VSSpeed.Bit);
obj.errorcheck('SetVSSpeed');
obj.CameraSetting.VSSpeed.Bit=CamSetting.VSSpeed.Bit;
if debug
% check low level behavior
disp(['Check VSSpeed: set ', CamSetting.VSSpeed.Desc]);
end
case 'FrameTransferMode'
obj.LastError = SetFrameTransferMode(CamSetting.FrameTransferMode.Bit);
obj.errorcheck('SetFrameTransferMode');
obj.CameraSetting.FrameTransferMode.Bit=CamSetting.FrameTransferMode.Bit;
end
end
end
|
github
|
LidkeLab/matlab-instrument-control-master
|
gui.m
|
.m
|
matlab-instrument-control-master/@MIC_RB_PSFEng/gui.m
| 17,913 |
utf_8
|
3ffb4d357fa8f7872686a894b1cd3210
|
function gui( obj )
%GUI Gui for MIC_RB_PSFEng class
% Detailed explanation goes here
%Prevent opening more than one figure for same instrument
if ishandle(obj.GuiFigure)
guiFig = obj.GuiFigure;
figure(obj.GuiFigure);
return
end
%Open figure
guiFig = figure('NumberTitle','off','Resize','off','Units','pixels','MenuBar','none',...
'ToolBar','none','Visible','on', 'Position',[70 600 450 400]);
% Create a property based on GuiFigure
obj.GuiFigure = guiFig;
obj.GuiFigure.Name = sprintf('%s', obj.InstrumentName);
%Prevent closing after a 'close' or 'close all'
obj.GuiFigure.HandleVisibility='off';
%Save Propeties upon close
obj.GuiFigure.CloseRequestFcn = @closeFigure;
%Mouse scroll wheel callback
obj.GuiFigure.WindowScrollWheelFcn = @wheel;
% Laser control
minPower=obj.Laser642.MinPower;
maxPower=obj.Laser642.MaxPower;
unitPower=obj.Laser642.PowerUnit;
% File name and save dir
handles.FilePanel = uipanel(guiFig,'Title','File','FontSize',8,...
'Units','Pixels','Position',[10 280 210 120]);
uicontrol(handles.FilePanel,'Style','text','String','Save Directory',...
'Position',[5,85,130,15],'FontSize',8,'HorizontalAlignment','left');
handles.editSaveDir = uicontrol(handles.FilePanel,'Style','edit',...
'Position',[5,65,200,20],'FontSize',8);
uicontrol(handles.FilePanel,'Style','text','String','File name',...
'Position',[5,50,130,15],'FontSize',8,'HorizontalAlignment','left');
handles.editFileName = uicontrol(handles.FilePanel,'Style','edit',...
'Position',[5,30,200,20],'FontSize',8);
uicontrol(handles.FilePanel,'Style','text','String','Save type',...
'Position',[5,5,130,15],'FontSize',8,'HorizontalAlignment','left');
handles.editSaveType = uicontrol(handles.FilePanel,'Style','popup','String',...
{'mat','h5'},'Position',[75,5,100,20],'FontSize',8);
% laser control
handles.LaserPanel = uipanel(guiFig,'Title','Laser','FontSize',8,...
'Units','Pixels','Position',[10 210 210 70]);
uicontrol(handles.LaserPanel,'Style','text','String',...
['Power limits ' num2str(minPower) ' - ' num2str(maxPower) ' ' unitPower],...
'Position',[5,35,130,15],'FontSize',8,'HorizontalAlignment','left');
uicontrol(handles.LaserPanel,'Style','text','String','Set Power',...
'Position',[5,10,60,15],'FontSize',8,'HorizontalAlignment','left');
handles.SetLaserPower = uicontrol(handles.LaserPanel,'Style','edit',...
'Position',[70 10,60,15],'FontSize',8,'Callback',@setPower);
handles.Toggle_Laser=uicontrol(handles.LaserPanel,'Style','togglebutton',...
'String','Off','Position',[150,10,40,40],...
'BackgroundColor',[0.8 0.8 0.8],'Tag','LaserPowerButton','Callback',@toggleLaser);
% Camera control
handles.CameraPanel = uipanel(guiFig,'Title','Camera','FontSize',8,...
'Units','Pixels','Position',[10 10 210 200]);
handles.CamFocus = uicontrol(handles.CameraPanel,'Style','pushbutton',...
'String','Focus','Position',[5,5,50,30],'FontSize',8,'Callback',@focusCamera);
handles.CamFocusWithI = uicontrol(handles.CameraPanel,'Style','pushbutton',...
'String','Focus with Intensity feedback','Position',[60,5,145,30],'FontSize',8,'Callback',@focusCameraWithFeedback);
uicontrol(handles.CameraPanel,'Style','text','String',...
'ROI','Position',[5,165,50,15],'FontSize',8,'HorizontalAlignment','left');
handles.CamROIpopup = uicontrol(handles.CameraPanel,'Style','popup','String',...
{'center 128','center 256','center 512','center 1024','full'},...
'Position', [60 165 130 15],'FontSize',8,'Callback',@setROI);
uicontrol(handles.CameraPanel,'Style','text','String',...
'Zoom','Position',[5,135,50,15],'FontSize',8,'HorizontalAlignment','left');
handles.CamZoom_popup = uicontrol(handles.CameraPanel,'Style','popupmenu',...
'String',{'50%','100%','200%','400%','1000%'},'Value',4,...
'Position', [60 135 130 15],'FontSize',8,'CallBack',@setZoom);
uicontrol(handles.CameraPanel,'Style','text','String',...
'Acquisition time (s)','Position',[5,100,100,15],'FontSize',8,...
'HorizontalAlignment','left');
handles.CamAcqTime = uicontrol(handles.CameraPanel,'Style','edit',...
'Position',[120,100,70,15],'FontSize',8,'Tag','CamAcqEdit',...
'Callback',@setAcqTime);
% Piezo control
handles.PiezoPanel = uipanel(guiFig,'Title','Piezo','FontSize',8,...
'Units','Pixels','Position',[230 300 210 100]);
minPos=obj.Piezo.MinPosition;
maxPos=obj.Piezo.MaxPosition;
posUnit=obj.Piezo.PositionUnit;
fineStepFrac = 0.01;
coarseStepFrac = 0.1;
fineStep = (maxPos-minPos)*fineStepFrac;
coarseStep = (maxPos-minPos)*coarseStepFrac;
% slider
sliderVertPos = 50;
sliderLeft = 40;
sliderWidth = 130;
sliderHeight = 20;
handles.sliderPosition=uicontrol(handles.PiezoPanel,'Style','slider','Min',minPos,...
'Max',maxPos,'Value',minPos,'SliderStep',[fineStepFrac fineStepFrac],...
'Position', [sliderLeft sliderVertPos sliderWidth sliderHeight],...
'Tag','positionSlider','Callback',@positionSlider);
handles.sliderPosition.KeyPressFcn = @sliderKey;
uicontrol(handles.PiezoPanel,'Style','text','String',...
[num2str(minPos),' ',posUnit],'Position',...
[sliderLeft+15 sliderVertPos+25,30,12],'HorizontalAlignment','left',...
'FontSize',8);
uicontrol(handles.PiezoPanel,'Style','text','String',...
[num2str(maxPos),' ',posUnit],'Position',...
[sliderLeft+80 sliderVertPos+25,40,12],'HorizontalAlignment','left',...
'FontSize',8);
uicontrol(handles.PiezoPanel,'Style','text','String','F','Position',...
[sliderLeft sliderVertPos+25,10,12],'HorizontalAlignment','left',...
'FontSize',8);
uicontrol(handles.PiezoPanel,'Style','text','String','F','Position',...
[sliderLeft+sliderWidth-10 sliderVertPos+25,10,12],'HorizontalAlignment','left',...
'FontSize',8);
% coarse buttons
jogHeight = sliderVertPos;
handles.buttonJogDown = uicontrol(handles.PiezoPanel,'Style','pushbutton','String','<',...
'Position',[sliderLeft-25 jogHeight,20,sliderHeight],'FontSize',16,'Callback',@jogDown);
handles.buttonJogUp = uicontrol(handles.PiezoPanel,'Style','pushbutton','String','>',...
'Position',[sliderLeft+sliderWidth+5 jogHeight,20,sliderHeight],'FontSize',16,'Callback',@jogUp);
uicontrol(handles.PiezoPanel,'Style','text','String','C','Position',...
[sliderLeft-20 sliderVertPos+25,10,12],'HorizontalAlignment','left',...
'FontSize',8);
uicontrol(handles.PiezoPanel,'Style','text','String','C','Position',...
[sliderLeft+sliderWidth+10 sliderVertPos+25,10,12],'HorizontalAlignment','left',...
'FontSize',8);
% set step size and position
uicontrol(handles.PiezoPanel,'Style','text','String','Step size Fine','Position',...
[5 sliderVertPos-20,90,12],'HorizontalAlignment','left',...
'FontSize',8);
handles.editFineStep = uicontrol(handles.PiezoPanel,'Style','edit',...
'Position',[80,sliderVertPos-22,30,15],'FontSize',8,...
'String',num2str(fineStep),'Callback',@setFineStepSize);
uicontrol(handles.PiezoPanel,'Style','text','String','Coarse','Position',...
[125 sliderVertPos-20,40,12],'HorizontalAlignment','left',...
'FontSize',8);
handles.editCoarseStep = uicontrol(handles.PiezoPanel,'Style','edit',...
'Position',[170,sliderVertPos-22,30,15],'FontSize',8,...
'String',num2str(coarseStep));
uicontrol(handles.PiezoPanel,'Style','text','String','Set position','Position',...
[5 sliderVertPos-45,90,12],'HorizontalAlignment','left',...
'FontSize',8);
handles.editPosition = uicontrol(handles.PiezoPanel,'Style','edit',...
'Position',[80,sliderVertPos-48,60,15],'FontSize',8,'Callback',@setPosition);
% set SLM
handles.SLMPanel = uipanel(guiFig,'Title','SLM','FontSize',8,...
'Units','Pixels','Position',[230 160 210 140]);
handles.calPupilPos = uicontrol(handles.SLMPanel,'Style','pushbutton',...
'String','Cal Pupil Position','Position',[5,5,100,30],'FontSize',8,'Callback',@calPupilPos);
handles.optimPSF = uicontrol(handles.SLMPanel,'Style','pushbutton',...
'String','Optimize PSF','Position',[105,5,100,30],'FontSize',8,'Callback',@optimPupil);
uicontrol(handles.SLMPanel,'Style','text','String','# zernike coef to optimize',...
'Position',[5,40,150,15],'FontSize',8);
handles.editNumCoef = uicontrol(handles.SLMPanel,'Style','edit','String','13',...
'Position',[160,40,40,15],'FontSize',8);
% acquire PSF
handles.AcqPanel = uipanel(guiFig,'Title','Acquire PSF','FontSize',8,...
'Units','Pixels','Position',[230 10 210 150]);
uicontrol(handles.AcqPanel,'Style','text','String','Z range ([min step max])',...
'Position',[5,110,140,15],'FontSize',8,'HorizontalAlignment','left');
handles.editZrange = uicontrol(handles.AcqPanel,'Style','edit','String','-1 0.25 1',...
'Position',[140,110,60,15],'FontSize',8,'HorizontalAlignment','center');
uicontrol(handles.AcqPanel,'Style','text','String','Frames per Z position',...
'Position',[5,90,140,15],'FontSize',8,'HorizontalAlignment','left');
handles.editNumFrames = uicontrol(handles.AcqPanel,'Style','edit','String','100',...
'Position',[140,90,60,15],'FontSize',8,'HorizontalAlignment','center');
handles.startZstack = uicontrol(handles.AcqPanel,'Style','pushbutton',...
'String','Start','Position',[5,5,60,30],'FontSize',8,...
'Callback',@startZstack);
% Initialize GUI properties
properties2gui();
% Change some defaults
handles.CamROIpopup.Value = 1;
handles.CamZoom_popup.Value = 4;
handles.CamAcqTime.String = '0.01';
handles.SetLaserPower.String = 1;
gui2properties();
%% callback functions
function closeFigure(~,~)
gui2properties();
delete(obj.GuiFigure);
end
function properties2gui()
% update gui with object properties
% laser
handles.SetLaserPower.String = obj.Laser642.Power;
set(handles.Toggle_Laser,'Value',obj.Laser642.IsOn);
if obj.Laser642.IsOn==1
set(handles.Toggle_Laser,'String','On');
set(handles.Toggle_Laser,'BackgroundColor','red');
else
set(handles.Toggle_Laser,'String','Off');
set(handles.Toggle_Laser,'BackgroundColor',[.8 .8 .8]);
end
% camera
handles.CamAcqTime.String = obj.Camera.ExpTime_Focus;
% piezo
if isempty(obj.Piezo.CurrentPosition) || isnan(obj.Piezo.CurrentPosition)
obj.Piezo.getPosition;
end
handles.sliderPosition.Value = obj.Piezo.CurrentPosition;
handles.editPosition.String = num2str(obj.Piezo.CurrentPosition);
end
function gui2properties()
setPower();
setROI();
setZoom();
setAcqTime();
end
function setPower(~,~)
textValue=str2double(get(handles.SetLaserPower,'String'));
if textValue > obj.Laser642.MaxPower || isnan(textValue)
error('Choose a number for Power between [MinPower,MaxPower]');
end
obj.Laser642.setPower(textValue);
end
function toggleLaser(~,~)
state=get(handles.Toggle_Laser,'Value');
if state
obj.Laser642.on();
set(handles.Toggle_Laser,'BackgroundColor','red');
set(handles.Toggle_Laser,'String','On')
else
set(handles.Toggle_Laser,'BackgroundColor',[0.8 0.8 0.8])
set(handles.Toggle_Laser,'String','Off')
obj.Laser642.off();
end
end
function focusCamera(~,~)
obj.Laser642.on();
obj.Camera.start_focus;
obj.Laser642.off();
end
function focusCameraWithFeedback(~,~)
obj.Laser642.on();
obj.Camera.start_focusWithFeedback;
obj.Laser642.off();
end
function setROI(~,~)
roi_val = handles.CamROIpopup.Value;
switch roi_val
% given as [Xstart Xend Ystart Yend]
case 1
ROI=[961 1088 961 1088];% center 128
case 2
ROI=[897 1152 897 1152];% center 256
case 3
ROI=[769 1280 769 1280];% center 512
case 4
ROI=[513 1536 513 1536]; % center 1024
case 5
ROI=[1 2048 1 2048]; % full 2048
end
obj.Camera.ROI = ROI;
end
function setZoom(~,~)
zoom_val = handles.CamZoom_popup.Value;
switch zoom_val
case 1 % 50%
obj.Camera.DisplayZoom = 0.5;
case 2 % 100%
obj.Camera.DisplayZoom = 1;
case 3 % 200%
obj.Camera.DisplayZoom = 2;
case 4 % 400%
obj.Camera.DisplayZoom = 4;
case 5 % 1000%
obj.Camera.DisplayZoom = 10;
end
end
function setAcqTime(~,~)
Value=str2double(get(handles.CamAcqTime,'String'));
obj.Camera.ExpTime_Capture = Value;
obj.Camera.ExpTime_Focus = Value;
obj.Camera.ExpTime_Sequence = Value;
end
function positionSlider(~,~)
Value=handles.sliderPosition.Value;
obj.Piezo.setPosition(Value)
handles.editPosition.String = num2str(Value);
end
function jogUp(~,~)
stepSize = str2double(handles.editCoarseStep.String);
newPos = obj.Piezo.CurrentPosition + stepSize;
if newPos > obj.Piezo.MaxPosition
warning('Position outside range, moving to maximum position')
newPos = obj.Piezo.MaxPosition;
end
obj.Piezo.setPosition(newPos);
properties2gui()
end
function jogDown(~,~)
stepSize = str2double(handles.editCoarseStep.String);
newPos = obj.Piezo.CurrentPosition - stepSize;
if newPos < obj.Piezo.MinPosition
warning('Position outside range, moving to minimum position')
newPos = obj.Piezo.MinPosition;
end
obj.Piezo.setPosition(newPos);
properties2gui()
end
function setFineStepSize(~,~)
stepSize=str2double(handles.editFineStep.String);
stepPercent = stepSize/(obj.Piezo.MaxPosition-obj.Piezo.MinPosition);
handles.sliderPosition.SliderStep = [stepPercent stepPercent];
end
function setPosition(~,~)
Value=str2double(handles.editPosition.String);
if Value < obj.Piezo.MinPosition
warning('MIC_LinearStage_Abstract:GuiInvPos',...
'Invalid Position (%i %s) Position cannot be smaller then %i %s, moving to minimum position',...
Value, obj.Piezo.PositionUnit, obj.Piezo.MinPosition, obj.Piezo.PositionUnit);
Value = obj.Piezo.MinPosition;
end
if Value > obj.Piezo.MaxPosition
warning('MIC_LinearStage_Abstract:GuiInvPos',...
'Invalid Position (%i %s) Position cannot be larger then %i %s, moving to maximum position',...
Value, obj.Piezo.PositionUnit, obj.Piezo.MaxPosition, obj.Piezo.PositionUnit);
Value = obj.Piezo.MaxPosition;
end
obj.Piezo.setPosition(Value)
handles.sliderPosition.Value = Value;
end
function wheel(~,Event)
point = guiFig.CurrentPoint;
% check whether mouse is over slider
if point(1) < sliderLeft || point(1) > sliderLeft+sliderWidth ...
|| point(2) < sliderBottom || point(2) > sliderVertPos+sliderHeight
return
end
stepSize = str2double(handles.editCoarseJog.String);
step = Event.VerticalScrollCount*-stepSize;
newPos = obj.Piezo.CurrentPosition + step;
if newPos < obj.Piezo.MinPosition || newPos > obj.Piezo.MaxPosition
return
end
obj.Piezo.setPosition(newPos);
properties2gui()
end
function calPupilPos(~,~)
obj.calibratePupilPosition();
end
function optimPupil(~,~)
NumCoef = str2double(handles.editNumCoef.String);
obj.optimizePupil(NumCoef);
end
function startZstack(~,~)
% get save info
SaveDir = handles.editSaveDir.String;
FileName = handles.editFileName.String;
SaveType = handles.editSaveType.String{handles.editSaveType.Value};
TimeStamp = datestr(clock,'yyyy-mm-dd-HH-MM-SS');
% get z range info
ZrangeStr = handles.editZrange.String;
idx = strfind(ZrangeStr,' ');
Zrange = [str2double(ZrangeStr(1:idx(1)-1)),...
str2double(ZrangeStr(idx(1)+1:idx(2)-1)),...
str2double(ZrangeStr(idx(2)+1:end))];
z0=obj.Piezo.CurrentPosition;
z = Zrange(1):Zrange(2):Zrange(3);
dataset=[];
%Setup Camera
obj.Camera.SequenceLength=str2double(handles.editNumFrames.String);
obj.Camera.AcquisitionType = 'sequence';
obj.Camera.setup_acquisition;
%Collect
obj.Laser642.on();
pause(.25);
for ii=1:length(z)
obj.Piezo.setPosition(z0+z(ii))
pause(.1);
sequence=obj.Camera.start_sequence();
dataset=cat(4,dataset,sequence);
end
%Turn off Laser and reset Piezo
obj.Laser642.off();
obj.Piezo.setPosition(z0);
% show data
dipshow(permute(squeeze(mean(dataset,3)),[2,1,3]));
% save data
switch SaveType
case 'mat'
Params.Camera = obj.Camera.exportState();
Params.Piezo = obj.Piezo.exportState();
Params.Laser642 = obj.Laser642.exportState();
Params.SLM = obj.SLM.exportState();
Params.Zrange = Zrange;
Params.NA=obj.NA;
Params.RefrIdx=obj.RefrIdx;
Params.Fobjective=obj.Fobjective;
Params.SLMangle = obj.SLMangle;
Params.PixelSize = obj.PixelSize;
Params.ZCoefOptimized = obj.ZCoefOptimized; %#ok<STRNU>
save(fullfile(SaveDir,[FileName '#' TimeStamp '.mat']),'dataset','Params');
case 'h5'
warning('no h5 saving yet')
end
end
end
|
github
|
LidkeLab/matlab-instrument-control-master
|
gui.m
|
.m
|
matlab-instrument-control-master/@MIC_TIRF_SRcollect/gui.m
| 21,009 |
utf_8
|
93650b7a3e977f739c1540ff8e7a8970
|
function gui(obj)
% GUI SRcollect Gui for TIRF microscope
% Detailed explanation goes here
h = findall(0,'tag','TIRF-SRcollect.gui');
if ~(isempty(h))
figure(h);
return;
end
%%
xsz=400;
ysz=1060;
xst=100;
yst=100;
pw=.95;
psep=.001;
staticst=10;
editst=110;
guiFig = figure('Units','pixels','Position',[xst yst xsz ysz],...
'MenuBar','none','ToolBar','none','Visible','on',...
'NumberTitle','off','UserData',0,'Tag',...
'TIRF-SRcollect.gui','HandleVisibility','off','name','SRcollect.gui','CloseRequestFcn',@FigureClose);
defaultBackground = get(0,'defaultUicontrolBackgroundColor');
set(guiFig,'Color',defaultBackground);
handles.output = guiFig;
guidata(guiFig,handles);
refh=1;
% File Panel
ph=0.09;
php = ph*ysz;
hFilePanel = uipanel('Parent',guiFig,'Title','FILE','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String', 'Save Directory:','Enable','off','Position', [staticst php-40 100 20]);
handles.Edit_FileDirectory = uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String','Set Auto','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-40 250 20]);
uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String', 'Base FileName:','Enable','off','Position', [staticst php-65 100 20]);
handles.Edit_FileName = uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String','Set Auto','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-65 250 20]);
uicontrol('Parent',hFilePanel, 'Style', 'edit', 'String','File type:','Enable','off','Position', [staticst php-90 100 20]);
handles.saveFileType = uicontrol('Parent',hFilePanel, 'Style', 'popupmenu', 'String',{'.mat','.h5'},'Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-90 250 20],'CallBack',@saveFile);
% Camera Panel
ph=0.17;
php = ph*ysz;
hCameraPanel = uipanel('Parent',guiFig,'Title','CAMERA','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Camera Gain:','Enable','off','Position', [staticst php-40 100 20]);
handles.Popup_CameraGain = uicontrol('Parent',hCameraPanel, 'Style', 'popupmenu', 'String',{'Low (Alexa647)','High (FAP/FP)'},'Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-40 250 20],'CallBack',@gain_set);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Camera ROI:','Enable','off','Position', [staticst php-70 100 20]);
ROIlist={'Full','Left','Right','Left Center','Right Center','Center Horizontally','Left Top','Left Bottom','Right Top','Right Bottom','Top','Bottom','Center256'};
handles.Popup_CameraROI = uicontrol('Parent',hCameraPanel, 'Style', 'popupmenu', 'String',ROIlist,'Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-70 250 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Exp. Time Focus:','Enable','off','Position', [staticst php-100 100 20]);
handles.Edit_CameraExpTimeFocusSet = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','0.01','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-100 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Actual:','Enable','off','Position', [175 php-100 100 20]);
handles.Edit_CameraExpTimeFocusActual = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','','Enable','off','Position', [250 php-100 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Exp. Time Seq.:','Enable','off','Position', [staticst php-130 100 20]);
handles.Edit_CameraExpTimeSeqSet = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','0.01','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-130 50 20],'CallBack',@sequence_set);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Actual:','Enable','off','Position', [175 php-130 100 20]);
handles.Edit_CameraExpTimeSeqActual = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String',num2str(obj.CameraObj.SequenceCycleTime),'Enable','off','Position', [250 php-130 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Num Frames:','Enable','off','Position', [staticst php-160 100 20]);
handles.Edit_CameraNumFrames = uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','2000','Enable','on','BackgroundColor',[1 1 1],'Position', [editst php-160 50 20]);
uicontrol('Parent',hCameraPanel, 'Style', 'edit', 'String','Zoom:','Enable','off','Position', [175 php-160 100 20]);
handles.Popup_CameraDispZoom = uicontrol('Parent',hCameraPanel, 'Style','popupmenu','String',{'50%','100%','200%','400%','1000%'},'Value',4,'Enable','on','BackgroundColor',[1 1 1],'Position', [250 php-160 50 20],'CallBack',@zoom_set);
% Registration Panel
ph=0.213;
php = ph*ysz;
hRegPanel = uipanel('Parent',guiFig,'Title','REGISTRATION','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol('Parent',hRegPanel, 'Style', 'edit', 'String','Exp. Time Reg.:','Enable','off','Position', [staticst php-40 100 20]);
handles.Edit_RegExpTime = uicontrol('Parent',hRegPanel, 'Style', 'edit', ...
'String','0.01','Enable','on','BackgroundColor',[1 1 1],...
'Position', [editst php-40 50 20]);
handles.Button_RegLoadRef=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Load Reference','Enable','on',...
'Position', [staticst php-70 100 20],'Callback',@LoadRef);
handles.Edit_RegFileName = uicontrol('Parent',hRegPanel, 'Style', 'edit', ...
'String','File Name','Enable','on','BackgroundColor',[1 1 1],...
'Position', [editst php-70 250 20]);
handles.Button_RegAlign=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Align','Enable','on','Position', ...
[staticst php-100 80 20],'Callback',@Align);
handles.Button_RegShowRef=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton', ...
'String','Show Reference','Enable','on','Position', ...
[staticst+80 php-100 100 20],'Callback',@ShowRef);
handles.Button_RegTakeCurrent=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Take Current','Enable','on','Position', ...
[staticst+180 php-40 90 20],'Callback',@TakeCurrent);
handles.Button_RegCenterStage=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton', ...
'String','Center Stage','Enable','on','Position', ...
[staticst+270 php-40 90 20],'Callback',@CenterStage);
handles.Button_RegTakeReference=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton',...
'String','Take Reference','Enable','on','Position', ...
[staticst+180 php-100 90 20],'Callback',@TakeReference);
handles.Button_RegSaveReference=uicontrol('Parent',hRegPanel, 'Style', 'pushbutton', ...
'String','Save Reference','Enable','on','Position', ...
[staticst+270 php-100 90 20],'Callback',@SaveReference);
BGh=100;
handles.ButtonGroup_RegCollectType=uibuttongroup('Parent',hRegPanel, 'Position', [.02 (php-130-BGh+30)/php .96 BGh/php]);
b1=uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'radio', 'tag','None','String','No Registration','Enable','on','Position', [staticst BGh-30 250 20]);
b2=uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'radio','tag','Self', 'String','Align to Self (Takes/Saves Reference Image)','Enable','on','Position', [staticst BGh-60 250 20]);
b3=uicontrol('Parent',handles.ButtonGroup_RegCollectType, 'Style', 'radio','tag','Ref','String','Align to Reference','Enable','on','Position', [staticst BGh-90 250 20]);
% LIGHTSOURCE Panel
ph=0.3;
hLampPanel = uipanel('Parent',guiFig,'Title','LIGHT SOURCE','Position',[(1-pw)/2 refh-ph-psep pw ph]);
refh=refh-ph-psep;
uicontrol(hLampPanel,'Style','text','String','On during Focus',...
'Position',[-3 240,60,25]);
uicontrol(hLampPanel,'Style','text','String','On during Aquisition',...
'Position',[-3 180,60,28]);
uicontrol(hLampPanel,'Style','text','String','Low Power',...
'Position',[0 120,60,25]);
uicontrol(hLampPanel,'Style','text','String','High Power',...
'Position',[0 70,60,25]);
uicontrol(hLampPanel,'Style','text','String','[MinPower,MaxPower]',...
'Position',[-1 5,60,35]);
h405Panel=uipanel(hLampPanel,'Title','405 nm','Position',[1/6 1/6 1/6 5/6]);
handles.Focus405 = uicontrol(h405Panel,'Style','checkbox',...
'Value',0,'Position',[23 190 130 20]);
handles.Aquisition405 = uicontrol(h405Panel,'Style','checkbox',...
'Value',0,'Position',[23 130 130 20]);
handles.LP405 = uicontrol(h405Panel,'Style','edit',...
'Position',[15 80 30 20],'Callback',@setLaser405Low);
handles.HP405 = uicontrol(h405Panel,'Style','edit',...
'Position',[15 25 30 20]);
powerString405 = sprintf('[%g, %g] (%s)',obj.Laser405.MinPower,obj.Laser405.MaxPower, obj.Laser405.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerString405,...
'Position',[64, 5,60,35]);
h488Panel=uipanel(hLampPanel,'Title','488 nm','Position',[2/6 1/6 1/6 5/6]);
handles.Focus488 = uicontrol(h488Panel,'Style','checkbox',...
'Value',0,'Position',[23 190 130 20]);
handles.Aquisition488 = uicontrol(h488Panel,'Style','checkbox',...
'Value',0,'Position',[23 130 130 20]);
handles.LP488 = uicontrol(h488Panel,'Style','edit',...
'Position',[15 80 30 20],'Callback',@setLaser488Low);
handles.HP488 = uicontrol(h488Panel,'Style','edit',...
'Position',[15 25 30 20]);
powerString488 = sprintf('[%g, %g] (%s)',obj.Laser488.MinPower,obj.Laser488.MaxPower, obj.Laser488.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerString488,...
'Position',[125 5,60,35]);
h561Panel=uipanel(hLampPanel,'Title','561 nm','Position',[3/6 1/6 1/6 5/6]);
handles.Focus561 = uicontrol(h561Panel,'Style','checkbox',...
'Value',0,'Position',[23 190 130 20]);
handles.Aquisition561 = uicontrol(h561Panel,'Style','checkbox',...
'Value',0,'Position',[23 130 130 20]);
handles.LP561 = uicontrol(h561Panel,'Style','edit',...
'Position',[15 80 30 20],'Callback',@setLaser561Low);
handles.HP561 = uicontrol(h561Panel,'Style','edit',...
'Position',[15 25 30 20]);
powerString561 = sprintf('[%g, %g] (%s)',obj.Laser561.MinPower,obj.Laser561.MaxPower, obj.Laser561.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerString561,...
'Position',[190 5,60,35]);
h642Panel=uipanel(hLampPanel,'Title','642 nm','Position',[4/6 1/6 1/6 5/6]);
handles.Focus642 = uicontrol(h642Panel,'Style','checkbox',...
'Value',0,'Position',[23 190 130 20]);
handles.Aquisition642 = uicontrol(h642Panel,'Style','checkbox',...
'Value',0,'Position',[23 130 130 20]);
handles.LP642 = uicontrol(h642Panel,'Style','edit',...
'Position',[15 80 30 20],'Callback',@setLaser642Low);
handles.HP642 = uicontrol(h642Panel,'Style','edit',...
'Position',[15 25 30 20]);
powerString642 = sprintf('[%g, %g] (%s)',obj.Laser642.MinPower,obj.Laser642.MaxPower, obj.Laser642.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerString642,...
'Position',[250 5,60,35]);
hX71Panel=uipanel(hLampPanel,'Title','Lamp','Position',[5/6 1/6 1/6 5/6]);
handles.FocusIX71Lamp = uicontrol(hX71Panel,'Style','checkbox',...
'Value',0,'Position',[23 190 130 20]);
handles.AquisitionIX71Lamp = uicontrol(hX71Panel,'Style','checkbox',...
'Value',0,'Position',[23 130 130 20]);
handles.IX71LampPower = uicontrol(hX71Panel,'Style','edit',...
'Position',[15 80 30 20],'Callback',@SetLampPower);
powerStringLamp = sprintf('[%g, %g] (%s)',obj.LampObj.MinPower,obj.LampObj.MaxPower, obj.LampObj.PowerUnit);
uicontrol(hLampPanel,'Style','text','String',powerStringLamp,...
'Position',[315 5,60,35]);
% CONTROL Panel
ph=0.190;
hControlPanel = uipanel('Parent',guiFig,'Title','CONTROL','Position',[(1-pw)/2 refh-ph-psep pw ph]);
php = ph*ysz;
uicontrol('Parent',hControlPanel, 'Style', 'edit', 'String','Number of Sequences:','Enable','off','Position', [staticst php-40 150 20]);
handles.Edit_ControlNSequence = uicontrol('Parent',hControlPanel, 'Style', 'edit', 'String','20','Enable','on','BackgroundColor',[1 1 1],'Position', [editst+50 php-40 50 20]);
handles.Button_ControlFocusLamp=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Lamp','Enable','on','Position', [staticst php-90 150 40],'BackgroundColor',[1 1 .8],'Callback',@FocusLamp);
handles.Button_ControlFocusLaserLow=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Laser (Low)','Enable','on','Position', [staticst+200 php-90 150 40],'BackgroundColor',[1 .8 .8],'Callback',@FocusLow);
handles.Toggle_LaserLamp=uicontrol('Parent',hControlPanel, 'Style', 'toggle', 'String','Lamp','Enable','on','Position', [staticst php-138 150 40],'BackgroundColor',[1 1 .8],'Callback',@ToggleLamp);
handles.Button_ControlStart=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','START','Enable','on','Position', [staticst php-175 150 30],'BackgroundColor',[0 1 0],'Callback',@Start);
handles.Button_ControlFocusLaserHigh=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','Focus Laser (High)','Enable','on','Position', [staticst+200 php-138 150 40],'BackgroundColor',[1 0 0],'Callback',@FocusHigh);
handles.Button_ControlAbort=uicontrol('Parent',hControlPanel, 'Style', 'pushbutton', 'String','ABORT','Enable','on','Position', [staticst+200 php-175 150 30],'BackgroundColor',[1 0 1],'Callback',@Abort);
%% Setup GUI Values
properties2gui();
%% Figure Callbacks
function saveFile(~,~)
file_val=get(handles.saveFileType,'value');
switch file_val
case 1
obj.SaveFileType='mat';
case 2
obj.SaveFileType='h5';
end
end
function LoadRef(~,~)
obj.loadref();
set(handles.Edit_RegFileName,'String',obj.R3DObj.RefImageFile);
end
function Align(~,~)
gui2properties();
obj.align();
end
function ShowRef(~,~)
obj.showref();
end
function TakeCurrent(~,~)
gui2properties();
obj.takecurrent();
end
function CenterStage(~,~)
obj.StageObj.center();
end
function TakeReference(~,~)
gui2properties();
obj.takeref();
end
function SaveReference(~,~)
obj.saveref();
properties2gui();
end
function ToggleLamp(~,~)
gui2properties();
stateLamp1=get(handles.Toggle_LaserLamp,'Value');
if stateLamp1
obj.LampObj.setPower(obj.LampPower);
obj.LampObj.on;
else
obj.LampObj.off;
% pause(obj.LampWait);
end
end
function FocusLamp(~,~)
gui2properties();
obj.focusLamp();
end
function FocusLow(~,~)
gui2properties();
obj.focusLow();
end
function FocusHigh(~,~)
gui2properties();
obj.focusHigh();
end
function Abort(~,~)
obj.AbortNow=1;
set(handles.Button_ControlStart, 'String','START','Enable','on');
end
function Start(~,~)
gui2properties();
set(handles.Button_ControlStart, 'String','Acquiring','Enable','off');
obj.StartSequence(handles);
set(handles.Button_ControlStart, 'String','START','Enable','on');
end
function SetLampPower(~,~)
gui2properties();
obj.setLampPower();
end
function setLaser405Low(~,~)
obj.Laser405.setPower(str2double(handles.LP405.String));
end
function setLaser488Low(~,~)
obj.Laser405.setPower(str2double(handles.LP488.String));
end
function setLaser561Low(~,~)
obj.Laser405.setPower(str2double(handles.LP561.String));
end
function setLaser642Low(~,~)
obj.Laser405.setPower(str2double(handles.LP642.String));
end
function FigureClose(~,~)
gui2properties();
delete(guiFig);
end
function zoom_set(~,~)
zoom_val = get(handles.Popup_CameraDispZoom,'Value');
switch zoom_val
case 1
obj.CameraObj.DisplayZoom = 0.5;
case 2
obj.CameraObj.DisplayZoom = 1;
case 3
obj.CameraObj.DisplayZoom = 2;
case 4
obj.CameraObj.DisplayZoom = 4;
case 5
obj.CameraObj.DisplayZoom = 10;
end
end
function gain_set(~,~)
gain_val=get(handles.Popup_CameraGain,'value');
switch gain_val
case 1
obj.CameraEMGainHigh=100;
case 2
obj.CameraEMGainHigh=200;
end
end
function sequence_set(~,~)
gui2properties();
obj.CameraObj.ExpTime_Sequence = obj.ExpTime_Sequence_Set;
obj.CameraObj.AcquisitionType = 'sequence';
obj.CameraObj.setup_acquisition;
set(handles.Edit_CameraExpTimeSeqActual,'String',num2str(obj.CameraObj.SequenceCycleTime));
end
function gui2properties()
%Get GUI values and update to object properties
obj.SaveDir=get(handles.Edit_FileDirectory,'String');
obj.BaseFileName=get(handles.Edit_FileName,'String');
obj.CameraGain=get(handles.Popup_CameraGain,'value');
obj.CameraROI=get(handles.Popup_CameraROI,'value');
obj.ExpTime_Focus_Set=str2double(get(handles.Edit_CameraExpTimeFocusSet,'string'));
obj.ExpTime_Sequence_Set=str2double(get(handles.Edit_CameraExpTimeSeqSet,'string'));
obj.NumFrames=str2double(get(handles.Edit_CameraNumFrames,'string'));
obj.R3DObj.ExposureTime=str2double(get(handles.Edit_RegExpTime,'string'));
obj.R3DObj.RefImageFile=get(handles.Edit_RegFileName,'string');
obj.focus405Flag=get(handles.Focus405,'Value');
obj.focus488Flag=get(handles.Focus488,'Value');
obj.focus561Flag=get(handles.Focus561,'Value');
obj.focus642Flag=get(handles.Focus642,'Value');
obj.focusLampFlag=get(handles.FocusIX71Lamp,'Value');
obj.Laser405Low=str2double(handles.LP405.String);
obj.Laser488Low=str2double(handles.LP488.String);
obj.Laser561Low=str2double(handles.LP561.String);
obj.Laser642Low=str2double(handles.LP642.String);
obj.Laser405High=str2double(handles.HP405.String);
obj.Laser488High=str2double(handles.HP488.String);
obj.Laser561High=str2double(handles.HP561.String);
obj.Laser642High=str2double(handles.HP642.String);
obj.LampPower=str2double(handles.IX71LampPower.String);
obj.Laser405Aq=handles.Aquisition405.Value;
obj.Laser488Aq=handles.Aquisition488.Value;
obj.Laser561Aq=handles.Aquisition561.Value;
obj.Laser642Aq=handles.Aquisition642.Value;
obj.LampAq=handles.AquisitionIX71Lamp.Value;
obj.NumSequences=str2double(get(handles.Edit_ControlNSequence,'string'));
obj.RegType=get(get(handles.ButtonGroup_RegCollectType,'SelectedObject'),'Tag');
end
function properties2gui()
%Set GUI values from object properties
set(handles.Edit_FileDirectory,'String',obj.SaveDir);
set(handles.Edit_FileName,'String',obj.BaseFileName);
set(handles.Popup_CameraGain,'value',obj.CameraGain);
set(handles.Popup_CameraROI,'value',obj.CameraROI);
set(handles.Edit_CameraExpTimeFocusSet,'string',num2str(obj.ExpTime_Focus_Set));
set(handles.Edit_CameraExpTimeSeqSet,'string',num2str(obj.ExpTime_Sequence_Set));
set(handles.Edit_RegExpTime,'string',num2str(obj.R3DObj.ExposureTime));
set(handles.Edit_CameraNumFrames,'string',num2str(obj.NumFrames));
set(handles.Edit_RegFileName,'string',obj.R3DObj.RefImageFile);
set(handles.LP405,'string',obj.Laser405Low);
set(handles.LP488,'string',obj.Laser488Low);
set(handles.LP561,'string',obj.Laser561Low);
set(handles.LP642,'string',obj.Laser642Low);
set(handles.HP405,'string',obj.Laser405High);
set(handles.HP488,'string',obj.Laser488High);
set(handles.HP561,'string',obj.Laser561High);
set(handles.HP642,'string',obj.Laser642High);
set(handles.IX71LampPower,'string',obj.LampPower);
set(handles.Focus405,'value',obj.focus405Flag);
set(handles.Focus488,'value',obj.focus488Flag);
set(handles.Focus561,'value',obj.focus561Flag);
set(handles.Focus642,'value',obj.focus642Flag);
set(handles.FocusIX71Lamp,'value',obj.focusLampFlag);
set(handles.Edit_ControlNSequence,'string',num2str(obj.NumSequences));
set(handles.Edit_CameraExpTimeSeqActual,'String',num2str(obj.CameraObj.SequenceCycleTime));
switch obj.RegType
case 'None'
set(handles.ButtonGroup_RegCollectType,'SelectedObject',b1);
case 'Self'
set(handles.ButtonGroup_RegCollectType,'SelectedObject',b2);
case 'Ref'
set(handles.ButtonGroup_RegCollectType,'SelectedObject',b3);
end
end
end
|
github
|
vaibhavjoshi16/Matlab-solver-for-adaptive-two-phase-flows-master
|
coarsening.m
|
.m
|
Matlab-solver-for-adaptive-two-phase-flows-master/coarsening.m
| 5,050 |
utf_8
|
19e7e1fc6bd780ce0690c5302041ffbf
|
function [Sol,eta] = coarsening(Sol,eta,theta)
% COARSENING coarsens the current mesh
%
% USAGE
% [Sol,eta] = coarsening(Sol,eta,theta)
%
% INPUT
% Sol: current mesh data
% eta: error indicator for each triangle
% theta: parameter in (0,1).
% We mark minimal number of triangles M such that
% \sum_{T \in M} \eta_T < \theta*\sum\eta_T
%
% OUTPUT
% Sol: new mesh data after coarsening
% eta: new error indicator for each triangle
%
% NOTE
% Only one level coarsening
%
% REFERENCE
% AFEM@matlab Manual --> Algorithms --> Coarsening
%
% L. Chen & C. Zhang 11-15-2006
% Modified by Vaibhav Joshi, Rajeev K. Jaiman
%--------------------------------------------------------------------------
% Construct data structure
%--------------------------------------------------------------------------
N = size(Sol.node,1);
NT = size(Sol.elem,1);
dualEdge = sparse(Sol.elem(:,[1,2,3]),Sol.elem(:,[2,3,1]),[1:NT,1:NT,1:NT]);
valence = accumarray(Sol.elem(:),ones(3*NT,1),[N 1]);
eta_p = accumarray(Sol.elem(:),[eta;eta;eta],[N 1]);
%--------------------------------------------------------------------------
% Mark nodes for coarsen
%--------------------------------------------------------------------------
total = sum(eta_p); maxeta = max(eta_p);
current = 0; marker = uint8(zeros(N,1));
newestNode = unique(Sol.elem(:,1)); % newest vertices of all elements
coarseNode = find(Sol.type==1); % nodes in the initial triangulation
newestNode = setdiff(newestNode,coarseNode);
isGood = (valence(newestNode) == 2) | (valence(newestNode) == 4);
goodNode = newestNode(isGood);
% A node is called 'good' if it can be removed without breaking the mesh
% comformity. A node is 'good' if and only if
% 0. it is not a node of marco elements in the initial triangluation;
% 1. it is the newest node in each of the elements with it as a node;
% 2. if it is an interior node, the valence is 4;
% 3. if it is on the boundary, the valence is 2.
[temp,ix] = sort(eta_p(goodNode));
for i = 1:length(goodNode)
p = goodNode(ix(i));
if (eta_p(p) > 0.2*maxeta), break; end % only coarsen where error small
if (current + eta_p(p) > theta*total), break; end
marker(p) = 1; % mark p to be removed
Sol.type(p) = 0; % node p is non active now
current = current + eta_p(p);
end
if (sum(marker)==0), return; end % no node can be coarsened
%--------------------------------------------------------------------------
% Coarsen the mesh by removing marked nodes
%--------------------------------------------------------------------------
for t = 1:NT
if (Sol.elem(t,1)>0) % otherwise t is already deleted
p = Sol.elem(t,1);
if (marker(p)==1) % p is a marked good point
brother = dualEdge(Sol.elem(t,2),p);
Sol.elem(t,1) = Sol.elem(t,2);
Sol.elem(t,2) = Sol.elem(t,3);
Sol.elem(t,3) = Sol.elem(brother,2);
Sol.elem(brother,1) = 0; % brother is going to be deleted
eta(t) = eta(t) + eta(brother); % new eta = eta_t + eta_brother
end % endif for all markd good nodes
end
end % end of for loop on all elements
%--------------------------------------------------------------------------
% Clear element and eta arrarys
%--------------------------------------------------------------------------
ix = (Sol.elem(:,1) == 0);
Sol.elem(ix,:) = [];
eta(ix,:) = [];
%--------------------------------------------------------------------------
% Update boundary edges
%--------------------------------------------------------------------------
markedNode = goodNode((marker(goodNode)==1)&(valence(goodNode)==2));
Sol.Dirichlet = updatebd(Sol.Dirichlet, markedNode);
Sol.Neumann = updatebd(Sol.Neumann, markedNode);
%--------------------------------------------------------------------------
% End of function COARSENING
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
% Sub functions called by COARSENING
%--------------------------------------------------------------------------
function bdEdge = updatebd(bdEdge, markedNode)
% UPDATEDBD coarsen the boundary edges
%
% USAGE
% bdEdge = updatebd(bdEdge, markedNode)
%
% INPUT
% bdEdge: old boundary edges
% markedNode: node marked for coarsening
%
% OUTPUT
% bdEdge: new boundary edges after coarsening
%
if (isempty(bdEdge) || isempty(markedNode)), return; end
NB = size(bdEdge,1);
neig = sparse(bdEdge,ones(NB,1)*[2,1],[1:NB,1:NB]);
% skeleton of edges around a node
for k = 1: length(markedNode)
i = neig(markedNode(k),1);
j = neig(markedNode(k),2);
% o --- i --- o --- j --- o
% ^
% noActive(k)
bdEdge(i,2) = bdEdge(j,2);
bdEdge(j,1) = 0;
end
ix = (bdEdge(:,1)==0);
bdEdge(ix,:) = [];
%--------------------------------------------------------------------------
% End of function UPDATEDBD
%--------------------------------------------------------------------------
|
github
|
vaibhavjoshi16/Matlab-solver-for-adaptive-two-phase-flows-master
|
bisection.m
|
.m
|
Matlab-solver-for-adaptive-two-phase-flows-master/bisection.m
| 11,047 |
utf_8
|
76f20349eeb792a7d8eaac98f42ee2a2
|
function [Sol,eta] = bisection(Sol,eta,theta)
% BISECTION refines the triangulation using newest vertex bisection
%
% USAGE
% [Sol,eta] = bisection(Sol,eta,theta)
%
% INPUT
% Sol: current mesh data with all variable data
% eta: error indicator for each triangle
% theta: parameter in (0,1).
% We mark minimal number of triangles M such that
% \sum_{T \in M} \eta_T > \theta*\sum\eta_T
%
% OUTPUT
% Sol: new mesh data with interpolated variable data after refinement
% eta: new error indicator for each triangle
%
% REFERENCE
% Long Chen,
% Short bisection implementation in MATLAB
% Research Notes, 2006
%
% L. Chen & C. Zhang 11-12-2006
%
% Modified by: Vaibhav Joshi, Rajeev K. Jaiman
%--------------------------------------------------------------------------
% Construct data structure
%--------------------------------------------------------------------------
edge = [Sol.elem(:,[1,2]); Sol.elem(:,[1,3]); Sol.elem(:,[2,3])];
edge = unique(sort(edge,2),'rows');
N = size(Sol.node,1);
NT = size(Sol.elem,1);
NE = size(edge,1);
dualEdge = sparse(Sol.elem(:,[1,2,3]),Sol.elem(:,[2,3,1]),[1:NT,1:NT,1:NT]);
d2p = sparse(edge(:,[1,2]),edge(:,[2,1]),[1:NE,1:NE]);
% Detailed explanation can be founded at
% Manual --> Data Structure --> Auxlliary data structure
%--------------------------------------------------------------------------
% Meomery management for node arrary
%--------------------------------------------------------------------------
recycle = find(Sol.type==0);
last = length(recycle);
% Coarsening can create empty spaces in the node array. We collect those
% scattered spaces in recycle arrary and 'last' will point out the last
% empty node index.
% mesh.type array is used to distinguish the type of nodes:
% 0: empty nodes (deleted by coarsening);
% 1: nodes in the initial triangulation or nodes from regular refinement;
% 2: new added nodes due to refinement;
% 5: temporay node (will be deleted when bisection finished).
%--------------------------------------------------------------------------
% Mark triangles according to the error indicator
%--------------------------------------------------------------------------
total = sum(eta);
current = 0;
[temp,ix] = sort(-eta); % sort in descent order
marker = zeros(NE,1);
% initialize for possible new nodes
Sol.node = [Sol.node; zeros(NE,2)];
Sol.type = [Sol.type; uint8(5*ones(NE,1))];
Sol.u = [Sol.u; zeros(NE,2)];
Sol.uPrev = [Sol.uPrev; zeros(NE,2)];
Sol.uAlpha = [Sol.uAlpha; zeros(NE,2)];
Sol.uDot = [Sol.uDot; zeros(NE,2)];
Sol.uDotPrev = [Sol.uDotPrev; zeros(NE,2)];
Sol.uDotAlpha = [Sol.uDotAlpha; zeros(NE,2)];
Sol.p = [Sol.p; zeros(NE,1)];
Sol.pPrev = [Sol.pPrev; zeros(NE,1)];
Sol.phi = [Sol.phi; zeros(NE,1)];
Sol.phiPrev = [Sol.phiPrev; zeros(NE,1)];
Sol.phiAlpha = [Sol.phiAlpha; zeros(NE,1)];
Sol.phiDot = [Sol.phiDot; zeros(NE,1)];
Sol.phiDotPrev = [Sol.phiDotPrev; zeros(NE,1)];
Sol.phiDotAlpha = [Sol.phiDotAlpha; zeros(NE,1)];
for t = 1:NT
if (current > theta*total), break; end % est on marked elem big enough
index = 1;
ct = ix(t);
while (index==1)
base = d2p(Sol.elem(ct,2),Sol.elem(ct,3));
if (marker(base)>0) % base is already marked
index = 0;
else
current = current + eta(ct);
if (last==0)
newNode = N + 1;
N = N+1;
end
if (last>0)
newNode = recycle(last);
last = last-1;
end
marker( d2p(Sol.elem(ct,2),Sol.elem(ct,3)) ) = newNode;
% A new node is added to the mesh. Numerical solution at this
% new added node is approximated by linear interpolation. Type
% of this node is 2 (generated by newest vertex bisection)
Sol.node(newNode,:) = ( Sol.node(Sol.elem(ct,2),:) + ...
Sol.node(Sol.elem(ct,3),:) )/2;
Sol.u(newNode,1) = ( Sol.u(Sol.elem(ct,2),1) + ...
Sol.u(Sol.elem(ct,3),1) )/2;
Sol.uPrev(newNode,1) = ( Sol.uPrev(Sol.elem(ct,2),1) + ...
Sol.uPrev(Sol.elem(ct,3),1) )/2;
Sol.uAlpha(newNode,1) = ( Sol.uAlpha(Sol.elem(ct,2),1) + ...
Sol.uAlpha(Sol.elem(ct,3),1) )/2;
Sol.uDot(newNode,1) = ( Sol.uDot(Sol.elem(ct,2),1) + ...
Sol.uDot(Sol.elem(ct,3),1) )/2;
Sol.uDotPrev(newNode,1) = ( Sol.uDotPrev(Sol.elem(ct,2),1) + ...
Sol.uDotPrev(Sol.elem(ct,3),1) )/2;
Sol.uDotAlpha(newNode,1) = ( Sol.uDotAlpha(Sol.elem(ct,2),1) + ...
Sol.uDotAlpha(Sol.elem(ct,3),1) )/2;
Sol.u(newNode,2) = ( Sol.u(Sol.elem(ct,2),2) + ...
Sol.u(Sol.elem(ct,3),2) )/2;
Sol.uPrev(newNode,2) = ( Sol.uPrev(Sol.elem(ct,2),2) + ...
Sol.uPrev(Sol.elem(ct,3),2) )/2;
Sol.uAlpha(newNode,2) = ( Sol.uAlpha(Sol.elem(ct,2),2) + ...
Sol.uAlpha(Sol.elem(ct,3),2) )/2;
Sol.uDot(newNode,2) = ( Sol.uDot(Sol.elem(ct,2),2) + ...
Sol.uDot(Sol.elem(ct,3),2) )/2;
Sol.uDotPrev(newNode,2) = ( Sol.uDotPrev(Sol.elem(ct,2),2) + ...
Sol.uDotPrev(Sol.elem(ct,3),2) )/2;
Sol.uDotAlpha(newNode,2) = ( Sol.uDotAlpha(Sol.elem(ct,2),2) + ...
Sol.uDotAlpha(Sol.elem(ct,3),2) )/2;
Sol.p(newNode) = ( Sol.p(Sol.elem(ct,2)) + ...
Sol.p(Sol.elem(ct,3)) )/2;
Sol.pPrev(newNode) = ( Sol.pPrev(Sol.elem(ct,2)) + ...
Sol.pPrev(Sol.elem(ct,3)) )/2;
Sol.phi(newNode) = ( Sol.phi(Sol.elem(ct,2)) + ...
Sol.phi(Sol.elem(ct,3)) )/2;
Sol.phiPrev(newNode) = ( Sol.phiPrev(Sol.elem(ct,2)) + ...
Sol.phiPrev(Sol.elem(ct,3)) )/2;
Sol.phiAlpha(newNode) = ( Sol.phiAlpha(Sol.elem(ct,2)) + ...
Sol.phiAlpha(Sol.elem(ct,3)) )/2;
Sol.phiDot(newNode) = ( Sol.phiDot(Sol.elem(ct,2)) + ...
Sol.phiDot(Sol.elem(ct,3)) )/2;
Sol.phiDotPrev(newNode) = ( Sol.phiDotPrev(Sol.elem(ct,2)) + ...
Sol.phiDotPrev(Sol.elem(ct,3)) )/2;
Sol.phiDotAlpha(newNode) = ( Sol.phiDotAlpha(Sol.elem(ct,2)) + ...
Sol.phiDotAlpha(Sol.elem(ct,3)) )/2;
Sol.type(newNode) = 2;
% Find the element which shares the base edge of the current
% element. If it is 0, it means the base of the current element
% is on the boundary.
ct = dualEdge( Sol.elem(ct,3), Sol.elem(ct,2) );
if ( ct == 0 ), index = 0; end
% the while will ended if
% 1. ct==0 means we are on the boundary
% 2. base(ct) is already marked
end
end % end while for recursive marking
end % end of for loop on all elements
% Detailed explanation of the algorithm can be found at
% Manual --> Algorithms --> Bisection
% delete possible empty entries
ix = (Sol.type == 5);
Sol.node(ix,:) = [];
Sol.type(ix) = [];
Sol.u(ix,:) = [];
Sol.uPrev(ix,:) = [];
Sol.uAlpha(ix,:) = [];
Sol.uDot(ix,:) = [];
Sol.uDotPrev(ix,:) = [];
Sol.uDotAlpha(ix,:) = [];
Sol.p(ix) = [];
Sol.pPrev(ix) = [];
Sol.phi(ix) = [];
Sol.phiPrev(ix) = [];
Sol.phiAlpha(ix) = [];
Sol.phiDot(ix) = [];
Sol.phiDotPrev(ix) = [];
Sol.phiDotAlpha(ix) = [];
%--------------------------------------------------------------------------
% Refine marked edges for each triangle
%--------------------------------------------------------------------------
numnew = 2*sum(marker~=0); % number of new elements need to be added
Sol.elem = [Sol.elem; zeros(numnew,3)];
eta = [eta; zeros(numnew,1)];
inew = NT + 1; % index for current new added right child
for t = 1:NT
base = d2p(Sol.elem(t,2),Sol.elem(t,3));
if (marker(base)>0)
p = [Sol.elem(t,:), marker(base)];
% Case 1: divide the current marked triangle
Sol.elem(t,:) = [p(4),p(1),p(2)]; % t is always a left child
Sol.elem(inew,:) = [p(4),p(3),p(1)]; % new is a right child
eta(t) = eta(t)/2; % update error indicators
eta(inew) = eta(t);
inew = inew + 1;
% Case 2: divide the right child, different, careful!!!
right = d2p(p(3),p(1));
if (marker(right)>0)
Sol.elem(inew-1,:) = [marker(right),p(4),p(3)];
Sol.elem(inew,:) = [marker(right),p(1),p(4)];
eta(inew-1) = eta(inew-1)/2;
eta(inew) = eta(inew-1);
inew = inew + 1;
end
% Case 3: divide the left child, similar to the case 1.
left = d2p(p(1),p(2));
if (marker(left)>0)
Sol.elem(t,:) = [marker(left),p(4),p(1)];
Sol.elem(inew,:) = [marker(left),p(2),p(4)];
eta(t) = eta(t)/2;
eta(inew) = eta(t);
inew = inew + 1;
end
end % end of refinement of one element
end % end of for loop on all elements
% delete possible empty entries
Sol.elem = Sol.elem(1:inew-1,:);
eta = eta(1:inew-1,:);
%--------------------------------------------------------------------------
% Update boundary edges
%--------------------------------------------------------------------------
Sol.Dirichlet = updatebd(Sol.Dirichlet,marker,d2p);
Sol.Neumann = updatebd(Sol.Neumann,marker,d2p);
%--------------------------------------------------------------------------
% End of function BISECTION
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
% Sub functions called by BISECTION
%--------------------------------------------------------------------------
function bdEdge = updatebd(bdEdge,marker,d2p)
% UPDATEDBD refine the boundary edges
%
% USAGE
% bdEdge = updatebd(bdEdge,marker,d2p)
%
% INPUT
% bdEdge: set of boundary edges
% marker: new node index for marked edge
% d2p: index mapping from dual edge to primary edge
%
% OUTPUT
% bdEdge: set of refined boundary edges
%
NB = size(bdEdge,1);
for k = 1:NB
i = bdEdge(k,1);
j = bdEdge(k,2);
if (marker(d2p(i,j)) >0)
bdEdge(k,:) = [i,marker(d2p(i,j))];
bdEdge(size(bdEdge,1)+1,:) = [marker(d2p(i,j)),j];
end
end
%--------------------------------------------------------------------------
% End of function UPDATEDBD
%--------------------------------------------------------------------------
|
github
|
zheng-da/incubator-mxnet-master
|
callmxnet.m
|
.m
|
incubator-mxnet-master/matlab/+mxnet/private/callmxnet.m
| 1,666 |
utf_8
|
23c3a6783ce55cb2598391d3aa27cf4e
|
% Licensed to the Apache Software Foundation (ASF) under one
% or more contributor license agreements. See the NOTICE file
% distributed with this work for additional information
% regarding copyright ownership. The ASF licenses this file
% to you under the Apache License, Version 2.0 (the
% "License"); you may not use this file except in compliance
% with the License. You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing,
% software distributed under the License is distributed on an
% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
% KIND, either express or implied. See the License for the
% specific language governing permissions and limitations
% under the License.
function callmxnet(func, varargin)
%CALLMXNET call mxnet functions
if ~libisloaded('libmxnet')
cur_pwd = pwd;
mxnet_root = [fileparts(mfilename('fullpath')), '/../../../'];
cd(mxnet_root);
mxnet_root = pwd;
cd(cur_pwd);
assert(exist([mxnet_root, '/lib/libmxnet.so' ], 'file') == 2 || ...
exist([mxnet_root, '/lib/libmxnet.dylib'], 'file') == 2 || ...
exist([mxnet_root, '/lib/libmxnet.dll' ], 'file') == 2, ...
'you need to build mxnet first');
assert(exist([mxnet_root, '/include/mxnet/c_predict_api.h']) == 2, ...
'failed to find c_predict_api.h')
addpath([mxnet_root, '/lib'])
addpath([mxnet_root, '/include/mxnet'])
[err, warn] = loadlibrary('libmxnet', 'c_predict_api.h');
assert(isempty(err));
if warn, warn, end
end
assert(ischar(func))
ret = calllib('libmxnet', func, varargin{:});
assert(ret == 0)
end
|
github
|
zheng-da/incubator-mxnet-master
|
parse_json.m
|
.m
|
incubator-mxnet-master/matlab/+mxnet/private/parse_json.m
| 19,881 |
utf_8
|
9cd6f452886def83ecf848d78f2e903a
|
% Licensed to the Apache Software Foundation (ASF) under one
% or more contributor license agreements. See the NOTICE file
% distributed with this work for additional information
% regarding copyright ownership. The ASF licenses this file
% to you under the Apache License, Version 2.0 (the
% "License"); you may not use this file except in compliance
% with the License. You may obtain a copy of the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing,
% software distributed under the License is distributed on an
% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
% KIND, either express or implied. See the License for the
% specific language governing permissions and limitations
% under the License.
function data = parse_json(fname,varargin)
%PARSE_JSON parse a JSON (JavaScript Object Notation) file or string
%
% Based on jsonlab (https://github.com/fangq/jsonlab) created by Qianqian Fang. Jsonlab is lisonced under BSD or GPL v3.
global pos inStr len esc index_esc len_esc isoct arraytoken
if(regexp(fname,'^\s*(?:\[.+\])|(?:\{.+\})\s*$','once'))
string=fname;
elseif(exist(fname,'file'))
try
string = fileread(fname);
catch
try
string = urlread(['file://',fname]);
catch
string = urlread(['file://',fullfile(pwd,fname)]);
end
end
else
error('input file does not exist');
end
pos = 1; len = length(string); inStr = string;
isoct=exist('OCTAVE_VERSION','builtin');
arraytoken=find(inStr=='[' | inStr==']' | inStr=='"');
jstr=regexprep(inStr,'\\\\',' ');
escquote=regexp(jstr,'\\"');
arraytoken=sort([arraytoken escquote]);
% String delimiters and escape chars identified to improve speed:
esc = find(inStr=='"' | inStr=='\' ); % comparable to: regexp(inStr, '["\\]');
index_esc = 1; len_esc = length(esc);
opt=varargin2struct(varargin{:});
if(jsonopt('ShowProgress',0,opt)==1)
opt.progressbar_=waitbar(0,'loading ...');
end
jsoncount=1;
while pos <= len
switch(next_char)
case '{'
data{jsoncount} = parse_object(opt);
case '['
data{jsoncount} = parse_array(opt);
otherwise
error_pos('Outer level structure must be an object or an array');
end
jsoncount=jsoncount+1;
end % while
jsoncount=length(data);
if(jsoncount==1 && iscell(data))
data=data{1};
end
if(isfield(opt,'progressbar_'))
close(opt.progressbar_);
end
%%-------------------------------------------------------------------------
function object = parse_object(varargin)
parse_char('{');
object = [];
if next_char ~= '}'
while 1
str = parseStr(varargin{:});
if isempty(str)
error_pos('Name of value at position %d cannot be empty');
end
parse_char(':');
val = parse_value(varargin{:});
object.(valid_field(str))=val;
if next_char == '}'
break;
end
parse_char(',');
end
end
parse_char('}');
if(isstruct(object))
object=struct2jdata(object);
end
%%-------------------------------------------------------------------------
function object = parse_array(varargin) % JSON array is written in row-major order
global pos inStr isoct
parse_char('[');
object = cell(0, 1);
dim2=[];
arraydepth=jsonopt('JSONLAB_ArrayDepth_',1,varargin{:});
pbar=-1;
if(isfield(varargin{1},'progressbar_'))
pbar=varargin{1}.progressbar_;
end
if next_char ~= ']'
if(jsonopt('FastArrayParser',1,varargin{:})>=1 && arraydepth>=jsonopt('FastArrayParser',1,varargin{:}))
[endpos, e1l, e1r]=matching_bracket(inStr,pos);
arraystr=['[' inStr(pos:endpos)];
arraystr=regexprep(arraystr,'"_NaN_"','NaN');
arraystr=regexprep(arraystr,'"([-+]*)_Inf_"','$1Inf');
arraystr(arraystr==sprintf('\n'))=[];
arraystr(arraystr==sprintf('\r'))=[];
%arraystr=regexprep(arraystr,'\s*,',','); % this is slow,sometimes needed
if(~isempty(e1l) && ~isempty(e1r)) % the array is in 2D or higher D
astr=inStr((e1l+1):(e1r-1));
astr=regexprep(astr,'"_NaN_"','NaN');
astr=regexprep(astr,'"([-+]*)_Inf_"','$1Inf');
astr(astr==sprintf('\n'))=[];
astr(astr==sprintf('\r'))=[];
astr(astr==' ')='';
if(isempty(find(astr=='[', 1))) % array is 2D
dim2=length(sscanf(astr,'%f,',[1 inf]));
end
else % array is 1D
astr=arraystr(2:end-1);
astr(astr==' ')='';
[obj, count, errmsg, nextidx]=sscanf(astr,'%f,',[1,inf]);
if(nextidx>=length(astr)-1)
object=obj;
pos=endpos;
parse_char(']');
return;
end
end
if(~isempty(dim2))
astr=arraystr;
astr(astr=='[')='';
astr(astr==']')='';
astr(astr==' ')='';
[obj, count, errmsg, nextidx]=sscanf(astr,'%f,',inf);
if(nextidx>=length(astr)-1)
object=reshape(obj,dim2,numel(obj)/dim2)';
pos=endpos;
parse_char(']');
if(pbar>0)
waitbar(pos/length(inStr),pbar,'loading ...');
end
return;
end
end
arraystr=regexprep(arraystr,'\]\s*,','];');
else
arraystr='[';
end
try
if(isoct && regexp(arraystr,'"','once'))
error('Octave eval can produce empty cells for JSON-like input');
end
object=eval(arraystr);
pos=endpos;
catch
while 1
newopt=varargin2struct(varargin{:},'JSONLAB_ArrayDepth_',arraydepth+1);
val = parse_value(newopt);
object{end+1} = val;
if next_char == ']'
break;
end
parse_char(',');
end
end
end
if(jsonopt('SimplifyCell',0,varargin{:})==1)
try
oldobj=object;
object=cell2mat(object')';
if(iscell(oldobj) && isstruct(object) && numel(object)>1 && jsonopt('SimplifyCellArray',1,varargin{:})==0)
object=oldobj;
elseif(size(object,1)>1 && ismatrix(object))
object=object';
end
catch
end
end
parse_char(']');
if(pbar>0)
waitbar(pos/length(inStr),pbar,'loading ...');
end
%%-------------------------------------------------------------------------
function parse_char(c)
global pos inStr len
pos=skip_whitespace(pos,inStr,len);
if pos > len || inStr(pos) ~= c
error_pos(sprintf('Expected %c at position %%d', c));
else
pos = pos + 1;
pos=skip_whitespace(pos,inStr,len);
end
%%-------------------------------------------------------------------------
function c = next_char
global pos inStr len
pos=skip_whitespace(pos,inStr,len);
if pos > len
c = [];
else
c = inStr(pos);
end
%%-------------------------------------------------------------------------
function newpos=skip_whitespace(pos,inStr,len)
newpos=pos;
while newpos <= len && isspace(inStr(newpos))
newpos = newpos + 1;
end
%%-------------------------------------------------------------------------
function str = parseStr(varargin)
global pos inStr len esc index_esc len_esc
% len, ns = length(inStr), keyboard
if inStr(pos) ~= '"'
error_pos('String starting with " expected at position %d');
else
pos = pos + 1;
end
str = '';
while pos <= len
while index_esc <= len_esc && esc(index_esc) < pos
index_esc = index_esc + 1;
end
if index_esc > len_esc
str = [str inStr(pos:len)];
pos = len + 1;
break;
else
str = [str inStr(pos:esc(index_esc)-1)];
pos = esc(index_esc);
end
nstr = length(str);
switch inStr(pos)
case '"'
pos = pos + 1;
if(~isempty(str))
if(strcmp(str,'_Inf_'))
str=Inf;
elseif(strcmp(str,'-_Inf_'))
str=-Inf;
elseif(strcmp(str,'_NaN_'))
str=NaN;
end
end
return;
case '\'
if pos+1 > len
error_pos('End of file reached right after escape character');
end
pos = pos + 1;
switch inStr(pos)
case {'"' '\' '/'}
str(nstr+1) = inStr(pos);
pos = pos + 1;
case {'b' 'f' 'n' 'r' 't'}
str(nstr+1) = sprintf(['\' inStr(pos)]);
pos = pos + 1;
case 'u'
if pos+4 > len
error_pos('End of file reached in escaped unicode character');
end
str(nstr+(1:6)) = inStr(pos-1:pos+4);
pos = pos + 5;
end
otherwise % should never happen
str(nstr+1) = inStr(pos);
keyboard;
pos = pos + 1;
end
end
error_pos('End of file while expecting end of inStr');
%%-------------------------------------------------------------------------
function num = parse_number(varargin)
global pos inStr isoct
currstr=inStr(pos:min(pos+30,end));
if(isoct~=0)
numstr=regexp(currstr,'^\s*-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+\-]?\d+)?','end');
[num] = sscanf(currstr, '%f', 1);
delta=numstr+1;
else
[num, one, err, delta] = sscanf(currstr, '%f', 1);
if ~isempty(err)
error_pos('Error reading number at position %d');
end
end
pos = pos + delta-1;
%%-------------------------------------------------------------------------
function val = parse_value(varargin)
global pos inStr len
if(isfield(varargin{1},'progressbar_'))
waitbar(pos/len,varargin{1}.progressbar_,'loading ...');
end
switch(inStr(pos))
case '"'
val = parseStr(varargin{:});
return;
case '['
val = parse_array(varargin{:});
return;
case '{'
val = parse_object(varargin{:});
return;
case {'-','0','1','2','3','4','5','6','7','8','9'}
val = parse_number(varargin{:});
return;
case 't'
if pos+3 <= len && strcmpi(inStr(pos:pos+3), 'true')
val = true;
pos = pos + 4;
return;
end
case 'f'
if pos+4 <= len && strcmpi(inStr(pos:pos+4), 'false')
val = false;
pos = pos + 5;
return;
end
case 'n'
if pos+3 <= len && strcmpi(inStr(pos:pos+3), 'null')
val = [];
pos = pos + 4;
return;
end
end
error_pos('Value expected at position %d');
%%-------------------------------------------------------------------------
function error_pos(msg)
global pos inStr len
poShow = max(min([pos-15 pos-1 pos pos+20],len),1);
if poShow(3) == poShow(2)
poShow(3:4) = poShow(2)+[0 -1]; % display nothing after
end
msg = [sprintf(msg, pos) ': ' ...
inStr(poShow(1):poShow(2)) '<error>' inStr(poShow(3):poShow(4)) ];
error( ['JSONparser:invalidFormat: ' msg] );
%%-------------------------------------------------------------------------
function str = valid_field(str)
global isoct
% From MATLAB doc: field names must begin with a letter, which may be
% followed by any combination of letters, digits, and underscores.
% Invalid characters will be converted to underscores, and the prefix
% "x0x[Hex code]_" will be added if the first character is not a letter.
pos=regexp(str,'^[^A-Za-z]','once');
if(~isempty(pos))
if(~isoct)
str=regexprep(str,'^([^A-Za-z])','x0x${sprintf(''%X'',unicode2native($1))}_','once');
else
str=sprintf('x0x%X_%s',char(str(1)),str(2:end));
end
end
if(isempty(regexp(str,'[^0-9A-Za-z_]', 'once' )))
return;
end
if(~isoct)
str=regexprep(str,'([^0-9A-Za-z_])','_0x${sprintf(''%X'',unicode2native($1))}_');
else
pos=regexp(str,'[^0-9A-Za-z_]');
if(isempty(pos))
return;
end
str0=str;
pos0=[0 pos(:)' length(str)];
str='';
for i=1:length(pos)
str=[str str0(pos0(i)+1:pos(i)-1) sprintf('_0x%X_',str0(pos(i)))];
end
if(pos(end)~=length(str))
str=[str str0(pos0(end-1)+1:pos0(end))];
end
end
%str(~isletter(str) & ~('0' <= str & str <= '9')) = '_';
%%-------------------------------------------------------------------------
function endpos = matching_quote(str,pos)
len=length(str);
while(pos<len)
if(str(pos)=='"')
if(~(pos>1 && str(pos-1)=='\'))
endpos=pos;
return;
end
end
pos=pos+1;
end
error('unmatched quotation mark');
%%-------------------------------------------------------------------------
function [endpos, e1l, e1r, maxlevel] = matching_bracket(str,pos)
global arraytoken
level=1;
maxlevel=level;
endpos=0;
bpos=arraytoken(arraytoken>=pos);
tokens=str(bpos);
len=length(tokens);
pos=1;
e1l=[];
e1r=[];
while(pos<=len)
c=tokens(pos);
if(c==']')
level=level-1;
if(isempty(e1r))
e1r=bpos(pos);
end
if(level==0)
endpos=bpos(pos);
return
end
end
if(c=='[')
if(isempty(e1l))
e1l=bpos(pos);
end
level=level+1;
maxlevel=max(maxlevel,level);
end
if(c=='"')
pos=matching_quote(tokens,pos+1);
end
pos=pos+1;
end
if(endpos==0)
error('unmatched "]"');
end
function opt=varargin2struct(varargin)
%
% opt=varargin2struct('param1',value1,'param2',value2,...)
% or
% opt=varargin2struct(...,optstruct,...)
%
% convert a series of input parameters into a structure
%
% input:
% 'param', value: the input parameters should be pairs of a string and a value
% optstruct: if a parameter is a struct, the fields will be merged to the output struct
%
% output:
% opt: a struct where opt.param1=value1, opt.param2=value2 ...
%
len=length(varargin);
opt=struct;
if(len==0) return; end
i=1;
while(i<=len)
if(isstruct(varargin{i}))
opt=mergestruct(opt,varargin{i});
elseif(ischar(varargin{i}) && i<len)
opt=setfield(opt,lower(varargin{i}),varargin{i+1});
i=i+1;
else
error('input must be in the form of ...,''name'',value,... pairs or structs');
end
i=i+1;
end
function val=jsonopt(key,default,varargin)
%
% val=jsonopt(key,default,optstruct)
%
% setting options based on a struct. The struct can be produced
% by varargin2struct from a list of 'param','value' pairs
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
%
% $Id: loadjson.m 371 2012-06-20 12:43:06Z fangq $
%
% input:
% key: a string with which one look up a value from a struct
% default: if the key does not exist, return default
% optstruct: a struct where each sub-field is a key
%
% output:
% val: if key exists, val=optstruct.key; otherwise val=default
%
val=default;
if(nargin<=2) return; end
opt=varargin{1};
if(isstruct(opt))
if(isfield(opt,key))
val=getfield(opt,key);
elseif(isfield(opt,lower(key)))
val=getfield(opt,lower(key));
end
end
function s=mergestruct(s1,s2)
%
% s=mergestruct(s1,s2)
%
% merge two struct objects into one
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% date: 2012/12/22
%
% input:
% s1,s2: a struct object, s1 and s2 can not be arrays
%
% output:
% s: the merged struct object. fields in s1 and s2 will be combined in s.
if(~isstruct(s1) || ~isstruct(s2))
error('input parameters contain non-struct');
end
if(length(s1)>1 || length(s2)>1)
error('can not merge struct arrays');
end
fn=fieldnames(s2);
s=s1;
for i=1:length(fn)
s=setfield(s,fn{i},getfield(s2,fn{i}));
end
function newdata=struct2jdata(data,varargin)
%
% newdata=struct2jdata(data,opt,...)
%
% convert a JData object (in the form of a struct array) into an array
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
%
% input:
% data: a struct array. If data contains JData keywords in the first
% level children, these fields are parsed and regrouped into a
% data object (arrays, trees, graphs etc) based on JData
% specification. The JData keywords are
% "_ArrayType_", "_ArraySize_", "_ArrayData_"
% "_ArrayIsSparse_", "_ArrayIsComplex_"
% opt: (optional) a list of 'Param',value pairs for additional options
% The supported options include
% 'Recursive', if set to 1, will apply the conversion to
% every child; 0 to disable
%
% output:
% newdata: the covnerted data if the input data does contain a JData
% structure; otherwise, the same as the input.
%
% examples:
% obj=struct('_ArrayType_','double','_ArraySize_',[2 3],
% '_ArrayIsSparse_',1 ,'_ArrayData_',null);
% ubjdata=struct2jdata(obj);
fn=fieldnames(data);
newdata=data;
len=length(data);
if(jsonopt('Recursive',0,varargin{:})==1)
for i=1:length(fn) % depth-first
for j=1:len
if(isstruct(getfield(data(j),fn{i})))
newdata(j)=setfield(newdata(j),fn{i},jstruct2array(getfield(data(j),fn{i})));
end
end
end
end
if(~isempty(strmatch('x0x5F_ArrayType_',fn)) && ~isempty(strmatch('x0x5F_ArrayData_',fn)))
newdata=cell(len,1);
for j=1:len
ndata=cast(data(j).x0x5F_ArrayData_,data(j).x0x5F_ArrayType_);
iscpx=0;
if(~isempty(strmatch('x0x5F_ArrayIsComplex_',fn)))
if(data(j).x0x5F_ArrayIsComplex_)
iscpx=1;
end
end
if(~isempty(strmatch('x0x5F_ArrayIsSparse_',fn)))
if(data(j).x0x5F_ArrayIsSparse_)
if(~isempty(strmatch('x0x5F_ArraySize_',fn)))
dim=double(data(j).x0x5F_ArraySize_);
if(iscpx && size(ndata,2)==4-any(dim==1))
ndata(:,end-1)=complex(ndata(:,end-1),ndata(:,end));
end
if isempty(ndata)
% All-zeros sparse
ndata=sparse(dim(1),prod(dim(2:end)));
elseif dim(1)==1
% Sparse row vector
ndata=sparse(1,ndata(:,1),ndata(:,2),dim(1),prod(dim(2:end)));
elseif dim(2)==1
% Sparse column vector
ndata=sparse(ndata(:,1),1,ndata(:,2),dim(1),prod(dim(2:end)));
else
% Generic sparse array.
ndata=sparse(ndata(:,1),ndata(:,2),ndata(:,3),dim(1),prod(dim(2:end)));
end
else
if(iscpx && size(ndata,2)==4)
ndata(:,3)=complex(ndata(:,3),ndata(:,4));
end
ndata=sparse(ndata(:,1),ndata(:,2),ndata(:,3));
end
end
elseif(~isempty(strmatch('x0x5F_ArraySize_',fn)))
if(iscpx && size(ndata,2)==2)
ndata=complex(ndata(:,1),ndata(:,2));
end
ndata=reshape(ndata(:),data(j).x0x5F_ArraySize_);
end
newdata{j}=ndata;
end
if(len==1)
newdata=newdata{1};
end
end
|
github
|
vladostan/pulse-master
|
pcamat.m
|
.m
|
pulse-master/ComponentAnalysis/FastICA/pcamat.m
| 12,075 |
utf_8
|
bcb1117d4132558d0d54d8b7b616a902
|
function [E, D] = pcamat(vectors, firstEig, lastEig, s_interactive, ...
s_verbose);
%PCAMAT - Calculates the pca for data
%
% [E, D] = pcamat(vectors, firstEig, lastEig, ...
% interactive, verbose);
%
% Calculates the PCA matrices for given data (row) vectors. Returns
% the eigenvector (E) and diagonal eigenvalue (D) matrices containing the
% selected subspaces. Dimensionality reduction is controlled with
% the parameters 'firstEig' and 'lastEig' - but it can also be done
% interactively by setting parameter 'interactive' to 'on' or 'gui'.
%
% ARGUMENTS
%
% vectors Data in row vectors.
% firstEig Index of the largest eigenvalue to keep.
% Default is 1.
% lastEig Index of the smallest eigenvalue to keep.
% Default is equal to dimension of vectors.
% interactive Specify eigenvalues to keep interactively. Note that if
% you set 'interactive' to 'on' or 'gui' then the values
% for 'firstEig' and 'lastEig' will be ignored, but they
% still have to be entered. If the value is 'gui' then the
% same graphical user interface as in FASTICAG will be
% used. Default is 'off'.
% verbose Default is 'on'.
%
%
% EXAMPLE
% [E, D] = pcamat(vectors);
%
% Note
% The eigenvalues and eigenvectors returned by PCAMAT are not sorted.
%
% This function is needed by FASTICA and FASTICAG
% For historical reasons this version does not sort the eigenvalues or
% the eigen vectors in any ways. Therefore neither does the FASTICA or
% FASTICAG. Generally it seams that the components returned from
% whitening is almost in reversed order. (That means, they usually are,
% but sometime they are not - depends on the EIG-command of matlab.)
% @(#)$Id: pcamat.m,v 1.5 2003/12/15 18:24:32 jarmo Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Default values:
if nargin < 5, s_verbose = 'on'; end
if nargin < 4, s_interactive = 'off'; end
if nargin < 3, lastEig = size(vectors, 1); end
if nargin < 2, firstEig = 1; end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Check the optional parameters;
switch lower(s_verbose)
case 'on'
b_verbose = 1;
case 'off'
b_verbose = 0;
otherwise
error(sprintf('Illegal value [ %s ] for parameter: ''verbose''\n', s_verbose));
end
switch lower(s_interactive)
case 'on'
b_interactive = 1;
case 'off'
b_interactive = 0;
case 'gui'
b_interactive = 2;
otherwise
error(sprintf('Illegal value [ %s ] for parameter: ''interactive''\n', ...
s_interactive));
end
oldDimension = size (vectors, 1);
if ~(b_interactive)
if lastEig < 1 | lastEig > oldDimension
error(sprintf('Illegal value [ %d ] for parameter: ''lastEig''\n', lastEig));
end
if firstEig < 1 | firstEig > lastEig
error(sprintf('Illegal value [ %d ] for parameter: ''firstEig''\n', firstEig));
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Calculate PCA
% Calculate the covariance matrix.
if b_verbose, fprintf ('Calculating covariance...\n'); end
covarianceMatrix = cov(vectors', 1);
% Calculate the eigenvalues and eigenvectors of covariance
% matrix.
[E, D] = eig (covarianceMatrix);
% The rank is determined from the eigenvalues - and not directly by
% using the function rank - because function rank uses svd, which
% in some cases gives a higher dimensionality than what can be used
% with eig later on (eig then gives negative eigenvalues).
rankTolerance = 1e-7;
maxLastEig = sum (diag (D) > rankTolerance);
if maxLastEig == 0,
fprintf (['Eigenvalues of the covariance matrix are' ...
' all smaller than tolerance [ %g ].\n' ...
'Please make sure that your data matrix contains' ...
' nonzero values.\nIf the values are very small,' ...
' try rescaling the data matrix.\n'], rankTolerance);
error ('Unable to continue, aborting.');
end
% Sort the eigenvalues - decending.
eigenvalues = flipud(sort(diag(D)));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Interactive part - command-line
if b_interactive == 1
% Show the eigenvalues to the user
hndl_win=figure;
bar(eigenvalues);
title('Eigenvalues');
% ask the range from the user...
% ... and keep on asking until the range is valid :-)
areValuesOK=0;
while areValuesOK == 0
firstEig = input('The index of the largest eigenvalue to keep? (1) ');
lastEig = input(['The index of the smallest eigenvalue to keep? (' ...
int2str(oldDimension) ') ']);
% Check the new values...
% if they are empty then use default values
if isempty(firstEig), firstEig = 1;end
if isempty(lastEig), lastEig = oldDimension;end
% Check that the entered values are within the range
areValuesOK = 1;
if lastEig < 1 | lastEig > oldDimension
fprintf('Illegal number for the last eigenvalue.\n');
areValuesOK = 0;
end
if firstEig < 1 | firstEig > lastEig
fprintf('Illegal number for the first eigenvalue.\n');
areValuesOK = 0;
end
end
% close the window
close(hndl_win);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Interactive part - GUI
if b_interactive == 2
% Show the eigenvalues to the user
hndl_win = figure('Color',[0.8 0.8 0.8], ...
'PaperType','a4letter', ...
'Units', 'normalized', ...
'Name', 'FastICA: Reduce dimension', ...
'NumberTitle','off', ...
'Tag', 'f_eig');
h_frame = uicontrol('Parent', hndl_win, ...
'BackgroundColor',[0.701961 0.701961 0.701961], ...
'Units', 'normalized', ...
'Position',[0.13 0.05 0.775 0.17], ...
'Style','frame', ...
'Tag','f_frame');
b = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'BackgroundColor',[0.701961 0.701961 0.701961], ...
'HorizontalAlignment','left', ...
'Position',[0.142415 0.0949436 0.712077 0.108507], ...
'String','Give the indices of the largest and smallest eigenvalues of the covariance matrix to be included in the reduced data.', ...
'Style','text', ...
'Tag','StaticText1');
e_first = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'Callback',[ ...
'f=round(str2num(get(gcbo, ''String'')));' ...
'if (f < 1), f=1; end;' ...
'l=str2num(get(findobj(''Tag'',''e_last''), ''String''));' ...
'if (f > l), f=l; end;' ...
'set(gcbo, ''String'', int2str(f));' ...
], ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','right', ...
'Position',[0.284831 0.0678168 0.12207 0.0542535], ...
'Style','edit', ...
'String', '1', ...
'Tag','e_first');
b = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'BackgroundColor',[0.701961 0.701961 0.701961], ...
'HorizontalAlignment','left', ...
'Position',[0.142415 0.0678168 0.12207 0.0542535], ...
'String','Range from', ...
'Style','text', ...
'Tag','StaticText2');
e_last = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'Callback',[ ...
'l=round(str2num(get(gcbo, ''String'')));' ...
'lmax = get(gcbo, ''UserData'');' ...
'if (l > lmax), l=lmax; fprintf([''The selected value was too large, or the selected eigenvalues were close to zero\n'']); end;' ...
'f=str2num(get(findobj(''Tag'',''e_first''), ''String''));' ...
'if (l < f), l=f; end;' ...
'set(gcbo, ''String'', int2str(l));' ...
], ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','right', ...
'Position',[0.467936 0.0678168 0.12207 0.0542535], ...
'Style','edit', ...
'String', int2str(maxLastEig), ...
'UserData', maxLastEig, ...
'Tag','e_last');
% in the first version oldDimension was used instead of
% maxLastEig, but since the program would automatically
% drop the eigenvalues afte maxLastEig...
b = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'BackgroundColor',[0.701961 0.701961 0.701961], ...
'HorizontalAlignment','left', ...
'Position',[0.427246 0.0678168 0.0406901 0.0542535], ...
'String','to', ...
'Style','text', ...
'Tag','StaticText3');
b = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'Callback','uiresume(gcbf)', ...
'Position',[0.630697 0.0678168 0.12207 0.0542535], ...
'String','OK', ...
'Tag','Pushbutton1');
b = uicontrol('Parent',hndl_win, ...
'Units','normalized', ...
'Callback',[ ...
'gui_help(''pcamat'');' ...
], ...
'Position',[0.767008 0.0678168 0.12207 0.0542535], ...
'String','Help', ...
'Tag','Pushbutton2');
h_axes = axes('Position' ,[0.13 0.3 0.775 0.6]);
set(hndl_win, 'currentaxes',h_axes);
bar(eigenvalues);
title('Eigenvalues');
uiwait(hndl_win);
firstEig = str2num(get(e_first, 'String'));
lastEig = str2num(get(e_last, 'String'));
% close the window
close(hndl_win);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% See if the user has reduced the dimension enought
if lastEig > maxLastEig
lastEig = maxLastEig;
if b_verbose
fprintf('Dimension reduced to %d due to the singularity of covariance matrix\n',...
lastEig-firstEig+1);
end
else
% Reduce the dimensionality of the problem.
if b_verbose
if oldDimension == (lastEig - firstEig + 1)
fprintf ('Dimension not reduced.\n');
else
fprintf ('Reducing dimension...\n');
end
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Drop the smaller eigenvalues
if lastEig < oldDimension
lowerLimitValue = (eigenvalues(lastEig) + eigenvalues(lastEig + 1)) / 2;
else
lowerLimitValue = eigenvalues(oldDimension) - 1;
end
lowerColumns = diag(D) > lowerLimitValue;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Drop the larger eigenvalues
if firstEig > 1
higherLimitValue = (eigenvalues(firstEig - 1) + eigenvalues(firstEig)) / 2;
else
higherLimitValue = eigenvalues(1) + 1;
end
higherColumns = diag(D) < higherLimitValue;
% Combine the results from above
selectedColumns = lowerColumns & higherColumns;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% print some info for the user
if b_verbose
fprintf ('Selected [ %d ] dimensions.\n', sum (selectedColumns));
end
if sum (selectedColumns) ~= (lastEig - firstEig + 1),
error ('Selected a wrong number of dimensions.');
end
if b_verbose
fprintf ('Smallest remaining (non-zero) eigenvalue [ %g ]\n', eigenvalues(lastEig));
fprintf ('Largest remaining (non-zero) eigenvalue [ %g ]\n', eigenvalues(firstEig));
fprintf ('Sum of removed eigenvalues [ %g ]\n', sum(diag(D) .* ...
(~selectedColumns)));
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Select the colums which correspond to the desired range
% of eigenvalues.
E = selcol(E, selectedColumns);
D = selcol(selcol(D, selectedColumns)', selectedColumns);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some more information
if b_verbose
sumAll=sum(eigenvalues);
sumUsed=sum(diag(D));
retained = (sumUsed / sumAll) * 100;
fprintf('[ %g ] %% of (non-zero) eigenvalues retained.\n', retained);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function newMatrix = selcol(oldMatrix, maskVector);
% newMatrix = selcol(oldMatrix, maskVector);
%
% Selects the columns of the matrix that marked by one in the given vector.
% The maskVector is a column vector.
% 15.3.1998
if size(maskVector, 1) ~= size(oldMatrix, 2),
error ('The mask vector and matrix are of uncompatible size.');
end
numTaken = 0;
for i = 1 : size (maskVector, 1),
if maskVector(i, 1) == 1,
takingMask(1, numTaken + 1) = i;
numTaken = numTaken + 1;
end
end
newMatrix = oldMatrix(:, takingMask);
|
github
|
vladostan/pulse-master
|
icaplot.m
|
.m
|
pulse-master/ComponentAnalysis/FastICA/icaplot.m
| 13,259 |
utf_8
|
dde3e6d852f657a3c1eaacbd03f5dcc7
|
function icaplot(mode, varargin);
%ICAPLOT - plot signals in various ways
%
% ICAPLOT is mainly for plottinf and comparing the mixed signals and
% separated ica-signals.
%
% ICAPLOT has many different modes. The first parameter of the function
% defines the mode. Other parameters and their order depends on the
% mode. The explanation for the more common parameters is in the end.
%
% Classic
% icaplot('classic', s1, n1, range, xrange, titlestr)
%
% Plots the signals in the same manner as the FASTICA and FASTICAG
% programs do. All the signals are plotted in their own axis.
%
% Complot
% icaplot('complot', s1, n1, range, xrange, titlestr)
%
% The signals are plotted on the same axis. This is good for
% visualization of the shape of the signals. The scale of the signals
% has been altered so that they all fit nicely.
%
% Histogram
% icaplot('histogram', s1, n1, range, bins, style)
%
% The histogram of the signals is plotted. The number of bins can be
% specified with 'bins'-parameter. The style for the histograms can
% be either 'bar' (default) of 'line'.
%
% Scatter
% icaplot('scatter', s1, n1, s2, n2, range, titlestr, s1label,
% s2label, markerstr)
%
% A scatterplot is plotted so that the signal 1 is the 'X'-variable
% and the signal 2 is the 'Y'-variable. The 'markerstr' can be used
% to specify the maker used in the plot. The format for 'markerstr'
% is the same as for Matlab's PLOT.
%
% Compare
% icaplot('compare', s1, n1, s2, n2, range, xrange, titlestr,
% s1label, s2label)
%
% This for for comparing two signals. The main used in this context
% would probably be to see how well the separated ICA-signals explain
% the observed mixed signals. The s2 signals are first scaled with
% REGRESS function.
%
% Compare - Sum
% icaplot('sum', s1, n1, s2, n2, range, xrange, titlestr, s1label,
% s2label)
%
% The same as Compare, but this time the signals in s2 (specified by
% n2) are summed together.
%
% Compare - Sumerror
% icaplot('sumerror', s1, n1, s2, n2, range, xrange, titlestr,
% s1label, s2label)
%
% The same as Compare - Sum, but also the 'error' between the signal
% 1 and the summed IC's is plotted.
%
%
% More common parameters
% The signals to be plotted are in matrices s1 and s2. The n1 and n2
% are used to tell the index of the signal or signals to be plotted
% from s1 or s2. If n1 or n2 has a value of 0, then all the signals
% from corresponding matrix will be plotted. The values for n1 and n2
% can also be vectors (like: [1 3 4]) In some casee if there are more
% than 1 signal to be plotted from s1 or s2 then the plot will
% contain as many subplots as are needed.
%
% The range of the signals to be plotted can be limited with
% 'range'-parameter. It's value is a vector ( 10000:15000 ). If range
% is 0, then the whole range will be plotted.
%
% The 'xrange' is used to specify only the labels used on the
% x-axis. The value of 'xrange' is a vector containing the x-values
% for the plots or [start end] for begin and end of the range
% ( 10000:15000 or [10 15] ). If xrange is 0, then value of range
% will be used for x-labels.
%
% You can give a title for the plot with 'titlestr'. Also the
% 's1label' and 's2label' are used to give more meaningfull label for
% the signals.
%
% Lastly, you can omit some of the arguments from the and. You will
% have to give values for the signal matrices (s1, s2) and the
% indexes (n1, n2)
% @(#)$Id: icaplot.m,v 1.2 2003/04/05 14:23:58 jarmo Exp $
switch mode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 'dispsig' is to replace the old DISPSIG
% '' & 'classic' are just another names - '' quite short one :-)
case {'', 'classic', 'dispsig'}
% icaplot(mode, s1, n1, range, xrange, titlestr)
if length(varargin) < 1, error('Not enough arguments.'); end
if length(varargin) < 5, titlestr = '';else titlestr = varargin{5}; end
if length(varargin) < 4, xrange = 0;else xrange = varargin{4}; end
if length(varargin) < 3, range = 0;else range = varargin{3}; end
if length(varargin) < 2, n1 = 0;else n1 = varargin{2}; end
s1 = varargin{1};
range=chkrange(range, s1);
xrange=chkxrange(xrange, range);
n1=chkn(n1, s1);
clf;
numSignals = size(n1, 2);
for i = 1:numSignals,
subplot(numSignals, 1, i);
plot(xrange, s1(n1(i), range));
end
subplot(numSignals,1, 1);
if (~isempty(titlestr))
title(titlestr);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
case 'complot'
% icaplot(mode, s1, n1, range, xrange, titlestr)
if length(varargin) < 1, error('Not enough arguments.'); end
if length(varargin) < 5, titlestr = '';else titlestr = varargin{5}; end
if length(varargin) < 4, xrange = 0;else xrange = varargin{4}; end
if length(varargin) < 3, range = 0;else range = varargin{3}; end
if length(varargin) < 2, n1 = 0;else n1 = varargin{2}; end
s1 = remmean(varargin{1});
range=chkrange(range, s1);
xrange=chkxrange(xrange, range);
n1=chkn(n1, s1);
for i = 1:size(n1, 2)
S1(i, :) = s1(n1(i), range);
end
alpha = mean(max(S1')-min(S1'));
for i = 1:size(n1,2)
S2(i,:) = S1(i,:) - alpha*(i-1)*ones(size(S1(1,:)));
end
plot(xrange, S2');
axis([min(xrange) max(xrange) min(min(S2)) max(max(S2)) ]);
set(gca,'YTick',(-size(S1,1)+1)*alpha:alpha:0);
set(gca,'YTicklabel',fliplr(n1));
if (~isempty(titlestr))
title(titlestr);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
case 'histogram'
% icaplot(mode, s1, n1, range, bins, style)
if length(varargin) < 1, error('Not enough arguments.'); end
if length(varargin) < 5, style = 'bar';else style = varargin{5}; end
if length(varargin) < 4, bins = 10;else bins = varargin{4}; end
if length(varargin) < 3, range = 0;else range = varargin{3}; end
if length(varargin) < 2, n1 = 0;else n1 = varargin{2}; end
s1 = varargin{1};
range = chkrange(range, s1);
n1 = chkn(n1, s1);
numSignals = size(n1, 2);
rows = floor(sqrt(numSignals));
columns = ceil(sqrt(numSignals));
while (rows * columns < numSignals)
columns = columns + 1;
end
switch style
case {'', 'bar'}
for i = 1:numSignals,
subplot(rows, columns, i);
hist(s1(n1(i), range), bins);
title(int2str(n1(i)));
drawnow;
end
case 'line'
for i = 1:numSignals,
subplot(rows, columns, i);
[Y, X]=hist(s1(n1(i), range), bins);
plot(X, Y);
title(int2str(n1(i)));
drawnow;
end
otherwise
fprintf('Unknown style.\n')
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
case 'scatter'
% icaplot(mode, s1, n1, s2, n2, range, titlestr, xlabelstr, ylabelstr, markerstr)
if length(varargin) < 4, error('Not enough arguments.'); end
if length(varargin) < 9, markerstr = '.';else markerstr = varargin{9}; end
if length(varargin) < 8, ylabelstr = 'Signal 2';else ylabelstr = varargin{8}; end
if length(varargin) < 7, xlabelstr = 'Signal 1';else xlabelstr = varargin{7}; end
if length(varargin) < 6, titlestr = '';else titlestr = varargin{6}; end
if length(varargin) < 5, range = 0;else range = varargin{5}; end
n2 = varargin{4};
s2 = varargin{3};
n1 = varargin{2};
s1 = varargin{1};
range = chkrange(range, s1);
n1 = chkn(n1, s1);
n2 = chkn(n2, s2);
rows = size(n1, 2);
columns = size(n2, 2);
for r = 1:rows
for c = 1:columns
subplot(rows, columns, (r-1)*columns + c);
plot(s1(n1(r), range),s2(n2(c), range),markerstr);
if (~isempty(titlestr))
title(titlestr);
end
if (rows*columns == 1)
xlabel(xlabelstr);
ylabel(ylabelstr);
else
xlabel([xlabelstr ' (' int2str(n1(r)) ')']);
ylabel([ylabelstr ' (' int2str(n2(c)) ')']);
end
drawnow;
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
case {'compare', 'sum', 'sumerror'}
% icaplot(mode, s1, n1, s2, n2, range, xrange, titlestr, s1label, s2label)
if length(varargin) < 4, error('Not enough arguments.'); end
if length(varargin) < 9, s2label = 'IC';else s2label = varargin{9}; end
if length(varargin) < 8, s1label = 'Mix';else s1label = varargin{8}; end
if length(varargin) < 7, titlestr = '';else titlestr = varargin{7}; end
if length(varargin) < 6, xrange = 0;else xrange = varargin{6}; end
if length(varargin) < 5, range = 0;else range = varargin{5}; end
s1 = varargin{1};
n1 = varargin{2};
s2 = varargin{3};
n2 = varargin{4};
range = chkrange(range, s1);
xrange = chkxrange(xrange, range);
n1 = chkn(n1, s1);
n2 = chkn(n2, s2);
numSignals = size(n1, 2);
if (numSignals > 1)
externalLegend = 1;
else
externalLegend = 0;
end
rows = floor(sqrt(numSignals+externalLegend));
columns = ceil(sqrt(numSignals+externalLegend));
while (rows * columns < (numSignals+externalLegend))
columns = columns + 1;
end
clf;
for j = 1:numSignals
subplot(rows, columns, j);
switch mode
case 'compare'
plotcompare(s1, n1(j), s2,n2, range, xrange);
[legendtext,legendstyle]=legendcompare(n1(j),n2,s1label,s2label,externalLegend);
case 'sum'
plotsum(s1, n1(j), s2,n2, range, xrange);
[legendtext,legendstyle]=legendsum(n1(j),n2,s1label,s2label,externalLegend);
case 'sumerror'
plotsumerror(s1, n1(j), s2,n2, range, xrange);
[legendtext,legendstyle]=legendsumerror(n1(j),n2,s1label,s2label,externalLegend);
end
if externalLegend
title([titlestr ' (' s1label ' ' int2str(n1(j)) ')']);
else
legend(char(legendtext));
if (~isempty(titlestr))
title(titlestr);
end
end
end
if (externalLegend)
subplot(rows, columns, numSignals+1);
legendsize = size(legendtext, 2);
hold on;
for i=1:legendsize
plot([0 1],[legendsize-i legendsize-i], char(legendstyle(i)));
text(1.5, legendsize-i, char(legendtext(i)));
end
hold off;
axis([0 6 -1 legendsize]);
axis off;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function plotcompare(s1, n1, s2, n2, range, xrange);
style=getStyles;
K = regress(s1(n1,:)',s2');
plot(xrange, s1(n1,range), char(style(1)));
hold on
for i=1:size(n2,2)
plotstyle=char(style(i+1));
plot(xrange, K(n2(i))*s2(n2(i),range), plotstyle);
end
hold off
function [legendText, legendStyle]=legendcompare(n1, n2, s1l, s2l, externalLegend);
style=getStyles;
if (externalLegend)
legendText(1)={[s1l ' (see the titles)']};
else
legendText(1)={[s1l ' ', int2str(n1)]};
end
legendStyle(1)=style(1);
for i=1:size(n2, 2)
legendText(i+1) = {[s2l ' ' int2str(n2(i))]};
legendStyle(i+1) = style(i+1);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function plotsum(s1, n1, s2, n2, range, xrange);
K = diag(regress(s1(n1,:)',s2'));
sigsum = sum(K(:,n2)*s2(n2,:));
plot(xrange, s1(n1, range),'k-', ...
xrange, sigsum(range), 'b-');
function [legendText, legendStyle]=legendsum(n1, n2, s1l, s2l, externalLegend);
if (externalLegend)
legendText(1)={[s1l ' (see the titles)']};
else
legendText(1)={[s1l ' ', int2str(n1)]};
end
legendText(2)={['Sum of ' s2l ': ', int2str(n2)]};
legendStyle={'k-';'b-'};
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function plotsumerror(s1, n1, s2, n2, range, xrange);
K = diag(regress(s1(n1,:)',s2'));
sigsum = sum(K(:,n2)*s2(n2,:));
plot(xrange, s1(n1, range),'k-', ...
xrange, sigsum(range), 'b-', ...
xrange, s1(n1, range)-sigsum(range), 'r-');
function [legendText, legendStyle]=legendsumerror(n1, n2, s1l, s2l, externalLegend);
if (externalLegend)
legendText(1)={[s1l ' (see the titles)']};
else
legendText(1)={[s1l ' ', int2str(n1)]};
end
legendText(2)={['Sum of ' s2l ': ', int2str(n2)]};
legendText(3)={'"Error"'};
legendStyle={'k-';'b-';'r-'};
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function style=getStyles;
color = {'k','r','g','b','m','c','y'};
line = {'-',':','-.','--'};
for i = 0:size(line,2)-1
for j = 1:size(color, 2)
style(j + i*size(color, 2)) = strcat(color(j), line(i+1));
end
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function range=chkrange(r, s)
if r == 0
range = 1:size(s, 2);
else
range = r;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function xrange=chkxrange(xr,r);
if xr == 0
xrange = r;
elseif size(xr, 2) == 2
xrange = xr(1):(xr(2)-xr(1))/(size(r,2)-1):xr(2);
elseif size(xr, 2)~=size(r, 2)
error('Xrange and range have different sizes.');
else
xrange = xr;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function n=chkn(n,s)
if n == 0
n = 1:size(s, 1);
end
|
github
|
taojiastanford/Automation-of-Calligraphy-master
|
SOMFn.m
|
.m
|
Automation-of-Calligraphy-master/TryAutoencoder/SOMFn.m
| 842,616 |
utf_8
|
2a3d050c1e1d69645129185dadd1a0c7
|
function [Y,Xf,Af] = SOMFn(X,~,~)
%MYNEURALNETWORKFUNCTION neural network simulation function.
%
% Generated by Neural Network Toolbox function genFunction, 10-Dec-2016 10:17:26.
%
% [Y] = myNeuralNetworkFunction(X,~,~) takes these arguments:
%
% X = 1xTS cell, 1 inputs over TS timesteps
% Each X{1,ts} = 400xQ matrix, input #1 at timestep ts.
%
% and returns:
% Y = 1xTS cell of 1 outputs over TS timesteps.
% Each Y{1,ts} = 100xQ matrix, output #1 at timestep ts.
%
% where Q is number of samples (or series) and TS is the number of timesteps.
%#ok<*RPMT0>
% ===== NEURAL NETWORK CONSTANTS =====
% Layer 1
IW1_1 = [0.24178633272214692 0.15493408124054842 0.23612504178814223 0.0045256182211202978 0.012748712401920157 0.08863248005574563 0.37937362795797153 0.15612161991136869 0.30537664832568479 0.071879061486941148 0.16243568805818373 0.32999047034150525 0.082108767890532536 0.16881906280316969 0.60913731337233834 0.39359156542128915 0.0074402169716277743 0.22920302333763787 0.0086213869738671987 0.0040443370674833898 0.0028071179492909159 0.0024999704665222095 0.15518955979715418 0.39681645309618607 0.34111268490252256 0.83988519010185869 0.088191934867215341 0.15627473320421259 0.99637713660300453 0.2364282663645649 0.83797416927376622 0.0028137391378518957 0.0051556873357080785 0.0098810620931575662 0.62110278003404618 0.0084609242058000939 0.0032231279521743135 0.0030666591014973806 0.47016475397414642 0.15737115832028531 0.30334334568888932 0.0034380262641474195 0.69229800186825563 0.24007244299919922 0.54201214655919128 0.15433234087066205 0.15701209983753681 0.080162626888237179 0.085086688977998634 0.010223358390895505 0.45893298149638273 0.085779538456881271 0.16966903821309048 0.15962996617094172 0.078348150383642665 0.76830269598216472 0.082574801013429927 0.30750630259354095 0.0049842211410595907 0.087464008896176212 0.22828964213398653 0.30560727998949794 0.45928690909031766 0.15543153646872349 0.2312835928837132 0.15841692191480095 0.23398314036906859 0.55017606388492735 0.30839592629441254 0.082152991732652864 0.082993352587594146 0.22759267911230324 0.69351860615840932 0.24628336573246973 0.16092606942162449 0.33451449717951504 0.078813087764802711 0.0019420194412632309 0.081940987505168511 0.084769722734209574 0.088488981020948029 0.0019408315214597021 0.24112017787289333 0.0031750010355027719 0.53649506653279677 0.080579871900168534 0.078694528892837179 0.0026935824236224929 0.0040050129780211351 0.99106138048660752 0.45819737200209287 0.46257731831674459 0.15837081573359185 0.080701937540010052 0.61562584821442567 0.083937756072216957 0.082024574145084489 0.078083569610899267 0.69169526720209695 0.15869752585634442 0.079419720047194234 0.084463212776464736 0.23542894828423838 0.67275223417111052 0.14381933414006143 0.082969335835367156 0.0065823475092198838 0.0086353110809332667 0.32244171096317187 0.17088089506371257 0.39608036368996957 0.53587375014589833 0.15905142970451752 0.69071115028855767 0.53249975362037172 0.5370545424499773 0.14895306600731592 0.68684063885570168 0.30573205497849887 0.91639054090391081 0.16301458928331705 0.45699667547609057 0.30832854101598778 0.61979878268407695 0.0091792431927530064 0.43618868382975851 0.23664786649270089 0.0068770849221633009 0.078803293323625068 0.16352331700735645 0.91946391968724273 0.3184425257192266 0.68368249421719229 0.22674420464279327 0.16338638319798596 0.60972165370455067 0.69219011574718237 0.15401517439767085 0.0028386617913967291 0.16604708875482352 0.15197393186050187 0.090235917398972604 0.24322728670825361 0.31766160074676703 0.1524782923742708 0.0095738638395000616 0.4616730029158892 0.15904227208414082 0.21934041373105953 0.15928859320597583 0.081981037735091564 0.3866464277061985 0.00844089666754466 0.079160927257494657 0.079104583044633289 0.083344456520161661 0.1569877535227979 0.30976609614621897 0.15291275193761372 0.0022698955157211009 0.68976840437056919 0.31397556954559513 0.91527880583447385 0.155689513014409 0.15292499048809144 0.0039131305262421973 0.0039350068420204486 0.23816643233848556 0.46089390351080795 0.82629846129701756 0.76851576661529264 0.45886827558261395 0.1575617890551152 0.0062636706791587317 0.31386356197329857 0.0831098638586871 0.47292431551075709 0.15623211265476056 0.40180269954311704 0.08028455688722437 0.0060914284524099024 0.15965667613032378 0.091859824380476754 0.0026966229306905109 0.45356596834086005 0.24274225897842289 0.0048352602755142452 0.0027471162940464712 0.0064889033443027919 0.07916622786144463 0.23717797773929222 0.0048383634592475506 0.15242636056250985 0.31538035079990778 0.15802357094043723 0.085171086480865604 0.094959926346920756 0.0087410054305871229 0.079692636838558248 0.16164175136430792 0.91454565194962067 0.23393911901727776 0.23410960397777281 0.086038749456404842 0.15360277533823627 0.0648750138294511 0.010178814893339464 0.21070300192704472 0.3803811170350152 0.37518935385019175 0.29186719753062007 0.91297233427471358 0.0025296337575194407 0.38089612942862972 0.088347508119167001 0.1563447264095966 0.0067148536777715487 0.080005110218608205 0.078921428163474291 0.31543063873908495 0.012152892727116416 0.077575589926536126 0.39444870339511146 0.15295198183032735 0.0036972674059274485 0.45741934032221709 0.083937901853344002 0.23582971241563314 0.082201146625621391 0.23578843757711573 0.38448836116359036 0.15825044289160578 0.1585073108083429 0.30669738115872425 0.24152448511019439 0.0018960716422917591 0.077260398297845478 0.99505327564621093 0.61208074592593142 0.0044958300570198308 0.0050286775384574076 0.31418081680725612 0.081425689748067381 0.1546828298607133 0.53491269683845433 0.39103871774159027 0.16334894673161723 0.079360190358539584 0.30231872102354984 0.082427348095376884 0.91703333977709856 0.0053204251229292806 0.079874171268608934 0.0041562722742688619 0.08020191509401528 0.99687032065930126 0.8410599402241079 0.15752696066521915 0.61476844815345644 0.98696019907779498 0.45496255952723857 0.91564489308907193 0.081659454848441893 0.45627925995124646 0.0058503055269563242 0.079618977722003229 0.0058039827612010771 0.3796930180033839 0.073233048467651621 0.15916992615404194 0.084181882260793692 0.30762279571504225 0.2215475526765055 0.086224214135707355 0.15579195116970462 0.75370565263066924 0.15822951522369252 0.0023687263568834003 0.14554005827279162 0.0077857109342583022 0.011567398223078907 0.082062096352387481 0.084098292234234331 0.078625953352390587 0.22280529849077266 0.37546561388492783 0.53803190060220119 0.45408902817413549 0.0055904252315255873 0.01000034598092079 0.22921033300734969 0.0032885265069792381 0.083274451715532369 0.16190974735894814 0.1532318054691231 0.54727716027919904 0.15791370807193178 0.15956258766951584 0.0038564678763778771 0.0067177645128923442 0.0045490467345465921 0.15508251434494894 0.085366913359454275 0.085128312479982815 0.16036144146031672 0.006073814968769381 0.15885949186466988 0.15747325595436173 0.15888857118612992 0.16245189852736788 0.38030645320613821 0.010793641855577324 0.31791168731759406 0.0055954717138637774 0.82792965319290723 0.23667632561362978 0.082001244501815646 0.15255228272734633 0.15694563712412826 0.004471822291991466 0.0079644886657404736 0.15864459395201935 0.079241078055024977 0.38401717810111685 0.15722969780142645 0.0026577127448301294 0.39205163456726666 0.16059396109909829 0.0034428489269091806 0.15448833787589769 0.46415436566421481 0.82948241858032223 0.083302445119098956 0.0019632886444268783 0.76820076599077813 0.69955542089925438 0.084905487677372687 0.31035854288942599 0.080821124822294352 0.15686830884498526 0.23116498571764504 0.16325785602477597 0.15618867735563255 0.23344447847057867 0.99434650803522562 0.51781446674286813 0.0059218124770180512 0.22978733344736607 0.45674795829791781 0.15851840413498039 0.83593652338289548 0.39206447581330706 0.15957171363412453 0.15556050624506074 0.68496526835813643 0.15526138334532427 0.92833620227262703 0.081172696892914564 0.0023985759019465808 0.46238003752275336 0.47127286273675739 0.0088123924805830738 0.83832777074632236 0.0067245980552531077 0.083454971638237535 0.75311425433921841 0.004981953427813956 0.90179668491847353 0.0020315527401084006 0.30840252444402116 0.40360197032422418 0.0094959121594931119 0.30875484126090724 0.080819025504444836 0.0810017453152303 0.0022641447177014023 0.38720902239365973 0.0020461491657109885 0.0018490908561729614 0.1534381051698992 0.081814501034614739 0.23763741922145587 0.0021347118636658069 0.45607993449791584 0.0035190060182969259 0.0051598351116225677 0.084936377421654094 0.52640689068456747 0.0043402089878662366 0.083674581575405305 0.76089304359315491 0.0028700597799442848 0.15526918730119676 0.22451878129361513 0.084112628005618806 0.08513618693840877 0.45801858104288562 0.23548277533778605 0.39264652905473207 0.080262707041834427;0.50675906708366181 0.0018169589390323979 0.013733744319435998 0.25941628547258955 0.015322016113903355 0.0051446912800547787 0.0046310519965429417 0.0039799486162875623 0.0097864551931945033 0.013006546137701386 0.02182764446061497 0.012339949986310137 0.013017075304962789 0.0039848254225782597 0.48585446404949517 0.50672593464892912 0.47016378769111988 0.25857663180322588 0.0031048987738343178 0.24960871270449328 0.0010587885745556276 0.0054483613208328044 0.0041287640519619903 0.53970998132011239 0.0092351983525892044 0.011493166259093118 0.013272091448206978 0.010801256037340752 0.27210670763049738 0.28824316738838768 0.0082743861489577627 0.0039437979255447352 0.73048279590255016 0.0089233032410625628 0.49886870899187985 0.89075060822673002 0.0027568833276659464 0.25033741179052754 0.030363186806102498 0.0025261181506445246 0.0043378392737327461 0.012860459874420856 0.027504753663823506 0.012615604899372912 0.024683996614039742 0.0079426757254171809 0.0044470510425858598 0.0076298997877500977 0.010281798528698167 0.48253046293933949 0.9491732171341748 0.013932130108188633 0.51161334480914877 0.0033676779105004198 0.013170673103336826 0.97628690801158147 0.010998258896496138 0.25157140862826738 0.012291213334148208 0.52282343302542311 0.467201557089995 0.0055488487586025032 0.013553470435629275 0.0032608244977340903 0.0068313394051378457 0.0059958591336628977 0.0038662078975324576 0.010164618247181725 0.70405714975679656 0.0053457696155048027 0.2124731276876477 0.0098610387137002768 0.0087303619910670902 0.0083527801322989675 0.23867307422949069 0.48775274066615215 0.0029204796393897982 0.49085129036408459 0.0069268540246461945 0.0067410775700439962 0.97661817832704334 0.001879453679768489 0.011053271811391492 0.25177974196132408 0.24890035956297185 0.21442422309678244 0.24270607485909554 0.0041253270371318139 0.0038710909380858046 0.52427666549670882 0.47914869373214442 0.0291276808869953 0.012292814425002768 0.48777595578247468 0.96305884129694663 0.0045956298103134001 0.0038516122831149875 0.0049090218227476664 0.0037601038910964881 0.0097469050271769744 0.25636795704700904 0.98010772842588412 0.0043125043662086276 0.0056956646272824209 0.0068582342717442013 0.0043101049333339721 0.0076501241674680198 0.94259221723541242 0.0068854887626801798 0.50121727747677025 0.012433826146276319 0.0060690261170845599 0.0032682000389565617 0.0061796764242515352 0.0050335357986100535 0.18866665971773994 0.95860103726095169 0.98570566430057538 0.96559098381859687 0.95819099631878335 0.018310986341871782 0.0039786864959964491 0.011508525631215525 0.76097075532978797 0.014263349626504246 0.0048208905489710071 0.25985255395880602 0.013327002885831257 0.0029952261148165921 0.0048036637508583283 0.25794543074786047 0.50286751526547024 0.016996807314275199 0.0052299522509020721 0.018818644990787475 0.71774528997439035 0.49842837765417147 0.0070687302354282182 0.25809389874727628 0.0051544830126743612 0.0065030107500444545 0.004398147387192239 0.012430683232207867 0.28105886158557397 0.24812051118008122 0.49852484662429486 0.015043351042144068 0.0041226061562952433 0.25859057548920716 0.014933696454295185 0.0037446823908451493 0.004844070414348616 0.015794122007497718 0.0058207571794628068 0.73844666798750036 0.0061640928373732388 0.0046041600244581572 0.22656569698624274 0.076289691666942258 0.0026013295950596694 0.026753762045041179 0.033651355230462948 0.010844219483933612 0.0050463332562878348 0.004119915767004702 0.0039496664224498382 0.0045798074142669332 0.0030774867541018196 0.29129948605245543 0.012367789159371013 0.010084595543299893 0.010627292842482145 0.48142036273138988 0.017151862549941048 0.0097691377952458872 0.002068027434455293 0.22917041831256918 0.48799640423213303 0.96967853685402938 0.0026643566924995339 0.47790510962904154 0.53275868733887355 0.0077673848520820044 0.012089680684909307 0.012732314719476067 0.0047493302446030283 0.74006499780746859 0.0035515592011311223 0.0028751566505111461 0.0072259508361609201 0.98095918157442363 0.0090194523206695611 0.47659639923916969 0.49714514714148828 0.045237601582672114 0.0027910887453875995 0.008667649225249343 0.054645388364171682 0.0051881280104969637 0.019169793509771427 0.94974032781049389 0.22483310434618736 0.71899459045412994 0.25205923607966602 0.0019883296010889621 0.46386929853254028 0.46345796519657834 0.74989203695580176 0.2450885238378368 0.013553161229490325 0.0089924289568760786 0.023107218498531229 0.0076482188498118 0.30346987591640362 0.49909155187445053 0.0027540152207020828 0.0060122425055027144 0.0041470635109195127 0.0036034351033205477 0.0083622156122012525 0.98973032249822734 0.0020290320332884181 0.49587259272010886 0.014684218803855498 0.0017235349937741089 0.0082072508923911949 0.2273687890779183 0.93740662460025237 0.45766081112737866 0.0078510230294062677 0.75512844527272172 0.0045613437994207993 0.48247419934244423 0.01530402180627596 0.25778854319052824 0.0093980861676569282 0.0095935282684635366 0.24185462536326652 0.96604473072394947 0.0028285634846814834 0.0022944886842694188 0.0097993036222714502 0.47865564476690159 0.0024331226614315144 0.017960387059457985 0.2538769242186194 0.24929949897605985 0.0070085141565813646 0.26504254950648232 0.50573756499470501 0.96150496556803666 0.0048771220379820466 0.024997311035770745 0.23904160479698394 0.011437861865052634 0.53045720750652359 0.006203190272752207 0.0064237732098078003 0.25517567345291731 0.0076306068348838746 0.014398615613639337 0.7325987391194817 0.46587854671970252 0.0026476614770946589 0.21639827905598039 0.0060295099102364511 0.0050341006861717033 0.0047955609086056455 0.24053280535015109 0.0057839599756537192 0.0043677812085988104 0.002096101468022311 0.49126087307777283 0.0071403542741830337 0.4446336462204481 0.0098301540752598615 0.005813838143442023 0.0099118611530021605 0.016992526012601816 0.0023851500024399002 0.0072899693536202497 0.45727917680259905 0.0078258517344394728 0.0032412091969795378 0.0050355598336437879 0.0040134606209471018 0.4843536706234321 0.97026291339589199 0.0070540983237910139 0.50423194489568368 0.011362748314119389 0.48311315122005649 0.0058921040735773591 0.010332779468822958 0.24792453915022344 0.94249409600219614 0.48704166390695747 0.0033249229564923108 0.0061299215513283736 0.50102348605838443 0.0031265949683581032 0.0074825844754215672 0.0041689300018437191 0.0055903743865504067 0.73729857711814328 0.0068764737200374057 0.26326325831543135 0.0036304056721594251 0.00721749937235165 0.96885654093470586 0.74726230855664133 0.94111924837653338 0.0073964693482017176 0.0025426085481784245 0.013149947884638826 0.0073889205748088891 0.0059727454081681397 0.0032809001851258897 0.0053145400172827824 0.011282232945522476 0.010911747985733295 0.49428128420606071 0.47523889308830258 0.96989187828319645 0.0059477638008676795 0.49263340842688952 0.0048640784804734605 0.26475159621475941 0.0058812836025122529 0.0074486433381454522 0.010583702201127504 0.73439547494717206 0.0048418802285965772 0.0038554669526961478 0.98425669207348954 0.0070155712099420429 0.27020422682387313 0.014792601835387276 0.0028698447560347915 0.0068390848825256936 0.96700486109274508 0.0071809608444273528 0.0024356703966308957 0.0041529246544974021 0.50440353025258178 0.96310344244980928 0.0032307060986875328 0.0031018721211212822 0.0046997429923002964 0.95603271794441402 0.72494078355268943 0.75517366562392463 0.27314528787041492 0.50729073215840437 0.0046802532705400666 0.24623244812563136 0.52184902654903609 0.48606788461253853 0.011090107295800275 0.0086997014398219382 0.014120934639248166 0.015221187262541819 0.98451968654743061 0.0088684755293231363 0.010170638305564703 0.25405368464447259 0.0050527938430787282 0.006672472996166379 0.035181720965353734 0.017574309376946651 0.47851599726276173 0.028430918944130714 0.0065397199906791562 0.0037349199663010649 0.00226454193706584 0.0026623046135329457 0.75387449834531239 0.27845568573720736 0.003176828609806657 0.0066037357780387336 0.0025046168875626257 0.015700985806205409 0.48696676028135677 0.012005916915023042 0.74159666252170053 0.0028162127334040738 0.0031362518694787421 0.0078747851668229587 0.45591295417409322 0.26503307877598881 0.98594906088263579 0.25695195440958385 0.0040960192982854981 0.0050305816489131273 0.49506977308822631 0.0047604935674887567 0.0098991364899105663 0.0045273632230739564 0.02335516635841306 0.0051048844071709216;0.020378786597809138 0.0049215247266293999 0.066974032569745198 0.27436992834335339 0.0095826474869596806 0.0060699169569904754 0.0069137487892948274 0.055453727499722751 0.053353030493069636 0.29714470197819187 0.43435291551212196 0.15645290063041833 0.037348227726125498 0.0060263256921104019 0.29599020736980802 0.93067759529095451 0.12098101507848774 0.1589111252578321 0.0057820678772387678 0.39909503243863553 0.0051105120677988084 0.061777926746087536 0.0045128868010697997 0.30589299015686722 0.055517149131609649 0.2330385892751197 0.39720408586430883 0.006083177978280928 0.12104257789044785 0.20284962911279961 0.15882723286197814 0.0046529762466747671 0.12297067296308155 0.25998917452337361 0.54827679357682535 0.011497676785959018 0.055511332413191637 0.39493218925602291 0.37383118102956842 0.0041807233206258591 0.056592041705060575 0.10562804930176371 0.48481357787371315 0.061319758031688043 0.33636266396663295 0.0042118193401756701 0.0042258077127220808 0.0085239538020615187 0.007247770942444119 0.35735469924311258 0.68131028344040412 0.008296762918187043 0.25287283564054269 0.055791321777107036 0.059664852482556714 0.11053735832784661 0.012876513218586082 0.14643873085430822 0.15399571209257593 0.15823086419104074 0.20892512466809043 0.010149975571864485 0.25176083609970962 0.21051276673135472 0.0050072316749839446 0.20037249969131299 0.0064599711345247578 0.19220278181713321 0.50438440449467881 0.10221857937726497 0.17839033369952809 0.012256132148586186 0.005531450705181332 0.0096198487599207985 0.065259030986623154 0.11096520961895642 0.057922133167157615 0.053632952996966687 0.3052735731682486 0.40315866448092141 0.68910412161679191 0.0052944905132064173 0.25366736273911755 0.22450829467208672 0.058850909760205058 0.0089428868907418541 0.19209366954256488 0.04689774284287352 0.0052684794526314397 0.20441635624878277 0.25214200549861915 0.34473044975435174 0.067909160619418943 0.10304694049068144 0.011780838439412415 0.008895196007659709 0.0048563699835334527 0.15401467793664314 0.007382159460260735 0.0093694363263611292 0.35743798316078423 0.060725464088371026 0.0066638198872799852 0.048336151450760825 0.0074397238312133261 0.14349867337853586 0.064707961538174902 0.0096446479286052215 0.14826491221181384 0.3538939062281734 0.151496610291493 0.023367140326977516 0.0077582122465047563 0.0046748492337687301 0.0078800769138983595 0.057112322292764729 0.53827573812576601 0.36983012294340767 0.094022801819894891 0.030833571530955398 0.0067269171857643022 0.005978492319772627 0.056518442527414517 0.41293420044900192 0.011997140040550176 0.0096327309104011077 0.59163474164971297 0.25651999380134444 0.0052870955804782934 0.0097452891823331198 0.13496265013974468 0.28420668039637798 0.011502594145825655 0.008473965809890625 0.19885022830727295 0.0077751609776789453 0.94528581239036946 0.008358626322875741 0.28318631955668228 0.0081644599039426176 0.0065066543163771378 0.0033248395084355237 0.33314755845683935 0.0067979292725729341 0.25967900382046127 0.29092381229553116 0.19773731261198041 0.0053356355570748672 0.70443153326977537 0.0069262066423050883 0.14141449080465263 0.0080681750543018446 0.27521454673190349 0.0050273209959586463 0.15191011025213635 0.0058484755899757494 0.05044948219048434 0.10788568994681019 0.055311980326977664 0.0079068026681478783 0.38326654187542353 0.49398386536401073 0.43763884938594838 0.058958762731140951 0.054037271515260325 0.056242198749250946 0.057613840628916994 0.0601851469271103 0.88262910917226134 0.0056351579751302682 0.15219088316114252 0.53568080690814035 0.74409309416103497 0.35036370584068532 0.058823121359381662 0.10700008171023823 0.43061982652530872 0.27576347023131348 0.0045724126382242119 0.0031084687608480713 0.0074371022125094381 0.63418241577197476 0.0091124733163460807 0.0086152961864146213 0.053570106478741837 0.11202409193373998 0.17818118709319164 0.0053985136862682572 0.0099401289884938175 0.007649689227930254 0.12299066564930347 0.058646440707882025 0.012494264242884006 0.0070546136050139725 0.55979451957139181 0.0036615208306497336 0.00623145887743096 0.21650838059245603 0.20050678027928351 0.0051903468450217932 0.6454155033420057 0.069378288622041359 0.057816386326052349 0.41701879663861774 0.0040430836566981649 0.24424240813607362 0.49498495673851267 0.76106996099467938 0.24462700914269928 0.29568137804610417 0.10323761163393168 0.28257584386356954 0.0036456106314554358 0.10441966414984769 0.32216022451461579 0.0069078672857909333 0.004883301753424627 0.0044458614218400331 0.0063237963282387066 0.14714170600357421 0.57841277613332842 0.0061952698101570818 0.2076608183831615 0.0072963678515418733 0.0088136313900773009 0.25164592922434981 0.062928825679298681 0.29596613796357779 0.0089055801316090082 0.0088852174801853211 0.72971225381978044 0.0077354578253356152 0.30008227376406532 0.0052734732361504515 0.15149561846695461 0.19222409721503109 0.24826232806886628 0.25249894892931596 0.018006972163856515 0.0029563771254663873 0.0072403330794229967 0.0077141357938908858 0.11386209310903544 0.050535371479377637 0.57065202717168906 0.53449012022948428 0.05398434777447058 0.010758262730100956 0.72125637433734935 0.010195736068514708 0.34721090511085501 0.0040809076006255275 0.019614039744962307 0.01130147102343294 0.011160897777369096 0.73887328339819924 0.057898552758407107 0.0082431829816594585 0.0071913405256477684 0.16129488187916344 0.350315265472457 0.20051710281354485 0.057729070906134348 0.018007121962498207 0.10072006968800454 0.11004636381643765 0.1686571393969952 0.005068362907679703 0.15205471005686441 0.0067939055957103225 0.10058317210323187 0.1763704926194514 0.20364335839544859 0.18564665244232467 0.0074949179917021356 0.16519274716727123 0.057107159641393276 0.0074957875944526584 0.0069153972130743353 0.0069467336598274679 0.059307895102997214 0.048055078620184821 0.059077081639131807 0.0059974222163471386 0.013831881023900414 0.050017109405894183 0.013349225392546335 0.86366487112496559 0.005217132110883693 0.44179478184270593 0.057218186205930784 0.0066494580663794128 0.0039274429790388862 0.008617181950653913 0.012097255511098255 0.64283901233820018 0.1952738031903028 0.012106494849225668 0.16129736670555098 0.0094017034065669303 0.0051539257795420301 0.010016462560134934 0.16485802151201626 0.058869620166837111 0.31365376628635244 0.11259597040747711 0.26898424040898927 0.006308908035307802 0.0061059623125852523 0.13828016586011857 0.43267496981427572 0.10502844591237667 0.10164878502470462 0.0043210409258483823 0.01022642658666718 0.10514025719212902 0.057944068143041136 0.0071188023221603466 0.0067853067006703556 0.20656109139349374 0.10752543183229495 0.10755760853425449 0.16753206851040944 0.86333583123043667 0.0066950478140289735 0.44658180377003137 0.25110683376833653 0.58644393145940144 0.0079332109092990506 0.10780348661772857 0.05940100003950103 0.011904404996136982 0.0059487770180733975 0.0076670415707544631 0.41858250631430327 0.0072309545343522972 0.42090381521828324 0.20477762301078933 0.058073162042893013 0.055765898828985076 0.063117600772321134 0.0054109090179033717 0.012230092761744662 0.0035368820723370871 0.18048630738931415 0.0138900412132808 0.006318883871746791 0.0053204486357677303 0.0056613891343690109 0.32494791860967509 0.45590522610394646 0.40040507553434734 0.62513116575637118 0.20692613343291855 0.0053459803703003175 0.30786135933812586 0.15847814903034302 0.16312028316340713 0.0061826631094638249 0.19251093954050758 0.16065374480289463 0.063840396258283388 0.59845636054782669 0.0077761177108944344 0.056583344843563393 0.32993518378002451 0.1538048527771616 0.19567948926416451 0.7343616214741755 0.012410100444138615 0.40816988423560441 0.058717368273049513 0.0068628666701838351 0.0068738220767338241 0.0062424977845065592 0.0072007441246850698 0.26469540514417461 0.098119773932792059 0.0036387639759729654 0.0052287421846482132 0.054785801653670051 0.21082906916741778 0.63784087030952386 0.0082199903131828771 0.41211558194280445 0.058094913201027713 0.0041162698558408735 0.0091509091259866695 0.42241079530011927 0.061529049335650822 0.7811687965373646 0.011289283676229309 0.0069957431556544741 0.007333910233513298 0.62619125392015706 0.056832220137826107 0.4538939212661493 0.055315788074816651 0.086722841885175803 0.29384438102620936;0.99320084394250463 0.0022230994141385261 0.99001755478586406 0.0077634796348538121 0.0057180354366061208 0.0019352427726171901 0.0021513223746704637 0.0019114513638171116 0.003931864380955807 0.0040172846090949631 0.98589145180452886 0.0060021080961239759 0.21532668945923547 0.012937877239218602 0.0053201877459007132 0.43742491115641657 0.0081604451865189311 0.20581049195361997 0.0048411056088001492 0.99313339534034351 0.0027063960752581858 0.98609862822070671 0.0026156734790319944 0.0024521705136335511 0.79479811257271638 0.20772421246178396 0.0078053217125751591 0.0027198323080228947 0.013553978281027411 0.0022349217138594585 0.20673721007845691 0.0021631631731991716 0.0029351146939858843 0.99379538855272265 0.59801576574422777 0.21114278875736797 0.0055167514546215664 0.99327365177489346 0.0062562052137724077 0.001440643931843438 0.0032450120567572086 0.0031433543691676952 0.0056870202046240999 0.0061755153379129506 0.00954482764224324 0.0012870729993100598 0.003116453781346824 0.0014434559588190729 0.010319510532631795 0.0069695744744895805 0.99809798358792101 0.0029304334109939477 0.39497975640027583 0.0036815902250780627 0.0054157049543834624 0.0013766856508852301 0.0010984194775299572 0.98960570330351905 0.0018851896713651655 0.0028954824287270794 0.012069042722631132 0.0066606952831996403 0.99500167441640941 0.21319266714333604 0.0024758583581653052 0.0065248449477299485 0.0024093710085342766 0.0030706067597944947 0.20700722310852318 0.0024186321194356146 0.00924696618216065 0.0023908335103944071 0.0031746023010304474 0.0054984056505484203 0.0098292924204742404 0.0039803820966717602 0.0047661585202229692 0.0018209273971692835 0.21844731853647184 0.012045833138031706 0.79239715005205835 0.0022385698493210811 0.0015597327080697865 0.0071009028965812225 0.0041303294351458684 0.0030869363301341359 0.0095614534865791044 0.20421886343381163 0.0039007778148139965 0.20480072958708301 0.0021063973586481406 0.0050864930384825237 0.0026493812891291942 0.0024757802456785321 0.0022400716906838527 0.0013733871705616479 0.0011307454016657096 0.0088691167167656692 0.22141342636962064 0.0031524966585885195 0.60816635965549326 0.0025665552928771031 0.002578011750420702 0.0044539318155297665 0.0018813764520518072 0.59645660699606806 0.0013912787803354173 0.0031928454684269723 0.0075769453400137722 0.00056121843090310133 0.7936317000404286 0.80244684156016932 0.0031026708760239956 0.0021676764619626612 0.0089208286096286067 0.59022669984777787 0.99780422658082002 0.99189293953671354 0.0031966282162674566 0.0038100660064689868 0.001188633144668462 0.0031025679817399312 0.013534601127322977 0.0034408853176305142 0.0011510612136401903 0.0053876381011959953 0.79577033902230587 0.80434176529430346 0.0017134299366028248 0.80651840481944348 0.013162570195247188 0.99017119793620434 0.0059533534505976137 0.005724789313382374 0.0039167908580358011 0.0024870209038551456 0.99872807012676168 0.0052562149071278081 0.0079714723463156379 0.0025330520978842901 0.0014005247338365729 0.0013705027457089499 0.0064751472604529228 0.20033302562710456 0.0092322921453516331 0.0017397868561210507 0.41441356938453527 0.0034514614430174854 0.99962400580655553 0.002586131557916089 0.0043573186831068903 0.0026794123407727086 0.2149006716806405 0.0035793781801640103 0.0039337144797252374 0.0022474470614618496 0.41901253502280011 0.017529782963763757 0.0076304718741605536 0.5940853585781537 0.20874224962832338 0.0034124169122843363 0.99566702685968544 0.20965160822237464 0.20945849106607828 0.0021596240356730433 0.0013398138928692729 0.011215114265843193 0.99333483315752891 0.0031499642394674883 0.21090473649668987 0.20857010741603568 0.99736144225194634 0.0066768342290412048 0.0085986807976356789 0.20415855948144693 0.99456819413518338 0.0038339250195751399 0.0019254467087386599 0.00054111217575163271 0.0028834513215132327 0.21961841793737041 0.0086038369112596009 0.0038475934880629241 0.0015535536668366413 0.0048727737285876888 0.0034188912736501879 0.0017870939325272434 0.4028815718447204 0.0012795519302742195 0.99449666507259404 0.0022391134420626036 0.0036035218948231862 0.0036528843500099935 0.99461530316511926 0.0006181452757057067 0.0031619607208306128 0.00088998951241661228 0.0013440677999811245 0.0057693230203028911 0.99682506667732895 0.79259659243210334 0.0069228105565762761 0.59928813123992408 0.0022621629231981549 0.011817973368818116 0.99581740648362094 0.60867082665950067 0.9961621239929116 0.015499777230675821 0.99267711549678617 0.2027786605820554 0.0025230598453085343 0.00529049054830554 0.0064260077052577342 0.0016932261905900584 0.0024562097155566322 0.0057148248856533357 0.0013486373432748753 0.0037961734878965351 0.011673266697113792 0.0017958303013748211 0.0041266577366043762 0.0024644668431634356 0.0023985675561744085 0.0029809480203215628 0.0037861678235814457 0.21608245297754361 0.002352576581692546 0.0011482071431122508 0.99577550940750725 0.0032140458198243482 0.0087365329069015226 0.0064988489874644546 0.0049721106259374192 0.40942148593444339 0.005579382741554507 0.0071082748548984692 0.00086423729160069391 0.00092000446295130911 0.20525749095871115 0.0013433374201965085 0.0024362388876333022 0.0028142659209840328 0.40098585940932441 0.99797613655775574 0.009775351596199711 0.5944769037860459 0.79591073086135489 0.7872934029088936 0.59373335516554115 0.0017816345306632306 0.97550420424044981 0.59854137753617043 0.0041167814370257697 0.1934788515802697 0.98667925522272937 0.0036399029075751058 0.0041575778381854247 0.99346100721616137 0.99069047030572654 0.20997904831448383 0.0043734395054419381 0.9966726095042161 0.79239043246878682 0.99227968718267345 0.0069256457552737101 0.0040882544616479884 0.79608378865207041 0.0026636932198136056 0.2152839358991249 0.59464555356296689 0.0012988650059817296 0.99298547794604164 0.0012759626528800665 0.99551907800352946 0.0049969807678831102 0.0016854527371949739 0.0048727111713979419 0.001336418528610672 0.004449771323313618 0.20190182491013869 0.0040331300414167843 0.0020526459535125056 0.0028252525018276713 0.0044935751556800831 0.0012387934915355269 0.79864379722468315 0.002428491336821422 0.0041817005386593055 0.0024492047735623895 0.0014229044357886537 0.0014677429997261311 0.014800876794395682 0.0058294462923297466 0.22010491588785203 0.0090349840136437782 0.60367569012840427 0.0017077449333450529 0.0016002369397045213 0.0056822575584942435 0.98513795102312585 0.011317847884781676 0.21202900124176979 0.20903524468208248 0.39447403554309651 0.0023462045669787822 0.004462369913294701 0.0034974375699330642 0.0027736443951788823 0.41659823342102786 0.0049703018907793816 0.22059072281115025 0.20127343802051209 0.0029147792523603849 0.0016251397595978068 0.0034884226941868223 0.0022898969620505959 0.003510280841871626 0.20904209897494225 0.0014413363803824067 0.20745234479241323 0.20183349189555655 0.7926612852517545 0.79187949372267108 0.0057238721706504682 0.99122112078735936 0.79118920734040288 0.0039121711861406019 0.204053128953229 0.0026475489703011784 0.015156795154438536 0.0012199171476046343 0.0011833324549802723 0.79104849747727157 0.0024048145792777841 0.40073998215474071 0.0023376137959291374 0.0076341832842156676 0.0023971193698615399 0.0063580819816224576 0.0073254256409567139 0.0018026015567816495 0.0013352791189201823 0.20356278486921975 0.0027545417439288362 0.0027437043400676238 0.0017242077900964754 0.0043649546061229668 0.61195588714229077 0.010265667580085657 0.98906825152075728 0.79114890340878896 0.0025003372555512772 0.0020312931326508677 0.99664208023766743 0.0026938941186261155 0.00080172871876435731 0.0012996012731138239 0.0017790957724232264 0.40508804844444601 0.0027329300471320224 0.0077325212999282316 0.0024281400052987255 0.0024458116875444294 0.99607626128228943 0.40509432465011741 0.015812662996685697 0.40718384809864699 0.0042809319057187135 0.80869522040387487 0.0015511750263876992 0.0050940361443398315 0.0024719427626496665 0.0025586046651711707 0.0018127467244632646 0.20579887025495011 0.0054397769864152302 0.0010698911581913141 0.0027432054463780633 0.0046532227268549402 0.0071011886797338825 0.0057425605255095654 0.0060467528603470235 0.0024103817425652654 0.0074740117354873212 0.0012976462833759975 0.0059435556638674919 0.79914879980294107 0.00606947042422712 0.21638811000550315 0.0036278479055258522 0.0010496373525191534 0.0024419619342415243 0.21306839464568214 0.0043285786016982195 0.2241392382396083 0.0046397064951490454 0.21603982834679952 0.99500119929768704;0.50512613909898774 0.1407070558059447 0.25283419987787314 0.12460182843642197 0.37504291209653751 0.50451706095539794 0.36569274652768274 0.0032488019670028827 0.12582834931794756 0.62511715534419166 0.13303653200912857 0.15007550487094581 0.62670361885693116 0.12900493406401009 0.26467871082403382 0.0029753719865492434 0.002708062296717838 0.75977624577533387 0.13921879807880375 0.0026241432090512518 0.0029432586699230509 0.0061624934737653566 0.0015777792455251582 0.0037363188399740623 0.38553318510372458 0.0018932896220055064 0.37751877022812547 0.25100721869879045 0.39018149675202979 0.12758244590627599 0.50040006434597917 0.37112920985391595 0.12980454660331966 0.37267513928806278 0.011792672769990149 0.0061390729995052951 0.12913461889316558 0.12898137019028033 0.0074059091804433534 0.0041733434426298142 0.12394520324363754 0.12708112345840578 0.0018490143470345016 0.12975727177290486 0.0099747691029604575 0.14685461179855783 0.1390265844095811 0.0024070335760223915 0.0071229972580401464 0.28227652414528742 0.0018541243237026909 0.0032547842346611964 0.7384227791776119 0.62788147671015815 0.0020284444690310097 0.37818946906953255 0.0021121364060325476 0.99400978606343449 0.12731858641547572 0.24405690980269887 0.48668658040326324 0.12987552192043764 0.75177414683107457 0.005403665820203447 0.0037574197688820155 0.0055165845162625776 0.99358918391349971 0.12407519793711567 0.0030593599670652276 0.12538824152188363 0.0036156659286948815 0.1335010826047936 0.0019817306971815982 0.0062708579567251491 0.12800006475851783 0.49485635098543479 0.1341334374733863 0.13187027168193499 0.87025557939223108 0.0074381578727016097 0.0039413711461456103 0.0014500361276135465 0.0064433987936712888 0.37597098088486108 0.25068659854391362 0.12701283474570138 0.0019287091169449967 0.13129324049721947 0.37465441011218609 0.00099443493189765126 0.86602555177405693 0.12994439763423477 0.0057308795113753686 0.99174449004572707 0.36199573033282428 0.13077159820127288 0.50701989306951833 0.0082402714838221078 0.37750406690984983 0.0038272669210570875 0.62882900465444247 0.0049557326901347671 0.00040225563442008669 0.017616642262975296 0.39213624469280028 0.38103770405689003 0.0072147725572140036 0.0018495242260924063 0.24898999502570157 0.12267345732843485 0.36081893079022775 0.258402955735694 0.001202321804277835 0.00096662828629872819 0.26408946196829952 0.62176241604965354 0.38196073585524781 0.74570950550252113 0.0025905621415084415 0.00416573275607469 0.25549141136403486 0.0032926007063845907 0.12548199545985023 0.0050150220640137449 0.0063818976868034588 0.0018276905514873535 0.00076495942588061859 0.38117961767865904 0.0019184486147299992 0.73150054366072537 0.0026906475134390699 0.36778570893372919 0.0051392684781355431 0.0035396103837371791 0.0053369316433547944 0.13421443682893244 0.0068498723198549428 0.86974346971048888 0.13620048744705568 0.75076976069199575 0.15638931611415291 0.0013464717189275695 0.13491023711474848 0.38238374007147152 0.0053147018489187407 0.0058864085372396548 0.13147729545934633 0.0034019376195320973 0.85932950950498344 0.0035928835657937559 0.004828925372067595 0.12574664382638082 0.0020579254748936135 0.25656762383859338 0.62183753680702725 0.0055101909293596178 0.50378097005355815 0.003128412070664951 0.012068136897178774 0.0051811720368498551 0.0022252552576704126 0.9995381811915981 0.74555694594311683 0.9957477870200041 0.49934239612775144 0.13375188925028159 0.0064967722940495179 0.6245598043416174 0.0030935577681464321 0.12560674266815866 0.010848018196429773 0.12800949267460715 0.61939589668022466 0.47856568604134153 0.12691924128507448 0.50625922236257204 0.0023412419210753488 0.12468414435729412 0.13118596966558285 0.0035087245757572422 0.13015856234405948 0.38322235434735996 0.87333821612107609 0.0054222217968613179 0.25585633203893726 0.00771744523363485 0.13294305822378355 0.0047910282241706969 0.12260469626940336 0.13235111251650084 0.38035066728660238 0.24894648823605703 0.51646454703062639 0.26316390060578537 0.0046263080875754937 0.13394947010000133 0.99665935354341506 0.0052210329928486102 0.12553946432069893 0.13295724509972087 0.99216864533130278 0.99485997421127115 0.0049152079058394707 0.003221594309625867 0.49142684981229268 0.50331030048778824 0.74826351053936679 0.0063769021691129609 0.73677381612427084 0.98888234084175775 0.72824046162779288 0.013030140963225958 0.25681779083439094 0.87026382530056412 0.63407543895905705 0.0005409358533297751 0.003569187692020798 0.86390904352498021 0.12980934366666663 0.0078661009173359806 0.12549357697658059 0.0019860754013872003 0.0045184594170168063 0.2621370407017673 0.006709897923854272 0.0033624884222377095 0.62936652924505165 0.37221655568331874 0.1372656078173376 0.0179400362547118 0.0045067757637573085 0.12053726183453652 0.86948390416527654 0.002963143254367041 0.25276353715084371 0.1277361375972888 0.48369827167523416 0.0023012801408693762 0.0039304806490898228 0.2519714814447121 0.13252484006359014 0.019242044163213817 0.499536263959522 0.12641914070316251 0.36881642248349644 0.003466040369471071 0.25095646400759575 0.50600551706853969 0.74439106808781164 0.99560841666850686 0.0092078128040043051 0.1258643428889212 0.013402922163295927 0.26072297006056322 0.26320267218674637 0.12420617983322244 0.0022114231954494783 0.13204170698095438 0.24775209439903406 0.74496355895883526 0.49072257678220343 0.12720559567562753 0.37303485528373576 0.37681737421679024 0.0054820495092246383 0.87014081741304383 0.50355924432381483 0.24745904343577829 0.13607415462710801 0.0036989888504655455 0.12586373023366176 0.98939463124223148 0.0048609551011019204 0.13343215302508091 0.12126756722026986 0.3689036488550973 0.12498883982219022 0.14180323121583688 0.0014243021008424077 0.0062860448481275267 0.3860071964849518 0.38102044672766461 0.13014207314232593 0.0026418123708551108 0.36078342071874991 0.0013154869298230337 0.0093712998537755377 0.9949868647274025 0.12682515273122782 0.25580454240425476 0.50880499008087821 0.00086391791927410255 0.0012846885832265521 0.37853748671997994 0.74322538847965081 0.1337607446504005 0.0011412132879622624 0.0029997236605044742 0.12615378485496173 0.0019283769741142566 0.25196786616958072 0.0089834872375715684 0.0026357510689162698 0.6200284849510288 0.37817506783548926 0.0020719558618573965 0.75025222575147166 0.25658071370527674 0.25601895504425437 0.00053207476554039388 0.60940962496440243 0.0033884153323872788 0.49369927862624163 0.143312577668958 0.12981469343437949 0.11966470465529666 0.13537158070104544 0.0027947948363085799 0.0037831577091227368 0.24923532042198146 0.1285598434261136 0.0057839571042213028 0.50047317197331787 0.12880946767723445 0.98865969981163637 0.24992802906850708 0.13533880223135281 0.0026970803182331127 0.12458486525510956 0.99540190573627207 0.010386636361286197 0.86970768473043347 0.25677436795794528 0.14069849386625349 0.12739569781709903 0.1286239946245443 0.12552219106027235 0.0017734948011125255 0.13223149858419866 0.0065885580095097806 0.0027503777865277774 0.0026647823029722867 0.99327282154971686 0.12565525516118942 0.12813135800789122 0.12483154765788314 0.25388955038393607 0.24895264262944689 0.11544469446825029 0.48126082811863952 0.86417245811048848 0.12347178173839367 0.25396054233804205 0.1334186921432981 0.0026962495282464049 0.86756800958122338 0.62194004370424594 0.12863939986126752 0.13175076769090471 0.12442447064609212 0.87274075922275074 0.0058733089334152538 0.0015893902148277983 0.28197932058619762 0.12723575238200677 0.74459335791099579 0.36994124436983566 0.015059940662449065 0.1280949352276145 0.12241903412648837 0.12769409777588883 0.0029790941080171081 0.25061146364031189 0.012118949526616945 0.36373053039745673 0.012079165835693328 0.0034827703430985626 0.25923960177718869 0.0020391659984500855 0.0064544639357810973 0.25586098467401353 0.38471900558367794 0.74838368151623569 0.00075311755597198284 0.1349353980508434 0.25681060583446597 0.0038579713489679951 0.13525740320614119 0.12828097168945113 0.2507204156440288 0.49334236370214124 0.003610779613412891 0.10969585528076217 0.13638702643388373 0.0050644118301511869 0.12670028405048794 0.25560966368564431 0.0035679521474524618 0.37909878432345595 0.38690487855700223;0.0053337827900933818 0.0016046867199901666 0.0067276014181754627 0.0025515995112547541 0.021359065473433747 0.66557866156824796 0.002070716646333464 0.029552522120110281 0.0086085089995492393 0.0034247809126496664 0.029641885967832907 0.00951647026536891 0.98583810323890797 0.33049662933335733 0.014573583500877134 0.020746512523577385 0.0083818379966503799 0.0160986855749892 0.01679852299241354 0.0026167599635157474 0.017086230164018938 0.01100060623313494 0.0080666407440493047 0.0047217070247681202 0.014047140013694892 0.0057405241963145864 0.0063234256639290668 0.0079168979687665505 0.020383504462830826 0.0047332839846635655 0.67274545760117188 0.33245530194498868 0.0017549500422147323 0.0064905193779090601 0.0026182402763152137 0.65876699051958854 0.0036796081273595014 0.016500206756512308 0.0041840354518514235 0.0081512143322140726 0.013342671343779882 0.0030297109983431054 0.00074814711252053792 0.65025230430481928 0.0058403235941413868 0.0070580143088735071 0.0025757276948178628 0.0046183117196188592 0.024848829326441897 0.33098446775828361 0.0076718532029873745 0.001839386839201828 0.00254709256675914 0.0075965852657024126 0.32844162019287493 0.012454492880610119 0.0083026855958394461 0.98579682041780425 0.0045011281636006583 0.98588669139864415 0.0098828622293977951 0.33568069173970522 0.97821136553008436 0.0077098121767377433 0.0042946413419175126 0.0065581436530084223 0.67899347909931962 0.0055661996824015051 0.012935822550635126 0.0058419977662848115 0.0086683499449851514 0.0010991200732403221 0.0014499835205871031 0.0087143747252849298 0.0048562475493730871 0.33020977930321033 0.64358896277920552 0.0034879126436759061 0.021016519344762664 0.97550131574430787 0.32862077674547491 0.28989468265081825 0.0033506348413808126 0.0058461701340594306 0.68185935848864831 0.014228107925600173 0.0033463692894980081 0.0049966281220488263 0.0067335840858695588 0.0025223942290680521 0.020657478007975197 0.0064912327796388678 0.0045620882067359597 0.005999471406050119 0.0049776399776548675 0.6550950810435231 0.0014539501566616909 0.015582894410164069 0.0074264597303036715 0.002069579458025226 0.0077016640110220752 0.0069667897513812386 0.0032593520096484926 0.66320529220998281 0.006339072457517067 0.98657809918319417 0.024131636177394014 0.32432095030909314 0.026391288144497309 0.002973439853260775 0.98117504319836513 0.68037761348726666 0.001496768576047684 0.002269899538405173 0.012794532648838938 0.33962152069286716 0.023680981905077364 0.0099358154140906374 0.010125792901333731 0.0037359314055889705 0.64896396510967758 0.0032706711068377519 0.0098723624143007838 0.0052533914619351842 0.0023492175957928766 0.0022950300905653174 0.0040238176289832343 0.0027942645460009071 0.0033630720310845021 0.98872239055553024 0.0016189370498155952 0.976954254507447 0.0042819461725312107 0.0087957380608813147 0.64822687856976613 0.96657577137587491 0.0049540476367946826 0.037086174757578937 0.001279734705344566 0.97034994567672817 0.33155367559133697 0.004032981855017782 0.019498629291149816 0.015135415365696656 0.001508827698579174 0.0028514413996939807 0.0049365261813171541 0.0040509924045509186 0.97920154141704541 0.0026485194761038037 0.33456078447651033 0.65307516904664342 0.0047177576781752134 0.012344981645754417 0.0086951146941206224 0.0018050126294069371 0.0063898830308972109 0.0069501174109544879 0.015842777608051525 0.012837350174397105 0.0021876263619679936 0.69093233544644006 0.97031907071256773 0.98342454090682085 0.0071493560699499199 0.33592392454947106 0.9723834700508055 0.0054598026436226054 0.0092390574189462806 0.0040603611565443835 0.94161700689470784 0.63690863487745963 0.95285985642305504 0.009018506302770327 0.017229275448747194 0.0066262652788505565 0.011844466241446172 0.0096150429496999461 0.0032796657372308581 0.0054083608943348025 0.0063599030810565322 0.66206910847393341 0.92104452631871081 0.33071357778955285 0.01625155810622339 0.004356774818056592 0.0074678049763208494 0.0026320999167082377 0.037819475437570998 0.012207445901428866 0.011970690070356126 0.011584651222849844 0.99527681127654033 0.012475553140261041 0.009226826591661446 0.017547629233818952 0.0088961728653463041 0.011284975871880137 0.0027630384602121694 0.0044630294840075418 0.97500527199505793 0.97358994511844066 0.32792323507471094 0.0024321990401512191 0.003468459331890729 0.0061271542746841852 0.0057874563554609348 0.0032099004253379796 0.98768683352564191 0.98016586900068914 0.97355048581740922 0.00426285515257339 0.95739829620339889 0.0086012919969339647 0.017051011494646554 0.0029162808216892425 0.015738500249600551 0.96373340841396971 0.013744979685329161 0.0080198429464599669 0.97916829109855841 0.015034307801479031 0.64469905562978147 0.0030493164195375777 0.32035898908674854 0.0021973238470637049 0.33763550764194977 0.0072409951201023847 0.65568108395249047 0.66576063117153006 0.0086773326770027033 0.34694080959596274 0.67096263622574182 0.0042957635510621327 0.0038489190420011171 0.0059766490928042076 0.0024522023179642926 0.0023348238547189291 0.0021821085561535784 0.96750438139706962 0.6563128597900838 0.0027648579774260801 0.97304856981144483 0.0069454080720824287 0.018089444402246621 0.0035570679369576479 0.96576517380065374 0.65862769179818403 0.97835396573479105 0.010580237212624227 0.0051333224974971919 0.0025973949024532157 0.66695405675111707 0.33012616751833834 0.0055239792682970391 0.0042736855045359817 0.0028298994626391716 0.97237225388219684 0.0025001404161958205 0.013676664465152666 0.014042900734609436 0.0060976563137011379 0.0022510417910101095 0.96701830858326454 0.0019313516265636859 0.97263479279148146 0.99274257330141047 0.0039071368512192915 0.0051277646456814961 0.002200304181453264 0.0080153976685871705 0.98764844080741709 0.0018733139069946488 0.66324190066099931 0.0094718093220313472 0.97474879995769581 0.96312389064781279 0.0032765600714395014 0.0022755016614978557 0.012559820017665341 0.99332416674104484 0.0067498342929470379 0.97779069065584057 0.0029240284088777003 0.0044689517011119641 0.001927679520640331 0.65331336475713531 0.013066005201208673 0.011349196425573933 0.0074512931153132332 0.017598861712967817 0.0070240293879423495 0.0010389840660988997 0.0053958239756946988 0.97824119930510545 0.0035282691580502115 0.0039292293739195093 0.0070653113581513301 0.023626063048617446 0.0028722627711910476 0.016766404120534879 0.0032851581733142048 0.0057138633700271144 0.014989512300924863 0.010584703120146871 0.0031899535851015745 0.98016544337053002 0.66461250669943506 0.96146829402393497 0.0030645378370476569 0.32624548693576838 0.0012692250332819841 0.97213876152893863 0.0081579993445765539 0.0034259496459160487 0.006812433942564115 0.0077094492944394036 0.015062380209005417 0.31513792092648396 0.0078095801628764935 0.002510209314834175 0.0011373686740953138 0.0093078971828959526 0.0015119870884070239 0.028661169219126637 0.001946493554652255 0.005153131205399163 0.003398097044122366 0.0014080829867728132 0.99327197508676612 0.64719758340534217 0.63506093418044118 0.67014397628797406 0.33443023398978611 0.0032760558823873949 0.0095727181683697947 0.0046002880785972313 0.0060681667963201659 0.011157757096992465 0.0041745818051717445 0.98289989287621315 0.0063660848253524523 0.99177077468776853 0.0023155097855434639 0.0036870253444749065 0.0070800774022776467 0.95777605668101007 0.3364093427364378 0.32674171710211453 0.0097714179021999303 0.0069838299830184518 0.0060107535366703164 0.00889396013512893 0.0055947021457715398 0.0068997330642729775 0.97583816264080536 0.33238212328266081 0.33584646329174861 0.0063277103426816732 0.00077164845137988594 0.6358578333859719 0.0093601081627027564 0.0076651093357731582 0.0090226139158378765 0.0035507874814306572 0.97555909236377492 0.020047746834448023 0.0065645024006737388 0.9506924621525018 0.0030973770090295333 0.017854580780468678 0.0052033494058797538 0.002103173731692973 0.32822935519522917 0.0026431786455519053 0.97395976264947537 0.007905890222080901 0.002859261153567791 0.013921192018694847 0.00103793355764059 0.011515464535352845 0.96060924389210411 0.67070646654656607 0.3217990956273466 0.64592922759866145 0.97089175302318775 0.010206067073989477 0.6659084817656773 0.0032686906577974574 0.011715838060601141 0.35976341675389117 0.0027003389409757227 0.0060711860812758395 0.33850960165534605 0.013744176393229481 0.0015181758497610017 0.96861882913085351 0.0016717390053826548 0.0044298365925886235 0.0089945810862202078;0.0030466822164409439 0.0031180512077308214 0.0029235627329904346 0.070480902552069027 0.0019335890407771372 0.10393486618763298 0.0861777827804657 0.73287251845051493 0.093701178317731393 0.085944597849574589 0.915216129820557 0.016963300925650626 0.51872693383508217 0.014465965309928431 0.0050917407394690112 0.4831650320369526 0.069567410118747106 0.57090079501618263 0.43185947712842632 0.0038023905202652199 0.99165909013431586 0.44236734751348711 0.8256900469423436 0.0021800552686492276 0.013599373774300474 0.0019528273308763238 0.0034607595003198436 0.0032575520932539453 0.0008944609080454712 0.0012753405232872584 0.074342980349451943 0.23946644529833697 0.0066932399342328336 0.0025892886944246622 0.0010162258444441831 0.98819388380438022 0.16838157605669007 0.18310279613127528 0.088377397115406847 0.084270138757929991 0.50643152493515087 0.0022527970100099104 0.0036065259631843155 0.17098032008497727 0.4366892419663182 0.169137089839103 0.19405692069307579 0.024106384182221614 0.17509530432458303 0.05256418621557056 0.088288657913583923 0.0023509609265109561 0.16340453030894805 0.0025486076149759526 0.34537565136532439 0.0070444456418962374 0.90686574863750358 0.36232576654490456 0.08537620760124276 0.99678088857411851 0.083383494573495712 0.9384128530810395 0.0050947717600526247 0.24368188856209935 0.46803753124699249 0.088431240592170848 0.089418690924446598 0.0052595001449893854 0.35232086712310129 0.002170215006180812 0.16870995340097331 0.0035119636944437906 0.003440094958169616 0.24363562370279085 0.0051356012630453876 0.17576213665961449 0.33784477046132555 0.090689149205127773 0.085391430971103299 0.8246804061686378 0.011701531062473717 0.090690570685568114 0.0089795141723287182 0.34999477009515922 0.89663407384036242 0.0089738335999193716 0.0053289097441626271 0.009495081746492523 0.092171569512973645 0.0048817271223593056 0.092712006588789045 0.019649359860868618 0.0047326950259955342 0.0023062133456576497 0.0091111412818821475 0.80788707630779411 0.16552127388405011 0.093883769393983962 0.0099640890969060966 0.085200754100669976 0.093673004931462231 0.0045619282470016134 0.096576580214653249 0.32896532444579923 0.0995900676952544 0.71888622523327861 0.83085299238925792 0.16815224472424439 0.24313718341099574 0.0042303650870813315 0.83295207619519585 0.42741833301572824 0.19555953729135186 0.0030513690568209099 0.014989584170072633 0.17918486167876191 0.0034907068668327953 0.0071626364754054849 0.89483630139285664 0.16685693281836494 0.5691089911993874 0.0087682718132062742 0.16651301062061297 0.086632999136466646 0.0015304564110405923 0.56866820822517772 0.0026312734189241193 0.016754870417321391 0.012688655330223609 0.38786372642210237 0.0084994113088434856 0.76111803971053149 0.0012116930134995912 0.12073907873757042 0.7589023353607659 0.16800563227204302 0.0080120076563597251 0.012032193880854802 0.013680723310836203 0.0066674633714437007 0.34798693050480484 0.17058333647149071 0.089914403331363774 0.0081566887420895552 0.0015429844808381469 0.0040578945292196328 0.089333430437489258 0.089879199501309404 0.0088268321277656936 0.0096214435094503885 0.49243783730274082 0.32132473531607847 0.0024542710116084764 0.91453226676645372 0.59470186414533088 0.014451900593461405 0.092422516151695236 0.090746029161981712 0.096854071568646227 0.34468406902394766 0.0018630777011435151 0.094591315224102815 0.26067281037624473 0.10310105175739243 0.0038511505475361026 0.90212072485417028 0.37485232455055784 0.17148655921217992 0.08857497129890736 0.0012548089477207212 0.67538733653296923 0.32893498846790498 0.0030809031847827085 0.0015936881495376212 0.97935908174476993 0.014379131585223026 0.12310156549066083 0.0043607113971126238 0.16628778995153523 0.10124716533080898 0.51709728767735819 0.27971152325390752 0.36404638518996824 0.30764683964578687 0.0064952025164196963 0.023695230651405746 0.0080476737409314013 0.084537410782549768 0.76039836486869683 0.011735849442377211 0.25530814955042347 0.093840835475889853 0.52440356371129571 0.32866896291680636 0.01423093896757985 0.16474189661254476 0.087725781373549389 0.0026947944735078713 0.0017003952430345438 0.0049015769687217221 0.25615216783358374 0.0084939248807663886 0.089972703753513211 0.0039650991242081417 0.09810455084832656 0.0027120456793852028 0.16795613238707097 0.0012979237291611996 0.26625959488126266 0.31980313199299226 0.5028203339645988 0.34727939312423656 0.091754994106703222 0.0062174344611328671 0.17324823265491232 0.22915311103234767 0.41066569652598667 0.17194304549486222 0.25258699746534136 0.14594180484473226 0.80645233875159805 0.0068291093174431003 0.49041834852056226 0.0091134434127729744 0.09205036877768101 0.0019428462299447725 0.82988453709578647 0.0055221174484315835 0.3530674966103301 0.91106118281839932 0.2666107633345583 0.0063339780180003743 0.58853421311866716 0.011697812490261902 0.0014979617240371045 0.083459432333199954 0.0034487099693812093 0.003780616844821518 0.003516076434780799 0.75640383525596289 0.56734461782689638 0.015144109744789483 0.48881830732110504 0.08449608973828962 0.076293461036253396 0.001991406583718732 0.33888601706232047 0.42466181544620107 0.35400381775744594 0.32817846919702509 0.0043619489723684211 0.0040739266257408743 0.25962674344627767 0.5786228756299362 0.013726145572254291 0.0031005282656667884 0.0034366509046486887 0.017013772466659433 0.16416205991590463 0.0031302665982514272 0.18499684532219571 0.006295287137585797 0.089095813124069528 0.0046378901722698256 0.0039537236308103962 0.0051446289557549787 0.67528738031591795 0.0018905759973639525 0.089934173842221882 0.0029399360701821281 0.016247447792946658 0.40871365962381945 0.0026621102006919241 0.73746832156656994 0.73830303570326361 0.15062204879412577 0.79989457555157029 0.021622500366697647 0.0011591905711242413 0.0086066286195551241 0.71500507835055771 0.33026129246198682 0.75037498538860037 0.089351994910566432 0.40834796364444537 0.0070451541772657781 0.52613547100285762 0.16255513080870099 0.090433630086445629 0.0027353997394597733 0.0056925518963401554 0.34626987824065142 0.0041425630682910327 0.16348037701601587 0.74007408400420815 0.0015486592911803459 0.001813445261810481 0.096890375244219631 0.24943626124442969 0.0022984794377836262 0.33478857963311276 0.0018638065684932099 0.011758148314629813 0.0054015299660189735 0.0080139865856191685 0.0051040816007819441 0.66672037592540645 0.50485039480879124 0.0084560189493519643 0.0038271070212953992 0.57376714599698986 0.0091949768330301593 0.44280174119283311 0.090431333144358514 0.0077693178570311244 0.30657370532038691 0.007061023060873672 0.098698680050954293 0.65261628342396083 0.75253516340577464 0.084932749906435318 0.0076362338298799287 0.089835589094636542 0.0019332123650219522 0.0069137399705798538 0.088357406794192905 0.0059171645570769791 0.014988641756245192 0.0040716388723721041 0.74381769892742589 0.17295010765976912 0.28417585078604901 0.40507258914202748 0.15453764327124742 0.0069354743886577488 0.011830995849633475 0.16141470538026145 0.011489492196251028 0.18538635327398392 0.0065106622535006063 0.17746927291009432 0.26507226790097854 0.42832837135521729 0.25663321580317255 0.0031230986302566975 0.005251837521171825 0.037750138263309085 0.66214681647748341 0.23272844436954754 0.0028397164387058667 0.0050999598274726211 0.0079176424146469252 0.087323940476861456 0.5882744799697035 0.087650116917920101 0.2560058742020801 0.17173831200687317 0.096466994981936033 0.17532840151599963 0.0022128305974067771 0.30188936497793312 0.090526841328510715 0.0093078743214757304 0.39965189875296464 0.0024198792936325712 0.0021305845832988567 0.33709810410291868 0.093587476246704923 0.18521863288020496 0.0078254945531502345 0.40714978179993283 0.23867672332722731 0.0024462963609607094 0.089137839063020669 0.17036804002318406 0.99473431873075768 0.49276125164947993 0.0024177081454268843 0.10361504777182991 0.0016065815205206671 0.092124215923678754 0.10953879235436455 0.76755699375497088 0.24382637944546964 0.019801234771025501 0.26073710940759515 0.24300110930018282 0.64602615382241757 0.003489475783863888 0.0031213622486047071 0.25616497200478144 0.16532639274396541 0.25292760128874431 0.097700441558954645 0.094341001959280732 0.0063158481484755762 0.0069060579802832905 0.087293089317041828 0.004091927653064523 0.078671664155939472;0.0065671389313622644 0.0089225267764943411 0.046897971490881998 0.0060127293983975429 0.00827145454322783 0.097777051282279981 0.0056917747570052763 0.91655561135048402 0.0064303169420597221 0.020913454169810195 0.0042271061984382515 0.0075914815879898684 0.0103446695707463 0.005986533305628464 0.95329939938382269 0.0062072818476642836 0.0068797770954724538 0.0059603055103646992 0.0062653513083895593 0.031595115628462567 0.0023424990571088602 0.065665973425880167 0.0023432279566823725 0.0072279374135425381 0.016928428959856554 0.034485047531589659 0.061160799904314424 0.0087843717298398318 0.01521076739466006 0.02490032004915646 0.0052389677814880155 0.0068608909989746406 0.84373188099502727 0.0073924931755843118 0.011015645236369772 0.0070730167330684424 0.0094114275231632419 0.0036394600395487369 0.011172745346717677 0.068651159029516295 0.018855479081884043 0.0081677139282445611 0.002787783759943718 0.0029582780608684964 0.010462271812792663 0.0026263036661155173 0.0017041964013511371 0.066285700155207031 0.048973275444300274 0.063592699712456333 0.015776117221001369 0.0055732031363213896 0.003541488348361284 0.0049765650856068945 0.0024847645409894568 0.0080998135770164181 0.028621224943653656 0.0096206948808439489 0.069160425194572425 0.0044613214333016271 0.083486660074386335 0.006537673486438033 0.82903952886109766 0.0051001937388959213 0.85752462418000808 0.0029025674417338561 0.025247994238268644 0.0029279080968287524 0.02039550976382273 0.015774476952334006 0.0030762201037420958 0.032419171176692498 0.021643126823242528 0.0067721653316924662 0.0095468862311641721 0.10363841258249124 0.011629579626529316 0.060367306890880594 0.0061115504244347568 0.002430138405041052 0.005025296849147585 0.007357684241826719 0.015286771526195397 0.83885130168496802 0.0049139794620930927 0.0067569347608999889 0.0057366445847875838 0.91043286325464134 0.0042376557791729708 0.0080930085702071042 0.14302961662816327 0.0047631382154428876 0.011964596599295598 0.0021987056557297565 0.0092952644775551509 0.035557912437054938 0.0034656791095068321 0.031000286797625815 0.0023383500743638548 0.016558735824580829 0.006538279905900132 0.0071917968125353032 0.048251367443708816 0.018618903091789825 0.0063907125764391748 0.024727654020377271 0.96376827704492452 0.0072931086184427766 0.0091136590492322343 0.0071246225285754557 0.0038736526644062713 0.0075421863599908481 0.14849435887002788 0.76024552388317579 0.054634102097053633 0.018375444151470362 0.90352292009504898 0.021672412331630309 0.0031802283950007203 0.0062071744744406389 0.0028730274014177838 0.0024733327515192895 0.0040844382662853134 0.014952956626696715 0.0074212529074553016 0.0048908294188945893 0.0065917403104672114 0.019941074456418038 0.096776660344875989 0.0082475206814645319 0.0067764843573586853 0.0035430800396100475 0.0091499372176283688 0.0051432137069906516 0.0064995402610111396 0.010646686091758102 0.011159545238206768 0.0084343284636097388 0.014113225159714781 0.011496406748266925 0.0052832705296844938 0.0077361290982032906 0.0068271522980275327 0.14004880977624848 0.0076752726304562587 0.010099252380118997 0.010357232994667079 0.0051188944083164333 0.013320638894743704 0.025627247067644 0.01575117199580147 0.066411284196620304 0.0067435110976553272 0.0057998091458765361 0.0061875220810850848 0.06056138760461275 0.000561720032563697 0.0091998591648603523 0.0085987473625302457 0.046286783691173949 0.0057497859706985965 0.010316162595606923 0.89971828520982622 0.0080772234430738152 0.002246846762208364 0.1047297376401977 0.014893173812669877 0.039881777528628107 0.0096984973372409421 0.011155177914282411 0.0075921913425774619 0.19592964058526899 0.0083661017498410754 0.010924234971646412 0.0056603023042772621 0.0055750432863165668 0.859173071153159 0.83925129400936127 0.012392564565103117 0.14563584158887422 0.046165533404254 0.0078347034606691419 0.0082375328988484025 0.0098762839956390135 0.025921501028181779 0.013247441095914827 0.028034146352658308 0.0056773939912968261 0.002491095167901683 0.89081931378353929 0.005570038117225784 0.0046889118829147331 0.04860953503409559 0.0065939696826296385 0.025637082815602501 0.74850192595516229 0.010056516953330088 0.025044806726376514 0.0064157484868710007 0.0071330562024107813 0.0041658403170652574 0.0095420828637058936 0.83225147898322172 0.034692347370097271 0.015028370887256948 0.83881135242602523 0.0032974499618058082 0.078645975377007432 0.017633097477995154 0.011079200210593594 0.0075527721412519729 0.013611632034825351 0.07103172581662355 0.015819488821975373 0.0085063542876074281 0.0051066097607080771 0.0047137119292800875 0.0098515720947337064 0.018159779346710269 0.016952871744965667 0.021432010366136608 0.87824373513389187 0.02385895686466202 0.88601981043605982 0.087300154913212552 0.005776162926601703 0.0058285768053212743 0.00663037661826476 0.017172508396372202 0.0064095262048134696 0.0064951376985330064 0.016239971107813164 0.0076517547629048385 0.0044136741926720886 0.0051524988053276936 0.048893154881746996 0.0040366232005673557 0.031999652356762276 0.0070018136939694903 0.007438310742758557 0.774965362719512 0.01539673434193267 0.089042523289291131 0.015106042148157552 0.0043516115077215766 0.0069111823932004176 0.92052190598789174 0.017522062380294422 0.0042031304919007929 0.0022628982137192057 0.0065902392114948714 0.0044497598338331078 0.0039041265951555992 0.0021913769484436011 0.75461694457409478 0.011762067160569517 0.0069581686207576101 0.0086233158407968205 0.036275633110706439 0.30551448292411032 0.012436046255295791 0.0096228973637476813 0.0082426616563469595 0.046817525345574616 0.0078230517545954878 0.058291307744895181 0.00667392133976389 0.23193686843716288 0.091758407380274978 0.0047958963183813014 0.019937772496307189 0.030676175459698168 0.012823561787126956 0.0091691823676987982 0.09964430590967803 0.043216996037579357 0.0092082510569709494 0.044763533979899697 0.006065681365539261 0.95979294587740405 0.029109625223277525 0.0061475155575064543 0.0059953648277125795 0.010890445023222157 0.053468115685100973 0.0075404007158570369 0.020500987683329915 0.012040727475934569 0.018966894393729349 0.92845467210670574 0.88542122106070598 0.027185308080619766 0.051408451223669695 0.0043133873323073684 0.0069800691401318169 0.0067955207794817875 0.75467624109499387 0.0037095301456380337 0.020195165758919546 0.94595240738889896 0.011343467780459712 0.011316085832757618 0.01875942897037474 0.010896304490359552 0.0056288408313623509 0.0047541874066814862 0.01256259429232051 0.0086022083903659844 0.0045163755285897748 0.063880382745707398 0.037197967586238341 0.0034126468267725169 0.069595326384482181 0.84073713480293011 0.012418568675860426 0.0067797388142210738 0.0054227282066835105 0.91135682755440206 0.0084661741568171564 0.0042530900207837664 0.0084146166994930795 0.0068143026715630495 0.83318536297359924 0.010059001713235566 0.0028519713316534933 0.89417845862958556 0.075434634051689237 0.0034828611965688028 0.0019713797686364697 0.0031787771133146908 0.01687430828492294 0.0098892672572264678 0.94236554715651477 0.94788913969281507 0.0067769710552741625 0.0066307752707841722 0.011966429698785704 0.95805520755044471 0.01415566636705661 0.0060376465729106319 0.0081068520879691349 0.002383631880659709 0.0076254621680767075 0.0014369287631543371 0.007263575110851129 0.012286093144177465 0.073524883934289145 0.0064436870966684111 0.013006999853530526 0.053132731110572005 0.010153684266654195 0.0035104103829500487 0.73214927704392418 0.0055990614365816465 0.010567397870965323 0.014546333490343257 0.005077550949147182 0.0071791728040984572 0.19869546774238672 0.0087128493235965089 0.0034243260715401355 0.8218162232855083 0.0095835015515136086 0.0045028357470509621 0.0036143935169653807 0.0065936144122938486 0.71434318942417996 0.014541318214852468 0.017676262365804683 0.021357534098524374 0.84863180546471351 0.0048951546731228418 0.88957992026448407 0.017565079475731677 0.0061936862166198309 0.89368961339258668 0.76985464048607444 0.0084069134271237082 0.012793666004737501 0.0028026742268008028 0.0037745801763361488 0.025031511276283187 0.015425746024083885 0.0056155392185724233 0.012504641683158429 0.0060298890373705078 0.021801469602028653 0.0032980841731116406 0.0061384634555624222 0.011455717882647197 0.025566623078635466 0.028787166311960689 0.0088406950854473046 0.62826158791822939 0.018540065110732178 0.0093595579672894978 0.0035295457965747869 0.001769353624081927 0.0095457834684431527 0.0051650095662647815;0.003975053279002598 0.0028490018799660387 0.081712128148155094 0.0020393486746690822 0.0021205785771076166 0.14952621351010248 0.0019923358788724579 0.6372786898157079 0.0020482570899737675 0.15742037013529742 0.001572808475041185 0.002144645512349799 0.0051315478206090739 0.0044066003179776929 0.99792732565205644 0.00150829552745193 0.0057661321705952014 0.0015430739585582643 0.002333844743714922 0.35270179399640506 0.0036586472857412016 0.72580680070629711 0.00090684804735940722 0.0024918922328371037 0.0037530002885122196 0.7047626694940502 0.012398193013677851 0.0018572944111961312 0.0037545396458977492 0.01370892199102396 0.0010915263055525266 0.0039996672098041725 0.73990838490823863 0.0041005211940629005 0.002551888149389084 0.16073022483739527 0.028359024550139625 0.001957926561349846 0.00437437012285408 0.0086028126262772796 0.0025580076900116253 0.0013932878103025954 0.0011836844480122562 0.0029295147615117918 0.00202838338819739 0.001136497330099474 0.061486607076631984 0.0047753891048759834 0.92125156507632422 0.66563832441612703 0.086108097497569092 0.00061501440109205333 0.0019933625469347729 0.0021724216036088958 0.0037183756094411836 0.0015643991103574744 0.024105593240429518 0.0028881561955875108 0.2906187211629041 0.0023794511080685431 0.013857766004269696 0.0019857386674351227 0.0071008500265692682 0.29006165374066573 0.60164775998755338 0.0027641168802964625 0.0063956139371393259 0.0043793205439596385 0.0031904135999746156 0.0027595996420079431 0.0042538891941491562 0.15515616348695949 0.0055078976032515046 0.0031411431632909883 0.0016432733086201811 0.28074539400005932 0.0054809204789638827 0.9327627372729268 0.0014332820067159706 0.0064492604778761372 0.0015815308012384381 0.30248413396537605 0.0020269014089707334 0.16544300852372384 0.0018469578224508932 0.0017534532924336796 0.010912107306247077 0.99821342881874819 0.0042661539009040015 0.0029369024321060297 0.26641030010177852 0.0031295019836343461 0.0054437437807424421 0.0028275375129893517 0.0025750005858772148 0.78588590651597945 0.0016698372902711552 0.0096892166049548836 0.0025182770545152484 0.014474522730660778 0.0019674279237257737 0.0026227277481346845 0.0046961450702324515 0.0022475166192785076 0.0016017925561920561 0.0085020943826350677 0.98956372743763088 0.0058462140587079003 0.0026876738666626043 0.0021803200833766688 0.0015026203033188244 0.0023572985223100592 0.77537650430018923 0.98904707076972542 0.38187891886679876 0.011425359885599761 0.98886076114404275 0.00217815495560345 0.002168216084339663 0.0033975877011699169 0.0039026230008098362 0.0033458541524909345 0.0024434835394741583 0.14308023013581189 0.0085727155260061673 0.0021601014431304544 0.0038624314332074169 0.63587225515563794 0.8468784595164417 0.76374789269545462 0.0012067641305951035 0.0040438413188004403 0.0022296178167735426 0.0013989442848425151 0.0045385752311601635 0.0022589398884261644 0.0027152246686334459 0.0060598904281230076 0.005676971942298421 0.0048311605776305607 0.0035180231885728846 0.0025410979846202443 0.74102992245332888 0.84409895929212331 0.0017499088694773006 0.0029605037556589874 0.0016453517970753851 0.0024090721743166093 0.68266156273575285 0.7180089527360789 0.0032563281635897669 0.0031893217371858022 0.0060314012417954626 0.0022740517169941724 0.0030623869406635014 0.0047591299842389585 0.0037437092697122937 0.002379974182441407 0.002091830519641783 0.99370936145411781 0.0016234093462210474 0.0018033105025375728 0.15220514020968948 0.0023143896866189033 0.011846281338045725 0.043515541618197082 0.0026666883892549212 0.019392977773279023 0.0066367021472350024 0.097832296621231454 0.0027606339379904294 0.77647138546309646 0.0044704560345847424 0.0044517976912273379 0.0026927249423445206 0.0021652376594897792 0.92938363628895859 0.12749093010810891 0.0018709968466420162 0.015348376110553012 0.011798777551167905 0.0040835921393621898 0.0022473271009891809 0.018243168406761583 0.0035005083923606659 0.0029146830258013554 0.0065588822873729469 0.0053155332387717479 0.0015764983403738159 0.9917610528612989 0.0020743056168119507 0.23772489589632623 0.0016158498728340701 0.0032007392321229807 0.012516645152506108 0.3872946074958194 0.0042810378308230377 0.3724274712671154 0.0028873036700403703 0.0014444842279557467 0.0011733179108754362 0.0018497709185377603 0.4653032484550596 0.15275295238506403 0.0034056948180776338 0.015732955189651301 0.0037821401997020629 0.1650564613337237 0.074687983388642923 0.0027474374432732923 0.0018730542711591766 0.0020034879219802131 0.53032307548350821 0.078909146001083799 0.0030493364928833103 0.0040399587859428756 0.0023525963604416108 0.34074439830143832 0.0029576490427786041 0.0029233872000169214 0.0020615513860430612 0.63126748095361107 0.0030600810376215067 0.17039979779644077 0.21544219974490025 0.0033976918985151993 0.002399337481368407 0.0018823838721725658 0.0032711345658438741 0.002135313263515023 0.00094870947530623084 0.0025599039601429297 0.0022633986203222426 0.0020178350089254085 0.0030367232778743137 0.71735160751060068 0.0013184580077415034 0.0045711771935799499 0.0019764610967969187 0.0018196272085729884 0.51601882656817799 0.0026770912074291983 0.18117619141886573 0.16169333553857185 0.0040356314510987812 0.00076383051958828522 0.63796352648418497 0.087618898323643057 0.0017671119211124251 0.0042968302867633264 0.0025263926045799123 0.003959237927791604 0.0056695817082166632 0.086262782506520821 0.98360580179921686 0.15147817153823184 0.0016443261046883869 0.0017136673536446493 0.0051653131616827492 0.78536189115250166 0.0029136390829608517 0.0024617088387464308 0.0020757397920229156 0.073751628769502905 0.078451090274454391 0.77745352604827112 0.0031592458098966721 0.82056430416654069 0.91699982714754968 0.003005526855368112 0.014718597292754114 0.27019223229682776 0.004673862200300246 0.0032077924016935774 0.2715246438709204 0.12766169456388313 0.0032864910978414714 0.97412844367365681 0.0017761662329794832 0.9208781474728005 0.0027827655626952649 0.0022839733975772714 0.0027393365437573844 0.0035119250491458956 0.0026957394774656755 0.0023027768245383411 0.0028193616702942982 0.003074345146243304 0.00222181578173651 0.98778970835295155 0.8359378234689786 0.19816081141060501 0.5801545142214799 0.0024937453139463762 0.0033546571721801369 0.0018092559192621387 0.98475988860225439 0.0073258838360959477 0.0050981812544595917 0.74345772869644833 0.0055689384668192055 0.072051867015018659 0.0076526172273035037 0.24188708386968094 0.0017898342458877094 0.0028697396646670107 0.0029477925132120439 0.0019202280258769941 0.21439693954016095 0.62929926605567343 0.42495771740376248 0.010248869020210691 0.083699433028958437 0.43239672202312868 0.0037781460010363208 0.0016979114161691071 0.0013491982537452115 0.98179863733060868 0.0047784940008858516 0.0059245509300075716 0.002796396446250818 0.0023910175733246608 0.92112033239323943 0.002282269173349131 0.0029310694910851323 0.14114338225198472 0.84178140518076794 0.0033254281725645812 0.0015255062357606036 0.0035054109238039166 0.0042366177636745375 0.0043839391225013544 0.92260229827624352 0.99833852126950062 0.0017852323873729914 0.0018050132012813489 0.28598063774714094 0.77381820126007606 0.0027237779779743657 0.0053461017203975834 0.0040970759739316371 0.078391973747677784 0.0030039416276255873 0.048287892924873704 0.0018597982186507301 0.0027408653153839129 0.90750042138940579 0.0037709786919117375 0.0032250209894473859 0.0061076320331226565 0.00291857763646394 0.003122942674474008 0.6426631294828985 0.0022112291895465368 0.59552957707392917 0.0030574535955463448 0.0025442185886992369 0.002276481698368373 0.98639112030924858 0.0044426358117489444 0.0026782474944101876 0.98604660239841291 0.0024135310989896897 0.0084361136896594947 0.0013235940517594912 0.21083562239392789 0.96301490559439606 0.0024755645063892235 0.76953360641896462 0.0093114363937793331 0.98979086072662481 0.0016985989417645658 0.98886807742266825 0.25631260344409013 0.0024077955305796231 0.98966934596276146 0.78289291364320635 0.0020714354145657007 0.004169053730418028 0.34892194806585541 0.2231270231239588 0.00242231728046569 0.0049110830703044325 0.0029494816380465361 0.0022679212973556774 0.0018950439045543818 0.2101085197662686 0.0017912170112789458 0.0032837518972488925 0.0021678918004686275 0.004762405785886094 0.0082313213640031607 0.0032576462162288958 0.087066577631540021 0.80218845288745277 0.0027533319456906537 0.0010526774602365018 0.22917511881709968 0.0042200302767925529 0.081946641930463276;0.11613228471552718 0.0017106848365217933 0.0010756673625766692 0.0027833294179749166 0.0023203651061390234 0.0021664853415238588 0.001973041961144333 0.0067463531564433861 0.0023945767561353503 0.69893736163201725 0.0053276530290638615 0.11273444593834969 0.008741982981674187 0.072510976713963643 0.74801548590969447 0.0018038751594721212 0.002100237534298376 0.11264615313136042 0.0027007334974624049 0.005336527234335039 0.13520547254440934 0.43929457967426344 0.00077475418182911611 0.11324336796356811 0.0037728794585754253 0.33365269836257661 0.0077206584436573739 0.0014700090789571355 0.0042750072413792499 0.66432162269894679 0.001651312673979293 0.0038219627135389878 0.86744720589865354 0.11514422239141596 0.0061750789526319599 0.52399980925362466 0.27472397711047591 0.0022474995890406765 0.11561535268061643 0.0088201630121928273 0.0033667808281960076 0.0012048280759815759 0.010487618981332963 0.13092694851119951 0.0032631586769252536 0.0014603373271471595 0.74823813342377554 0.0057502774733191415 0.43377165047525523 0.98130120972704005 0.0017070896754851335 0.082373842243684492 0.003982494310208258 0.0044218695850678389 0.0029076862831113447 0.0022036804925418953 0.0055624247185955293 0.0064850026763368747 0.80906890980072366 0.003528871167597725 0.11240067147240293 0.0027291663557281205 0.010369991856957016 0.44380271529524618 0.21377856838716733 0.0032737627187928095 0.0026720496039420952 0.0069925425846515728 0.0036440931625985168 0.004065568573590651 0.0053305764378556225 0.133483343690842 0.0071139288392665888 0.0043865735539155093 0.0028465472795194454 0.30004440414576777 0.0077317993939162106 0.63307927504626194 0.0011392770724416889 0.11317824350481334 0.0020705047304681009 0.68247510078267493 0.0022199995235250001 0.002350645042224651 0.0020948340092348853 0.0018756050389587445 0.54721658270688001 0.9576932760881911 0.04441704733008274 0.0041509866842374442 0.88890876869349411 0.0034298891054312078 0.0056278911955116124 0.25468252494938304 0.0027553359270994617 0.85914044779445831 0.0021338320367686749 0.0086638819018806761 0.0033061025238148973 0.011911630548266685 0.11394426756562497 0.11346591166978987 0.0034338446518141206 0.0094568083625508406 0.0034118749900345674 0.0038065848044944064 0.36462955989368401 0.010082943316532051 0.0039682374957544803 0.0026075203241097099 0.0023755518379270949 0.0030087362397965612 0.021212195105077842 0.28213699470265557 0.0032951371253535536 0.0015257254260886348 0.35263010146119012 0.0034424625640373514 0.0022891921962284274 0.0064673563219168773 0.0058991207659966913 0.20145412088649928 0.11582435012139612 0.44135405550961054 0.29919287999471361 0.012197476087493775 0.007832360806972324 0.2832841116814338 0.97405324122070547 0.48855589328416027 0.0013082951289966052 0.0050719197296507446 0.0030898087443163732 0.001579989104075447 0.0045661343918877023 0.0033914997429200979 0.0031007359019937972 0.008071274700465602 0.43124496206264396 0.0039951029414216311 0.0081735051531674867 0.010691029012525851 0.13728596118878161 0.013819677762873111 0.0015940888175374325 0.0033223651326938952 0.0019909157826283729 0.0021961993579907007 0.70282676764963203 0.63172880984456692 0.0051137651983673895 0.0028166487109218831 0.63994210187253509 0.0025124072580659587 0.0053909994356562104 0.0049879846714429152 0.0030159683918465352 0.0027274118509758578 0.11385569413765093 0.97454557030282918 0.0021930046595196582 0.0033314448324785594 0.11524992873128589 0.0040152868905406662 0.21705778296028855 0.98013549456491245 0.0035790342576915088 0.040869640459550882 0.001777635404127075 0.98452850420731708 0.0038826521454915154 0.99255475909911461 0.17458435180374748 0.006103817749652427 0.0036302337628952063 0.0018404774216391956 0.67589770074878164 0.0099852395911787656 0.0010533009558342302 0.004298108448814955 0.002443917430540384 0.0054687005541322678 0.0035999247325918036 0.64812932976328586 0.0029875598403108212 0.11358950384424565 0.11773557632867541 0.0075683637307748762 0.0021489989959517252 0.33275789062010236 0.0040379636977587677 0.78470485365461284 0.17057003938720916 0.11613643482553318 0.0084615470441949062 0.88757772293436588 0.006036591297697607 0.11597990623544108 0.11333957637187202 0.0016128659073825844 0.0030894669724490743 0.0025199961045791501 0.0030923139185013511 0.0050103143236826372 0.012074334655221727 0.013881747655791017 0.1146909210199169 0.83693466059759669 0.65911678405283702 0.1159706874230808 0.0038342002326114087 0.0024512859630220342 0.98699183822098979 0.59656867108895817 0.11499174975983398 0.0077053196811965119 0.0027478531138327342 0.35163273027942388 0.0038368400508135099 0.0038996828748464824 0.0031382430716007954 0.11477563364961746 0.003132594803137967 0.0015577516510631168 0.0090518590246523277 0.0051871956008491702 0.003122862694567006 0.0021233337002356726 0.0079119159762309332 0.0024892703477266648 0.0012107965010529095 0.0037934944197510739 0.0028200007876093632 0.0019528310323327744 0.0027658015267987925 0.98788418650668441 0.0012382698792288754 0.003827632001528023 0.0021064964534537635 0.0050843693952812366 0.0034191760403919714 0.0025073316157784931 0.69567620271971897 0.22697010830591616 0.11389342716364617 0.0028477290550363455 0.53058235838222267 0.11466339453900387 0.0040692707281967449 0.11497858034897969 0.0027110715415062329 0.0034492230067087433 0.0037340223660489386 0.011528746565887548 0.15486113683596636 0.011385548072719895 0.0016796342273787158 0.001754584944658481 0.11729062317699483 0.97582889587257871 0.0052469466784494092 0.0029453391596142766 0.11280035785512489 0.1121892047776369 0.039691544758629571 0.98008193169632307 0.0031877887727641422 0.015648436683622827 0.023509847062979025 0.0032609780153111207 0.11401227972583851 0.43436693700785778 0.0065200018818414862 0.11564787187452098 0.38566586761643956 0.11155847457417738 0.0031806441784285027 0.99564879533452544 0.0020832772690406957 0.030791988051445427 0.0025291243236810947 0.11396738673893769 0.0030512462787406595 0.0038094557931478692 0.0025000419986280294 0.0026592615971958605 0.0044855011776880633 0.0066006970917060447 0.0016434079537833196 0.23687746515517902 0.91004520573124514 0.031685376502692847 0.0067425073195316087 0.0046143873954938228 0.0042954534366253317 0.0022034256118396533 0.1582005100585957 0.0023886067534717218 0.005620364732644316 0.0071848942459797642 0.29875686603810686 0.0068098019257580855 0.032026183405249334 0.98499867612191161 0.0031986609639095861 0.0022866860142179432 0.0033209007895462612 0.0024123376937185926 0.99155042769071899 0.13162458254143125 0.004072044455422379 0.2164406851776555 0.98064338278978014 0.27013408585264559 0.0052373816295681955 0.001486513099143053 0.0017716480504072047 0.45041207569556696 0.0035766888848866693 0.010360800421647529 0.0024364387198288757 0.0043991912554945545 0.66217945029265568 0.0024397709959762663 0.0040811026251408398 0.0020108148271505244 0.37009745446716247 0.0050516453111968803 0.011336218152089746 0.0049941311857749152 0.0046301858143345453 0.003793096232623278 0.02447322122152136 0.99631864253462776 0.0023038150147409605 0.002296949067290516 0.5288355684283681 0.0084107640993514136 0.0074091871220286704 0.11689893993266011 0.0080685697913341712 0.12540964376439623 0.0030817797001315701 0.88153701799916018 0.0022504317044400282 0.004140486529265147 0.30669102798969644 0.010628147158023026 0.0033885299255691369 0.11699823256418995 0.0040935697207220168 0.0047796394951548386 0.01278727869896646 0.1118995732668089 0.01229348487654415 0.010779606894759359 0.0028398968104581973 0.0027645762349895898 0.34637197084916138 0.11280919748301178 0.0035212549297670768 0.19143084450920167 0.0028631768802053004 0.12056083621582131 0.001622934668930509 0.24734787717125223 0.52035109330446316 0.0030899289661554521 0.6367751551517048 0.0022968516044109613 0.8301620729241932 0.0016634332696781305 0.20097982432301095 0.86974904994303937 0.0023403781530775547 0.30896797095191064 0.011202018471202902 0.002731062992660376 0.066948972580966937 0.52706154082637413 0.42877760951251276 0.11427076354433649 0.0068794256681817094 0.0035344501342204205 0.002889532202780275 0.0016904447256560079 0.36639906558858726 0.0025956880878761752 0.03198420826103883 0.0042835364859003166 0.007699021014180788 0.0012649688033957202 0.0064197420674241079 0.0038839660882034836 0.12409214159165485 0.002831245449264008 0.0012538316224428318 0.89612388765573747 0.11547807585071942 0.1122162570901115;0.42158544812336624 0.0024534635607189924 0.006612164499405518 0.087029364831976902 0.42153325916372902 0.32510075723043447 0.0069112526612834157 0.3399801454469214 0.0042825290871469487 0.0044831805789798153 0.4159804936705177 0.089034782589153677 0.096492778882792576 0.0020871448732670433 0.087946387524957814 0.48798842021205291 0.01100850611996038 0.092206535123861053 0.0026834699043178831 0.0083260231879402728 0.0035434890019878803 0.005046851379076245 0.0033007056752113822 0.33933894858717356 0.0044083310546320087 0.082284603609621657 0.17533646403015285 0.003228573421764466 0.97725209449900785 0.89895855972619199 0.33683568095852662 0.0032672355950192525 0.0038156629017485075 0.018628364580083209 0.52259990661257127 0.011508248985286259 0.0021240067840803804 0.0049707122594404565 0.0078907807369665156 0.0016653095907117131 0.33552412546028504 0.0086334437617381684 0.7301786663680716 0.48165875146033837 0.0092874494673828717 0.0022956060714385855 0.67107960777086706 0.1651682778373175 0.0017955310484867332 0.77297547499625741 0.0046628400613020543 0.17098119970402961 0.0031845492900153876 0.0040933471532717015 0.0073833476688815016 0.26043450592283224 0.16535108080655728 0.0034277454155924644 0.98691311853640706 0.0040900474361880426 0.99084625106898816 0.42141634974874792 0.098037822690227081 0.0024330265930777514 0.004595469859244695 0.0050770799966716644 0.72358523563481925 0.0016810908657127592 0.0059226748857707295 0.097091870447009163 0.0062485377576359654 0.49549399721108744 0.0043125586186649086 0.0040272424933112828 0.17133725328292082 0.0056999284782275244 0.0039696530307634535 0.0096519374352307761 0.17040879718762342 0.024587610119923643 0.092732524747806258 0.0026820742988577849 0.0052502333206835292 0.09267088004569933 0.0057676270222629701 0.021826636560039751 0.0038769654638729878 0.17010895805277917 0.0034361277334701876 0.98461239391773603 0.17228810190116156 0.26012437666428523 0.0025524128460490949 0.0047299664547364789 0.74717735409225938 0.0046388870409806863 0.003386769653181155 0.10437123305882012 0.0049921447810899137 0.0041523659856307132 0.0099653997598516102 0.64330242846351771 0.0039046986604013177 0.0027044794196709509 0.0047581100502461218 0.16955242148563351 0.011416704506417812 0.83204549105374714 0.17173505890841947 0.66839548618155942 0.009891871254942541 0.0090027096462377137 0.0037943938911548514 0.0049390385201981352 0.0045841760474625293 0.0047041421207081012 0.18470968723340137 0.41360220170052681 0.0089835509034421838 0.74119687941576051 0.018428725090696707 0.0041785387390296629 0.72820267628353952 0.009833369536314418 0.73949805804222835 0.0042380050471191684 0.0054837500136024385 0.0058073628103514473 0.08872791118833237 0.40687782412516138 0.1693837287177925 0.86894712215184411 0.83665746081378645 0.0039264241368352371 0.49530506119509393 0.0042035296389577948 0.0057995483731347651 0.095281236801260508 0.0041764802392487005 0.0029432448166013519 0.25723926735930508 0.001188226696539685 0.0048050617812551927 0.032026253433175243 0.0031165155000699315 0.0023507666069083511 0.009594756063204115 0.0034118753144877557 0.012991159146904621 0.17310519671058833 0.17883032100530502 0.005804649681003222 0.211831328417068 0.0026649468845219332 0.0069678180456107268 0.095116902652656626 0.090969019046761898 0.15580954517186191 0.65325921410157994 0.010331331042903333 0.58051396350701945 0.50751997241250679 0.74128562151948785 0.017168925039632368 0.0027471604096788874 0.088684451053293631 0.33045035043429188 0.0058528476755456129 0.25491494329529785 0.006383880844289592 0.091985970951049878 0.68281282301703317 0.0067389343155771853 0.82354895121439498 0.0056415598515866241 0.012719599425293854 0.2594921328072094 0.25805615851850949 0.0059577518718146628 0.41659936508339918 0.085435684863483158 0.65986977761250931 0.34542642132508372 0.083572993352556954 0.0048154662728248365 0.0095553041324942314 0.58054406991288521 0.0032990185295630487 0.17547508644944154 0.73327526523094411 0.6489060893362435 0.25231646721964573 0.83177728282512731 0.0034698670059829782 0.0051457417490443878 0.1734743214184773 0.0058375565805924715 0.089259213680016186 0.25543712490491954 0.0075412799686331933 0.1131548929050704 0.67015484507139478 0.91192191587672633 0.0048635003783762832 0.0022741299264564798 0.00447432682523411 0.011905373770828832 0.014510615313505337 0.2552955482006577 0.18852177416211655 0.01006287531726608 0.020111782145553987 0.089920114963473852 0.5092704592335604 0.021907317705773966 0.0041453139252675122 0.0028849559985906679 0.0039703742229290611 0.0032614065871226249 0.27982173371216212 0.010658864912580057 0.0057794040244468067 0.60259235381939913 0.17564313342360083 0.006645172803800151 0.0025297577336009305 0.0038489165496197325 0.0084644674908863522 0.0038862793624407279 0.0043018806017034068 0.0096563649557262574 0.089591662531835287 0.0037438536414745394 0.25580788888432782 0.014577526922877766 0.17177916798323456 0.0047116270362440576 0.74621456344828541 0.262997877598104 0.0024297383031100413 0.34132708601042455 0.34691055292297307 0.50217328969164887 0.0037337373669744434 0.0052575844259373566 0.0062213918611226634 0.42140702324826607 0.58426905524466355 0.0091224989511931275 0.0089245457449685858 0.75002590695513505 0.0038152087844230097 0.1928019885780537 0.0038465787546218939 0.0030220914368246396 0.34325298479694893 0.0054126270415794393 0.0047594993625846606 0.0028422596451433278 0.005316906739987237 0.1764477527157019 0.32770267727775942 0.098650718079156152 0.0053473159718011951 0.0042294683255329844 0.0022957581130590415 0.89386784361758487 0.0018665859456086494 0.42287851544943456 0.0047415487178052232 0.0086187334978933394 0.014290884222846764 0.41303166623966037 0.012696657430388128 0.0039101900562607391 0.26693062699535286 0.43511757314596861 0.0033363411346803533 0.24892498173523148 0.33966471900417128 0.010470903193356005 0.0043501182080192295 0.25543608506491461 0.0029114396444420835 0.0042526308826940015 0.0020202430326576115 0.0064367859455865756 0.85514484416233238 0.004346680441186925 0.0028145468223740684 0.79204872186689856 0.0031716573468571086 0.0049484842718816747 0.0025940376067177667 0.65097609110020893 0.66369619806295055 0.091050984637327206 0.0047910610070726681 0.913932636906162 0.9636554037824 0.092312679947307824 0.25870735335716355 0.006714095901779525 0.011655334570280304 0.0037239904152621709 0.0066159931329837799 0.0058552421199145653 0.0044147083526083104 0.0035761592040093855 0.70666782979924769 0.5735422521683704 0.30025838199669352 0.0034898833923240275 0.086045353559550244 0.0068598926340985777 0.0022932114331871514 0.010254800451546966 0.085822943819869879 0.0035548266342906765 0.002612841796283519 0.42665448628830083 0.74421642895680329 0.19216123461810253 0.43168457528070825 0.0033828064450158474 0.17876151350352226 0.0037033336495285885 0.0034762789762724472 0.0039795560363046316 0.33105298866533373 0.89597701514260031 0.62988685005299572 0.17110945343965217 0.25691261399323839 0.0083919332284198636 0.003395530580591887 0.011733259414857778 0.0059164974770263444 0.17790350091501791 0.57802850000535044 0.019994631920085711 0.0039218554538164446 0.19367516216006542 0.004093089706787084 0.0050852416213784651 0.748559275557523 0.0028587780701461044 0.0036523641040440437 0.0045213209612400378 0.96450956135687571 0.26149720895696499 0.49546708699072528 0.0093147087220328481 0.49190217131320019 0.0049982853439409615 0.0080574548304092677 0.013357243581138621 0.0034609001975720462 0.25500668324011355 0.56622170309803066 0.0055862001709035174 0.0047159608059370531 0.55142673432112721 0.44285755753239914 0.5658842594446778 0.006269351695539876 0.97503211828442249 0.0033249274458170153 0.013835770607784863 0.62801166435161748 0.014118257615346476 0.39980687760530054 0.0054277051447202129 0.003506619643785128 0.0017831124418924047 0.42700730451731783 0.0040349629718177795 0.888913262193747 0.0032730189258977269 0.0028731306289146307 0.0032924268942940596 0.98140751505622603 0.27451259016338136 0.01153647227601627 0.27261213189455125 0.0053283622021122919 0.089834831704865489 0.095712847814609675 0.0090057704720772382 0.0076563270852116469 0.50607452906995831 0.0061179228267101617 0.0058439626776830783 0.0054432609957488377 0.091029578773763067 0.0056336779195803478 0.004605059996035674 0.0044071063303862236 0.24243073703670534 0.35621756377899993;0.50205075552210832 0.00083427746474284926 0.017059542705494327 0.017859380559400603 0.47590874549096424 0.026686381863029865 0.0045103375622845329 0.4394101298245271 0.0024417626044588511 0.0021391192106593343 0.99509870699441971 0.96150063671958752 0.0080542250695101823 0.0023449690610584952 0.47780653468229356 0.99662813702779973 0.93186168499499922 0.49704161006801129 0.0020308130297783545 0.42103727994934209 0.0017416809420920654 0.011257749551284415 0.0034970961412627219 0.95119851796990518 0.46873041100136903 0.49963478845753778 0.032362463768542113 0.0027400772702318586 0.023773209505820049 0.017843404540167744 0.47694827155926606 0.0077915964827970363 0.0033556439522469776 0.97223598313950155 0.99640370430963598 0.0025732434034264487 0.00077290825561923183 0.005872409350076181 0.98557180554600954 0.00063749535471504452 0.01866339246666654 0.47587841620516746 0.99090156371842708 0.46214674899655955 0.49065425715905986 0.0012663530505273501 0.026178927663184179 0.93797454398059243 0.0020438475036186777 0.9959894778132885 0.02452024578009103 0.015774818746349555 0.00094550144660405177 0.0013736956289844338 0.0030910772667252563 0.010194100207748408 0.0048662630340419732 0.0017458394075909006 0.98640390461223049 0.003563001193721195 0.97757837274112358 0.96268885085469846 0.51684540699533776 0.49297510194032412 0.0010265048428049293 0.013814815587010722 0.019714290810714744 0.015096754722292346 0.96909315484254299 0.023759238233513023 0.95227930578928066 0.015038520195341142 0.011093469125049309 0.00082200019122665954 0.0083603321126329809 0.0015348778484002247 0.0015378516721362323 0.0069721785820912137 0.019795585634661647 0.049039228746452071 0.035220267516431668 0.0010092453723229012 0.82941058365091236 0.014798656618613704 0.015988977865217815 0.011255437083555572 0.0029619081543809174 0.0021960825618844871 0.0012173599822851687 0.018645457919645673 0.017108117490380832 0.0028080025346056375 0.012361118755854736 0.0016812413089029509 0.0083599635724380412 0.001146552743762206 0.0023548440471596382 0.024167860762042817 0.00078643964248430967 0.0072343067619018604 0.94219213037908611 0.49434225852444519 0.0012168748523815646 0.012650381468230918 0.00042985745620862444 0.004895708452501939 0.91147280511179773 0.021333679778286253 0.056211617514488624 0.97885449102736555 0.0022852609213850966 0.9552118755732617 0.0036034541489132236 0.00063426398547385718 0.0022096575430705732 0.0023152279295891049 0.47356217508487597 0.014877828375910594 0.005747072718999287 0.50135442089531257 0.0065125048245256167 0.0044400579056324552 0.026850085654042379 0.499809083031313 0.01672758514226344 0.0088991899271078298 0.018192778258143097 0.97331653200286961 0.002282370507891806 0.48584791359726875 0.95115155192975664 0.01549674997646589 0.48773779702111403 0.0089780722275652862 0.0084508285742972145 0.0012112624265374491 0.98538224657431706 0.011574900819533527 0.001669147215657087 0.001858819526907942 0.0067406840632701697 0.00037376392068364959 0.017958415321394822 0.0022983532684096269 0.0020171942851435029 0.024522987975511855 0.022147020873775018 0.0022067556523616364 0.026847964359323084 0.0075497015484099102 0.011326384248503107 0.0010088125115376989 0.98324869660528602 0.0012215831837656791 0.0012672991388330761 0.013388269121934389 0.014812221905654272 0.023788200191774252 0.51571333706902112 0.0020994987464405404 0.02776486855674621 0.016485113659174825 0.97188598920491509 0.0018452155980478715 0.00056143341132405952 0.0012272831486073851 0.019350387971910223 0.010220090664511119 0.96003224326318237 0.0063030654755830105 0.012550625982888249 0.99028348838594726 0.97837927529243252 0.99524005349487887 0.0055982446974834343 0.50254754740187002 0.96033173538493233 0.0067489771707845703 0.00060151200923017924 0.0070167299928707901 0.011824491324622662 0.99341087987722199 0.011083231178841883 0.017434431995925145 0.0047708786730681126 0.058567565930503045 0.5042797193380627 0.0011773514090541537 0.0028873424125944814 0.95431044502097417 0.96332530338916134 0.008079433026884613 0.52239148419381387 0.010430976054654669 0.037659805335312047 0.0019896919042254528 0.0016285232771364364 0.50362735383230028 0.50314088904071197 0.016338491287666419 0.95893843823562108 0.020025549508100437 0.97037195292809275 0.01120914753753487 0.0010462524081328085 0.011300530990385756 0.95670502302343774 0.98793248720635862 0.0041962581217254947 0.97031998487300575 0.0058347806876629356 0.014913359787886925 0.0031197342806828614 0.012971059454660948 0.48449660796810035 0.0023313463968515904 0.0021879302505032313 0.00081536278631233385 0.0033388351602473671 0.51204643872502864 0.026513577030286763 0.0028669796869526857 0.56654867408578835 0.00073904995941257139 0.0037395330231631491 0.011014077294284547 0.0011607989104270621 0.48110072972584894 0.0021180186815703841 0.0026486457715013422 0.0053428619004035494 0.0037082937518037812 0.016510156589880656 0.007279046364740807 0.47808831380670364 0.017314266171107207 0.050620776657883192 0.98432898392945423 0.003440619449941602 0.0010387914670071557 0.0027482622311079067 0.49728611013581164 0.016426622715420537 0.0085158548458446996 0.95403109899334793 0.98927489715541794 0.0018953400110102566 0.028934741075427449 0.93714293642146584 0.0083860201296920116 0.97160986700338126 0.005211115943471378 0.50482413510917534 0.0012722164668262184 0.0042005425378045863 0.52637492932912777 0.0076964438599567107 0.00055727433310317738 0.00343996567205084 0.022266623129620654 0.47895573237739797 0.0079395029666084992 0.013990816563562611 0.010839390101421563 0.49929649564436512 0.006178559051039003 0.034763968420004975 0.0035317683327831511 0.0063549493431133775 0.0033103770577388898 0.0050625850959082367 0.47639925382178611 0.036359327441552652 0.0080639011033868911 0.0019350490100068229 0.92578688128203956 0.97604385026112439 0.0020867338983640458 0.026512942025292884 0.0059421695757914984 0.0009688262319100297 0.0047708835580476568 0.006831379788487143 0.0015580486199860012 0.0050525298062154955 0.0019551644598488592 0.001531025656072664 0.98343690845764997 0.0012006155023768861 0.007765852661413386 0.047547915824053502 0.0015497581613419698 0.0017927587271709185 0.01066672607583175 0.010421555830867443 0.53336455477968647 0.017562009804768741 0.0041577394604102764 0.98769686156998293 0.49389784888979266 0.0013682401487036316 0.0047645575475930369 0.0047426537327347378 0.47750644856586932 0.0066593743583844818 0.006119522277043701 0.0049058756520559358 0.0019053769013012683 0.0015405807685297823 0.50141114398332287 0.46332170895573155 0.94214778588109804 0.0097362267654352869 0.0036042104921562117 0.0023015524630685363 0.019462886588237416 0.001468991258626544 0.0050315932504847571 0.0012221303251008838 0.015966032301608792 0.021731807623094006 0.9827911270497669 0.0061640767963723848 0.99101781848391468 0.0033373190571160949 0.97321852444701218 0.045630484517978805 0.015861657987948332 0.014080245405564752 0.0054606288979124349 0.058562292923977535 0.022142375627515518 0.0026389913310384591 0.058533891140216482 0.0097803188282588431 0.0022694888115490195 0.96531646517837499 0.004496732017015264 0.005906921623710119 0.9646436965298929 0.017596813743018108 0.0040915871959956215 0.0017949987324076416 0.0016068254440221997 0.0029582279402229242 0.95033732715546293 0.0048631481546261412 0.0015321201679041486 0.0036777836589285432 0.01243643695001137 0.061023115545439488 0.99111181006470173 0.008959968414050317 0.0049562468506060588 0.0022525868245433008 0.010519143382468196 0.010614116326996846 0.011568507184997865 0.0082048059658989016 0.99435053419144892 0.0099377748507208513 0.0014590350197551706 0.65061485606267566 0.50415205375788674 0.49788589949240203 0.0012638837157562025 0.96684208990508713 0.04716686145954635 0.98628010688319701 0.96147249434526683 0.072543697582080277 0.96146966639837272 0.00082457984598255938 0.0012213693725083186 0.0013783640980663963 0.0021300364699940442 0.01927640001960413 0.43139302100476984 0.0011132151977664407 0.0017210057004499778 0.0015707828736889764 0.9947862006582231 0.98229156039094789 0.0070609756160864671 0.020030592527189566 0.0034167259088737616 0.0025348154220864632 0.0014723463250892414 0.0048935221382711913 0.006393913069787812 0.96517465291521432 0.0046216074518307193 0.0031241072115134379 0.0017420512711604648 0.96042587952118597 0.0091378883413959361 0.037863786958673207 0.020567591559506722 0.023198847519868025 0.97957209598911321;0.0015784777935344439 0.0016892562663827909 0.98611150555472327 0.98808648414584244 0.015889930104361339 0.40766823651076489 0.0031392277346450645 0.011772122961792057 0.20956409487642114 0.0023442316446899425 0.98417357302403929 0.028321016245787718 0.57384226866204868 0.0014870126230690716 0.21375711961002558 0.39055760407616713 0.011868864352589215 0.009523299966285162 0.0037229418146194401 0.0046871290096176235 0.0038704043627494343 0.0069604901889897316 0.0018003811598581543 0.98195437454062717 0.0050276024324176216 0.95277991108752358 0.021108104996423762 0.0065794769765128063 0.20629046545551771 0.79260811240106488 0.010172111341448763 0.0017452355949906396 0.36969285875096014 0.8202486880312313 0.56680227791552507 0.0057475045802616066 0.0035506274044297109 0.004667888301523905 0.0096490422434576222 0.0038004138609983007 0.015424372173607408 0.77455466091972902 0.047746770887612991 0.18826804369670175 0.58294271615880189 0.014593726126112663 0.0033316518732254977 0.0082715603843872988 0.0094788834890892903 0.61265620544290811 0.57818227120434706 0.0050961206310483264 0.0045180917673560989 0.0059514664151593399 0.003110845310779457 0.39982980252492833 0.0019245643287280946 0.0066328541155362634 0.229282924454103 0.0042788768958331646 0.028775374098278295 0.0038683153280900796 0.003204755238857584 0.012866041126608867 0.0015156304859053776 0.0066456676240067795 0.0046950234222436545 0.20338173003452978 0.0051882364356481492 0.22787683231451861 0.0043194567340791605 0.011842677242530898 0.0058242958799252864 0.010039679845282029 0.00219739620806879 0.0065712140100661759 0.0029784153295068332 0.58033642575707278 0.0075515094172179309 0.98487932951756596 0.0053670408453997589 0.0038138563212482225 0.018985668271512549 0.94418845634070236 0.015589014366779497 0.0041387963302920829 0.20283526347030922 0.0029512141668865568 0.0012242209218350682 0.0097746428625535894 0.0078877860949855862 0.0011650186125625084 0.42804547467151904 0.18212681906917874 0.57620734039245114 0.0014705584773724429 0.00088426544919143564 0.0088148608208679959 0.0047459345076162722 0.0050777533169864379 0.01803688681048423 0.98208911977084346 0.0020883524383467364 0.0037161305411579715 0.0028081240325370546 0.00691163524705804 0.019098559084197962 0.7858355618349222 0.0036765439937698529 0.96904273910509597 0.0076235550535343321 0.0016589871085625849 0.0078974598822410414 0.0016770570402835849 0.003737718530229475 0.0063969544142951536 0.015454885105057034 0.048677785485316712 0.19833689620771397 0.019234462515407887 0.0033367165507527663 0.00091787193683411832 0.0058215265692407592 0.20842787684343622 0.60432641866496484 0.0026524953791576692 0.0095708286652914087 0.95544034613962592 0.007937156809305207 0.026748247828631486 0.0059999766336245076 0.02277319593840732 0.0047778576056979891 0.40042663718752636 0.030311064539842232 0.35847767313617296 0.01005980240648954 0.006329511960096827 0.20823649673560635 0.21599324855047433 0.0060207752443926406 0.0037990973866605694 0.77708395959181797 0.0041730567123362608 0.0016494340181810289 0.99363135017920468 0.0056252414699589776 0.0083954349197527221 0.9715023697234717 0.0045932780737185045 0.01136935519805711 0.0020810563102526087 0.81362951754270729 0.0031931717255620656 0.01543033551703514 0.011208347786157985 0.022302436059433862 0.0054822853654700274 0.0017836730413136014 0.0045708361879577483 0.78670417256125336 0.9778128108847095 0.023745816080464031 0.0066113538588958836 0.18818158944477492 0.0029589963225045415 0.0032657919162380564 0.22238146840105427 0.96783712294922641 0.0013559347213825158 0.35914852787933915 0.40763013293014261 0.010473531247781401 0.64793475370187692 0.0021318427553329721 0.20622261288921878 0.94352511126776184 0.5690879233522983 0.86369714506028283 0.0036265564037507429 0.0046614435437843816 0.19690367477682957 0.0026984301899922753 0.008684736342540432 0.010150675547729549 0.010942128229472341 0.022532256618634703 0.20148492654983163 0.006956855812009023 0.010260198972763535 0.99662845494601893 0.002806937878908101 0.0051988875743742462 0.0098394885593222937 0.0067882508934419238 0.0060318570953094139 0.0037849111686219968 0.012668307371451974 0.0055184148888416783 0.57984290784721293 0.017399861605123447 0.94982364502700722 0.0067582767266854606 0.0076619327734937506 0.0011004369780240313 0.00621513570992791 0.18850874907424214 0.98369860926833907 0.0064917721253776994 0.033314388450888507 0.74904618568328818 0.99319290622025136 0.0084410870815734753 0.019970306669088774 0.0068932401562394469 0.0030412976052822237 0.003395251587735099 0.0026693081732520152 0.0048797632999280543 0.77958310204341918 0.0036484908956299278 0.0014826660780760707 0.048497742464177443 0.014611220367527093 0.0037311135296067338 0.0044422677548765829 0.0098552789952797114 0.41248117516109561 0.0020248372076606736 0.0073499277749844057 0.58300731536698902 0.012055946223701954 0.0037928147309737614 0.0054555571181060768 0.98196745799324159 0.021157550923604537 0.74331809106375824 0.0062542574250832803 0.0091822534087570972 0.0041278463298828321 0.0071354876386077563 0.011998852829409715 0.010421519822824049 0.0062538611578871507 0.014940166686631871 0.0075881750357433778 0.002770872372725758 0.019140437199471446 0.40676754914446728 0.014270053893839863 0.005195423536198009 0.0021043578876698697 0.79458769351040881 0.0036309275278292629 0.0043130003211526149 0.24040646457792988 0.019734934803332237 0.0038241194007766393 0.0052734756924437878 0.77986198072152857 0.96821711790827725 0.19964768830962859 0.011503507723398379 0.0030368276087517376 0.0025405419712016888 0.20666386588729757 0.96810590866763402 0.0020506993794101539 0.0055216578910590262 0.0021697128393049223 0.0028767392849109565 0.0059250614005554097 0.010127970112759196 0.020457169390360463 0.0027496958030808248 0.97726383017812002 0.21452579008534489 0.20108711254992589 0.20543389691263458 0.19179288547717308 0.0050881188403478841 0.0014165916300255094 0.0054049907166038944 0.0023477103049315169 0.0025378484596366782 0.62440599684636089 0.0043919710200003414 0.0044963512415037727 0.19985737498066827 0.01323772479868471 0.9383345487439767 0.031545398076051265 0.0049703932062302048 0.21151467224584453 0.01114250253780099 0.96227806648859637 0.0022301734635254674 0.0038058260789615266 0.98062404224445343 0.9966745419154015 0.0027811640638580096 0.75120494120668058 0.0042310245590707913 0.017419977923139634 0.012399503856342716 0.0093652589388900469 0.013439472060765709 0.19450494531599383 0.20584101547588507 0.0036746399981232854 0.008213106946337324 0.0077982149088467456 0.43356261916079564 0.0067699178567775468 0.021840738729229509 0.0056989610550232869 0.20308174111131316 0.0081856704749880861 0.0026070396569164091 0.0097887538647697427 0.0055954271737288161 0.99358343874057042 0.0065498512071632724 0.0034293066758429545 0.00089064649566161238 0.74540814394012023 0.014212073145872476 0.0048568081321053941 0.016418651479907464 0.012832130320197845 0.97566892107015968 0.0087409874418338234 0.0035481412257988131 0.0054172794730197272 0.20219013027336327 0.18146369362650411 0.99339986861916996 0.023512309500824412 0.021414592066440544 0.0059498389313073332 0.78344180124397667 0.013214674768479311 0.0091821391541532741 0.0082847014541509896 0.40216483586125207 0.012819367879265523 0.20509328564943041 0.0021317641662661055 0.0020873316924673829 0.016068635630975225 0.0039757337894328545 0.40899548470472824 0.19064931596019502 0.0069459107840642558 0.0023435192049285291 0.97829194066534875 0.0084046144362899273 0.0027779511573355516 0.018680122360414584 0.019044300276481477 0.0037662402042456713 0.017491391025024668 0.99611659971286581 0.032961646515074106 0.20599451060389135 0.010979383282209211 0.96542469623622784 0.012569060756375434 0.002735806549288628 0.95997668373283584 0.65726447530655063 0.0077187335186921068 0.014786625604959617 0.0013708832794682648 0.21096493956407525 0.0051114477420233784 0.023694187073114055 0.99085727049042138 0.0033278316384450094 0.0049145955941566353 0.0096135025838707932 0.22442185149734553 0.20454821002174992 0.96976707375221283 0.0045748008263953839 0.0031866831165922385 0.0018936384575038529 0.0019832370092466938 0.0021196458758502667 0.010349737846102694 0.96934577702197078 0.95396048513087361 0.0046618023126417316 0.010236534130379246 0.0067467667557501079 0.0098355220517631174 0.20223110476392911 0.20689829562307949 0.0037201248299087719 0.96250044787475297;0.55335976544132581 0.0059501619497253659 0.76186842761274876 0.0053425726738743793 0.021398077391429828 0.0070402820581449022 0.0055021378337187163 0.22601974160966964 0.0087323477436958667 0.0069370764760188896 0.12007909270913748 0.44776814861807557 0.85604782498050813 0.0058895342675161812 0.22522602167813588 0.01098677677501691 0.0073005718688647072 0.11537850158713465 0.2261047189824546 0.20875235402369496 0.0040364798652804765 0.0095548891141409194 0.0052899764078621547 0.21342849621630094 0.62619207702081203 0.54650997598325901 0.11150335219429572 0.0059862038316657526 0.76155905097975674 0.0056698151523715389 0.33398340743735611 0.004403164657576765 0.0073453815523341201 0.34740977517922289 0.32863345854096054 0.0054886802928724955 0.004339175133273393 0.11996348018578568 0.53719427083281956 0.11815452153358366 0.45520912335121366 0.013770334828788328 0.21588479540298319 0.0065336589702737098 0.21451087566793942 0.0043547479070690821 0.0058598623908383681 0.0060332408134587245 0.28161537741508347 0.012796210665244175 0.96586491342424963 0.31055845597419268 0.21707522597194845 0.40581785912818363 0.0092822876578099595 0.006313320710475156 0.11585564162136033 0.33318583291607445 0.11803730102349597 0.0069395084542063362 0.11496566469977124 0.10546939213804836 0.93802710000085154 0.42666469443752486 0.11655733585343497 0.017855937568856641 0.10987636851277585 0.10298254104725579 0.61361315733165978 0.40911903143017231 0.0099895082958223001 0.006387577202861261 0.0086910800399944942 0.12317500430109091 0.11801367223450823 0.011090435399860585 0.010876051511562118 0.0040352103461095551 0.3400312600661296 0.44884150202590223 0.016309556702690159 0.0040153584414950828 0.10639800692497732 0.0090144551645079413 0.013338469561053182 0.0089611031928065344 0.0069544234092978937 0.11469465513627151 0.0062116465870704369 0.12262143874051323 0.34540167416926632 0.23056877669241277 0.0098608331348115589 0.11254585322376795 0.006494648330239358 0.0063759952795515405 0.0038445182736869489 0.2340484209742007 0.094024502065733623 0.0080531102233309618 0.011601559658480771 0.0083628512720813029 0.0066511412347928242 0.41058868530672388 0.010330010475335799 0.12504561065253025 0.11735237764423788 0.0046176815883866027 0.0050212100856680056 0.0079248989351175629 0.017169821262413891 0.016275329611057036 0.0066646040081344143 0.006956848689429247 0.54920238966209767 0.53759047573192742 0.78299108014595742 0.33112949079390636 0.0078183192586767439 0.21016177988959311 0.0059377342639606095 0.0086091810181933189 0.46071313162535388 0.43723861715712381 0.0049855100465021462 0.0081812142277367505 0.013239323053876212 0.10409660075988328 0.0047868525959625548 0.0071425022440441991 0.011011411419750806 0.009967932172406907 0.20979981149243376 0.64224849333771283 0.2360697605319344 0.0058155039659588716 0.75707953934966432 0.12211090760062109 0.0090725607068839424 0.008970200734250271 0.0060939440272643926 0.0031633805914326081 0.11171653012990887 0.00642391026840833 0.0061450609820754018 0.07862742275687265 0.86731309834762182 0.007218073862402535 0.87084463464937123 0.0088689139031169553 0.23088065982809614 0.0054645903962877718 0.63824255915105932 0.0084035500045349047 0.006853088288217144 0.0050827642242487862 0.010509617296803608 0.54854304806169474 0.34338638320727 0.0077229322157029295 0.43323209958437042 0.2291902294695275 0.67170490486092915 0.3052427160823063 0.1192277815705087 0.22733716427432177 0.12029408655911658 0.55518598334726699 0.34717302750530843 0.0062406657887579013 0.22846269005973838 0.75967629086504385 0.3288411430585656 0.23201636601050107 0.75700358647063493 0.010651476536990532 0.77092275671364807 0.012667854432092659 0.0047540490960637349 0.11376836081293368 0.0079042914597691367 0.97332191381942068 0.0074105687838051104 0.0085118973893491337 0.24154276816194034 0.23886309487340651 0.22782287391409226 0.0059398779495637467 0.33053314253868138 0.005989416326936935 0.12002465139858173 0.004770690053397468 0.33392993591556813 0.0054539633303786984 0.19685786209278716 0.22389914306531428 0.013176030515291298 0.008950786138014824 0.0087636279603521307 0.43982751800357606 0.73948253645136663 0.64268733649244325 0.34056495139623344 0.0049781648458771732 0.0043249706269133667 0.0089694242392037993 0.34607743818471864 0.45941975442004424 0.2313720379960145 0.45090348135328162 0.13423231235032237 0.95551962129877777 0.0082474847908239196 0.011862888874579897 0.010996957897369477 0.0066513907339873796 0.0068173366189759489 0.0070311025640407195 0.0061318759455222249 0.22354129991641086 0.23150371104370954 0.0077777057093489869 0.017424891630710579 0.0094339626398723033 0.12139553332778048 0.29127830051306591 0.0055919114796387209 0.12318050449025369 0.0060789688251460736 0.0038470760266261107 0.87008715798690561 0.3146182175152864 0.0055839322034809385 0.11901837462800512 0.32783008629562183 0.11578639898006685 0.10017831696635231 0.31749730730240511 0.0046853742995628788 0.0031712662875090394 0.010893178041846599 0.0042925149291200646 0.22995594207879622 0.013840019266254611 0.11263374495134627 0.24185473216660847 0.44691718903765359 0.11980813512259914 0.12748306219840114 0.1121515017436695 0.0074786730101793564 0.0057238494485517188 0.21724531434687594 0.0082345380093370672 0.12365495906502368 0.11031919348257363 0.417584671481319 0.0082374913907214617 0.005500904154805834 0.77005854552931985 0.75402638566516389 0.12222145680380792 0.22639087744690767 0.91406954705564125 0.0067098888887711164 0.45874494802615651 0.33744240125504515 0.0033504114211705162 0.52335074662528158 0.0062431236579872677 0.42420225662970457 0.5541842229145939 0.0073937712491438752 0.86582693036154845 0.0057933956275082066 0.77951621365162771 0.22461396831591063 0.0066836741251727035 0.10467350523104114 0.01433239708669215 0.23244966419200563 0.22492470399607464 0.22738051288929853 0.00708911494873944 0.09841811271108078 0.0063363800463771217 0.0076895457429616764 0.017089458427935474 0.0075956626894100234 0.0077678149585069288 0.33714207066431184 0.0054757053919672598 0.0034282413888763342 0.42840568604867002 0.0055424802734367522 0.010896667742744824 0.010018058195590925 0.32018435234281595 0.013519858747889402 0.0065995035616104262 0.0067789210249946247 0.0066466834215279831 0.32332340550460426 0.010752141881207836 0.43651500450082775 0.31651341250945036 0.0071508382383077976 0.0098842741389749758 0.0081524288774978432 0.0048585324598817946 0.96446408312210119 0.0044065855362742648 0.66421408605136256 0.3317329792725453 0.0071198900571703989 0.0053496523218952777 0.0076109836364104833 0.23203045909077782 0.0098906053587307988 0.0099384451104048421 0.0059792213504601165 0.53565670083716466 0.0096964571270501902 0.0093137653933074577 0.0057157841039117991 0.011438611258944398 0.6548042005102348 0.12392805266879384 0.11051297020246403 0.0091529001013453491 0.013614471227457684 0.018084255707071759 0.0053771810103886222 0.22749348288421589 0.011826870362063978 0.0081146240866310382 0.0083322000492082673 0.22934162155412327 0.4424695088098537 0.0082752824555155664 0.23717695460288526 0.0047645324182785109 0.22437655127683903 0.0042845342504141438 0.21639008160890863 0.0073572333568778852 0.0070869518712058342 0.0050359994349798379 0.0065991720689692682 0.42868281343011871 0.11894966982836144 0.22681671895095445 0.0092087496069841006 0.0038275443912485045 0.0064147521253083272 0.64928863892137945 0.0068487530475816252 0.0067607328073252624 0.22570193085266269 0.0081876317904632581 0.010275635830839808 0.29844591042275548 0.10710277761918316 0.22742769581971575 0.0037262652730796928 0.45456638712831388 0.12245789701565217 0.6566802909462941 0.11869654730936612 0.015689600840791539 0.010483143048158165 0.0074518940952098484 0.010222470086287161 0.0065774116832801564 0.091879826295554967 0.0059583641409199865 0.3417797480561427 0.009019877868197133 0.0041882411358850503 0.0055456247707176588 0.0035771936216142924 0.63897388459589721 0.010837964847485577 0.32829715240240215 0.011866847844445347 0.0095482771720681106 0.0039133127605510609 0.11893371143189618 0.0074452948113677957 0.31755663366831055 0.46233868655907556 0.0057753042464939886 0.0051936536213979829 0.22980808650342399 0.0088792491935170727 0.11065226080339677 0.008250704507684118 0.23105196327937333 0.6443637629357577 0.31056567837663723;0.0034348831946844505 0.0042471098347387102 0.0079286637624822812 0.010517725312676172 0.16646302338070579 0.42131431004452574 0.0053037627335831439 0.286729854555616 0.0043769240445754136 0.44615186119307104 0.27693985795979709 0.25304463650026221 0.41960441139197896 0.0070596436707169672 0.29090843668136673 0.42805031266126276 0.6864295247088863 0.55443724187443 0.0030666010890642893 0.41187742723993936 0.0017492335896593741 0.016769390104743463 0.0039368578233805827 0.011902679174503798 0.0037994146732845493 0.0049182028607123278 0.43643555900560327 0.1462829597543924 0.3065122766888842 0.43536399260068742 0.14549237960953504 0.0014410910178899638 0.15079817403249662 0.1355959228991295 0.71794554434990587 0.0049433412816048353 0.14077468152034739 0.012883195754039289 0.022286512805782629 0.0044230193491498395 0.14575574554287535 0.44208162074912727 0.0061154425730277438 0.012468910409891546 0.015947443956648599 0.002887423510193624 0.0024863715734083974 0.0036060459347142413 0.0065232620704584248 0.15108051486145802 0.13742902866983506 0.14544750457946679 0.28251447958938442 0.14685527239365459 0.68493079413966018 0.30454873214720823 0.29859968466836623 0.0062351148010327071 0.28564051437822929 0.14860497018626123 0.69987540447443797 0.0066294137141012311 0.0090022515498525395 0.0041771021508684074 0.011351283630306533 0.0044311278698386759 0.69392230673714317 0.0039597122119981584 0.41675720953696055 0.3948833428274019 0.010225895045097369 0.29816100862199935 0.0038006096332692451 0.0078268253713419025 0.0039444983903538693 0.8302207961008633 0.14867030874626655 0.14347615558852742 0.0080865963396356648 0.14682735537173924 0.29125065284398177 0.0042423896165956635 0.28031462945521324 0.0061989436869729804 0.1526111961987778 0.0033356447753972477 0.13708791036488682 0.27351251212169803 0.0027958548333774447 0.014748187650158957 0.15737655574235046 0.42422382646211731 0.43811174521637514 0.14662102430211374 0.14364625020725216 0.8344952853787424 0.0019784400705425238 0.006782659640133009 0.023506826783925447 0.12355333461090474 0.0067128590985600575 0.1485393324391216 0.0048228398575910006 0.53327582696666709 0.0059723622485252786 0.97561852670263804 0.006136592438391676 0.0092690915312479034 0.14934983768014828 0.57567491797407389 0.14857748064001425 0.014812130629601305 0.0072009690212049577 0.0075946000431150983 0.0056419274914847588 0.0030978837503051306 0.68603351719415351 0.011310371668071069 0.14870681418654483 0.012906857533852371 0.0040511229849126366 0.0055048568390508347 0.0069302073275886297 0.83315291921080614 0.0050084746141465953 0.0027664230069885561 0.0072075436637782844 0.12674978511625093 0.13079801413766359 0.0078455463544625705 0.0027192065120763384 0.55764373536899214 0.0063259303970739367 0.0041214577566454375 0.28499379150096754 0.0038364697885513725 0.16123452818310363 0.14682668734022508 0.0080375187191643414 0.543690601393086 0.009271378195166536 0.0018472328230447344 0.2862148316239953 0.56454974646186973 0.0049691721439761166 0.33118181982418865 0.1393353458003502 0.0044705541950288488 0.85454428227434909 0.0082133021809858084 0.96915779059484919 0.0048223577091810292 0.29529603264379295 0.0047285642984045565 0.27305898391959516 0.0035716065457657787 0.43574609059585134 0.0041610731707821709 0.15098842713945962 0.57688001361256613 0.024360995127449152 0.72322066187186074 0.18007399008018615 0.017225989930965704 0.0045576136159471209 0.0030010764546159001 0.2917112164800148 0.0075738604340824817 0.58005228405183396 0.0037279676772897972 0.005538105666190664 0.8285460676371087 0.15014983815198377 0.14853843188952795 0.67058948676802854 0.17854552135113086 0.01609869561849555 0.55341835753804502 0.0035246958123971994 0.0042643964674710707 0.003778499354912597 0.18106665616332346 0.023280446744860229 0.0030981047648820318 0.13157493074854537 0.56842405569572796 0.005050087297844591 0.0031628292000330325 0.81895524360887728 0.13648742467893488 0.0034994679937372592 0.14179556963629103 0.58756640844867725 0.0064752951372181906 0.67121626350890862 0.67836746128294945 0.67172658546699848 0.91243434104960897 0.0065408261929480989 0.0055922258628135204 0.31924732370760289 0.59541325426149616 0.1650782968125766 0.13755311838824694 0.0045106299094938556 0.010942765735660883 0.1489755965087303 0.39889446212707685 0.98307985270252862 0.84575401602134415 0.0075695877479571806 0.70590870627410984 0.015764716455698463 0.16248427208136243 0.9363136756226581 0.0038680995271599457 0.00430154495640153 0.0051324967619359729 0.0042101605742183813 0.010149266082888148 0.14707332905561551 0.0022193179925132428 0.011944078810974632 0.70005504538808705 0.55436258841139641 0.0051543791308725825 0.0038155005716464271 0.0076340734398835548 0.0057156772258097361 0.0032195518121554056 0.15451191609535947 0.0046540962351147635 0.14670482169989624 0.0032279434748645457 0.15216252479533895 0.0037020382746191026 0.0084121410097383401 0.55181216165404456 0.29251511833473071 0.0025284421456850752 0.0072685861993690582 0.0040218083196161556 0.97219610843569237 0.0032719371067722993 0.83581183913285462 0.010285826225149196 0.0084297088411762686 0.53982026846813347 0.15784231057754228 0.14181516804355312 0.55474033502343501 0.0026720600252837612 0.0065136229075161318 0.015110639749155165 0.12992149896128607 0.70347158591589876 0.0047696960317476665 0.0086676115006662918 0.0020837945798817857 0.69151801298562166 0.15526199430563972 0.58177908197845452 0.29566536734320992 0.0057550812101411341 0.0046419550824457791 0.016125194634934038 0.8466188447907983 0.0041905627484814245 0.27123691479223999 0.0044460264143805772 0.010760105508121759 0.012243681385433476 0.14885464580050956 0.14141190430632367 0.0054429578356543686 0.71338718971338022 0.012583140583575762 0.0022558463561801615 0.0031628973431360409 0.97324300828675436 0.15501882704046194 0.0046406772372710398 0.82693524616595748 0.001979164857303465 0.0043423450033351239 0.0038613098697298028 0.0040425387833814552 0.19301690977892347 0.0038064520780147128 0.41593998118784525 0.42506262156957508 0.0050863825373046014 0.0036705044971587133 0.0027863462104858175 0.0028827518628325301 0.27740937479273409 0.16166713491724252 0.011239052053213135 0.72422732639250553 0.010903545926659262 0.0076141839654939193 0.0043842847633304999 0.011214966660086131 0.27711579447397727 0.14689324236599527 0.0052255074166461576 0.41419966352943222 0.0025209582003967723 0.24304103149827128 0.0043884300900842851 0.44514623902814859 0.0039396837728232527 0.0034057916992477739 0.0057643574296212191 0.0029265032652248781 0.00282169121600234 0.14409540033775542 0.0087385127320428087 0.0048877409224362279 0.0053681020041233263 0.14589633790229301 0.0059195057923101466 0.97387462312361117 0.2893858325827372 0.0033275319852640855 0.422850381233702 0.53578142701028864 0.0051371112530948617 0.0043446674155463924 0.27985700065496821 0.0081669696243654687 0.010306359191921776 0.41969855220038538 0.97158456867126808 0.0045385925628708395 0.0064539748786212638 0.006212710303038483 0.17388094017125205 0.013404790639452527 0.0066059302747626253 0.022938579866180583 0.0050147240882743695 0.84986848071413723 0.0052113205006201957 0.2801962452947388 0.010270169534454289 0.0062238638768176754 0.0047858975763481575 0.0034928067908895277 0.022087204818884654 0.8389203540683402 0.14528121324577023 0.68363145991380891 0.14689056518354088 0.0027097545043770479 0.013303631526389621 0.53805480320479404 0.14523670920993037 0.28019299082299354 0.44547508434939015 0.14635202182683452 0.0063981317961501038 0.71512259356590613 0.55381460926617532 0.41831609484963433 0.01985322597462133 0.981299754287416 0.025934162275654066 0.98366386558337626 0.006477604716571622 0.69231053534919795 0.0037982737345597572 0.00691919414626351 0.13880326482869326 0.002869967916411126 0.0069802405750411306 0.27641352075215109 0.006179349131831823 0.0031981079813214715 0.0058194067872154327 0.26291838728677208 0.0095563008678574042 0.84147939851046027 0.0065699329623626901 0.41727062032180967 0.030813764980991608 0.0066543492778628624 0.15134821498446205 0.13320003037786962 0.0059714141848228354 0.83791762309948004 0.0069614678304434768 0.0053402995873957325 0.80737674969929552 0.29533442705220514 0.0037705576425806075 0.0052759928577190349 0.0057173583442647188 0.008127190638005875 0.44444491675258391;0.00181117429960626 0.00056749699043920051 0.0039941567086050588 0.0003126437287176963 0.0011888562015150584 0.98739815248521257 0.00037721773928608174 0.99440893331908031 0.00050476330050386927 0.014518179189333666 0.98575313707684942 0.0020510855306161949 0.99501434569128189 0.98832536688314043 0.00049681318196391543 0.97757930783014235 0.0045389211355510006 0.0050706624535945787 0.99432997793724598 0.0011373556841386969 0.98349891409277701 0.99955496951503831 0.011851743784551986 0.00027288017783806998 0.005389814536795037 0.00025804742526571475 0.0016845225365604553 0.00017032229944171005 0.001609486980741402 0.0055790481795058465 0.00029406296154495552 0.064977597020666036 0.010531309669508541 0.00015395308829612336 2.4314355051561734e-05 0.99881320183402877 0.97936674602396978 0.0052797103653283587 0.0097860594882198514 0.98455137423292194 0.99934975572465712 0.00047829610247472349 0.00074769265908451678 0.97949917906899053 0.0052832729433657608 0.028837912448131966 0.0027165834482865184 0.00080168476605490765 0.99720356328947379 0.015676448909102653 0.0013899359136029907 0.00024283683563881459 0.0015122196388659391 0.00014408616365590692 0.018894401465487744 0.023028969880644005 0.046448934303168814 0.020918350562767314 0.015620928503035966 0.99998670974473536 0.0010103941864901325 0.99643033269298409 0.0039300413988198873 0.0079202740138691451 0.99176231296557504 0.077482329197824426 0.98356194474740921 0.0011363330837290463 0.0024870537272353465 0.0021585216214709984 0.98958218742611093 0.00052633003776449247 0.00094699492165793676 0.0042440111338526458 0.0012289230667086365 0.024940097199523673 0.0032584141766023003 0.0011869711576757253 0.0020757035132833927 0.0081117773883698056 0.99094075872003617 0.0025973656688684297 0.0019126739620555111 0.0055941754689086461 0.99838278595461372 0.97651133740062523 0.00043688619601719894 0.029120062596200251 0.0011210246926060018 0.00088593981070441081 0.0017267542055178962 0.99443425741919611 0.00070162687590717904 0.024013055678271607 0.0026468252430114012 0.019518194921417518 0.0089443479755798392 0.0014449794065407116 0.0077131906005296329 0.0010599681641918777 0.00026629613519359039 0.00081441541559586781 0.010676711283501072 0.99704326635830265 0.98298124790795671 0.99923845026749425 0.99862373450260633 0.98745832773655651 0.0035695961037273062 0.00021552477165806322 0.002889848776931549 0.0048311079726448781 0.96614862790664058 0.00041652636026592009 0.026564979220550487 0.99776537407717425 0.98549878005135605 0.001408448726345228 0.012761366041780102 0.026093907217630708 0.00087520987890084376 0.96749836882743956 0.02051716383838079 0.0013475470833690427 0.00027921693037253958 0.023323041309701652 0.0003174466928009815 0.025308346442941772 0.01530449298462498 0.96727485609265973 0.002506278906317716 0.98933064019160699 0.00023122972926282063 0.012720219291601756 0.010794689221046427 0.02535528388053333 0.0034339719422457468 0.0044157890277815824 0.0014528673610176737 0.00050480052992536641 0.98368261549309199 0.0018381478011400072 0.0051211489787359394 0.0016690973514980505 0.00071739213778260094 0.0017015608710115083 0.99942861582948861 0.0032531057478529454 0.99625578489176236 0.011305902304114763 0.99999823059355797 0.013930286097602454 0.00059142482270128157 0.9951908249053546 0.0092968074973886171 0.023165584848224081 0.99103625376539284 0.0023612828927424465 0.97905619019108459 0.98853097817514535 0.00049950836808202836 0.00071107473636927026 0.0014554109908883354 0.99631960219487137 0.0012314359300235429 0.010788040861016602 0.99914167207568483 0.0029651296202989159 0.0018655369131233212 0.0028321771778475214 0.035340124779044003 0.99728145667143397 0.0048172733077180997 9.7341616330354254e-05 0.024124685369637716 0.001250741514149518 0.99889566253394424 0.019495174961352783 0.006218340441910792 0.013633850847781655 0.009328897228656343 0.00070034832823897414 0.99738221056108201 0.00044060882097547542 0.0052123065180213679 0.01928517444922366 0.0048643611631274527 0.01030095613883858 0.99957686195811879 0.0044140697343419983 0.0035388731942861676 0.00041632239513077294 0.012047921959334818 0.036193384161833618 0.98223767224830194 0.99515218309971665 0.0060583233750738236 0.0023938363614998599 0.0014116154850525562 0.00094866827819570221 0.00058678751030338404 0.98895847913570534 0.99486056817819113 0.00045082548705932806 0.0032035508881196732 0.0002922174897808585 0.97390698193655334 0.0046226154258080156 0.02100945032728431 0.0021920199239411878 0.00813806700258966 0.0051455943098838277 0.01732355931218147 0.012632810167242976 0.0011973885199893066 0.0008687943734100327 0.0035232948118007626 0.040040003801219699 0.98506058199007207 0.0011874330452618423 0.033401459908442864 0.0056350517263844425 0.0088683080421477403 0.0021479689500474171 0.99942080164490754 0.00018042778862539411 0.9982552902574966 0.0029299699654694576 0.01974449463470191 0.99964908214754666 0.017883294979186736 0.0040913640712230241 0.98483102040785697 0.0031337573358622139 0.00014780260737081764 0.97502748092635072 0.010416685994612575 0.00039798591203481833 0.0012462930108058318 0.99068617601197706 0.9971121455812535 0.00014911880454537789 7.9476069120538689e-05 0.00056037713889360065 0.0013977645023245467 0.0025451959863841246 0.99494465425047574 0.99806555158019439 0.00046226565906441557 0.00057347813481775395 0.0003468398653447693 0.00086226407068103542 0.0020727494650556351 0.026910610657414239 0.0052844061786867947 0.0004011888817488866 0.00051092479168537834 0.006194124447533705 0.0026941781451098354 0.00068878386277830702 0.00083887039708363499 0.00097119899780128088 0.0019002656652227789 0.0099290625725922919 0.0026138029036924942 0.010555569319534993 0.97576563806849603 0.0077079183890249835 0.037721289765354035 0.00034112619068547324 0.98254204170548187 0.020337449371627552 0.0021344271728887779 0.017342991352845921 0.0039388966390530621 0.013192891357722118 0.0013751571913901571 0.0034253755249818731 0.00036659188184016257 0.98774301841342116 0.99675412953935372 0.015753836583675285 0.99735817198536214 0.0012677967128721997 0.028243801545804467 0.00079091224945260176 0.0050607227093141848 0.00029241285910671858 0.004271865238042692 0.0054551005946806338 0.034543163108041446 0.001987068645292871 0.0022295021754232766 0.0032581660582594141 0.99893315385158532 7.5666734794802048e-05 0.0093085609970639995 0.017162871552508674 0.0037012230174206413 0.00085205947328121907 0.99368514309838385 0.0070724960515620751 0.034947331807875501 0.99311640512220423 0.01078714489404424 0.022221335097433036 0.99479429163148236 0.03244831470682305 0.0043320962095465057 0.00051221884065512412 0.97591007268757746 0.0022141980504208846 0.00043382260305888028 0.002125832882403411 0.00096991564683767914 0.012524455536379138 0.0084600023620963541 0.98317901535740071 0.026160097470190834 0.9819173723475717 0.98004653948581388 0.00097918819515835777 0.97828892452124605 0.00041919559951165096 0.99316715616007523 0.0054715006322795089 0.9890531733345338 0.00159368105724277 0.00033277680827679674 0.99957882640330131 0.0092637506095288018 0.0081217673252449909 0.99484990405018081 0.97818826824397376 0.0012945379099389763 0.0069926946109229657 0.0091309677620916383 0.010840895374151845 0.99908777632821333 0.00071225426336272719 0.99031910108961507 0.98485855072212258 0.0023353494639103737 0.00089704116899096814 0.00058507587677577926 0.00044939430259711917 0.00069542576526744669 0.017769820480753387 0.97184069453112276 0.00084018439819589532 0.006007191199979116 0.00072914503975803741 0.00044935913528278262 0.00094925108456034941 0.00092940823585560637 0.0050934950313499495 0.9874630328112145 0.00062867147948445423 0.0005461232735538904 0.00013961877094677844 0.98409595719303755 0.0056078631812614462 0.99816335748491314 0.00063091424589790642 0.0017574892592872116 0.0028519883307414015 0.99920738485057381 0.041155614874861302 0.99294323580978539 0.0005806715008990405 0.0026057362627133714 0.00081483419070495103 0.0020216959770387398 0.99038753989607287 0.9862214821800751 0.022367810062645082 0.98192156847940371 0.00038820672283865746 0.00042935581578423414 0.0062225900320611168 0.97404002558582625 0.0017625086600764979 0.0056364556583992 0.99327308799532421 0.0010027300143968104 0.0025262186483749013 0.011894726500817505 0.9986106443583237 0.011844328057739511 0.00022510180768118228 0.017094634117220824 0.0049182898207375389 0.0023577374055427209 0.99999029047242549 0.98901126666549299 0.00095929078867070504 0.010082190138133147 0.0010775315206313647 0.0016444163631760976 0.01136679836647269;0.01118535365015132 0.0042305605639591489 0.038970442635819474 0.0027806072162763853 0.011532300956150144 0.033430493309642255 0.0033818666693938115 0.94462136693649434 0.0045678849201281251 0.011630347772443032 0.0015470215060179554 0.0072506158676801909 0.037958206870554186 0.010124947510707799 0.95375070823168995 0.0062667547719459302 0.005509397284533547 0.00653172428772523 0.0047179026944873274 0.012170051586088422 0.0069638406366281424 0.016799741654436432 0.0017690641948838808 0.0060856980858129102 0.018123584228862618 0.0056225962416150575 0.02506164972435955 0.0056286184605020273 0.024299136584407403 0.84804544968780882 0.003070959189717786 0.0048238617679669171 0.84519143747280578 0.0045051234938682056 0.004989808100266625 0.0059238227601581721 0.017128410819524147 0.0031972956460334392 0.0086576342181353318 0.015903138797202277 0.92353090646618086 0.0029436998141810604 0.0023650508304683018 0.0028967095898710547 0.0049759044422479637 0.003393826381558219 0.0034859229430972663 0.075125960915052067 0.062716099472986148 0.047038270822847318 0.038120994899201538 0.004395828267497957 0.002904925891991956 0.0026991417189758653 0.0021809653348208212 0.003997550372948612 0.90529968120084892 0.0075781797637712129 0.036607404401421323 0.012017826802067073 0.76299446950116601 0.033026764764717977 0.87560758204225642 0.0092748322370338563 0.87959745718989912 0.0027949078438710535 0.022478928698146401 0.0050828045397181892 0.0072908313868035521 0.011959220569663994 0.0084905965470688204 0.84897225999548365 0.8939708778661436 0.0097291243146482818 0.0071188532097610537 0.7532775107759393 0.053578196592093195 0.046740001141720777 0.0067748263516098205 0.00097985326587674113 0.018532061118234782 0.0019869890018738377 0.010621255850265911 0.026723980761891447 0.019419118513162994 0.0039409394745185027 0.012096715249106599 0.89630781360696643 0.0065437647003154208 0.0080705965754022373 0.93827701945493613 0.96143397804631581 0.004811056128969698 0.0034951103584835337 0.0097713911905507479 0.0034932560705603624 0.0018189947037033597 0.023003911281419938 0.014350344448222193 0.0058569375570220079 0.0016890897620630587 0.0040847226473162109 0.90539715319716296 0.0098165100240448968 0.031826269585233387 0.95016292061605934 0.8858710457599841 0.0038207435621333071 0.01122181872380376 0.0047195655571330855 0.0021313178504511212 0.005595996445200019 0.018026888234445277 0.025816382852571707 0.051901888291384764 0.059955738182752134 0.066713065107505937 0.0077434216730867646 0.0021499473592558969 0.0036472575774688615 0.0023220418554498138 0.0045598400640228815 0.0053359388820729175 0.0034381757152691724 0.016434410997771591 0.006214497393010705 0.0046006180337237008 0.067133172760526591 0.052014058407179715 0.018423972276437869 0.0069765568755387544 0.023934717911204079 0.0051498916947266887 0.0044022667477978152 0.036639814005972819 0.0051329940260208991 0.011344892764365082 0.0065149506115477181 0.060573192392095562 0.0044206663208188899 0.0036777388364507111 0.0060811932665135017 0.045537308822728523 0.01117125144258258 0.0056309108245838294 0.0031222189170859757 0.88522944554564031 0.0027822969463241819 0.023617856361810879 0.093216457075462403 0.93955580154257923 0.0074506080244952583 0.0092354505893378451 0.020675867500931071 0.01597035513349214 0.70861258751837386 0.018563583664552723 0.0065606864534833711 0.0064040908446709064 0.016692293145108804 0.0039183288760390638 0.0040952595919019263 0.7636492848581049 0.016397877554316435 0.0049915623395581634 0.95989163301106706 0.029860556864568587 0.93175904340181281 0.0045406638991039505 0.012830799344100008 0.013842993759850576 0.11058329117400631 0.0040964383301460416 0.025693841593431636 0.0053590855095677114 0.0078597225874459716 0.96137644158753088 0.15035427527007322 0.0096704307068552504 0.95266446355738721 0.021405510889340864 0.0079154471401346564 0.066488819377520575 0.016380939466735089 0.90119023433613143 0.027453155240836229 0.96146008243313186 0.0054397157552251397 0.015805045776607102 0.15569186922558803 0.0059140641944842769 0.0080250511490317731 0.021300909822212864 0.0064159364564766435 0.85429382087496275 0.99653899056454764 0.0088627701290824781 0.035528462531581248 0.0069895235934200328 0.0092553286346750835 0.0037088159233627759 0.91186902413508497 0.98239866799082509 0.022905025239840504 0.01137501285181643 0.1678977821416569 0.0067102832548455119 0.013588321559654311 0.028659748433270866 0.03444700027751238 0.0072171287527459781 0.0085707027202176177 0.81031818791539312 0.0097832687986194704 0.0019390458750255363 0.0033542817811161303 0.0081708772646517797 0.013415257100738619 0.016133335497686068 0.0069816587265635896 0.016124195558362191 0.9141208306075882 0.0089820235670158999 0.093270145824084161 0.91086425748802557 0.0046008845819396956 0.014677949866343227 0.0043586779507454347 0.014111217576822519 0.009474792709566757 0.0040896059684011115 0.016929835396979818 0.014242892764086761 0.0027237173895412262 0.003457281781521826 0.026815156618856414 0.0035369412216861209 0.76730748076752286 0.0047698698965800441 0.013290910738530143 0.91290464841225838 0.020677596674247723 0.89985045096376648 0.065906858348159986 0.0022581288558786599 0.011572210505170379 0.96262929844208245 0.9375721287788028 0.0033273199694564197 0.0013617666731760916 0.0053408975286228346 0.0035688490765371172 0.0047388314247271603 0.0055618256879094623 0.049071374071751168 0.017745716020778939 0.0056250739500049848 0.0043306210128115493 0.83882524897530408 0.017627813970495822 0.010569792053246086 0.0062813450517820533 0.010133139745631452 0.94157434761437331 0.013268979268869593 0.050462778740286755 0.043502900601934978 0.018176264367988911 0.81115162828112319 0.0034073921621052008 0.018519092867398824 0.89384416669041744 0.01261160335837414 0.017384547743005092 0.024119543910943647 0.78396327521963782 0.0036707322726377473 0.024803529756504458 0.0049664039039165799 0.91857092075940783 0.80938090511856386 0.015919791190556882 0.013152406839423779 0.0089200841943634663 0.03165588917956131 0.0078700851663210739 0.014072773790429514 0.0083098615128831474 0.018274311222428806 0.055872841539930489 0.92633145887082291 0.021274462349612545 0.025342436601964582 0.0053516810661739331 0.0051157264465789319 0.0077675399970602698 0.81207683285773014 0.022626325447367833 0.045393314581619361 0.95637628672661801 0.0082793201592339088 0.020348818216647059 0.92267524769384024 0.1117131385280349 0.0075285114726467333 0.0062408441257281958 0.017295918137803509 0.0087245425736933325 0.013223995239730356 0.080308071177126114 0.034709079872495725 0.0028770354127260786 0.873445736870617 0.98065673221054384 0.0083012098639297267 0.0085648950118345415 0.0027812516703765813 0.98500107547923765 0.019844295325902532 0.0066045728209394097 0.0093268078314901973 0.005988041275041581 0.94157884409551029 0.012122819464423567 0.00452697325650964 0.033918136367582716 0.92448728382218237 0.0053488219742669737 0.001829172534696441 0.017062450693383614 0.011988132477573257 0.0076026094550062026 0.85098302872079845 0.97017838289312663 0.0048050237820244984 0.0099650961746765455 0.0054829458967497373 0.96511460512674763 0.96713221258692117 0.028076250691403373 0.028279084034943353 0.0043233576321983465 0.002243289596485044 0.011810716021382847 0.0046469374030678112 0.034562292653743512 0.01532365957105483 0.0065747684630993661 0.013649864512258558 0.89229565903663621 0.062148642339904213 0.011833108963381123 0.034582627384817217 0.0034662147308833192 0.0063312457860934318 0.015352079126130271 0.0047167325994713826 0.0054883970876436977 0.94385885311633222 0.0078431440639107498 0.0043050517097626305 0.056607762377009527 0.9524776399825815 0.0044565147852554119 0.0047415983626685927 0.86947900300248504 0.90172484676996412 0.0065337272855016679 0.010277109282681088 0.0053402227047576615 0.023725989572400186 0.0024415320298970295 0.021656559229727267 0.0080077146118280179 0.0044313280563138165 0.036054527041284604 0.097981161976735662 0.0051423151959368802 0.048317780253258613 0.019158011800208111 0.0090849359334203277 0.017943259628612637 0.0024954424709256184 0.050921187734926127 0.021490020943402632 0.0040600695371700709 0.019936156229427713 0.015610857862344592 0.0064524444037771418 0.0091663900607157987 0.047469308718702689 0.017429178521776743 0.013101749067861743 0.97415895194160973 0.014252878139040527 0.0092515495677909093 0.0016803930978043717 0.0052059181548762285 0.018022460532479315 0.037165650882442287;0.0024206691681891365 0.486681806681725 0.40300366029807549 0.00070783476855243422 0.0044221473466615566 0.48229709799849074 0.0011755233936777652 0.97169586739557845 0.0046260634554552054 0.49036463830767002 0.0025692331195512159 0.0018354480792949469 0.0032041105649557489 0.006464734701223186 0.97818469724153601 0.0011465972368220252 0.026448669478286717 0.00066945145458328502 0.0062562828912725212 0.98870215109144188 0.010683832585258088 0.49365858006401331 0.0088741212963659409 0.00086036594481980191 0.48702365809234349 0.012351947503993838 0.9465848542051295 0.002027889670375873 0.0023736452872872385 0.0097963542865530436 0.00075434678993542201 0.0063059310662170508 0.021756551203395969 0.00095417908349284294 0.003027840579665363 0.011577827968999236 0.98372299301432098 0.00086824210418557193 0.0010666694685376543 0.48602430635310556 0.0017910792644062149 0.00088109589381122027 0.0049421666625539921 0.018003337989331899 0.0031081352105287287 0.0019985552893589035 0.50622305626281272 0.013207121092890281 0.97685282691344177 0.48176281226832712 0.025744589581167581 0.00063099909404066385 0.0019665187544612313 0.01621783102517978 0.0026897449864906162 0.0038546360477846927 0.97635783318225866 0.0010281813276414719 0.0017567522095941002 0.0019018279596395931 0.46737808487544935 0.0046823796936791076 0.037164813341558287 0.046821131058158993 0.027657084569221523 0.0022828007885954543 0.41035055309435042 0.0035172543363047402 0.0019967803363193544 0.0030076935773173576 0.0055654074945470072 0.90329698322801211 0.0025958509229777526 0.0017871600633028071 0.00081905864426760314 0.97937060524770847 0.035622492516464682 0.52470918819699963 0.00730445719305973 0.0045663393357759869 0.0015713207710621982 0.0044594150100304743 0.0027066932617858357 0.47683193217823217 0.0011138218952472603 0.0015587052665115403 0.007172273784280099 0.99884713709913919 0.0012748623877090999 0.0014843493238618443 0.010636695547501906 0.0015605498074126819 0.0053456357004415169 0.00039888746827860036 0.0020766936675364464 0.033012414338317031 0.0054108171221119361 0.94664305605238797 0.00058849371372325155 0.96398397738813291 0.00071616599589404664 0.00087975439093228953 0.018651182293872599 0.0042094868103871091 0.0038591583085220852 0.027873489573323675 0.99471452796933413 0.0031219870494906769 0.0013632425127551358 0.0015338708285256995 0.00052285223284177155 0.0016373616328635751 0.49371286954724902 0.97120259343620996 0.99623818287478483 0.053673752406199204 0.99526318866934771 0.00098032535547325824 0.0054299627734437925 0.0059194061399162655 0.0040432770122958558 0.0067900308744120574 0.0068492996485624595 0.49260219013197942 0.0030562281331508422 0.0018100443920570108 0.01019850706617384 0.042066425912071249 0.50899133779816075 0.47465664686817188 0.0019884514494672529 0.00074901261347495396 0.0036141131826214097 0.0030775817645894857 0.0011709870584021994 0.00088063584914021067 0.0010660366796000856 0.004375905846300268 0.0080883618755371329 0.008521753741803452 0.0078718646984457241 0.48927033388096886 0.024944071601597465 0.99235580939176793 0.0012175653345624067 0.0018384369464761515 0.0018760150055074317 0.0038813571651432855 0.006885494077000797 0.97716250291485696 0.0040996965610853925 0.0063943301924508176 0.00085613399439015531 0.0041767676254930467 0.0045398476207248271 0.0050985129142560263 0.0021212047886780341 0.0017793069792246593 0.0012662630493807949 0.86241365067629605 0.0037207277444913176 0.001129397484655056 0.46601132424471547 0.00088358624091957119 0.0041310416565526354 0.015628099500348491 0.0039271408553842183 0.0098813394230134032 0.49539325735401274 0.0013654929644700449 0.00078283348150682533 0.0035291166815767452 0.49456175937499819 0.003861053721485519 0.0017086866420029999 0.0051591988455429675 0.98388162818405034 0.97520184738383997 0.0049660644677327025 0.98110070851578435 0.98836670745231592 0.0043403528527933277 0.00078077343891734042 0.029463000428998101 0.0021822002839530534 0.002190824105720645 0.019050385126679663 0.47608061750991132 0.0045118671729163749 0.99444514023933606 0.0020761448203838523 0.011920275489847865 0.0019010885246248182 0.0010897967630804622 0.53519537301318776 0.56237406942635093 0.0057305172625738802 0.99527422020987832 0.0018995781160533547 0.001868599486581552 0.00074125168566438438 0.002751875620161698 0.48328866894426126 0.98726273134494558 0.50173975256206405 0.98218757395128997 0.0017858014491303714 0.47706581216093374 0.0093523057690451192 0.010829397311028803 0.004261910204338722 0.0013057907557228405 0.51510734328139662 0.020435788553571588 0.0063660896546534904 0.0094053094564229642 0.0088942900410235448 0.5319195354991646 0.0032477778672148263 0.0017530093453730746 0.0019757494622360001 0.52132354257104119 0.0019100081994097924 0.51169369424064903 0.98325450234494283 0.0018363560386698739 0.018023988700520601 0.0008435347082507347 0.037441592758789305 0.0012976473073071045 0.0024296643725177352 0.0030167932606153256 0.0031600597252645661 0.004169622902991818 0.0019287644078880804 0.5019963555139294 0.0017649527838210566 0.0043083448161758357 0.0017051752559794002 0.0073847334149293072 0.45807269594516459 0.0022072566191539082 0.003771276272176086 0.98149462747200666 0.0014905479682228075 0.0009227272357860873 0.45833352191103366 0.055705824538218936 0.0017999693602644509 0.0020358643699708609 0.0032556485106576905 0.0021006770134966873 0.0029529577995066648 0.0024077605912489076 0.98069870244712476 0.020240253916485318 0.00082742591452823853 0.0015933803102389423 0.027075989204444442 0.0027734945332121954 0.00081816480594671835 0.0021013990335117527 0.00091433940846359467 0.020637024675181206 0.95403554147133507 0.0038354467525401337 0.0028237068999390352 0.4732253067803871 0.98241898882689416 0.0027779584107000647 0.95598327462859001 0.52004640351162279 0.0058608891502448454 0.0010667642567960627 0.005425378927742178 0.9850568376046771 0.0046695393028466457 0.051330547816714756 0.0048859402450142642 0.99640516576417804 0.0023129111772869702 0.0015122023980234552 0.0074129083534016284 0.0044457526382911542 0.52401851737190319 0.0011882813338792971 0.0008203449762555113 0.0017155804699365966 0.0030933450478214334 0.97611121598207706 0.50457675039135985 0.90148956136091207 0.99750765567297583 0.003997976638474717 0.0011799261505770781 0.0013682418578027725 0.49439846807650473 0.0035466235425443979 0.0028898788742780937 0.99074697495396591 0.49427152206445524 0.073914345922115252 0.007592048056470165 0.49009674827067745 0.0020879217648231011 0.0034830218088605794 0.0030115209016605957 0.002826600543288778 0.55577052911531244 0.47344922014544411 0.056944131763731372 0.00068825244736496916 0.025792915768283797 0.95091665563675143 0.0010752368437367426 0.00079350095195697076 0.0014727431836836545 0.026730639824708111 0.011500005692567575 0.0019839361871405604 0.0037299722941494537 0.00094262545805728611 0.98950911979546252 0.0017811013249930392 0.0020314355349525244 0.49346874973873889 0.060220379701375157 0.0056440710759789493 0.0079934075490566085 0.00040444388972657832 0.0023312555834246844 0.0018776980580169887 0.99900985038725798 0.99570874477509097 0.0011470407719808991 0.0014375364040602071 0.0022229256945729202 0.99648708247855478 0.0080033728956567813 0.0054296347595743158 0.0047404025803078264 0.035513138027356186 0.0015084990585377208 0.0038952228914640903 0.0012336576402694611 0.0042371536323537427 0.96725405719345836 0.031712317167630177 0.01884119225540019 0.48462258542863401 0.0011920148373755083 0.0010455909724227668 0.51153264554681965 0.0014420554197047794 0.9922850780618826 0.48033030221456641 0.0019459268902693577 0.0028294739106635193 0.94083377813161273 0.0018725314991324105 0.0022240791589387254 0.49209662384801445 0.026562048363513825 0.46527439925288672 0.0027939143061514789 0.51885303125169757 0.033080402261517566 0.0012856108870934204 0.0077835632999778146 0.9349685337293383 0.94103461192128279 0.0017662802246485767 0.97598404496823743 0.017347300179951342 0.0016528697610495896 0.45970335366809539 0.97199403731023248 0.0015979987774391064 0.0018235728976356931 0.012631489203605961 0.98541640097971961 0.0012584311607651568 0.0031074438659261967 0.0012423179645913744 0.0011287273823553075 0.0037351486847928051 0.0039120418496168853 0.00064496071150950494 0.49611113291895992 0.0014779360843798187 0.00069835275204131351 0.99074389490073878 0.003078057365249489 0.98552367926079043 0.98448141348533103 0.0016835316141747552 0.00082216129733560532 0.0017301490833722746 0.0013147409159759305 0.0083510103479055055;0.00014897388643681604 6.3362665732636492e-05 0.99239943546551912 0.99293807432219738 0.0018392550622239683 0.98540352414691701 8.753114825729026e-05 0.00048500070644662724 0.0013578522438508071 0.99302092462270641 0.99573864002248025 0.0020083993380314259 0.014315908424636228 0.013911771826467721 0.9998673681687249 0.0016554626114577056 0.00084057955408861791 0.0023957356425702435 5.269645066110995e-05 0.00077679936951079425 0.0016075632520989017 0.99519875948304548 0.00048021196916104767 0.99943338208600596 0.0004807034672806112 0.99998300080129388 0.0052576241317848589 8.2404245444991079e-05 0.00026701750777438204 0.99999245469807274 9.0838877556403589e-05 0.00070029511054668907 0.99992829101594671 0.99409562335467661 0.98610335025638851 0.99085182684827289 0.0014500890800816092 0.00062594314488980817 0.0019400845890711175 0.0024840062178698641 0.013647129121307883 0.99652989245679613 0.01701960700040191 0.0034439612629962261 0.000470301516307955 0.0045202742444020606 0.00091262570448569203 0.0013725420839798888 0.98519745188129149 0.99792267981453031 0.99595673056744083 0.0058699295933017509 0.0033554028912267824 0.0020954183698378304 0.0014399133630568699 0.00054201032682890009 7.9265503421129254e-05 0.00024760286474637849 0.99998497044285262 6.8018333856042988e-05 0.00066302333109959696 0.00030878823237889455 0.010258456666414496 0.98771991296224715 0.0020088876446872289 0.00013659329979132345 0.00014259535011188642 0.0018654784583427928 8.986879828572996e-05 0.021293244826819463 2.0435703085809753e-05 0.00030358233792761671 0.0014773789541830922 0.0006967671179576154 0.00039112711574496191 0.0010802191692012278 0.0010082295627924411 0.99997252672878689 0.0017698255872067314 0.99616311851532346 7.7778701044957423e-05 0.0010558590417378986 0.0061977218916200762 0.99361182740899956 0.0066512312947832556 9.002052862506837e-05 0.98331187138489784 0.99809187893076035 0.00033937965366717616 9.7367829935457724e-05 0.99790249715474544 0.00025562509433643021 0.98743090070574935 0.0040031307063760234 0.0003906702339705726 0.0040159462242720777 7.3100494379983974e-05 0.0047353345851542548 0.0045779140475032893 0.0017375080661932577 0.0044873718455934429 0.99518327726102007 0.00017510860524190417 0.0073602054212945425 0.0013660784538424302 0.0094960326788733306 0.98766061414305684 0.98199581223174848 0.00039106702221746158 0.004274440706336171 0.0014235158012434364 0.0020827127854714956 0.0018635170625292451 0.0022528869446963081 0.0038396963027769273 0.017794499291905977 0.98661217363333797 0.0014913577408865737 0.00042340329737453037 0.00086371403043089589 0.00012608327231977429 0.002380088634289206 0.00038653213632488913 0.0092752432464384329 0.0029408690456077077 0.0012819751607676959 0.001083616764268392 0.99999098762792038 0.9942689064445247 0.99914696969337335 0.00012143167156737069 0.00051326127700847767 0.00010317943902289131 0.020415053087338181 0.0018892136506713983 0.98867913188862744 0.00078224653113221536 5.8429066328877834e-05 0.99450138778960218 0.00080637555596161693 0.00048607365060033029 0.013113654069160086 0.99998533976424131 0.0085415830791266481 0.0001379913267244803 0.99365491619570812 0.00093286465318276237 3.7736771343321835e-05 0.99994955147286091 0.98710594110970085 0.0024801308485769649 0.00020495545002307755 0.99998998328169819 0.00034027706294468863 0.98322410512623515 0.0051238737396189426 0.0032360313132159713 0.00033684074289528937 0.0029719610216351984 0.99022892554506436 0.00075149443877744332 0.011966517736659436 0.97288476557782189 0.00052229480551606886 0.00044322277873282541 0.041715596665885042 4.0557934032066031e-05 0.99614565258617704 0.99630321003802813 0.023920634207460843 0.98972013348453425 0.9995178033419132 0.0043603949349911974 0.99046515482543884 0.00024475576363305396 0.0050917737123194126 0.9999982164567347 0.99198580416896365 0.99684047434831591 0.00043050382804073645 0.00067368714197495411 0.99449340709679157 0.0030706273349918921 0.0078146026622500208 0.0011768262147991966 0.00069939139022893526 0.00053295770314928687 0.0020270080501857096 0.0001588926888041388 0.005341152258439329 0.99648261359343815 0.0023847636760279778 0.014127402689353183 0.98824204230226453 0.0020289052980782909 0.99936397894810269 0.00014507181570847395 0.00095494560862681606 0.00021655724163479627 0.0080395669324405134 0.0049267007734780091 0.016637593290173697 0.00053597991079012801 0.00037604988226340268 0.0030760810500985191 0.00049238180440664098 0.0014028346698848929 0.99954056798637381 0.99656785453017716 0.98995410033929943 0.0032734941743013013 0.99504033185277085 0.99062287544702177 0.00020315563423845015 0.0027768377693427747 0.0014010394406875867 0.00037673831048352219 0.00014648098291869112 8.9789592788936878e-05 0.99790643045256178 0.0006374663924898355 0.00036702323768237488 0.00026491242954604507 0.00050794499142314158 0.00029335479036182689 0.00058203665814129599 0.0011064277125432996 0.00019898561523273579 0.0022964239063621608 0.0031798085508675344 0.012579228133043243 0.0014630265761848957 0.00039920035433503804 0.00020478589040143701 0.99181084722165302 0.999815770787995 0.013457300276426085 9.5336635855007356e-05 0.00022908288276296486 0.0023287867356666064 0.0035171948882304618 5.3935759528915555e-05 0.99786119204338863 0.00177876127006308 0.00093082945935965794 0.027462674231249019 0.0037998064285077716 0.0093360556785493532 0.01127696772193568 0.98835648076221461 4.595983384392272e-05 0.00010045067089343514 0.99487639936735028 0.00069132768044885312 0.0029939336279814488 0.0041792194940024931 0.00053431633716765519 0.00021786541953394521 0.0057219152294526515 0.99965731527400004 0.99326870487916896 0.00045906095833320756 0.0043120042307255363 0.0010259582973677628 0.0068900620232988643 0.99006326197992489 0.010990725240684167 0.00011092859397338382 0.98134565896562698 0.0005798191707031752 0.00078960954076067293 0.021260915606180597 0.97317013700957422 0.0041980495776701892 0.0016218549998460972 0.99727957512970822 0.0035963593116381883 0.99671556600023137 7.1029572551586532e-05 0.0026734095697534465 0.00056753085308496368 0.0002632185226027688 0.00025489247245354731 0.00044836068078455397 0.0013033312681771849 0.98749372872495444 0.00025098196405148822 6.9875831954287665e-05 0.0030891601156859275 0.0056535003683223966 0.99966902353461162 0.054323884932861624 0.0037261541929758122 0.00052764044621193395 0.0014226107363885237 0.0098345155693647397 0.0026676692499108599 0.0029836421253035478 0.99700072269734474 0.99597786237765984 0.015487346256130737 0.011240660701184842 0.0016896196411128267 0.99284746925919443 0.0010363751647545815 0.00041531164598694191 0.00061286548472461904 0.00080029370666076982 0.99513944830952261 0.028581907861712001 0.97565659825191686 0.0022827567004031512 0.99999127475023752 0.99827145821855923 0.0003800799358114552 0.00017216355631977619 8.6381364986267201e-05 0.9905619639654335 0.00018284531556555185 0.0036130667128162161 0.00065542232664880535 0.985248917200925 0.99954139259521291 0.00016758833761864228 0.00013039636783343403 0.99185315551223541 0.99360666814324272 0.0002649220151164746 0.99433731484319454 0.0016893667082473471 0.99058446603795069 0.0035678409953841966 0.02251292417967575 0.99682542768966154 0.0041742581939724806 0.0048241274934312916 0.99999998578171723 0.0053145160447647518 0.99722489044085927 0.0072952203145708033 0.99420834082858234 0.0086266038955084019 0.00012206458394585343 0.98621237326302436 0.0061768708479482543 0.00039416542992248778 0.0005933333304163601 0.0014420763754587906 0.0004106697211725736 0.0033558120091468518 0.0029986047589112583 0.00018224235679754189 0.0018467848855959297 0.019414287190681459 0.00075675068581001928 0.99982524565190001 0.00027672887808444111 8.6355503225471326e-05 0.98556045851332641 0.98564939965148113 8.0884626719729532e-05 0.0023983735175509731 0.99561340261746945 0.0016474685398520023 0.00025152343966362882 0.0028619533303955572 0.99998517404757603 0.00013883582424052975 0.041095002624480619 0.0081001704657099102 0.99998884260587606 0.00019495933482335923 0.0015267992053377322 0.0043628566220324161 0.00089696439081954165 0.0017145774807816893 0.99454691247096849 0.99810422557335998 0.0019897258509040607 0.98565849253399862 0.0010545128883930959 0.0036995794810100904 0.0010586736684031076 0.98294286107130546 0.00027578693595337755 0.00070273248252535688 0.0041361544661976763 0.00017525309804235521 0.0022654392796608641 0.0017617776155441584 0.99268316550004843 0.035598969824297715 0.00070756606350576409 0.98552633246148402 0.00029381657662601985 0.0046093030270515315 0.00029185122494087222 0.99840115802451124 0.0010605397284334005 0.9987121917059627;0.0043155287947055712 0.0019584204559179278 0.001599953317777326 0.0016185181032155314 0.0024295062774427347 0.0029637272986121465 0.0014290791841786075 0.003623412152944319 0.0028239057740860113 0.51789597321643699 0.011041361904454469 0.0017298659748421646 0.0040239219195215567 0.087220774400147805 0.069117563137176347 0.0014279059843774838 0.0016484601278363613 0.00095790824853913062 0.0017156587857924538 0.0040772474051953217 0.81722790201941875 0.013396115947194047 0.0077886238363237166 0.0019740182830230942 0.0019338932046842781 0.0064872872892060632 0.0038489158648376568 0.0011656642605666389 0.0027974961080456306 0.94762945644014374 0.0013816255750746941 0.0028519793077487693 0.98223414924046892 0.0018318751550386277 0.0024909745459813443 0.25779572195699813 0.37646426508248831 0.0011831645816749025 0.0025477768722722734 0.0054968917523842038 0.0030873047758737783 0.012273503318719927 0.47257059612678598 0.80752545249102969 0.00270352550321572 0.0011739855399397496 0.91811916635284985 0.002940350616822825 0.0092170379838726786 0.24070908000790037 0.0062985842212409902 0.88179592394860906 0.0017866301938225587 0.14155842229788468 0.0011609775144214821 0.0015216884022722812 0.005295328845876638 0.0031398244725635398 0.20150836375770789 0.0039302073577687363 0.0024882663797967529 0.0021350952844067369 0.0068773413268351097 0.0086202870314999319 0.0032125282815192021 0.0024688080553069095 0.0030131813591445871 0.0082704404605188891 0.0025276902573668466 0.0013386744439008265 0.0031747172500442141 0.10685301914814924 0.0043860463495824014 0.0039555610913080616 0.0018578297334190998 0.006177602244929018 0.0033447290638308515 0.022331797709924016 0.0051401570399825956 0.25733588364222626 0.0017604601276906043 0.99215293742805155 0.0024884782053628757 0.0030640302911407098 0.0014257195111483881 0.0011378549965517799 0.99066229346371881 0.68927206172801325 0.44109526178226299 0.0023736633455739269 0.9173642553785788 0.0022216174951501127 0.0033417601505260526 0.97116991596677149 0.0019423215512239462 0.51696614804653918 0.0013725622226229354 0.0075522763749782396 0.0015021823730480186 0.32730161624170717 0.0022244135241117173 0.0014368186601379507 0.0036158488044043782 0.14107264004534734 0.0040967816464896906 0.0095434081020691446 0.0066229026322764438 0.0053829557946143197 0.0031639947900811627 0.0017660381531256998 0.0020728714505030051 0.0014557274534151648 0.0044044911484451979 0.012536441693002272 0.0030706617647901649 0.0013891559617126687 0.0065167067897514783 0.0016023801892184552 0.0034647904539558232 0.0052219287052121385 0.0025063379347683838 0.89226384616177445 0.0041571925606494848 0.42358606596955278 0.67275628486878558 0.41047493041467115 0.0054998203789208963 0.95487875654817622 0.20314383426151883 0.11723993041992981 0.00094800547391823194 0.0013403558987651895 0.0037836391010909959 0.0025213344014111284 0.11189293318341755 0.0026296307137787718 0.0019115845826338145 0.0037463646903324035 0.98492451008814541 0.0029541167908236458 0.0077313831510408383 0.621487091480033 0.26630923597943112 0.0019475486381556276 0.00081676824897802922 0.0016851717015523098 0.0024651510243120468 0.0015327760366079766 0.24473305485709135 0.022972725984241125 0.006435370185845295 0.0019418927456942283 0.9458793857974892 0.0024360476943275635 0.0047860288528225308 0.0027954794785617584 0.0039755650943016068 0.0022194805944863822 0.001952417698849898 0.44356085013805296 0.0024919675211686814 0.0032019097368876062 0.0043514798229489669 0.0030947144936383712 0.0079739038082197976 0.98776365621877149 0.0035410884796985118 0.28992208109566642 0.014102504062064179 0.98185495355679575 0.0018256870529841391 0.68729692813212584 0.57644129254377685 0.0052685793798458733 0.0018353327060251544 0.0013577560362611318 0.18539804501018098 0.36021752229316201 0.0077970301361592539 0.01906140213511745 0.0016670898015382256 0.0064920224491569799 0.0021775387273052188 0.99314469256195714 0.0018870591208661395 0.002405667092109251 0.0060461517619259421 0.0041585226761124737 0.0015084456639667021 0.0062930032118253499 0.0030600793363525789 0.99224737928934736 0.8828746538555714 0.0030113895824699084 0.0045318262596208848 0.97756983818294263 0.0023600842151078136 0.0042071692180111232 0.0041010449403478481 0.0016858054237015587 0.0019618564869001601 0.0023920672074340841 0.0018899661401234318 0.002170906376947081 0.30365775757824109 0.0099876358508796895 0.0032968808416366053 0.32639649094871243 0.89597106607451971 0.0027950630370442622 0.0041852495105837266 0.0018878580376459786 0.83358267515339768 0.68804018763688135 0.0032310652889644782 0.004583455705913877 0.0028421911656581144 0.5369020347332113 0.0032587265646697398 0.0028910138722895188 0.0034114789673655912 0.52965573798942711 0.0016267746361579537 0.0021141770037322368 0.0057251941008555855 0.0032920636282132714 0.0026716560449024547 0.0014183697153643184 0.0083756468327066194 0.0014516152338046907 0.0022419928701741636 0.0021520108037288146 0.0020987066448013075 0.0018841481408881314 0.0026260735377162973 0.82427039489359832 0.0012600647297489487 0.0024157496661541514 0.0015373061794894871 0.31836683577825003 0.0020012907453119707 0.001842755746589265 0.6642933437620433 0.55340809244326628 0.0025261188977907076 0.1893247593901296 0.020313488748834943 0.0029552338281166549 0.0041735234665917376 0.0031003489448555095 0.0017883893046597649 0.0019358482195877855 0.0024017985520900925 0.0028523584602282393 0.0049667165395337262 0.33376491785179829 0.0013156809258110804 0.0010681587456560534 0.0058502017728867782 0.66951212473798427 0.0035086554863696011 0.0016720888097868061 0.0013516463896196119 0.0023611530793561089 0.80706864069228379 0.71034272415859845 0.0018204576500287014 0.0024011686300574042 0.0017454111850605763 0.0032737501520983424 0.0025744793924296523 0.0053577313674260316 0.050272354870264768 0.004707443957540137 0.83285947014209927 0.0034655079329535213 0.0028022108794505071 0.99322475964860857 0.0016646503592061095 0.003456049718890135 0.0016258865104409469 0.0024561152305731292 0.0023448544767334361 0.0023119795082623407 0.0021579800342511734 0.0020520758146435588 0.0024245244033141277 0.0031085544301730876 0.0015403485690472882 0.004862719099158511 0.39690521022345759 0.0043977282076103838 0.0038288086831041999 0.003719394299809043 0.0011257624132527421 0.0014627087558035331 0.031710430061027549 0.0095529919611263385 0.0083195988053833062 0.0023341205351636082 0.72976349778117955 0.022494831425214565 0.32098972013218652 0.74628794922652841 0.0028931956073432932 0.003966301480401075 0.0016108472319664204 0.0013430054596042548 0.97648532947079203 0.0057332784578850455 0.0044677617409897485 0.40955911813679668 0.99742911107797827 0.96583960341918695 0.0030334215516085008 0.0010442054515050069 0.001183259024967109 0.0042164934093942841 0.0021456600132647059 0.0095873448750387336 0.0021625570092465799 0.0019799666254234349 0.41891183806951215 0.0013031660199129022 0.0027692435900786338 0.0024506857066983346 0.11130026485937394 0.0033473467695055844 0.73505997914161481 0.0026023914636838746 0.0025963654622165808 0.0039113796136570709 0.0027478264434243607 0.95699671413093135 0.0012355202656761 0.0019392341317910134 0.093414916860716235 0.0032593093517817922 0.18656424697576043 0.075478633708209869 0.0065010291863114786 0.44072630671781893 0.0012729601203031004 0.98514654816103997 0.0016532612215711584 0.00414106169688874 0.11487316298864517 0.077187199118163671 0.0024399236999732635 0.0050591994114761278 0.0016242737960769323 0.0026201856049855518 0.00378200104175971 0.00218156192573079 0.025295362527631406 0.2768381360776454 0.001564793958094847 0.0021208176554841185 0.4012032541915842 0.076005569183009117 0.003098560367567383 0.022637380008336691 0.0012017103163128174 0.0045554527822181902 0.0016171902149154224 0.1543163791628912 0.099252469541152855 0.001915608408927199 0.10666775214179675 0.0011193426857202743 0.10067484301156421 0.001673636033215626 0.0020725295281640325 0.85801669351455456 0.0016634617057147731 0.0082834553854289825 0.00099803825068138009 0.0018182155581063348 0.71206907341731385 0.010680045733719976 0.51707262758000261 0.0017677489340703922 0.0037672601279588698 0.0022446731391813357 0.0028002584996228881 0.0017751682116290113 0.9724165180199722 0.0008393829615899618 0.73329019453797917 0.0019794916087891379 0.0029071330934527509 0.0018141104209917019 0.0044058026838589377 0.085526856298067083 0.026433498239593775 0.0022445397294101601 0.0011865969537686513 0.99127630255476062 0.0041105979730592743 0.0016110738506157646;0.48212403162193496 0.0078104903300904912 0.010961188798219458 0.68253925691958806 0.10353952105925164 0.19773805335465769 0.10585205446854173 0.11217721457708936 0.10703640265763049 0.006642593131589416 0.56664594219423703 0.21950221384226209 0.20512345111366265 0.014520522111446391 0.033266538500403578 0.28439645590832896 0.20487249884011788 0.10373559900964821 0.0091382163652591972 0.30378015381887036 0.10824208554687698 0.0059744679478282905 0.10487188803074647 0.29088950078177689 0.010588886963015205 0.30372495265170918 0.4700081664661116 0.0084721318922159842 0.10118034315624949 0.0098497605372772114 0.1092844717801474 0.20441684936778484 0.010599031851659682 0.015734536067830904 0.02008628134457649 0.0088291517459514451 0.01488157626366152 0.17398121537682204 0.74827601378926289 0.0051945123736963821 0.20932726632160045 0.00666897297965258 0.38910408637901506 0.01476965941496285 0.32537776031848814 0.0067851933554612292 0.38850007484989363 0.74436132556341039 0.015607856734351099 0.19460751423677716 0.013123657167276252 0.48293024864766165 0.0066735287732174161 0.0056477176496254698 0.12099996016420926 0.57679583349209085 0.012050299510181061 0.013470167647871206 0.010951744404742782 0.010188252499466593 0.10739250974374606 0.67419240915493572 0.37618414504526193 0.18384443973765741 0.0049327404350366644 0.0060091725189929824 0.11136385855573587 0.10748621114905778 0.12524444412386057 0.12092521858920023 0.014585867227070979 0.10613631284745025 0.31946440041022711 0.016271624931798352 0.10918503374233483 0.019630022303126538 0.010240703116466533 0.0048143926345570777 0.013027267351580815 0.16222864039022275 0.67306667936725029 0.0079105972910097702 0.092292895611807244 0.20578013337766085 0.0086299654087895594 0.026175998824860144 0.10546423286240419 0.0079879398732215605 0.0097387283674816201 0.75733463692249336 0.10669057723679068 0.010153647129929749 0.11376640319824149 0.10545424311412961 0.11881301698868726 0.017408696548868882 0.20332836858969075 0.0074518765479726582 0.10726322335629056 0.018796376787162724 0.20671726572010607 0.20742723421666923 0.10758017392337257 0.0065323424641991808 0.0068972677114073734 0.021797967173910415 0.014998007329426313 0.015235295270735239 0.21308374009787354 0.85075762801426302 0.11370463672119251 0.0086001506730431221 0.10940474948664773 0.020212845458007715 0.0088496147062674564 0.20469568357571535 0.74906375836740346 0.0073608861083812906 0.010505196731513839 0.10964874060882332 0.010383418383790231 0.009138224428003076 0.011968734389861246 0.015968467293182381 0.11234557634061773 0.18784618250768942 0.38365819894490971 0.19694382257924462 0.0066891913425473001 0.10891064320887021 0.39804605682571509 0.027972707880496717 0.66468432505961395 0.0063189691103409419 0.025708905808468175 0.20746639581329479 0.0095745788624088078 0.011579516932789522 0.11760180108388894 0.40938389047382151 0.0084948184642229529 0.011913911279461186 0.0077675159398634423 0.0052948222603197669 0.18048355360006757 0.10985377821011656 0.01148042566506099 0.20065190280636017 0.012461652997097032 0.01521050595333813 0.007525511623250174 0.013095375002262113 0.068054092787407997 0.2010554701878805 0.012424710303416912 0.48961442381089104 0.10514668786139222 0.30632309254297752 0.57441184301808157 0.00574277987723445 0.012539527302993944 0.012263308155728868 0.0059249989867659536 0.31558337055785202 0.11013632135047838 0.0080017652930818185 0.80184994743141513 0.0084999927113980668 0.0083699540213797215 0.10826444093476965 0.20895367269411952 0.0072490006831916823 0.010233957694793959 0.2847108010838178 0.0095259729935408578 0.010000211017120201 0.0099050333546096686 0.58359440501972237 0.021527867746931575 0.11466894520892623 0.01864600134585884 0.38592727725948817 0.57586590634520785 0.39340494763776246 0.011401332577773286 0.0082254618639046699 0.17971514464791197 0.010064675257544176 0.0096405458768413325 0.36703061616283084 0.21362125458715064 0.10996836453702764 0.44235754931123583 0.30331469444935699 0.20062034175850099 0.005301767369937066 0.20736488931809027 0.011382015308680282 0.46760640623430583 0.48796706804626566 0.087959221036091523 0.0092158842797204991 0.67730945679329113 0.10705668043455534 0.0042395105863824696 0.29794700438779059 0.31060928498091206 0.016647858711344443 0.0049574970176275218 0.0064568388347467798 0.10640570556823847 0.0096996175269415015 0.0052787008840054807 0.4906794186466279 0.0073636117306611227 0.11218853267523943 0.20207985509256665 0.0059646557143096775 0.011528472383862913 0.016744983346839805 0.48016237721843302 0.0061437922310608462 0.45493487630790508 0.14429377514006184 0.10660771345134994 0.066467504191147331 0.20128029237731718 0.30938072156837715 0.110549396402974 0.10467437141072553 0.013045685807094008 0.30354318875916203 0.0092647565077537304 0.021992184473363548 0.38257837934101152 0.0092422172878452967 0.10484315273974748 0.94703856649092932 0.18371145863103361 0.0065653310160478633 0.4069894215816644 0.94329984585593629 0.5606352332742337 0.0093312528016289854 0.1056556978250181 0.0090051168898376451 0.21886434233653734 0.01584897763812413 0.015163869365751842 0.10071180456275355 0.8472310318424503 0.11230411664739526 0.014406295806906406 0.10418934405452711 0.28369645398159804 0.015964288029520393 0.020091199672031317 0.009330234707697279 0.20544875756643852 0.0084057142089261922 0.20688229748312884 0.13759156558457641 0.010924611722734196 0.011629548942831767 0.004078326132176768 0.0089371076869016568 0.47399391513195333 0.10459096299116936 0.66066753510927811 0.10604250928024384 0.0064495806185473625 0.022113624629024744 0.68075344554185646 0.01918018439658882 0.007862276439140236 0.0091483032776412121 0.47093932497366858 0.0088717773077800349 0.70227897904305148 0.018797667447010738 0.022490044479072241 0.19999950931232238 0.012070957408625269 0.0069704876609107194 0.012029409027969905 0.0084540648390482656 0.011241318617033445 0.24164794400252615 0.010342309356233158 0.010397270125013812 0.11133712421920453 0.012722180685419041 0.0047900059025674131 0.21043221312746641 0.11234192412107623 0.20468013142389163 0.010669011630508863 0.0099330312073709487 0.6278462780932359 0.45819944450714867 0.012537324869667948 0.023282021681236872 0.37381032605632858 0.20786772258878716 0.11103840525651854 0.23184626199528061 0.20568103815762706 0.20700750081015698 0.0068163076666934502 0.45634156067127829 0.7535058217106162 0.31172049484889103 0.00608911480829895 0.0065922611892716247 0.13837417401311169 0.1044937755431158 0.30700385153778764 0.0076366645030968129 0.011887706917791851 0.0078370730163863887 0.84813950469744359 0.65670763102907748 0.0060215843722782169 0.86690542514787117 0.20538073750779368 0.51577122987137203 0.010747778997663833 0.014804316494909793 0.0075772642207732228 0.10439942249451219 0.56727117234774505 0.21316685931461277 0.10967342255455491 0.0045790439870218146 0.11135290625350265 0.21034531715655019 0.20797347191896048 0.016801314048516633 0.0090334827487509751 0.60310312165141844 0.013464224419110294 0.007871287941434409 0.0057452134532827116 0.0058250230057532958 0.31532493298529568 0.51139035514688869 0.11695132400235073 0.0050873159024508287 0.10463792302399935 0.017364459266121651 0.20905181249410959 0.20250478324718027 0.0050099199246608685 0.30690757271922642 0.10491226613756623 0.008644627617904849 0.28175026628493688 0.28381278304582241 0.0064816232500937467 0.38623829922325931 0.004623212667496158 0.01100300673835296 0.0095034348504772631 0.0057838588602378794 0.016908066678351357 0.0067132495629629065 0.16241344089830662 0.0086388225031580387 0.1831051082884973 0.0087319729079416396 0.17627076444600381 0.39014906210465228 0.10508539115422259 0.0087553279785906758 0.0097083009094753713 0.013820333574214062 0.011200168679827078 0.21882310947142797 0.011873130229130719 0.007596083926277729 0.0070480812984832237 0.57863273073255173 0.21847842863531561 0.0066948187765739405 0.85463087595135268 0.0082285116581419133 0.011565075918276779 0.0074825332708115689 0.3887381974241797 0.59328065572647426 0.012737955162784233 0.0084042256936249088 0.011216630290302135 0.0040153731265904326 0.013835645908636996 0.18180347686744855 0.29031131419463052 0.19870265052176417 0.49449691338433449 0.014971836928730491;0.63908858468515906 0.0024543710400568076 0.010250969354968199 0.72202513667093982 0.0095873080682398418 0.014243279199094851 0.12775345013930178 0.25201849563793477 0.0054885990783039565 0.12938129473070586 0.019859217011543782 0.0079099059289501825 0.019932404066148712 0.0040596897096195602 0.92027140034019106 0.014097990357378246 0.012613801650983639 0.1288350832095938 0.0033288372207127197 0.0037409067354374544 0.25137932150592884 0.10886031787991422 0.0047624482111070692 0.98870255961094711 0.0046625516986139202 0.36858252799124736 0.0098818549348153126 0.0064622164116867886 0.015415984672467988 0.023651625730692991 0.10117941412808516 0.0087125579481869414 0.0080831515520518957 0.28161599498793333 0.012645737784440511 0.018570458582662375 0.0062698534991008827 0.0082937917008387568 0.15129045466066193 0.0045510269403242799 0.26473527010382636 0.0023239737425841435 0.73106640838068859 0.12990147954694262 0.72062161436923911 0.0047802674347891877 0.013810421233524686 0.35942460586808317 0.36847984864356886 0.25060629657948724 0.0044786440889520024 0.34812980330708249 0.12811843851132701 0.010846551455079467 0.0085629888350732698 0.02169391378329677 0.0035765619633785287 0.14575499722754723 0.25662478148746592 0.59259227956392335 0.52007029539782335 0.50436649021675373 0.74998750066208186 0.0080935460543254158 0.0055010815502622989 0.0056262624276023354 0.0068423760974308584 0.003134545420673917 0.0046409187059587784 0.3799139548140843 0.004310975456270451 0.009273768746315381 0.25554777381461674 0.0045771098639105891 0.38039181082147167 0.13385583523268096 0.0059364047689326521 0.25959330471736347 0.2834173023968134 0.019377583495234964 0.72667264443298407 0.0027053667961863927 0.6104242115277394 0.0061035760404237202 0.29286502116885255 0.83926473707902072 0.003414288214898472 0.0016095275603932946 0.0054026983956984064 0.40089327157861965 0.0030265903549710851 0.25459944276184732 0.0038164158765084852 0.11830309229302317 0.84815531938429622 0.010400783205926549 0.12537619842476597 0.010296414451007888 0.0030118145469468583 0.010212164707910462 0.13411155212042516 0.99609547306400814 0.0042567786835261724 0.0025842839025402658 0.12049289754001068 0.26978597043164543 0.022934564460543296 0.11727438207657453 0.11828453007217488 0.37945181217855872 0.12022370104051831 0.0058051572118145807 0.0059413798492209281 0.12738088394226574 0.00462873885480469 0.26375645777978224 0.0088991279700309928 0.84259389057031586 0.014484368028089804 0.63654285526213206 0.94767594743165151 0.0072025402923692663 0.13910208260394591 0.013246211238497233 0.72797336070403895 0.0085959938506137354 0.0070698908342486724 0.005457350487398936 0.0035635017258908155 0.71515483866658403 0.95117982604308771 0.49393163875527246 0.0057278365183518797 0.0033584899002390544 0.011053340435442035 0.0049396901857462127 0.00289117621697657 0.39652308411510934 0.24992498353605272 0.0096585892754914061 0.24802673617551313 0.0038986234560266244 0.12980002022623935 0.84856490041231014 0.0034117861554480455 0.24696328933882133 0.0049585345604205629 0.128956766262149 0.0084706571104038817 0.0019266641313513075 0.25568102296645701 0.12496888541062823 0.39669378488957036 0.0049822867017207794 0.12270788640057771 0.25791087437627586 0.11913277280267898 0.0028989135897593463 0.37176753619227643 0.0023974919792457573 0.24053152908826586 0.011587147391369649 0.24132255757449608 0.25574951952206088 0.0061522303558466784 0.004778759711250421 0.13857095542066533 0.007347210116455798 0.0081987470960669575 0.83162437774802667 0.28727606096203451 0.12636791718384507 0.005394705022415236 0.82677663560855075 0.0037896506038660677 0.0073835511623542996 0.12950744067590744 0.0098853309132941308 0.53873180343669091 0.25013468493983693 0.020725806071628244 0.021361015468297277 0.36320950387132633 0.60392187037401923 0.13609725478285609 0.0066306928335937041 0.37728318801007454 0.0029990735021895145 0.11842979391261223 0.72185713198293799 0.65217850527813226 0.25730399403256177 0.63206002595621757 0.12897046786345973 0.0083174212111429904 0.25281141458190132 0.4766908721131366 0.74151913283665627 0.59215335792333956 0.0071184851569445658 0.013475689137814441 0.014923427101513181 0.97351714967964187 0.0036274448128770691 0.0024934533088155205 0.63510837907798834 0.0088362453325170048 0.64794387903444284 0.0051752728504381052 0.1155291038527919 0.0073033241527477926 0.43598264205227522 0.52635523446331711 0.87202697196366818 0.43289054663122256 0.0095448536091225743 0.0056395854352100754 0.0038056277698581787 0.0086098357447588099 0.97650479476854324 0.5093467749584798 0.012128192978148357 0.79293108143788738 0.13735461658982698 0.0038722032379975603 0.0049639875569971919 0.0043522213548943395 0.23561060906956316 0.0036059893772868359 0.0064072891560382076 0.01045531569630063 0.019186075591437948 0.36513081011517939 0.5006592693982026 0.13070313408058107 0.49773296690277319 0.0047765985865782633 0.71849359095830334 0.1177214059056655 0.0045299036072039356 0.51577161162954077 0.96511274440452244 0.0062345916672882033 0.0045632670409340628 0.0071897091515576265 0.010011679929522494 0.37263929098706738 0.60924287904382513 0.0062504298835880153 0.50421757509209575 0.24625224459852907 0.0063818418403007457 0.98017921005362685 0.0039745030938567955 0.010399185350603447 0.8557530505943356 0.0071054561904791121 0.010449497537852435 0.16316504818309316 0.0067927323031700924 0.0048430664496427337 0.13771945708732422 0.12808308381530564 0.25423076453483762 0.0026368328616104388 0.0031385139460413753 0.26818207305214437 0.0031324052133744422 0.25346396863098547 0.11964907629988918 0.10584875767949672 0.12918842459046997 0.0038061103317190842 0.12276399039844049 0.0060476638922968059 0.0093086094021551102 0.0058421818152699914 0.12758401870952088 0.9788214074383812 0.009832622803988663 0.25239240491074366 0.12543371873376971 0.0025405889100003553 0.0038112186611287862 0.0062897114571329443 0.0042940966224992872 0.13103692597488287 0.13285113073518337 0.26343161021707456 0.0024095239648090376 0.023451861939632647 0.13197946894489254 0.11064046359167715 0.02103395233145236 0.25466330995353337 0.96635207787879107 0.020398411607876206 0.0025169636908842869 0.48710671168600966 0.036387232263222734 0.0063168272003857311 0.82228765569091355 0.13723482897031206 0.68049049535463313 0.0037560399464196289 0.13497162339550214 0.0049828977100126884 0.0065945150682501386 0.0056024198771656717 0.15612228473233641 0.13496920135400164 0.48361573014529113 0.0057071961804114639 0.49491329546617702 0.23131761732843834 0.003580442500127414 0.13228767015242193 0.012855295983764618 0.0047084526045443357 0.003498856937323277 0.3819134524137181 0.7287380178201659 0.0073761059418377293 0.36511235567843897 0.0057851798849489818 0.25529548851405154 0.0034833893467566155 0.0042112103724167701 0.0054252283034874789 0.39547420029740737 0.02653138308899422 0.87164322377176451 0.0025915585964337083 0.0082811656285734225 0.12204420126525621 0.023137791306313577 0.46378540864481183 0.13383083154724901 0.003813329878427901 0.61838864968153229 0.8522928537971538 0.0041127231914017143 0.11958507872903433 0.12740334205921552 0.24673280435673459 0.67785405441478963 0.0042414471140613773 0.0029276209953849499 0.0040650434088520711 0.39675358040369357 0.013015277204227344 0.47933116283353328 0.0046143627359166344 0.13533448700593564 0.0089239967317240321 0.022178530890834054 0.26219739000143649 0.12404165210066995 0.0035881345644662699 0.013003651674999755 0.13042461418953449 0.53511003665713397 0.97602293530348438 0.0081000960955354105 0.0050316208946524681 0.0046363338224308026 0.13991422703622344 0.0046667695033019759 0.012028310375798892 0.027697649982771796 0.016837225665886676 0.25583246907669666 0.0044783965481614407 0.0025561710387549553 0.0040291397787588336 0.013322633208384097 0.007370798083220215 0.11751033996912684 0.0065907006215809392 0.0053342196021828525 0.0026367573748650361 0.82984830479119676 0.012006791059669026 0.34293976811418941 0.14159122970126967 0.0034076097053413242 0.0031930367184304274 0.019056246885432025 0.14360951807902075 0.38456534792122693 0.12748376528772259 0.0038825457904441444 0.12194623364724753 0.0040795636513824597 0.0045899928417275099 0.0054988431824824517 0.0027423870386635929 0.0085695141303228986 0.94137743530038243 0.014620402568902556;0.002028118276247581 0.0046016162598256777 0.99657706548168645 0.99998321964960224 0.00068200081308824917 0.0024964360266055492 0.00038502348218697033 0.0099288316088299924 0.99015808360993085 0.0029860287282908737 0.99889084133245631 0.00057252498607289536 0.0088402002412320269 2.4778777827782929e-05 0.99116547899101903 0.0025945985812405419 0.9907359110719004 0.0037771446910706834 0.016940152062456412 5.9828066662362828e-05 0.00060096227818107596 0.00024133267391184256 1.648248885939144e-05 0.99955405337114456 0.00018260491789942745 0.999851846994676 0.0016482173711754673 0.00087813928018966325 0.0085827405279499773 0.9919194579117262 0.012316578507224396 0.0020461412457114707 0.0088452952996741722 0.99857293967957061 0.0033808984124939663 0.0073701657467476252 0.0085501013516717655 0.99480373040433445 0.001968224764669093 0.011251862686149146 7.740231084220121e-05 0.0031009413615333474 0.00088152684031402582 0.00061948740462226609 0.99755608707980203 0.0089534851364431924 6.1306636896560216e-05 0.00033080994923423044 0.0026070822852792461 0.99856213400763183 0.023192632085964979 0.99467136042380377 0.98378529449554919 0.0080401727573151793 0.99308780014274001 0.0042063678900858565 0.0048781858962323394 0.010194243185496844 0.00081069009390113923 0.015870920044179896 0.0061772617873586616 0.001022680770763532 0.035535403398080534 0.99014568971076788 4.3408765449703976e-05 0.0080879442685274274 0.0055675043981346555 0.98505385017368952 0.012890521449975425 0.9999287149264644 0.030783512200308682 0.98044611149760086 0.99212066147688516 0.0075649836652036777 0.01716667095014706 0.99225980099265154 6.273385902346198e-05 0.011779252305593794 0.00068339009231628708 0.98687525081095973 0.011959474588942214 0.018101385413188936 0.016776920710866856 0.01176915891431596 0.025620326870017748 0.99996176455422581 0.99902384682991741 0.00030903041749035486 0.0069000827136390447 0.036651779095347482 0.00013976191616078847 0.00016880737746136366 0.99979972671440498 0.0065071984832489526 0.99993316117204545 0.0057688930310326979 0.0080965877128000609 0.0010437633024575972 0.00036659387510814086 0.9778726245844368 0.00013273466653750745 0.99707276830437785 0.0072666578959255049 7.8375090005284564e-05 0.035578310562311602 0.0015715392448109283 0.0005639029417800137 0.99666796456254181 0.024210535591200458 0.99999945906409415 0.0025451619945733232 0.00037597051832852181 0.99092554069169025 0.01667387124101511 1.6818458464519302e-05 0.0014227735910865671 0.00032478630132588843 0.002338636608859631 0.026537704317184534 0.0092497859704933367 0.012377485904725344 0.00071151042934065347 0.0060818197906224352 0.019326693459256944 0.03756898803545252 0.99987803194904346 0.9890748831049988 0.99983562308304086 0.9855487981108233 0.034005684989862235 0.011363994941531652 0.0027585266707229848 0.045100682288283143 0.00030006799553987715 0.0039484367064353309 0.002041841333642538 0.0056455995146991889 0.98671321455762451 0.013327662086538173 0.99581635438143989 0.0025115347255647647 4.5123240960741115e-05 0.0050434011607150284 0.0041719443950575434 0.99636512974374691 0.99999847174948731 0.00011747903535419289 0.99999883935217149 0.99518400141551988 0.0032666052740166589 0.020476961863540331 0.014570276371328348 0.98496564391227492 0.0042178673877360327 0.0015363470672643369 0.0018596671232757097 0.98183446304645161 0.010713765804501757 0.00045715126606583342 0.00021469634845348713 0.98674237295476053 0.99162354008383657 0.00016564948983384411 0.98813421621566289 0.011905087327744153 0.00035617354815100304 0.013906407327971581 0.0047124199817943184 0.031492338451418529 0.025814524400632335 0.9942898144404686 0.0079878152005495792 0.0034526759284287966 0.025112072877352409 0.0054629362899419626 0.015284694034593897 0.98600364724116063 0.0093539115494059733 0.99167145540191637 0.0021853740297496644 0.0032171098238117013 0.00058533882680360033 0.00037720645142641187 0.012826962311775981 0.99982423532972498 0.0022483285211056707 3.2072120834977238e-05 0.038516991793425957 0.00064940893350701862 0.0037276540212334537 0.99781980616144517 0.00035714099616032452 0.0024425203349315886 3.1956233704363496e-05 0.00080695230170490097 0.00030921243032392797 0.0076039389637795694 0.0046173888396433983 0.0094567583138026705 0.99683815424933853 0.00042497819032194799 0.03537928974623597 0.0014395810113001989 0.0048690855815477123 0.0014899369731251914 0.99575782841905569 0.0012200643085945452 0.9995874787297917 0.00030965868760119282 0.99652294383016782 0.99741134146308263 0.99994834342605621 0.011526810029354108 0.996574013128536 0.0022316425969366536 4.8412344388329198e-05 2.7877849264241249e-05 9.9565149042416822e-05 0.0031456663347999374 0.99849036460762142 0.010559430292181229 0.0033555789581218094 0.99112048316581147 0.00084019568906616563 0.00014383372960669741 0.0176776112313482 0.00069323312607674455 0.99648828179824411 0.0015631968330048025 0.0077322831961804802 0.0059393908939383445 0.9954791074372229 0.00036792525329731104 0.026909840088832671 0.99997693728476855 0.0027670748998287428 0.99990359518275673 0.0072220637228619733 0.9921142521434464 0.00018185417920798445 0.0016317383607848586 0.99958115483196741 0.0011714458683786109 0.0012808305374799604 0.01176943631497725 0.0003949310255593082 0.00023122324025034736 0.0046533305214514382 0.99909174712021576 0.0020686061725933738 0.0010197179488454604 0.0023060465589494769 0.99932779328709687 0.0080420527227791482 0.012035963811071457 0.99326379583336144 0.99081580567152316 0.018089520837815981 0.0087273090093274372 0.0036987139551831797 0.99788338094134121 0.0068314402176301971 0.010983235152786663 0.00036196656295384036 0.0038534793976292888 0.012273335289944188 0.98689828722049167 0.99871916919201675 0.0012284185701496439 0.0033442339560520724 0.0026570154011144507 0.98277432724112168 0.99338632623443246 0.0041453939331231402 0.00015370907639094536 0.98202776238568412 0.00032344158734599708 0.0011719567304188619 0.99999991635718766 0.016858417800180166 0.0050376136792480925 0.004674344781270782 0.00067570050658593954 0.00040739112526206049 0.00013888259527233295 0.99560948120333526 0.019207662403055943 0.00013053153583757031 0.037819171080103964 0.00014577090713579393 0.0016631769521332392 0.025029943194464221 0.0012073101528129748 0.97803550758929381 0.002840460434175593 0.99988528751648331 0.0074435381952904413 0.00073907984600754008 0.99699371733270936 0.98423676078590916 8.0131278850289521e-05 0.99997936753699979 0.062156544195793299 0.00011095168596617173 0.99651834748328161 0.98593834502178224 0.0019752578519943676 0.0086522953061543093 0.0021407422239374733 0.026167708013093465 0.0005040515908543014 0.98989644905111263 0.0033868865941625434 0.98805459485579905 0.981817135445894 0.99465338439914086 0.9998978953788108 0.00083252735130379791 0.00028089492011787237 0.00029088696298405076 0.0023577721277984972 0.99552674381157913 0.00035399265747562204 0.0020770629804560694 0.0062600376469847136 0.99980707266148128 0.99547282422163763 0.0027269906969898073 0.00045354106175297097 0.0025748197400100258 0.99885308530321548 0.0016434020123513038 0.00220732255778923 0.00049481490482655667 0.017360672326712512 0.010435040767788241 0.0168765745126064 0.022653984731970219 0.00011525680539378162 0.0042704691813960543 0.99687306358235039 0.0015847612162032988 0.011671788443299113 0.012688536429741453 0.0035621448009269174 0.99957261148621901 0.001307463637193626 0.0018508676180600872 0.0017327024452486698 7.0810525712225334e-05 0.00010449781997174885 0.99976615753562836 0.013337832720999723 0.0039922057559793403 0.0005695803583229196 0.9846633400387439 0.97814348520290118 0.017535425905510771 0.00024550375493430241 3.1964702920931789e-05 0.0010541552740981918 0.016143920680945438 0.99986709908049343 0.0018253151407373713 0.99988376117984767 7.9243233545181661e-05 0.99239973545723748 0.00063730823678809722 0.00061472756560420607 0.021660572104147027 0.97926298079870966 0.043166016025796644 0.0014647665285726199 0.055484958394299962 0.99972637808809239 0.0028650346403252497 0.00011489801345119122 0.0074957976301108413 0.0033895979028363901 0.00039632443901371821 0.0044212537066737716 0.00083992337461928353 0.0026719422551080879 0.99757138025893644 0.00016051560222432265 0.010107702430979396 0.0015536377918556039 0.0018908341114165581 0.99582569339895544 0.98025614003030859 0.0027815760636464479 0.0040630524053643455 0.0006899723252549526 0.0019104347139127229 0.00050207384100657473 0.0081271048994645805 0.99998453288797773 0.006646799542940107 0.014526203873536005 0.99538598218590135;0.15324499386851015 0.0033786579446970434 0.20664703742909063 0.54422206990216992 0.12979446834008002 0.21439618124983595 0.010924837956480117 0.015562276812770511 0.0053677146239391321 0.0078591059541587814 0.3993019979392225 0.5778366585897069 0.016187821789571101 0.0086276516934202623 0.141004129386058 0.69319304424465256 0.011926994847421584 0.34744634803459928 0.0073258871628666539 0.012849406919988114 0.077259179702327402 0.021389537911751001 0.0046761989227838505 0.67177499356228754 0.0096865784761076164 0.01320708323505437 0.34349546183374724 0.0049277282385335741 0.097318954542883335 0.51539385234113699 0.080413388237346159 0.077032616898788236 0.01206153027047056 0.95551775720116905 0.59135514304526926 0.0070353324058062081 0.015048271938719817 0.089920578168695683 0.020741551971147302 0.0045078634603839098 0.28645760774764639 0.76167874142358682 0.14994253344893915 0.08924792270282958 0.22452353312401657 0.015018015242582249 0.0088763496658830401 0.018034029118679806 0.010560557299728398 0.35391492786803724 0.0071204637722684606 0.01601250513142724 0.077402806833380702 0.0094690760507200027 0.14371614844268074 0.21616354980994926 0.010014231345203572 0.06954253644499124 0.79020711971004098 0.083668336728618745 0.86929786971927692 0.007213175460359024 0.22038962589471653 0.01079691736805294 0.0031246719981232337 0.34521530928392219 0.015397369471594344 0.076964523572346816 0.09239959957304382 0.53584400728176251 0.021953396823309802 0.15415967445099366 0.0066174092760453501 0.080392351977281576 0.14738137481623109 0.20552557629717316 0.0056562052657944169 0.22232719479294885 0.15293396657137975 0.41257257881279774 0.010785802209948708 0.004614128517959332 0.21459563701909998 0.013325704640550537 0.28896254149797973 0.0088774090566458817 0.079577683557827947 0.0034659396707673608 0.0062764321135886742 0.13398139619049892 0.0069661646353942645 0.0088093054918652134 0.29443395146198775 0.0086013652641633385 0.12999628413796632 0.0057018720405147896 0.14362191633147167 0.26859962984911795 0.073642293977214654 0.073048994464125591 0.47335794870285075 0.57806889191611111 0.0041743900875537412 0.0070923006521978966 0.0041940688389579834 0.20548843994218668 0.018603584680372792 0.08269388690901941 0.085585125489105865 0.46039438824001427 0.28283256618462971 0.26938279616005234 0.0068678661891741193 0.075584848961666729 0.0044984992826847953 0.27261355029438783 0.23615927815467619 0.30086642619061998 0.077206723461146043 0.012734221855175244 0.21890989876040809 0.074596097859786117 0.26367788152176164 0.07949240607993821 0.35116623539801928 0.0045394602208007149 0.0071967708772611829 0.012747461409095152 0.006302536488902612 0.084101495352005035 0.15290247725326553 0.25723205211738304 0.079516129402333907 0.067860788120487292 0.28586879101573243 0.14504416755674257 0.083718547675751931 0.081123697258630695 0.0079602438533759208 0.21205479356975879 0.080175047435932262 0.0061309746001353355 0.43205070849700633 0.079928135412265233 0.0029008144976247503 0.35983940541084758 0.07911652654223815 0.0065942724808085891 0.44296619588755137 0.005385897702134471 0.28838742578552257 0.0048500209266864906 0.71349897228665982 0.0052571125274301659 0.34862843471508947 0.085779994552137986 0.15420077510237462 0.010778829179756451 0.54917107939498666 0.0086252672201821302 0.23075927887142464 0.42393751067071106 0.50160934366078591 0.020432004379078474 0.077531310298694089 0.0064277753178270921 0.0090785713872447993 0.078712045602079186 0.2153083282504441 0.084411630562300638 0.21752264804534668 0.35372929806177228 0.084765758890833889 0.83137277350813688 0.0044611869205910763 0.39472859347895844 0.089046072931348849 0.080148419004751337 0.16542501218253314 0.0051607600962932133 0.007435036754608472 0.228499786674696 0.083881405457351427 0.018709789883043951 0.15269998788664174 0.53955941136672336 0.21717609493486578 0.012117884524096701 0.081404274918725386 0.030993015662682609 0.51631528097526247 0.20963104705357583 0.16578086618187357 0.426799403249292 0.14445263306371756 0.13704012125040524 0.013989311585350665 0.39043780821594765 0.086212861401191762 0.078927080276693928 0.21511571704633442 0.15990083545148637 0.13473275823058609 0.010091126892484311 0.0028026699988512971 0.011076439203129783 0.30480407305891555 0.82773472393560521 0.1404196080140932 0.83769671486480257 0.017236350906547179 0.48321832765891148 0.075824798239709529 0.21576960862233963 0.68376978516997866 0.084211301473497299 0.13882238122295618 0.004448513550525798 0.0068243196572029749 0.80539094065536543 0.081600489226628131 0.0046593767445002937 0.34380865499500729 0.016596295416228604 0.0073742341677391944 0.14688335110108536 0.0059426258361867145 0.28159435907742397 0.008198434429549116 0.15957875195068039 0.013285455844154637 0.074554953069305499 0.081881747312553252 0.010577164593425404 0.15381995784521596 0.28931300537999116 0.083718709642999364 0.090463689053182125 0.01109877409585475 0.0051763966574472119 0.14616723004709967 0.0085077011591685146 0.0094840394834322574 0.082290990795822069 0.084200131248289511 0.15148834664934141 0.0097195119000801893 0.21432304222894752 0.29290713797504836 0.4351706467786558 0.015334626027169319 0.15617011176875445 0.35248714144799931 0.0039589557760994157 0.0093967157979099845 0.54005573518120376 0.010044545738720358 0.013122883456567515 0.086117553224126578 0.15553813490105872 0.41979103618167168 0.14671744465715039 0.28554232641833333 0.09625776296432495 0.0751072209095794 0.15701810573784014 0.34719599352338049 0.076600381583142779 0.14640488635067625 0.20853475328550211 0.015335673858330387 0.42353390722641576 0.0095371563288307957 0.29559105493431626 0.0037636711116966677 0.13539503267564412 0.074987252138407248 0.0099826058337746833 0.083015096637183816 0.015685280908370756 0.079769548458447678 0.078004299908555258 0.0079974680772946106 0.0043789329966403296 0.0058496529427719641 0.011093409346208179 0.01022894617283665 0.15443288889185039 0.010272964790003218 0.012854287047371096 0.02354636871332565 0.1478418079622616 0.0062058587756404198 0.079147971615152607 0.14435781435766298 0.34535270486090852 0.0079420730290913361 0.0052432509921086804 0.39615324871641311 0.34312917305804141 0.0070018256307774812 0.01447597649781221 0.008997088296690544 0.011583059901389371 0.078556473368553981 0.0084997886857085276 0.081139910783098845 0.020834913336544997 0.0098103880457342651 0.0079518593000765594 0.087159954708805373 0.0095137679539543194 0.069345611765425794 0.070822642250631326 0.15375588738025134 0.0075588713956980837 0.067236513379867135 0.0065857049879318461 0.0056899594242519648 0.082163135498011311 0.21452268882345688 0.74470005757058033 0.16222527198525352 0.21746924342654705 0.0046024476911916924 0.28394187479258881 0.15500366625424702 0.077342169219454596 0.35373738299194385 0.29598102162719175 0.21681831002785318 0.22417857003030539 0.078955202149106188 0.54601618432054355 0.15169058404246111 0.28491826967769412 0.72014111885067444 0.014554059917716369 0.073544010119596021 0.063628544849772151 0.086047966612212826 0.078496721230748467 0.13095930076389142 0.0063619639621686763 0.28524111643400885 0.15466088487390725 0.26804833329028277 0.0042021273530649297 0.0724912915871158 0.44135861006387067 0.29331426736939714 0.21548181742797154 0.21292882782260861 0.15018720461905674 0.069779570711265018 0.67666349223975197 0.072087749827347544 0.086875459808933742 0.064857975411902538 0.47912616709611289 0.078443688650544088 0.080828035920223543 0.94561096115843046 0.2134959251942648 0.31061123895645437 0.1454336950897375 0.21868071511608334 0.14196468436490969 0.75350617188246627 0.15524266170535631 0.52583864422454629 0.012037412646417545 0.0056599009054375199 0.0039390660915592599 0.0083458799753048599 0.070842580623739548 0.28070828063094766 0.42806105487492363 0.0039162056576834258 0.0045828235754830412 0.0044221809618388477 0.46450592753771935 0.43153450522080355 0.017381514007551162 0.28190367773557518 0.26699391894502339 0.0047033431948874469 0.14411342807314925 0.0039424194326385317 0.28126033681162971 0.23716597623526656 0.080804284133065563 0.0096195408382691895 0.0068491103526434303 0.01108058014005401 0.067322780746437924 0.083100866352360178 0.30149348128568682 0.15261783581291752 0.88502089156235797;0.11642992862980475 0.0084693195990469677 0.058536279127920476 0.1020001107615653 0.18902799560241959 0.20076907692130574 0.065799184962946913 0.10368621110494657 0.0072408769675745771 0.16095326720068392 0.12832328212162403 0.10689198199832331 0.32501577767393558 0.010971372198730456 0.054623752619341805 0.063804438009862241 0.11389769519546003 0.092610726861311249 0.010606601918487666 0.064661378610726392 0.0056129915926695631 0.012961322643298826 0.0059904742889269457 0.058122233235235472 0.23781834738205809 0.012967046844797176 0.017186286206203567 0.071159610645339544 0.57757442469244469 0.19754640278932972 0.42649738560096928 0.0085116786050465684 0.0082839609914305001 0.27400220004696957 0.37726220558138862 0.02118334659385189 0.0066979108195706566 0.063315596363491017 0.10495325278947407 0.0056580016628207629 0.090966663717471807 0.18240709950069345 0.11003666296519589 0.066916754356888111 0.053968037116072495 0.006984711734620291 0.01110858846845883 0.014101926450896985 0.1556701440293265 0.48655839970104869 0.0096947751071845018 0.06823237150804877 0.10649816528201177 0.42237409152183408 0.056992197468978704 0.37925937482914707 0.14846121527976444 0.16686292955943666 0.24909739329836467 0.012101988635824477 0.40344678529971251 0.10690064123508947 0.22857424424706635 0.05766067444716455 0.0068652454004435705 0.027780582330128832 0.57053573013705783 0.0071034839675998482 0.082023930744511725 0.015338563617415984 0.009046630023459918 0.22172138008644479 0.10639659328306679 0.067134872863511469 0.054562834497932089 0.09441787615510093 0.093829894653093271 0.099789110714148421 0.35061216770403636 0.27565228150522331 0.01185075481066681 0.006346556726362672 0.12435211230430195 0.053985354159934378 0.10563153001405014 0.0058715920180816396 0.0064660405671028206 0.05108461892024467 0.051634596787651622 0.015057157818522519 0.23828471497694326 0.15340900895025605 0.013490230557942757 0.007852025207358726 0.065785086413779101 0.026031471348724276 0.0091554604833556721 0.17956584470806286 0.053740361372484606 0.0075147358009947825 0.20033102934078739 0.1986993311992718 0.0070389367336211378 0.068631162312726118 0.0086814057845041974 0.073635913575739217 0.060761945262190011 0.052657876454938725 0.014240042512237894 0.26015932265414848 0.057972095393313321 0.11394448982672042 0.0056334755325577355 0.0089573102239534057 0.055856517430488598 0.057293023092750771 0.060065295834096241 0.44820993605143794 0.0097987748471276646 0.057921825240027501 0.016890706111131564 0.0047033358795167783 0.065459476923937665 0.012044138853901412 0.0095841786535315159 0.053538812762356634 0.009143099458539531 0.16791942663987777 0.053133620755980999 0.091112464949823599 0.10483820941946417 0.14314503684979177 0.020494500440659071 0.012993903736979881 0.14044070582070944 0.016973055074676894 0.11091288319621828 0.56812604156331958 0.0077741560328622051 0.10516384814483198 0.54680065074168893 0.0089925090903921964 0.023161617558103399 0.46119828887686282 0.006273700221874819 0.058491502128333574 0.062339682565550524 0.0069881239243557054 0.44193027825928471 0.048893490388188729 0.10809981147929758 0.1172702406815964 0.19452401507322628 0.006545799075308118 0.077429105712897725 0.0064675944891221951 0.33221006903927575 0.014603393858590406 0.33301880648476934 0.088766328946619066 0.095264402670535098 0.93572675113881643 0.56517900178197489 0.46543274673519025 0.057341687383129468 0.1238536426450995 0.15775529308290431 0.15705859515027146 0.10586626653334615 0.0079844178075652895 0.014125146240161833 0.10670151606651548 0.15358362699870581 0.16096042656459716 0.054337348172994911 0.34222510507229031 0.055479476447937853 0.057769011329220105 0.24376651772916932 0.053191603544375451 0.063480308462097554 0.46000646071883744 0.27703732221273464 0.15206377125286949 0.020599982778294803 0.18650822669847439 0.23829644016998758 0.0082095963005183806 0.071140268041433738 0.20102005997760602 0.12025471363665738 0.010133474059397237 0.58297795562676968 0.056698062256436345 0.067285090051660168 0.060137721684517892 0.38941845702085232 0.1763048871553104 0.047621540711551939 0.10738329876396263 0.42314539097043696 0.82054430808741352 0.2107961816907867 0.00833256942518012 0.0092717301517802105 0.33694133376422775 0.18718874617555781 0.14525974576660916 0.37315131641428934 0.5352044370420288 0.015457783592924212 0.25837407461508238 0.059622136156205874 0.30105874234023261 0.74988014406151571 0.0080916585126460557 0.0087999830448534759 0.070881848306848808 0.012336402881452107 0.086247072299533253 0.10580295659530083 0.0087925014560495361 0.11988636393842837 0.44652510337658102 0.011020725762711986 0.0093900636447704737 0.0054454178055233305 0.16274551519329988 0.015086727933611687 0.12051026340056611 0.060305280712431159 0.074988208693655689 0.26149461059039375 0.0091617776690647267 0.016535172625809679 0.060886573357440119 0.010175276433106895 0.27396313435427588 0.018517919798737258 0.0074876055347178616 0.19082456596519046 0.26007680799599336 0.26254216500907063 0.0099213192279156009 0.15991887132772234 0.10550375894236751 0.059916181393294354 0.26711452961954157 0.053769613951010896 0.17579621505677004 0.12434071489421827 0.007142626996068299 0.23114421744238001 0.014855176484573124 0.1029410419185795 0.16427462738296802 0.010566336267168148 0.17418708705842104 0.061573378779944413 0.42309598273244858 0.061018465916596112 0.10897378328049102 0.37827503265005258 0.074562687657413779 0.055617347833863934 0.30207931471620192 0.64423877245311734 0.0067270819741751305 0.046418075285685846 0.0062069710480300343 0.010357409485002781 0.2437709963862516 0.048171654467659364 0.11425709369632643 0.0094219611244277593 0.1352079180499948 0.11424919839590363 0.006840815919560303 0.057783178372872071 0.35652031283958757 0.20754669493199446 0.010642692877727001 0.28647378391275535 0.0085025139505599933 0.011317129699331361 0.0064134669988787927 0.094518614690745406 0.68328002085000217 0.011897850906344487 0.016928984635744659 0.75957669665667149 0.012066628157566237 0.0092988532972556742 0.007992324094823965 0.023120231234923194 0.017822599483418924 0.063300992963298414 0.012556314189644072 0.52866446180435467 0.14953935551459385 0.056856806713199669 0.01078676339031567 0.010696500987107593 0.19268856741048501 0.011538948527651973 0.0066275011155117235 0.067481929204417687 0.086332184156851496 0.012075585619288651 0.0093488978031179316 0.17536422077232619 0.097406452884891706 0.014294584791294189 0.2040835023945749 0.055545223280339805 0.0083707790655470384 0.049319586215010522 0.0098228879249767226 0.0092702708573616076 0.11176311026238928 0.053783073000725705 0.067318385650321236 0.46068882504366676 0.1076735922973904 0.0068151086073648288 0.059482577908260045 0.060186372735844103 0.057457759195988022 0.0062722996303219078 0.31642120718219435 0.075781558923711398 0.2700915693566952 0.14457524865856258 0.44562382303040532 0.008173614185388485 0.012698168304424251 0.013008949886196776 0.011737741830983472 0.057678851404344429 0.0094637029130552885 0.015843282627858536 0.055695227426712825 0.81417827041872282 0.0085534393321940565 0.12577485520294596 0.11647683003899936 0.24406579264300898 0.009863405051967828 0.0063072544554409063 0.060823573492605976 0.33827722482204331 0.15954264955305425 0.015718796079380426 0.061342017120346627 0.0042501140574338686 0.33976492645206435 0.14465980998274711 0.014451654535392029 0.062437903460681156 0.12412897018753463 0.32197921143141284 0.010444867849270194 0.18841329245558955 0.45377737309474059 0.20405682134873951 0.18358458818238158 0.43910464904683744 0.15794030059171732 0.24333405422501858 0.10929399735482208 0.023374476610121517 0.074692987149514792 0.0076880291555585416 0.0064551565004803586 0.0096805429951671816 0.24647204000353112 0.057029438412323524 0.017176333536654275 0.0067030763443823096 0.0042467911093398451 0.010654346024565647 0.15208377618488564 0.30609066556266568 0.0070572027780767613 0.020870726741329296 0.16759116523207931 0.0066579792147899303 0.14487426367919046 0.058068909043043723 0.094149678843005916 0.15252459430338233 0.0098323065534765292 0.018634608708360888 0.01265122490823028 0.061845094606414179 0.0067439464257456113 0.011782516274163535 0.0041949966746999603 0.35467770276175115 0.33999051009348397;0.011546967860025778 0.0041362262826812662 0.1977667336696575 0.0063882820708901769 0.30199051299763374 0.1253061281761263 0.0043669430685725399 0.41760977377706532 0.0071628267223786653 0.0094103071043218807 0.40716853896141547 0.0046862483833521743 0.51001101058093679 0.28985581823816142 0.10413807255694492 0.21177380247177519 0.28668725321204397 0.21099841659851348 0.010421496290124128 0.0091069946623039012 0.31199065403821996 0.97016556643628693 0.10636724770341693 0.0041756002372455858 0.0074283429545219833 0.19487226724915871 0.003970520343764398 0.0085999458528470268 0.014849159145827448 0.10566093846074194 0.0045746337876220386 0.0049843680398883074 0.09941269146884367 0.097487900675410605 0.0032008099997759016 0.50402552856738581 0.11345600741635209 0.76591392707129069 0.10762548360174291 0.10663810762517777 0.50211988038685196 0.0063555483618758313 0.0026221718731788677 0.00697634208721942 0.19357969991432208 0.0058726539706666289 0.0051544124883327151 0.0070282916477734225 0.37756201077343171 0.0075705771239410451 0.2878604219171616 0.0044310449047726486 0.10903524916493715 0.0044031657117834912 0.68893233987920222 0.009527333564399559 0.3912607874998687 0.19927903648814141 0.0094932065578540066 0.60242256189682375 0.096594682351750158 0.21598316693656278 0.2902490523680834 0.10179475359532526 0.0056758317367576108 0.10578683646255353 0.007387525447951215 0.0033629949995437978 0.10882141136513473 0.0088616620147117416 0.0078026551444956285 0.098882090933187144 0.10578417407165222 0.0074389304117686069 0.10639706847861433 0.10509631046874397 0.19539161507390385 0.0037754521926615051 0.10637093306432016 0.19039155149459772 0.20577624135599781 0.0029157017254672745 0.0060000046138605273 0.20438033233355102 0.41737637666115507 0.10496892680852406 0.1065728172156211 0.10776154917727258 0.20996180023288474 0.10848474699452451 0.0043512672304698921 0.68872446624902972 0.10744373024239498 0.10629792923578418 0.0092970000192376286 0.10896573798812398 0.098979838781660431 0.0068245854295991022 0.57073790977098326 0.0032873586088878661 0.0072502665770358713 0.10176325704699385 0.0066308448329111067 0.11540416699128506 0.38632362673727105 0.8922078216994096 0.40616337654220497 0.10497656911684236 0.20628294537146807 0.0048489757797621508 0.11845444596501829 0.38240427883165201 0.29920101735930643 0.0028446338268273081 0.0070471560198052856 0.38692038725256078 0.21497271454787448 0.016373204603418748 0.20530965149503225 0.0053521379994022848 0.20810372217250317 0.10791762710792953 0.0058063542700337693 0.0060383325965107813 0.0032491380218164071 0.30694307544110755 0.0086428648045739735 0.47146300678842795 0.1113515606201284 0.20397003616405723 0.0026141285877176569 0.98099408551995415 0.0048263696084825487 0.29440263329217831 0.59386532239249334 0.0098028302215383573 0.30553632226971095 0.0079938027511855178 0.089899956078768481 0.011113372743299403 0.0073232257657616547 0.0057948682831899367 0.27934659620742286 0.10295408887532073 0.0033773910675380867 0.0054965151388566228 0.21435570666657144 0.10655212021276836 0.60703126191374257 0.0089083994367359955 0.8920008444244738 0.19625483566175478 0.089402235787522918 0.69066931076160354 0.5804267146200911 0.20653771259497958 0.76412894001174891 0.0091354410122388516 0.11077442785510128 0.70009511576284722 0.0035581927975833218 0.011474277229323485 0.19842388581619014 0.29291038833128047 0.1027926356557555 0.59732868349778645 0.40508423559912188 0.0055975308952399567 0.01709526507305037 0.005056351852502701 0.6895054587293401 0.95291081889817797 0.09531148011965726 0.0048045391793097286 0.61064221974669586 0.10410559242972015 0.74844356222127839 0.016832802484018548 0.0073578225670645186 0.10974262053052072 0.011040531912919885 0.38788769487857017 0.49439327983979509 0.1042327551679352 0.11358721302684339 0.19629032994160966 0.0088494886935700547 0.0039155103905103112 0.88318698221252934 0.098674671772905814 0.10040391795249361 0.0097752061255598349 0.31015655959686061 0.012196243551269796 0.31337917196022913 0.41353652328825469 0.65511326576763096 0.011259736940818488 0.0046264644905513082 0.0049831430662876167 0.29550359818161609 0.019160814149587532 0.86802885248015293 0.10161317683248948 0.0019455041048912808 0.097565221501253199 0.19340788526687724 0.0068482346718814141 0.69222448568652739 0.10169095771461927 0.19984119278235166 0.20963222124735664 0.10707055473344906 0.0030593340872639525 0.023227896068344897 0.10766739663267964 0.20380215481069219 0.0069727656182484547 0.0070235183417897348 0.013930204493546282 0.31777148166629271 0.0045768786367094824 0.21556245835620877 0.28064765590193347 0.38518217921718073 0.0061549572146388674 0.39979190622370109 0.0077892283629476394 0.11176413939276128 0.49908351463950384 0.30268530921526399 0.011161432214878456 0.21158364100296898 0.28376613075579094 0.0034071790460517308 0.20642297098106183 0.10152387558163967 0.015142648035843587 0.10888818039502256 0.2022395462575543 0.79270539329462109 0.0065983236890085981 0.11687010425613842 0.006054568808024679 0.28509481504693474 0.20413253573464896 0.40913351506345152 0.98611734110281934 0.11213826157788254 0.0054967033784861195 0.0087655431928594495 0.1023694652045566 0.47797360105665859 0.85738810200635973 0.10074178048984569 0.0041987770761583989 0.0059063158404345272 0.0059000806497435119 0.0039920487811042453 0.10509633044555892 0.11779141987706065 0.0075497984031834692 0.0054999692022698055 0.40005007998050873 0.0033255706515898098 0.19984356203573928 0.48772396511732263 0.0043124957852418095 0.76734988083998701 0.10375180740523514 0.39020591082137801 0.20190100804986416 0.10570813475586342 0.2091891124463138 0.10497040654288721 0.58981032246991294 0.0058009612311537232 0.0097821865591667303 0.0044803373006973837 0.26834226818353502 0.43329258362679446 0.20848555334624153 0.76809287257204939 0.0044934391579686001 0.093943201548768646 0.10557584794616556 0.18991506540996705 0.10448454642880092 0.011250170887909699 0.0087302168416616699 0.29837419024760214 0.032581197386580732 0.0036985480191520318 0.10160278078188278 0.46365459076984061 0.0048850217755265057 0.20498996658555796 0.66612276573833074 0.01027821605048854 0.0074862223521317064 0.0070201088351205046 0.1124735104062209 0.30239932694438354 0.39467118349600239 0.30133976687211428 0.0094027712600087236 0.30768802076480506 0.20225621221788287 0.014766207835272657 0.0093130869048682133 0.88263325151719318 0.10312107446639308 0.011704136020814861 0.10681145714736297 0.0057647971320310097 0.20628560409321819 0.10834385933883151 0.41211614692614873 0.10941568614310901 0.49709860882976853 0.10512014197249189 0.0072247329382799721 0.2956685651252261 0.0048934109808524235 0.2984117152919365 0.10538919180357242 0.42322978657546984 0.11026170521711531 0.0047256743007345475 0.96560675917013072 0.0040272977647250394 0.085485670269013672 0.21537473167412186 0.11547505624995047 0.0053671267762330464 0.098804118229545268 0.21324144179530619 0.1108002143303518 0.58814842737845585 0.0050410544633682228 0.11406889176369135 0.0082874399517611115 0.19810690018753974 0.093524531362736751 0.0040454446565248384 0.007459312165786422 0.095254014128638057 0.10682209424034582 0.0052016531720507457 0.10927110179063454 0.48939373462429125 0.0043700280534981146 0.0067289956183283943 0.08935335297990081 0.0027123611350996909 0.3888052439237244 0.11255565432601973 0.0052668284558983341 0.0058351897043887723 0.0019855193565778044 0.0055631033230936766 0.11299806130100815 0.39571150253229415 0.011626667760557263 0.0072965821972983316 0.14685559677459584 0.98016818890634394 0.10584527751572964 0.87109333473558437 0.0024723242873015178 0.096497623732980778 0.0065783684222679994 0.0056866050565140686 0.10693589868425921 0.0090390661543370311 0.30175690621393031 0.87420595045710847 0.0046423783364396686 0.003478087645468547 0.010997385334379543 0.0078933340747771204 0.01562213411704556 0.11348474617297202 0.20923441900907536 0.0088476986946653229 0.39578264641251304 0.007967879419337718 0.50221291948724911 0.10691990552745044 0.006981240940104696 0.67776067865951017 0.0048452167543074232 0.20216935089737298 0.48398940762601805 0.2835660087835582 0.0054037369122870282 0.0058023068074804091 0.0024958494065667877 0.0091248777274134767 0.6729809756695746;0.001354485202936998 0.00378813002552392 0.0080365675076159299 0.0040217050762203378 0.019910042732310534 0.006635663422251816 0.0034727575196563344 0.059650504645591351 0.0037186392699883391 0.029791634477296432 0.025447894974724161 0.0043210225253496395 0.98555696856939179 0.010468684485359992 0.01718204891011238 0.009865213175452801 0.0048604374787337484 0.0067069663779775164 0.011089475872374308 0.00092182161349787563 0.030618762777915243 0.95962078116452032 0.021171835198125457 0.0095644411048481214 0.0021491686795814232 0.0034432178423966031 0.0093453530666075153 0.0029474632853395389 0.009433858460266023 0.015981602178999642 0.0077431661345117491 0.93672813817997813 0.013850534749248305 0.0026967981631876394 0.00022860707243725157 0.95026884201627204 0.040422036237788714 0.0028159626693881976 0.0040004236234173199 0.0095758996818450046 0.93771081825578095 0.0056523248947239904 0.0037282730223574287 0.0025419935761138257 0.019848818845684089 0.0024958763446089891 0.0026163835490659658 0.94175191717447004 0.0052934428916234936 0.9659365141868258 0.0025601393176944479 0.0019945252047232011 0.0012619912575289576 0.0014523727186287994 0.0082667317666922559 0.0037370672180054589 0.024670825933789671 0.0033678731337224844 0.96661736850099367 0.98324600320645994 0.027550774369574805 0.96114456580158703 0.94813523982177761 0.010267905741460763 0.053898969618698896 0.0030794573505637706 0.04015217862311294 0.002692806940923827 0.00066594440594532804 0.010848158962484901 0.020222872995563058 0.00067176553011066246 0.0048184830709869586 0.97016546668341153 0.013020437824295641 0.019976702981661532 0.035297347788462219 0.0025157196118195117 0.012176221525092543 0.026174666259264505 0.0071989772496063083 0.0049228469501401018 0.0055955907164163083 0.98924664371313709 0.038342278434678662 0.0053961691669079477 0.0018772944957066047 0.03400636868580325 0.004417589468512173 0.0016726542623322583 0.021404278807087791 0.90065517702638809 0.0059477141407186639 0.005405041318991939 0.0093175165659604604 0.004158971442014419 0.0098982082716967054 0.95087966792141321 0.0036394635297403539 0.00131371892893974 0.0065041865185695991 0.026070678548858951 0.0040198135191682072 0.0090467854116209664 0.017005913556320865 0.0077547552876439958 0.98901039143536296 0.0026392303946452347 0.0080227408418095756 0.00099182077735771425 0.0049721838574302976 0.010810617702916029 0.96119510475644188 0.0039327900681660364 0.92299061597987964 0.96278902757941576 0.0068737044951065274 0.98659239023093526 0.013119538337353744 0.0079485104714433746 0.024984183715870984 0.0092687402285942105 0.013379205033955587 0.0049219271235222154 0.0010236739028088972 0.94106335007693698 0.0011523057556500822 0.00085672953281971638 0.96243488500615282 0.02768098038308827 0.86239998100094861 0.95989845463294121 0.0016668779183104103 0.0066255909644378158 0.98587339674069185 0.96603004760233702 0.0025357579577017144 0.9637276924249627 0.049813528536074771 0.0027924813314655658 0.95925724742276175 0.0011404337842662231 0.0050991751192968693 0.0051562780211329385 0.00073819901844752068 0.0061183602807056642 0.024938725027020204 0.0012175076963627462 0.0074054927532977207 0.02458112662186809 0.98902915214380782 0.017972909890690468 0.0061458782951099413 0.060688210690361177 0.042760282985173231 0.032254691166367928 0.029707394209951183 0.0030314824654835079 0.97145002489667631 0.9693888506202113 0.00064961602725461447 0.040805697419005464 0.97518741188079661 0.0063376366591583857 0.0056230598733564745 0.97666536609510923 0.0025712504197017332 0.0056068616809303966 0.0018073103469409713 0.0035669751016488426 0.95758765501552801 0.042362506491409865 0.0045032560212833455 0.0084110401525855378 0.020194806268250345 0.0043315518344686646 0.95340317388484441 0.015824763123154714 0.0039146484527390951 0.953737872641788 0.97773801288021123 0.0046793885693083249 0.99382996482854669 0.0027873907813915073 0.0037789657571220734 0.0050667610901313481 0.95718909878641623 0.00093324385877235178 0.037979388397539157 0.018421302296067765 0.0042355705697171746 0.032003713804338745 0.98242348620766229 0.004903213148224562 0.98111070428671154 0.97372377694222556 0.015332812179870418 0.044998018750062499 0.0087924354384221557 0.0051244212601615369 0.0043097329862452158 0.96245858647153582 0.98736689274895817 0.0069274333770987283 0.0034415436138138778 0.89180488740122998 0.0068944855770102431 0.0075380292164706347 0.010366338696889228 0.01370476123501203 0.0035733674335643702 0.0063572621849836523 0.97784208075000834 0.95289699180083709 0.013114735225553472 0.0018036612377807229 0.011515135300711627 0.012474968266645287 0.0077854659378893912 0.92424687980142695 0.0056919098787726156 0.024706286573899519 0.97132295107637934 0.023784876023911349 0.019730201574325226 0.0081837199168288133 0.99131694771492684 0.020658054343033798 0.98065702511490593 0.95793218063236163 0.028216662468113614 0.95335642474622961 0.013875042081462993 0.021269884993933067 0.00082138358001187931 0.98068039018438169 0.0054647684011372788 0.0039511366913100769 0.0017428558679607967 0.0042610958690396401 0.075855100350559646 0.0072030840830523586 0.0062485922709669831 0.011056879683479777 0.0020663313653383514 0.0020745029973347879 0.96868702640256799 0.9875747408567952 0.0095138683785463678 0.0047069773004300274 0.0020439324568390922 0.0023846100285930491 0.94594452416058405 0.011745148835453348 0.061994003476581822 0.0021867554396157425 0.0019486911630687092 0.0051380070481081034 0.92974635018821028 0.0055153627235257153 0.0076300812326092057 0.0016435839574493166 0.0084532379333183416 0.011601573256660795 0.0027319469215591145 0.0019264345264976292 0.031326968056249967 0.0020141792492458779 0.89961315551410415 0.001220111642383127 0.010459316412269203 0.87320095007516541 0.0023284008343665515 0.0037961269648221652 0.010216579115163989 0.016724343595512638 0.017481290215164185 0.0049827577134749527 0.010938965008888579 0.93752633091946302 0.069609014873438832 0.0067847578818059535 0.013259439412835741 0.0041104512587894155 0.94843485838154096 0.0064540630254460874 0.0049505557858819703 0.035536917317031312 0.01174436473730338 0.0065011185268078874 0.9780151603948869 0.0042296787604355025 0.0042426313047543018 0.0043981731343080864 0.98155002524696333 0.0016968615992849698 0.043008666530182621 0.0097322288626060256 0.049543890395201136 0.95107315068611764 0.030056979698931684 0.0081829711244822707 0.0073729832261898911 0.032529306661093237 0.0054436208917444566 0.0037750510744394687 0.97199194435937541 0.95036089144783287 0.0041094295060838436 0.0028267392490633233 0.057900483772261396 0.001853992035477383 0.0027512659255079014 0.97665644035892962 0.0053818403438813164 0.01626937970879026 0.0066268919142447695 0.96678717170944206 0.96284311907497544 0.019789122305650365 0.008929013168370083 0.0099837169096897438 0.049716913438305269 0.0093255658563167684 0.90562543598216372 0.96819232945262901 0.013053224215317625 0.97391005099560335 0.001090515520215536 0.99752980733049401 0.0059585444408411931 0.0090615161072723147 0.018661115684741682 0.9662941551150005 0.0034589706670155695 0.007711392937632437 0.0037349665710180464 0.88012567268134523 0.99696709468246081 0.0030215291735529001 0.017885960678667948 0.0063499539790612845 0.0053460907766601073 0.0060682490433886091 0.0017689029085720146 0.0022549558156741561 0.0037808451337587403 0.007712601415809435 0.93963897938616681 0.023901664284334857 0.033174579676587185 0.0017663492008351568 0.0014886220356188304 0.0093211716056482759 0.0054781656757893916 0.016790213154825102 0.93774184131172267 0.0039114723230617172 0.01103243999050784 0.0022297969741228805 0.94087145809083239 0.017911394276345593 0.95937909950357969 0.0041139552655289216 0.0032333789288583803 0.0039576876324152214 0.96855431925275515 0.0023706520941992322 0.02108377131292815 0.012483953524997019 0.0068205457949065502 0.0012613697310660257 0.0071486516959126702 0.010908283247056562 0.0054133564349077689 0.99313038047903857 0.0077734782296150972 0.004948472172919053 0.0029409072545520179 0.014427136219827115 0.013597968055870605 0.98564890284017825 0.94390378746333048 0.013428891326854448 0.0022069456059116976 0.015579665099452191 0.0066637923007499189 0.9940961780292431 0.0053456145874944284 0.0046104038294821357 0.96208029483691215 0.0039032285342029253 0.01805485674873342 0.019534714772330992 0.011541759773330449 0.0018532506831940576 0.0096251414785736983 0.0014677374188470122 0.92193705068137854 0.025052118248661197;0.0037711354967533087 0.0031114042197307352 0.86473721633922906 0.0016355680636293102 0.0043388484043993467 0.88323151107734899 0.0024166068340855298 0.99025564952912737 0.0035491890626123622 0.0049217061640211028 0.002593256957163901 0.0027824494210394305 0.006544217511353206 0.0031517882525597305 0.34113485282898837 0.0023971304591404955 0.78893999097603507 0.0021412328905873498 0.0033280547187796369 0.70832182900560114 0.0031166092169741936 0.58304760110908149 0.0030192578545826117 0.0020840009617493819 0.007651629687023152 0.20944432104960026 0.70597934303489729 0.0031548011402651012 0.0063627487477537128 0.41434349909360141 0.0014381784972477508 0.0052673754343717837 0.10790224953881214 0.0044964277873591604 0.0061976721896782241 0.0029326910376979449 0.97625231624242881 0.0032629752277371165 0.0056544866711197789 0.014602838121037919 0.0177215721310355 0.0022404867087764194 0.0025210213053709104 0.0089710244155158103 0.0051592659892269934 0.003143110563033907 0.0098680771695339922 0.017346987571741471 0.39323012982634808 0.0065328080246583034 0.41317203778689338 0.0018515998332914391 0.0033313716423434237 0.0032428593903319342 0.0073667713973561075 0.0041340454228619558 0.98540158517315091 0.0040678777096283415 0.004017007100594043 0.0040709813023841641 0.8808940475749486 0.09795179441152016 0.70073622231668531 0.40263616556661258 0.0024993159808121522 0.0038161163873920009 0.67706128068283289 0.0042065344771444885 0.010370700162115717 0.0072477970125971701 0.21883307019397705 0.11471170723721767 0.12276409601708094 0.0062368521652303322 0.0026864687274337148 0.40515879292528678 0.77301194167684362 0.010242439973483446 0.0021787754329026265 0.0050351556539306964 0.0032791590575045413 0.0056555922211860149 0.0058955765009639253 0.8861029492293433 0.0062460164629551448 0.0043476278478435468 0.0070500823756780694 0.68194595201941532 0.0030563554845919297 0.0023822445171747869 0.0085225013156841958 0.20950933648040071 0.11824818510483294 0.0023165259994364046 0.0038800854986499479 0.0039183005836118208 0.0033380879320380266 0.41042417071004045 0.218669005655096 0.2346075789794852 0.0022117503691176693 0.0040927006856877109 0.50210321483257769 0.0068244680706151884 0.0040751657995613593 0.88019942445594801 0.78875319070125638 0.0045142990665080892 0.0046200604030563258 0.0048420858533592065 0.0014097448069035389 0.0028309684651859138 0.69851312870609894 0.011992189083126275 0.99416949323951376 0.86036286974507759 0.31687351880845088 0.007220793874169476 0.0053344325996025222 0.0033424667498820806 0.0043514801498814757 0.002687536696277104 0.0014066226090087462 0.0052575318677885608 0.0043547994620428184 0.0029387342892060664 0.0024779510390224801 0.59744911512104215 0.014762131050502818 0.010337832376189637 0.0015870288295737113 0.11783670005485994 0.0030093031616670058 0.0049416570775949673 0.0075778329563384603 0.0017410228685774841 0.0050182750546797607 0.010251066954522036 0.0089538719061732289 0.0072989910173130021 0.0023155133933736999 0.0028530428946042128 0.31466127742719863 0.39580521680635883 0.0023336445555532737 0.0029029543623236439 0.0055042837370353603 0.0031735224280374178 0.0059984846955984349 0.89554440547509762 0.40611701410406303 0.012284375079876408 0.0022804789848241262 0.0031344358961544957 0.0064573714742572272 0.014047139193427757 0.30746303673105757 0.0030846287602790353 0.0029542636020619272 0.70210233700155733 0.003060536623025648 0.0035006316033574635 0.88537552988115276 0.0026806157403864478 0.0055912226255410086 0.012280211566431193 0.0074958054613272129 0.30947762486023128 0.0080219905445552131 0.0013542166916942703 0.0038568798944956565 0.11778274229184524 0.0054311523482743762 0.0066469884090538962 0.007683647401461189 0.0060011291040961961 0.52134534767114682 0.88755903541924475 0.0035908789415236924 0.22852159529548197 0.87193403459587104 0.0019216811644654935 0.20608590367286039 0.97445289751912501 0.0084380841947565167 0.0052254545335116125 0.12510995187022184 0.0026223788641599188 0.11018422304179472 0.26605428934483327 0.0016990714998762185 0.0087997940163162536 0.015446117241266153 0.0025849884836281274 0.95730208000470873 0.98723272617176583 0.0096199315953517262 0.99005974851330625 0.002168270301049346 0.0018444178094437378 0.0015478385657089401 0.20710894555418141 0.99306337604516626 0.89600819853902713 0.007291110283145899 0.62880005020241936 0.0029262853718931905 0.015630487095334003 0.10605404153319735 0.7734992454341898 0.0016326252395452092 0.0031275177769592463 0.10145368808449255 0.0047471284952904074 0.0070701801961952941 0.0029808365427863321 0.0080287106220245201 0.10533037004574888 0.0059811728750338022 0.0037147966158764586 0.0062676530779436036 0.99230940548558078 0.0055642341296827788 0.88925582002748671 0.40328370833033655 0.11331125090909083 0.78010853111269807 0.0018005573102294655 0.70824447994154838 0.0037944676765221536 0.0026382663859395692 0.0041810384173134223 0.0038981284198339166 0.0039355326598761262 0.0056659759634505426 0.008853970696809663 0.0027414883391339352 0.009718332256132705 0.0044142849337042477 0.0042533576395608567 0.51863412372868667 0.0047337753747960743 0.013716179224300396 0.57673368304753003 0.0051246151242172926 0.0017825462562186052 0.010426689382605315 0.97954226162434477 0.0024108101217515136 0.0038914365759787732 0.0044352818751070408 0.0062741178119701804 0.0064398215903338531 0.0094852740108209155 0.034209243096846295 0.11431923691064615 0.0043244876518640585 0.003560140511421484 0.11488406749259095 0.0086347747625838238 0.0035011239066657113 0.0034142040178856245 0.0030818576774928031 0.85048808132694509 0.50643601518803893 0.10120604968338591 0.10840009215417486 0.36285931608685729 0.42047852458663593 0.0035703341089015537 0.2210407955292194 0.11118685610301629 0.0043229672276851681 0.0044164361651967991 0.010780371259454153 0.98409764648327502 0.019805408460074315 0.021262694709109416 0.0040306332405302065 0.99358191596657131 0.0055453225194318735 0.0023026228925555042 0.0057699702016282758 0.0052971040635166923 0.6818664412337585 0.0015053947217606692 0.004415735094794912 0.0027293595636087402 0.11194839122449543 0.025002201083659359 0.10635463935960283 0.013261533555327578 0.99152705239350036 0.0044567215929227936 0.0046322586647841429 0.0029162474475214746 0.58922567325283071 0.31709728226758255 0.10246777586499568 0.99106167316899829 0.0055892988080501159 0.96901565293398784 0.39243553181941132 0.11144321633738503 0.0030612117498043752 0.0055124111186904429 0.0052191231910309081 0.0041501572481182697 0.52527487134513928 0.88587226588497947 0.68311316997312688 0.0037555732547083207 0.010825753362788132 0.9898023470716808 0.0027390697797272023 0.0033480294962802146 0.0018547732591572795 0.16426724258051026 0.39326226571346012 0.0056753312706417387 0.007660934630856521 0.0040452984055066431 0.89007109339330848 0.0049241240012078509 0.0033897385492316894 0.89033809772549111 0.78439097762619325 0.37989223239831454 0.0037034620806727005 0.0046027175759336949 0.0063691650554890608 0.0055464006309687373 0.87621437261168944 0.88491940161377614 0.0026529228059955436 0.0029833987959245649 0.0017944078203834977 0.89927218039660728 0.30927778223447255 0.008003140335789154 0.0031345919775727371 0.39050142069592975 0.006075605558277063 0.0061263315980575189 0.0030047639533740803 0.0056888559599185947 0.21104225621103859 0.002523172497439362 0.69482590855832271 0.0073525409740426489 0.31602645893155656 0.003047828405162341 0.59784768774705066 0.003320326508896868 0.41310966806306537 0.0064557889893172181 0.0035957399309330465 0.0062560858431753089 0.12936582305645641 0.0060986905353843969 0.0044616091541782588 0.21478727277995158 0.7056530968845669 0.010340619908395099 0.0048363488995563746 0.10949169411812529 0.018457865571539334 0.0024985080030895104 0.0068702042680783429 0.0099782532378873481 0.020105457904393106 0.0054710539596943587 0.10820029497490957 0.0023864008427265655 0.0050960323032777349 0.025451524036647327 0.60229229845779964 0.0033532295852056913 0.0055942235603371714 0.19540622253009746 0.23822935973388187 0.012355416837952826 0.0059363570568302104 0.10454592005397863 0.0075523555481676018 0.001602546877781651 0.0072855014836252282 0.010854239282005077 0.0060446750973335546 0.0039396402796601348 0.12203953447638088 0.87189793125910087 0.0027382186406958104 0.98689915794979222 0.99471842096502128 0.0031422868701453041 0.001473381053417624 0.0056065539634285273 0.0036421465460356023 0.70109956528472139;0.0035069726822515163 0.0054579580207759874 0.0072779911681309798 0.003587137008747751 0.0029667603441282065 0.0056313577357901112 0.0027381696757014548 0.0430850757317724 0.0069744510959081282 0.0091267743022240243 0.0088778731167987214 0.0031413615619469062 0.0042527344706691558 0.0072919244948078657 0.98149946069820049 0.0070107890869880868 0.0078512622296023835 0.007967849098588586 0.0035576899286368048 0.043695045417717293 0.0022518242165197417 0.017108960176568808 0.0043140692409426289 0.0046427682631980704 0.0059147115148633963 0.0062760146637829929 0.98692298904999931 0.0055272585907371842 0.0059368077835412619 0.96683566294441681 0.0038129697409110407 0.0056318590507722565 0.4391577020556009 0.00512848988788545 0.0097596547646305824 0.0037565898211260706 0.95326520917772362 0.0036439628722888901 0.0083446340684703475 0.94294142325664265 0.0026496282959826362 0.019334459856635233 0.0032147953099223524 0.011261943943318364 0.0066837786177247841 0.0032710037005893415 0.015437563203729391 0.011708587254466586 0.016313459082508398 0.034277561806393519 0.95169782602968023 0.01698219967131738 0.0037414191175245471 0.95968883386742876 0.0042808658104480767 0.0055612446385786491 0.03718740261641762 0.0082777119068197357 0.0061810143070659389 0.0041382764797916792 0.9303336302211267 0.0037658483705847326 0.47804055079462454 0.0050806958003906848 0.011000586308366474 0.0016349707409665203 0.0049414354634679698 0.0022258723928151314 0.0072276412600528507 0.0045704674261902696 0.0030337602391857163 0.45061546200908131 0.0070880163632964181 0.001726915042963105 0.0061183867765094557 0.013005392828978772 0.9732101606726502 0.50277866282711725 0.014065919413046104 0.00097971365874914063 0.0038987258306230547 0.0041139176041085704 0.0079354476548667077 0.023218522060132064 0.0026167349304551859 0.0063208104374427102 0.95497356428087521 0.010175987337374404 0.011315489336267612 0.0055928099659377055 0.53241987244258071 0.0026158853703663609 0.0039856938442780782 0.0049007822333416466 0.0059417011984713719 0.48978945485344333 0.001986168888003687 0.0049803721720313287 0.0040894544417252651 0.96666436437479941 0.0057537267864833479 0.0072510201710172771 0.004089959144802386 0.030664584839153543 0.0028668285810330729 0.96742279175410528 0.95533671402304288 0.0095906205784017252 0.0088458171749984868 0.0053810121345250136 0.0043347950612838233 0.004515882490202832 0.0059918380382000536 0.94235229794370312 0.5003328263764043 0.0049064949953494356 0.97928845773638629 0.0067645448687031692 0.0027727380147923243 0.004150546428035271 0.01159160886340955 0.0029746773981706985 0.003058531361666676 0.013392286851515414 0.48341331631148043 0.0038689857717405908 0.0080775590727299763 0.93532986801771534 0.015803947689021575 0.0031960757660077482 0.0025928446553910721 0.0049803562729977477 0.0051112484379720411 0.0033089522906994367 0.0095815371406289627 0.0038306833743176763 0.0084690092236392109 0.003250574173036167 0.0071298118266558737 0.0031399884680009251 0.0021000009961607293 0.0081718767457195952 0.41601123068275525 0.0085680992995358571 0.01321553029798404 0.0041472531480845932 0.0029888596207721212 0.005234821856314912 0.0042242764971750068 0.03250941255369022 0.010088589932038736 0.48173503413052132 0.0087106393268498727 0.0027032302341666245 0.005995072771437013 0.0072948233382796983 0.0014190565365381361 0.0042410432425953838 0.0040627384894438255 0.0052168352092152176 0.0019931571165405786 0.0057514549177318085 0.0087694447562488356 0.0038740186740166701 0.0045739933550473207 0.92225691087546546 0.00770469490148865 0.96019410528054505 0.98011852638642916 0.040623889364564007 0.0057393293482006155 0.96084646069105828 0.014565555968845956 0.008448926788421773 0.0079840964739614322 0.0027643046290483802 0.012168289342087133 0.50689536048932704 0.0057259746797507175 0.015998012394611627 0.016189044058528446 0.01731910827674037 0.0030336211238346433 0.52888644871957913 0.0037462548207811259 0.0042096340881326282 0.0035451083453704457 0.0045958366788619951 0.0028781580229230172 0.98307492217359571 0.0041450603185641758 0.0092561281370902426 0.053748743802092214 0.0084103835969810501 0.0076843764751669159 0.96598668724842507 0.011738064783600748 0.016659506448156891 0.0026815944704722101 0.0057601050246599561 0.0044306258060907901 0.0037412571963208949 0.0062687219112580791 0.95307805323993788 0.0032544553383818684 0.4601722948725584 0.0060407314748291384 0.021579517805781986 0.96118408957369483 0.0061772105184810296 0.0047243068271444659 0.0063694613805125762 0.011587504452394676 0.025969519274843533 0.014376001483155315 0.0046495128629200355 0.0025098851307063311 0.016534479335979069 0.0088687841196459314 0.017272872245938056 0.013450925561000577 0.97113919013367389 0.0096343917250810707 0.024692912198288279 0.0077803868695675606 0.0021772688864109971 0.015309962572771119 0.0028509019857310683 0.0056825865004437835 0.0033241203327057343 0.0034143380071462305 0.0065038118175288692 0.0048603090061833769 0.0029899633954288667 0.0025178064597896916 0.052036874407688449 0.0049706209265874598 0.033555361021663552 0.0070766007722356805 0.49153585648036979 0.005504516660821435 0.0047609454629537317 0.95002801705526285 0.0088272141670223646 0.0058080205985218403 0.035516011338357065 0.97116694169903772 0.010760102424320447 0.0047459155384697339 0.0014637743907411876 0.0037296674134515715 0.002135236446500168 0.0017739650055325399 0.0026202288950912668 0.9732644078551711 0.98316553588376365 0.0050553597413813709 0.0039585455321932365 0.0038919346413450635 0.064614095221595044 0.0069427716117737952 0.0075605185082378091 0.0035537886794172664 0.0086115312727140705 0.0051700925676377036 0.9167964659652188 0.0031034135366315367 0.0064687758357001336 0.96290829642023601 0.0035849223475014308 0.0051156814856530694 0.49038539137889042 0.9634758116394242 0.0055508313946704708 0.90220544020733728 0.016916874071263799 0.0056342785968491399 0.027282971933931199 0.0039041285165111366 0.481963999539466 0.0094309401827410693 0.0044319304641735006 0.013312362482090161 0.013494039058980127 0.023132235359050738 0.0044374571230789235 0.01464968804890824 0.012435109525499985 0.022087893011341869 0.98063212921065535 0.95489743760449275 0.018516419724947452 0.46144377656088764 0.0043156685229484345 0.0034766775931628531 0.0059462435800259842 0.0083669835076515472 0.004914094057878942 0.94665820732158668 0.42316534468125183 0.0096427526940686577 0.0050609702643129445 0.94467430949540154 0.95294334834185357 0.0052976988987136105 0.0026725036032593766 0.0034713411641091665 0.0027732794824708736 0.95676491717805723 0.016508012204692391 0.0068948805643147884 0.0077518495796497656 0.96334033115158757 0.048596547806103674 0.005172784757460849 0.0023807767833791266 0.0029163609129302824 0.95548463257017247 0.012697545118443121 0.0025574053992909029 0.0050567843892719948 0.0034667772522526718 0.48329110692234772 0.009008648092349511 0.0024568459834748038 0.018564958668200082 0.0043597877866199015 0.0032471577231668637 0.0065166070579618911 0.010574402928986364 0.0098285541246747946 0.0083900775215096333 0.031727969100972309 0.97526034817422702 0.0060112191784555975 0.005029735383424154 0.0071314928256638599 0.94866476603771566 0.98019334853810214 0.50798693561309849 0.0057482131708534306 0.010270811989858349 0.0052028434420040189 0.02414987899637655 0.0039461434591424264 0.0047412547869201465 0.49614554135951122 0.0079114443750674234 0.0022635191370035217 0.0058741151658185022 0.0034127929707847577 0.0024601952927068849 0.94999181188392368 0.0033899325916102057 0.003640923883858874 0.023336766921807472 0.0065943275723357323 0.0035129371476077188 0.54155494504883661 0.95468819635449631 0.0071264745416628082 0.95996792577397505 0.0039322513165605272 0.0040091620065527576 0.0029992257012738518 0.46996201525310982 0.028305727161886729 0.0090503420207062642 0.0081019616618871696 0.006675883302873443 0.01108240285523036 0.0048209464984216499 0.0193618209276431 0.96606206456184274 0.0025374463507336961 0.04450685335050264 0.97791348314794446 0.0055131150050350703 0.51047320711612076 0.0079387148071664963 0.0069565306471692789 0.012411590969812888 0.010315977373670973 0.0028043351941801848 0.0065444688425606501 0.0066401590629046794 0.015942954658325369 0.0027872461552476491 0.97240873975262332 0.0059552445030737625 0.010934029868320171 0.43722712595325053 0.0056544936949287665 0.46263412844855206 0.013583681941927606 0.0043138874274612441 0.0029010821973504421 0.0033263010383347211 0.0047859141301625982 0.0061636118156461039;0.0043758812200063073 0.0020634298681610854 0.0020553255718083535 0.0029658214677277168 0.0024207587412804696 0.0047147831505154301 0.0021303518837044624 0.0024298963497980516 0.063123163353965006 0.72337518792597977 0.46403100760000793 0.0019148814402363803 0.019463582434561796 0.46952040525257349 0.0015491191384895725 0.0028215257149134592 0.0018356414318153342 0.0086483127519389538 0.0030751427445529977 0.0035652383232455498 0.86425749688698228 0.0036762881867195255 0.94258460184593806 0.0026379967320639174 0.0036055295609656356 0.0049201429011417183 0.066453821230469168 0.0017845999479240038 0.0039705049757844052 0.72426122795058478 0.0020899199538485869 0.01209464162964975 0.80887173289612591 0.0034293668734390642 0.0036436667422490776 0.59745860395186401 0.6556699271772477 0.0022665468649409651 0.0030309251706834824 0.0043786686380709369 0.0034736475417980126 0.96107661853280169 0.31530771601572244 0.91886064696700365 0.0036716300145767733 0.001909266559440161 0.79619392626144725 0.0039972365133042346 0.006103872060333396 0.0024107820798420308 0.73735280565379935 0.96698587730409358 0.0030362848650992884 0.37883831256142042 0.0028312382878271339 0.0023859608645530085 0.0045880324301763448 0.0030017369945289367 0.0033857016885995529 0.0036259699959043617 0.0030808192622846756 0.0022908912616590319 0.47631119579927217 0.0012529441447674903 0.0022315104489866837 0.0042739565274193267 0.0023929985406491122 0.0051931523862735057 0.0037291111713711658 0.0022734186089569826 0.0053457979167875775 0.0064107045927555232 0.0066306182992696243 0.0039636991479424146 0.0039594351227669779 0.002926488353963877 0.14601125091731082 0.0017592797094345507 0.65080552097998068 0.45440734019671281 0.0027862500246387668 0.86116252679132888 0.0024800633341041708 0.0052694462219775228 0.002555728410853924 0.0020548790558407976 0.32354485960367868 0.96038529141221185 0.0083668479636847953 0.0036103632146281457 0.37873348025561937 0.0022177663662450641 0.0044799205798959751 0.55244692474375312 0.0018658689404504169 0.0033537930110069682 0.0013970874248373489 0.0023517276978194507 0.0026520559914676198 0.97185052138325223 0.0052575918508527423 0.0023551579033946734 0.0032554662190390788 0.98176734906324126 0.0038761803400176155 0.83827269123667192 0.0048794341428714093 0.0040509435290337304 0.0032735091470788916 0.0031266048445837344 0.0024513651411046888 0.0029881281672961999 0.0028734170818297648 0.0016004449238862142 0.0033619001965874825 0.0024473864490718246 0.0064621853774602537 0.0030940755310636639 0.0026358787095395642 0.0027320929156160116 0.066391853911127147 0.60756580780839287 0.0019384579470488809 0.41709214271617312 0.33787687747191436 0.23531811122513285 0.0025322559628226408 0.96752192857862784 0.0034486334855230233 0.89296451155152701 0.0012453006052124149 0.0037301294048807648 0.0045095972999691248 0.0019596933444018692 0.88731394671731145 0.0035903980678213079 0.0031696208098363505 0.0044851738163576398 0.96977245153444946 0.003739080313650649 0.0047126629286016429 0.97838200778618867 0.12088050881536236 0.0024542817042773534 0.062398692041461465 0.0028523293340958662 0.003227865985452329 0.008959914276671168 0.11238638886523211 0.0043385934987476369 0.49125827664477589 0.0026358998528897455 0.55647918619194758 0.0040620461731642856 0.0040462779041931327 0.0067938707686650132 0.0042491272061818495 0.0029889793384215357 0.0036421095472882149 0.01418528237022295 0.0022116790018644854 0.0032081808013829987 0.0048027791240756448 0.0039016950356482285 0.0051294029304756609 0.030608772066630194 0.00331425789885317 0.34205173863892002 0.95177922634810264 0.014193741386982872 0.0033143155742973475 0.0056992146477756588 0.45595644836737304 0.004901961971772421 0.0018323567001305341 0.0021283109998475923 0.016064340644535269 0.89406089902127239 0.95433853946797165 0.3527151725028827 0.0021873510479870984 0.15550980881824839 0.0025850164191187604 0.18405737904844111 0.0029089916351188838 0.0027532748692033798 0.0077634827086225751 0.0024810348287176614 0.0022714959457575852 0.0023841648638086759 0.006846661176861708 0.19520053929640274 0.96161947346697785 0.00312807833615583 0.0023338751515088988 0.062088740286655314 0.0036824015870998194 0.005184885268213351 0.0027191688982921526 0.0019976125859015176 0.0035559897783337289 0.0026269605666101523 0.0026082429593418588 0.0041956904478417777 0.33704355264147473 0.0054945798395032528 0.0034471429471620036 0.013728827184948125 0.36022017431891251 0.0032245246930955413 0.0034287944867409633 0.0023988173335066833 0.010233706475041623 0.0043442095323554799 0.0033564172270541125 0.0021221478793986164 0.0028896643435498645 0.0090370283158486605 0.003258258585198355 0.005095542396667211 0.0042243594300073028 0.11515424804657237 0.0031224397803415408 0.012791486424270216 0.0036844571227920035 0.0067759645076927583 0.0024113583057833368 0.0022507117265847471 0.0032127706775880571 0.0026822330900016303 0.0022867414087827786 0.0030221515972946064 0.0023202531463347711 0.0021789107627476359 0.0028618583959787529 0.24513737987609208 0.0016950968859023234 0.003897225843214433 0.0026252240435791852 0.44351412571304849 0.0037731566387504464 0.0029295798543492171 0.47102388849661536 0.11342641032779285 0.0021189422918859537 0.98584198369049392 0.0013786509879006421 0.0038921567576659746 0.0035628946023759807 0.0069573161774981948 0.0021641195464645099 0.0027831537606906012 0.0035405436096944288 0.055811232334007158 0.0039243111645907358 0.9622583132336231 0.0023859193579112044 0.002431975708223442 0.005545377837733797 0.0040004987144477873 0.0048361838833902368 0.0032989231543603878 0.010121271295356426 0.0021792899935868947 0.31992755789320371 0.0047852838725905029 0.0026718731100001708 0.0020618762909884515 0.063914852300114081 0.0037367096194239066 0.0024463453679938571 0.0092373811925296617 0.88900645654437827 0.0032196066279634584 0.12204927794689363 0.0030532419984321182 0.0028919131199792846 0.32553171990611773 0.0024536804677564297 0.0040923669713815898 0.0030464321494119164 0.0023849261325176127 0.003177985286344975 0.019593496610451459 0.0028729997253699592 0.0025835342812062919 0.0039520964017242801 0.0034170900449882356 0.47024374465837082 0.054735222141876899 0.12057785662190708 0.0032864545653876562 0.0039630596347188171 0.0033059398891614276 0.0029313655010946536 0.0024946426979435658 0.0028773736134928415 0.95173477152154429 0.13088577961832926 0.0064731387245713576 0.7754418997504775 0.0018018307686802756 0.010577708912254529 0.084896417075841599 0.0031089339695970133 0.018926561245699192 0.0029966919220790864 0.0030617615495319474 0.022547357107728629 0.0041505589576000656 0.0057492905098017206 0.0048023473252226979 0.6982084230791934 0.9665382729761085 0.0068375783123427944 0.0016232035191932341 0.0017680923711919485 0.020008554817199185 0.075310518523342196 0.0027453174431733176 0.0031551012841885117 0.002642012924023517 0.88728231677156066 0.0023976230915215011 0.0029851038290858202 0.0034926119380549957 0.78859404004896716 0.004093931152600561 0.96497032099245861 0.0035544975737812007 0.0036975291529683825 0.0040394572844549342 0.002877809509663288 0.0094765063004791043 0.0026009211388356313 0.0024332828576307383 0.24076598386483566 0.0038553803749803162 0.98851278444471791 0.98075525355321946 0.00291306717768109 0.74420600299589146 0.0033798018043974844 0.039099158162005321 0.0023202593689217611 0.0039813628262661488 0.0066858981624640232 0.0086128757292671856 0.0031926782668581207 0.0048512765221638658 0.0027788573646471545 0.0033805234719847688 0.0085890209913817728 0.0017102995501324953 0.0049894398218644012 0.97461804313915013 0.0032930014041039524 0.0032593646254009227 0.97377169150825638 0.94652894533914389 0.0032766689261657655 0.003150074049409768 0.0020223906621181127 0.0035303886602020065 0.0019885251378123363 0.39919157036828345 0.46826564428506923 0.0030764855998047323 0.0024279415111981895 0.0016152092557611937 0.0023350304558827266 0.0023504608581530152 0.0010501441701544554 0.0043531075371469486 0.0024728734586144897 0.0011430222888076155 0.0050641021033050624 0.0029898807506961002 0.33609779520733946 0.0020021085153083019 0.88290705562409844 0.002716932204118754 0.0029435063782577752 0.0036081351262660867 0.0030515036697930432 0.0020665123172811527 0.43801055821217605 0.0016713087416509154 0.99289513344450142 0.0029548179025066842 0.0031637772214759994 0.001977461077980378 0.0036192359317626125 0.69357765019890127 0.0035794699926800428 0.0025130564350572537 0.0016281780269121466 0.23008663906018942 0.0049235462787711824 0.0025682547837843238;0.098493725675670066 0.00693555390098167 0.099882379630425594 0.9495238419266554 0.0070787290915384658 0.5071405068750332 0.014041636476256272 0.0084471714966203176 0.008256324670339996 0.092867666734343657 0.0067372962577336498 0.097863893166872717 0.015666193854622434 0.0089411434141933761 0.94677079796484731 0.0093595774185168644 0.27176944803747904 0.18430116758359094 0.0093578345183443091 0.28049054166398701 0.0074882499683159255 0.0078070729208054249 0.0043543101318301346 0.37427454831474294 0.0936100610250091 0.36982600056216891 0.17564627041428316 0.0082806724163260095 0.01002843264529879 0.0091557120155122788 0.17880672289472344 0.0048140295375131764 0.0099023715579107194 0.54304893208536886 0.0085343545144508336 0.092363369165585379 0.0080517071911481199 0.85959235298798276 0.20118688933682385 0.095261942637498084 0.25646066119443395 0.014411811628640768 0.012741292352105818 0.1720355336800144 0.18153592933862223 0.0049731040942451836 0.0082189009365552339 0.026092347287162532 0.09879114044673451 0.33598690145623639 0.27824556081007712 0.79379177270870982 0.1809596685553648 0.11217523095039525 0.53673422230304757 0.014732144930867986 0.0068006583124063094 0.51052949635853273 0.10345429493019845 0.2710754955930208 0.093875877708301664 0.020203708454654065 0.16463539303526256 0.62127261206502382 0.004148048903874278 0.009658251918462691 0.2092274803971198 0.0096248955887136244 0.01449933037660397 0.53843343888215189 0.0089845884119872724 0.0076006204097268165 0.45025993180646717 0.015039456339716571 0.19849336243978258 0.78709949656473033 0.0078120549638557926 0.0092309581913989584 0.18275284666762567 0.0068456430507643044 0.43859772866636243 0.17824982461210648 0.0098205813636350753 0.0040950670324042563 0.17954265661941926 0.71248792141809081 0.0034004634228391732 0.0048149876069548576 0.096529195023373135 0.68532039311797388 0.0067351043972680574 0.26459737315892218 0.0085450763005946052 0.089520783428455764 0.70034871967970047 0.43847520360928982 0.1031435673809632 0.010977246828620451 0.0065313256258822889 0.8569138524947586 0.096471283506627051 0.19236750347225159 0.18872133195054797 0.0098560061030541976 0.0062814575892970589 0.26144776400112252 0.10147465761755345 0.0064770477339921237 0.026351675453928778 0.42719964681615519 0.17948221364152539 0.0042115627823170691 0.014916519890191592 0.43703165145771905 0.0085435163040535854 0.014591347227285535 0.19735378449506724 0.0039952196130238187 0.10136628088770805 0.0084679941899287146 0.17282098250163461 0.0054115983273659938 0.095816886502724075 0.0044518667513370027 0.16807991874183476 0.27963978342075585 0.54382534884054967 0.049428141005798183 0.006805497358252176 0.17362380734427954 0.49059575124641214 0.008976115723420889 0.0084943484101592838 0.096321033224036845 0.0096111234156029766 0.091991295305372159 0.28449047011523054 0.094767634022732791 0.013123041035859465 0.0049931084016381468 0.086985026709621299 0.009350252911032076 0.0048975634378691174 0.095516107686054091 0.21533253267926217 0.17118068291498792 0.098962495479552284 0.1389591071137046 0.29148362892447621 0.01012793287788839 0.1642005818454334 0.73731014435036712 0.36793778053819393 0.089599762384916959 0.46367051195008147 0.26180102956494983 0.0061857207638849766 0.30661314781851401 0.35638471093918339 0.2348501078218499 0.010970045381400851 0.18571669201418492 0.096413755661383715 0.79254989543901089 0.011392390334288247 0.097455355322943291 0.28037727848645355 0.091643177787344973 0.0065763733483831374 0.012609102978561501 0.12390629063181539 0.097318048022410758 0.0085415774592480665 0.0090595196540836885 0.18721441080768206 0.18278029895352799 0.0066103597135342175 0.3681186262567423 0.30123293993934691 0.011292993608279183 0.18491464759880866 0.28185291460743572 0.29001448237017724 0.11760596383911331 0.19245421030366197 0.096926116535827972 0.1057755612219486 0.0061250660739527183 0.17092307246459024 0.10385972114171027 0.0079619660803431584 0.17521689217322234 0.18377505505574065 0.10165407706337291 0.28765680676268574 0.0093906736982285952 0.25455648222798283 0.18457394551202788 0.52613098508035394 0.019546835513328989 0.0075516511729479558 0.014188351763448201 0.025905725355719052 0.0066896670840503594 0.091045983672397982 0.34413111481361763 0.1903750726821932 0.56486945331636385 0.0035543334512055306 0.17385325678784253 0.0064360644972452918 0.59172364952174028 0.18390824344295342 0.61513417970677697 0.09950230210413534 0.0081990391415336268 0.0053619290117289022 0.015229765366266223 0.0074985433154910377 0.40810935638077517 0.5326118180311411 0.0051891315493890139 0.18267161279197269 0.099020533622786552 0.0087531430810811363 0.45268899344318281 0.090248901149454261 0.008677281667377839 0.095317059624011991 0.18111695854127552 0.27789488718383376 0.67944487752144989 0.18406066813295519 0.082227812599496047 0.44756338895644965 0.10391558219980485 0.0070801377853768723 0.36377627237800975 0.3502210798710288 0.024079226891752865 0.47253812758175173 0.19314871570968301 0.27755809312482743 0.0072708651227737491 0.007964966602711572 0.0068084609214031176 0.095527104661207202 0.011168946518381784 0.36565556717469744 0.18921441206243478 0.020065377830863824 0.095062049893799377 0.078929138992510112 0.0069096884921520723 0.10844634558305377 0.17852789516492409 0.46505238426049572 0.26762932621003788 0.09924076581068185 0.01177340037045344 0.17551509480090799 0.19083072531056222 0.10434173983885242 0.103374809526357 0.0040000935307739653 0.097066912058990915 0.10203864642815889 0.0040793695830074941 0.43423119038295438 0.35306461551052715 0.2856582672957364 0.78437437244588548 0.78687675772388022 0.28450727698041162 0.0047996110559725882 0.0075049789235083946 0.0060882993671340421 0.0079441727076818378 0.87267512544518566 0.0079361521364054357 0.79783788711158099 0.19733195598756623 0.0063762101012770703 0.0062497546164516169 0.012803893768609107 0.096396760750585106 0.097561340754856798 0.094264624695633459 0.0057057349447827959 0.010178838252885146 0.0044760122230787132 0.01143677144492221 0.0092269504040640819 0.014302790794151903 0.096253902182819082 0.49661400484064866 0.0066720557871253004 0.098213333913126449 0.11888650591764055 0.0094143021937222321 0.0058835925545844617 0.53102599041928733 0.95930135193492316 0.0070854214325870631 0.011138940667934933 0.62337923954438257 0.096748535340678274 0.18514280786094967 0.0073372388748508197 0.42067277077737425 0.27715809761221866 0.56080424011920615 0.0068154526632628592 0.09073900913732047 0.28380792038451125 0.017862681772099213 0.59493991312956018 0.098367801793646181 0.0060726346923052135 0.0049298431231847122 0.61885618865005909 0.29819480565152628 0.0073304921335774521 0.28150129023940629 0.084837832877889874 0.72923799151317059 0.64556117348052378 0.38484397981365082 0.23989847275549162 0.092273174236519817 0.61768907802126805 0.24639612562341154 0.12087894173167338 0.09620904824650385 0.11440843578269473 0.010637806315525442 0.094443258954171938 0.0097673495547248787 0.0045570904447768167 0.36741073383410849 0.18514492322506487 0.093893789114199433 0.099095493366965048 0.2699436442690758 0.034692807752758043 0.26157687129459939 0.00901140852213329 0.0040754139789260088 0.0055195780144728099 0.36814792178670558 0.10932758986825115 0.52643314222196369 0.0079226417216247524 0.3429148214996896 0.010351462835482888 0.0088617046590751189 0.27053464911869712 0.41639185719403077 0.0065476625638108167 0.010134470603040553 0.17507499388585557 0.014089699085620714 0.0050386852865547524 0.1664977223405639 0.0042455673040705756 0.0066641731104935603 0.0099047683758700621 0.0084825751110862452 0.011498942966298215 0.0033536601268688211 0.013857619672118782 0.43048607297582647 0.0061335151913619636 0.0067840791375205064 0.1011177108155851 0.098303822913060931 0.0074538877944880016 0.010044444720610668 0.2127091219148696 0.095750280732754905 0.0047848947505889118 0.36277005857750683 0.013535657243909222 0.17092556269619685 0.42579715913616895 0.0067468689638161333 0.0053231168998511338 0.17929042606773685 0.94344508800993843 0.86269069834883783 0.023162814428206509 0.0070616578692364708 0.010032070867772313 0.0040440923549516184 0.0049954686525192577 0.71835628458564382 0.095435410651827562 0.021081903010368767 0.54997178039005079 0.35484619730957984;0.0051778566292290801 0.0042465867162909433 0.62826504809470229 0.54466865677882481 0.0035841520778770314 0.80654822737453891 0.047728678752449051 0.18527690214745135 0.018033118450383273 0.013958141674129947 0.0064009632143886934 0.97209794063709709 0.095349473494122303 0.003889731431087718 0.96725708753249617 0.0080674313049717353 0.52808054827992834 0.085716099265999032 0.0046678039298521917 0.0036502436166214662 0.0083164300439352128 0.19619486110483428 0.0039641589105715198 0.024436342192684694 0.013472518751966785 0.87299053881469979 0.01068334275583495 0.4558835079183442 0.0044444189321520009 0.27013298408455039 0.0047895016477614571 0.010213833180653938 0.2614159497587657 0.1962455040880878 0.0093524121929153721 0.0072560827910941959 0.0031400747808266252 0.27155865688739017 0.014040432846855997 0.18327637847785705 0.36231665676552327 0.18423828015682225 0.0029050498955414256 0.1008517236842985 0.52575760055893028 0.30869664250547862 0.0027743119657678283 0.32794518343479939 0.091432208108111035 0.65031366006629099 0.0070041828842896245 0.507988256450423 0.011369231477316992 0.7274895022740967 0.012463754976546365 0.36925057959935098 0.0060105851294229833 0.48069002276528061 0.031684633290918439 0.010498185892388195 0.010227587924185226 0.005047594285162188 0.10077366135732831 0.33351449509987446 0.0059815839380804453 0.0038716214126427403 0.0059249650661110514 0.0028146398387848539 0.0026571902119380477 0.0099609587353526631 0.0054365847254292023 0.0047303657792524727 0.56502189040159501 0.012581620366282444 0.19745709487462682 0.96849805065726557 0.01189206476208317 0.89267435605991885 0.0080251079720282913 0.0046507865960419758 0.0056195275767239646 0.0023990565944302022 0.0051114752660169193 0.014608630813638276 0.16816023486316239 0.056275602898384645 0.0043398808943151158 0.0024066016609319602 0.0065414489322836158 0.88434461308705115 0.093022949117470013 0.20534707729659668 0.0055958935137250219 0.0057313328900916571 0.62488559088942419 0.0066377616140857083 0.28638421949856796 0.002936856113241358 0.0038275715230599704 0.19188436942286233 0.2928703671560422 0.32484672243223112 0.10272133045536452 0.0046472568496995093 0.0026910839875572872 0.37796948865839697 0.28308447749726007 0.004589839108864264 0.20870185037619127 0.33933578696572442 0.41272175938372013 0.0071198868849146335 0.0084854741727856363 0.372032464801756 0.010445099817009158 0.10347996209447842 0.0065229729502422409 0.63190300235394514 0.0094899032799021354 0.010988226637203535 0.0096274759672660536 0.0035657362617976525 0.0056756897768745354 0.0041318394069607446 0.0053629118252398293 0.0082991544920782874 0.0061632753722030637 0.10111716293588333 0.0036821510049418263 0.0084700960170493236 0.90225367194308159 0.0041837099865331458 0.0031550841227239289 0.89862271577330943 0.002286812671970586 0.89249467844744279 0.0057332721161375555 0.010711952492178524 0.021261425779959219 0.035309834842928642 0.0049929333746860354 0.96476804943921679 0.60336924717054774 0.006168541528258787 0.0038421203718910389 0.2250901213202679 0.0053589672865217266 0.0061490804368408442 0.0087609236374594241 0.0023957492561570938 0.18748108502099306 0.74991794362682185 0.0054267450215706404 0.0074438288016691646 0.47647567365105037 0.01332801983071704 0.0048502927116160412 0.0040832555276242143 0.24166948896418938 0.0045194641484462969 0.0062708161989458947 0.88486184903999443 0.0058377052621523262 0.44619408551035955 0.11019860121852482 0.2810366514432418 0.284539507536409 0.025195923107723207 0.0054562696257164601 0.0070989279623243588 0.27475332539195835 0.0046019176616650375 0.0044676432564435759 0.015924826157457734 0.003631228832770496 0.0073230660549809135 0.0042267024875161409 0.29521488469920887 0.98623430205519913 0.17769844745612068 0.022482821662041685 0.0045681229349451395 0.098142036403963573 0.10695390019216652 0.096002869140968228 0.0037411967872296439 0.38060950057980325 0.003519491547319661 0.0081339263784213495 0.0066109403197683169 0.11082017596573961 0.0085654422551429098 0.18359557401696222 0.24189849135035413 0.18477575332537913 0.25897269647824828 0.47219222613181244 0.26131940563596912 0.0047064941987434612 0.80732645094968281 0.0070956996604185371 0.19713156327076775 0.26726893063531576 0.0045538912545449233 0.0034295589504094639 0.63153912055420958 0.013628086245452118 0.094883980217187885 0.011290571846440174 0.0075667337421569149 0.0042717169446167061 0.68866422760100399 0.092479171828622322 0.01381740887125712 0.015565776040955987 0.014324876620610241 0.0055116095467025381 0.18364846974182195 0.57794022304817505 0.11124639614027568 0.38429556557272665 0.0064558000749888262 0.0068494831626424056 0.98328059291030578 0.0035296233298717531 0.012209530175651561 0.10187668471202695 0.94445269679243971 0.01044870053356985 0.19499781628316745 0.0090002904322215738 0.012254561219203843 0.27092333581050704 0.0064443636918486208 0.32174002458070811 0.003857670276888618 0.0038966093171808915 0.010949890534483418 0.39055876538029982 0.63118046205771272 0.70378653412910896 0.0090855466130970626 0.011243936863743285 0.0086200133247991556 0.4942592334663114 0.0036056083611775195 0.005121699390855626 0.0052362638528173164 0.015098485174343692 0.34981172841459873 0.027368836633489369 0.0050514259878192951 0.012721558830845204 0.0059446731054040632 0.81001150962685498 0.0058813261736156038 0.36038830950946782 0.01626589692328842 0.35396978320997186 0.95453879119102536 0.010038188910044626 0.0054746079951175277 0.88813028181814402 0.27832407411181193 0.0014985903519971464 0.0089032031994259464 0.27210706951389468 0.0057517276956858161 0.0050668574743725396 0.61869648913647368 0.0070666752640225648 0.02371562978372967 0.53673612791299208 0.11534413095711589 0.19371570497321916 0.006781673884615807 0.0026449539519614439 0.0063695558452124875 0.18962139585849547 0.0055624829989350281 0.78520688878334577 0.0069107509509107184 0.0051255307378300433 0.010431921432164936 0.0088027123532595404 0.0036511058058833956 0.46081706186963156 0.38690661637241663 0.0059053983950458364 0.0053764880647362671 0.4415414630868662 0.12360214700330022 0.010765189850864346 0.029373400045751223 0.0071706307236016637 0.0091802402792307142 0.0060355975677877623 0.0033226261741423416 0.0063039821109648481 0.01524769456316139 0.0043983468865752707 0.0074593709163258267 0.65308111549411696 0.24727310732758606 0.0087279393663630498 0.0055212637713989016 0.0039750753310279332 0.011606390183872529 0.17204847746228757 0.012922389253956328 0.0050647386922447746 0.28302382110703239 0.27385703141278317 0.0051317141354014677 0.98457304201706641 0.27615253405888168 0.61709282290177614 0.58571484506640414 0.012648640150474347 0.0064072120248925019 0.37790437974447016 0.82629090981489661 0.0077687956556580767 0.020659665470214257 0.006508946404792923 0.10850734212576604 0.55215701948935481 0.26048060887429114 0.0051374172610885744 0.067425406163879403 0.014971688482902028 0.19231493219164231 0.094828260557808283 0.18797233395458054 0.015249194207794215 0.24910994376406914 0.83877686864228163 0.18337275795927721 0.0052741641784776697 0.17996070164943748 0.0076463008011156972 0.97230871163088972 0.36485961175316511 0.43705887487863787 0.80673872953656334 0.2292338975806002 0.60985927928631856 0.0040575863446066993 0.0032439026740656374 0.015336273896093452 0.015701210154543 0.52288743492131651 0.0059623779622783911 0.5087085745093175 0.010455314093578938 0.87648502951259188 0.0092858595719723571 0.87076945849649179 0.0028949157289921102 0.0050656545465946863 0.7957029314256332 0.10003778994023274 0.0082816768612879541 0.0059037330418803139 0.0031170878527932494 0.0063668342841870455 0.0028937602897293737 0.0069788260559295601 0.0037021096706283639 0.0044680886674398519 0.0068735876837925161 0.015158271180544395 0.0073140981838871718 0.0040134123540307085 0.18529047204358245 0.0024386006274423199 0.28712227395469253 0.45917309109498161 0.0091914827842571288 0.0038628806187617289 0.002072421441832444 0.0059480700357225245 0.005696944430684016 0.0056779092614583403 0.0085509458705401477 0.0072357795315693314 0.0050216073820963858 0.091949379910276713 0.29430104165481263 0.89053558079332862 0.10326626096152428 0.69894177288077386 0.010653387141033687 0.19216614380794741 0.0051820703147777885 0.44256411558814268 0.0050139620015087795 0.013398540099217683 0.28804965529629162 0.018594332055236151;0.007743278192773608 0.0031532852283229071 0.2542679301877967 0.98633861864741268 0.00062281394744310276 0.2508528334206363 0.0021553755346231229 0.75748511115929351 0.013493884837853576 0.0022784110626345618 0.0016156027212044708 0.7533242163732361 0.01435631911567258 0.0011240602746761478 0.99954912060673262 0.0018980034091547302 0.0087705851034039269 0.0031023311234877641 0.0015353032206744648 0.0078983921411171776 0.0022712457423416646 0.24425513902504145 0.0023628719422819989 0.25969627143185742 0.0066179467972861672 0.99472074613261485 0.019241484433507035 0.017814178903066184 0.00048278590268800069 0.28261980743840365 0.00072724117678162601 0.75162375773984302 0.74613356032577594 0.98658955024756345 0.0013090495073283036 0.0044004901527499888 0.0025289542338627498 0.0066849613752696692 0.97950690663983397 0.0190026543041458 0.021733953836577186 0.001195843851891607 0.0078167195124620066 0.7875502451812959 0.99229633849964693 0.28930565649279893 0.0026720959779718239 0.26686517274848909 0.74805914411707575 0.98977121417640912 0.024361169173496316 0.98247321886981243 0.0038843129089826296 0.017138100363035879 0.004674014793168561 0.26339320899082008 0.0016400013387124633 0.9862928086374454 0.012742663017666109 0.0093642061770114523 0.0013635112490367259 0.011899020194699289 0.0088258332777529751 0.0042502834127872303 0.0026397442051695839 0.0017941441290007451 0.0019965339146270408 0.00068431637213062723 0.00056376376406818817 0.0022220572151129504 0.0019490132922013485 0.0037006125356186378 0.99000268783554501 0.003428637366758048 0.48369526385292227 0.7415524344065727 0.74142638519494675 0.9982547907667233 0.25826402188309638 0.00067359476211282534 0.0033347358686700388 0.0010602880120433764 0.0040208547648218221 0.74803344340834155 0.013026096007473266 0.0047587274616536701 0.0012138002705851139 0.00083719423586374291 0.0078436611321219471 0.018834104925606367 0.75071262321836052 0.9834768203110591 0.0024911536296701336 0.0030798133954743978 0.26742229368657644 0.0031308472382714021 0.98666651288455287 0.0024627048954833789 0.0014247627338301171 0.0011663688387643905 0.26497753575939237 0.49212650189647156 0.0059605792412573307 0.001755219418622069 0.0035834191894362575 0.98964450666613546 0.9931810978869765 0.0018557394938146811 0.9520322831375001 0.0066562092103814308 0.74480325736990305 0.00055455376767674861 0.0090163602159193494 0.01050758555816526 0.0028186409384885007 0.2591619387114269 0.0054128570464569798 0.99097555397336645 0.25589036139203925 0.0026703981118660139 0.0048003062304672649 0.0020171882898728463 0.0013030958332518039 0.0018854060435986946 0.0025735508620116625 0.0020789938196135171 0.0029958371598799642 0.011165151624294508 0.0028183573933178562 0.00907604545667 0.98836975388941106 0.00062515402617412022 0.00058939329170644959 0.020370351281761158 0.0033524434377683542 0.74215882439531877 0.0026864770905615691 0.0038817650496816391 0.98012520825600891 0.2581287071103423 0.0031626640031558141 0.27804064384585808 0.031510665681391714 0.0019574840454809161 0.0012398052829356578 0.97778817962182984 0.0017621614642027753 0.51826465448293968 0.0028428092852080204 0.0013914758787748941 0.24108167024937366 0.9923123192023946 0.0030281144459902969 0.0044775147377608239 0.73021796665663818 0.52706962479588348 0.0011401481734227177 0.001089821410440651 0.99364667045881172 0.0029661692631447771 0.0050811016724439956 0.748924532931458 0.0030569235811325184 0.50982760007833861 0.021661484142981913 0.99136925582351298 0.99564853052035218 0.033541626698501463 0.0021156082899711388 0.0013913749301766205 0.2536614050826615 0.00231903475637249 0.0068393343134633107 0.74315171341603703 0.0017238137308488589 0.0030340749562734652 0.0010381944313945265 0.0020931121773961944 0.99838421580414483 0.032320426861462082 0.49985171226554759 0.001904551840480128 0.0064000656691115508 0.99235134365355548 0.012522935741435252 0.0010069505038287729 0.0037749484501527 0.0011132650123034959 0.49559668047026129 0.00071767317648996397 0.013982635101464811 0.25605451747363561 0.021489609262084292 0.011589435049695805 0.27094597683248189 0.0055706074911868542 0.48522840617832214 0.0082178767182246783 0.0031081431120953294 0.03205359596725986 0.002039838455999061 0.0048804140211854054 0.98675479933232091 0.0017345861805737927 0.0029055511359464331 0.99972494245491506 0.038892887771900662 0.98423772332813964 0.0032587940941009317 0.0016536975631155088 0.0025425704455419563 0.25132037496431103 0.024477634138484389 0.0083877189356224482 0.25370985888123293 0.0033498540347370858 0.0023709221635615967 0.0010794383840983467 0.34987958675028902 0.74459365216509132 0.99981267491267478 0.0020299266451265577 0.0094871544062969798 0.5056205522591285 0.0028819692542999854 0.0044162815470495222 0.98154796745234796 0.032122580118533015 0.0015213370986761165 0.012445815175575721 0.0071436581339979471 0.0016624233897808913 0.037533311155023896 0.0032640092690983643 0.004344505309033438 0.00082837971023859717 0.0027525630924717954 0.006766865418151879 0.7406849388251453 0.012172913447843863 0.93797361123809342 0.26944924024487615 0.7423289568064465 0.01465337585728289 0.018793681000394073 0.001562153930697171 0.0012590270858512842 0.0013798486453650356 0.0033676550162866957 0.015955388651930892 0.26270211782255481 0.0027749235776625188 0.010807374731968227 0.0039008523817316877 0.999603386457939 0.24718848869073756 0.0021580425810168741 0.0024558910822247634 0.007912762756825906 0.50818099972049935 0.74678714917606215 0.0037991263947861468 0.99684683663838314 0.012126556738291657 0.0032583565856926329 0.0023862022722814747 0.2435175004272013 0.0044977683012946655 0.0060478828663273598 0.020034912365917552 0.0054523515331837604 0.0017895181364853442 0.011970119304800596 0.0039119051283020853 0.2440454174823706 0.011684162159985644 0.00096298247419837103 0.00081368974569650501 0.27668249258347405 0.0015184142921118823 0.99291028414323312 0.0057890910329711498 0.0017515552052983067 0.74965160099802186 0.0023187420290080056 0.0020788649226283224 0.99296296419344898 0.75886499028682319 0.0022778091852347681 0.0022170776033212944 0.7416145221997279 0.99520233938045943 0.023115720019775361 0.72832785745859718 0.0020822453060550914 0.0036162916072035754 0.0010858041016097513 0.0066272796772886581 0.27731931715551017 0.002280532731910053 0.00076374352188869816 0.74061667266834563 0.99974036613620398 0.0033058957753151008 0.0017829744327005528 0.26937316700803238 0.00073468071029560416 0.0039300779897312108 0.010694613886629983 0.0016833149116763486 0.0019567775737081468 0.0060770860870802707 0.97158978363654502 0.0027793959828263434 0.99969738136294417 0.013638666909498722 0.74410621051931392 0.75783265602294481 0.74255120476644054 0.0018680826779475894 0.49327345587009597 0.99485334969246875 0.74309179543019233 0.24618778083422546 0.0026792224433862389 0.74979985144794603 0.0079024548944006644 0.0063877827898700546 0.0016843053574495423 0.0060967551095114404 0.010672659200673193 0.7515763974114793 0.0017066231295226964 0.01236673073864708 0.00082657676071138059 0.28555029192153947 0.027559648857181901 0.99146425663979365 0.74861015508077766 0.0081151493504946076 0.0094061448594748819 0.74955494616173457 0.024214302182461261 0.0048413497760227096 0.75744220513643823 0.037630278615589263 0.74801501050869312 0.0027323209362418821 0.0030225965604026997 0.74469208938919995 0.0032376143005913068 0.034108735586041272 0.022009802535360778 0.028130533630241865 0.74852670479895134 0.99819941577034832 0.014129913939402933 0.23342481463772027 0.001187912334928 0.0098030301211468329 0.98726058901840053 0.027963278038679013 0.0079042785863590592 0.0026264642324155159 0.0015120729932408309 0.0033509337745156686 0.0019079032632763038 0.0028528764084945661 0.0017565195483123552 0.0013058197759918569 0.0018273034621410036 0.01116006365193129 0.0025446776047026104 0.0014921066296706724 0.00049655382584881213 0.00066955354420242448 0.75707289461077676 0.0093755806400523112 0.028545344354066665 0.0016223474829765308 0.00098299180000448226 0.0087758392305971721 0.0021924303333364053 0.25955955947188902 0.0054605869898080844 0.0036255047222635375 0.0039936339961170707 0.019446184129200225 0.99067487059066639 0.009779306174236219 0.015407691902938751 0.026920912416555566 0.0060419810417036285 0.98438763439442767 0.0032926855150365126 0.0077065098305758844 0.0026586601910689408 0.0086469939552648173 0.98073083293334917 0.01704223481050449;0.012121376301241755 0.0050424574983621183 0.016446838959631883 0.30835998966475808 0.0099248298942917548 0.26833061195993418 0.0082943529105618252 0.22282902477257996 0.023906704645385132 0.014035011612766171 0.0093936527040777689 0.15179870032986537 0.014645715281156843 0.0043357216058716539 0.8136919355287463 0.017097682549425664 0.022820387598860188 0.0070519942089616273 0.0071116934022298862 0.0065501823126184249 0.29505037447223553 0.12803107186277515 0.0066726645929908951 0.7084364647027076 0.0082731078616961745 0.24823726886651032 0.006032945255879339 0.009768464031053815 0.0097696647043402588 0.78464640128026053 0.01271086834996691 0.008894760307057473 0.0078967606825059294 0.85284264510946894 0.017017123372405903 0.016095596915031311 0.0036006849661342536 0.0088842021489066673 0.26953582861751052 0.11524000385135802 0.11639182098544706 0.008657571636132488 0.014375685149737211 0.23791579920023492 0.6141272195235139 0.19847061324651138 0.0040789154947858432 0.012335062243424766 0.80040082954471203 0.74860701180384326 0.021498208368466686 0.23122971949391963 0.0086005549803426645 0.52741241637387948 0.0074202976183391856 0.53167935392026267 0.013764858738675813 0.1200540830435352 0.0098104237839117762 0.31010511297773141 0.26959730270957405 0.0091099780114876835 0.12527750872448803 0.0053851974993405641 0.0073238209169555471 0.009072764043966404 0.0074815182904691309 0.0049041654884861502 0.0074754284114060777 0.015782209356143058 0.0074820650882554884 0.0068536448007589009 0.33683666416273267 0.0052490040152095635 0.013526662247772558 0.028062926410787122 0.0096066236192703259 0.54176828731252669 0.22390198965937147 0.02002737229777048 0.033508624526298811 0.0041501701052609188 0.50834306731875067 0.022045587989525436 0.72656958389024384 0.036257569938156285 0.0077975521839471198 0.0027665406530622016 0.011133150756234384 0.012703083910196237 0.020929220620363939 0.12781650720020077 0.0091767465481387075 0.009102073419480522 0.26273930452834277 0.0069036235112094751 0.011343605678830257 0.0082873674341479298 0.006590215117532992 0.0054130327834583233 0.36456396491765264 0.96294852379449536 0.007639068215622935 0.007260116129137897 0.0075160593418431738 0.35443711865369087 0.12334790519651823 0.013843858886837391 0.13788596054590477 0.01920637305974434 0.011000613476952239 0.0060444576069211232 0.0089972418794339246 0.11708079466656211 0.012832886653724755 0.69274455229780019 0.010230020582773848 0.26687778020473973 0.15110771441009224 0.016161113985450413 0.03153846261045725 0.0040496122132881226 0.0093629633098146082 0.0058072138301566139 0.01137738415127872 0.0066660260485414064 0.0095308041590573527 0.0065851246115780152 0.0078451062667045639 0.0065549923587667081 0.12330323846553454 0.017596316999452091 0.0060958433559672801 0.013011183845934816 0.013934320943191129 0.28028162595753375 0.0048879284113819083 0.38908394606880747 0.099620521692333611 0.11501237556889596 0.23288616815347821 0.013155206401655855 0.30933717287821372 0.11296397517653797 0.0050733388515644606 0.75081996156452868 0.0071040151400637852 0.22222890311688515 0.015123567104553209 0.0045239211222975733 0.1230967531997231 0.026457846534193603 0.016869205927556113 0.0086653014395617987 0.014906000571413527 0.11873771750659026 0.0068405587886892338 0.0069081251912604868 0.20550543916986469 0.0056717225706439328 0.0083077622539521959 0.51853802876269806 0.0096403366258764178 0.18779196314644611 0.0095080590452514963 0.021484527361361652 0.33438177851404982 0.012623187912745902 0.007160452650370879 0.21900663850694263 0.40855185596681176 0.0092192225514991667 0.0069512062240517543 0.056842801731827951 0.0035800397810799973 0.0086643878249900649 0.01428783763176707 0.014828480895512065 0.93948480534516032 0.21125624659151138 0.017174328497749851 0.0075209278374421965 0.088627609394931417 0.2580179792947761 0.5147930699320955 0.0073449380546415149 0.15602761198518503 0.0046818012181824202 0.0088984254042666616 0.027511141021345012 0.55867230010698432 0.22924937350983948 0.68145315649910532 0.0072866196468976321 0.22221492250373381 0.11435864431363488 0.75811569204509943 0.75241766082100092 0.0072583369134128018 0.0053839793111207729 0.014379647932912449 0.033628463966253602 0.16210201219780643 0.0082941865808571005 0.0034492740608235289 0.88087744949622671 0.0063099843915585471 0.76910841604614055 0.01441220195861969 0.0092485199926004603 0.011578599530473176 0.037844611611905069 0.20462166784478544 0.12906002728453542 0.73164619399199005 0.0099715652550781114 0.010196072251006745 0.0072444062182227742 0.01334457597432097 0.24918120241462352 0.74292472445514812 0.10630808449954562 0.10446831232506344 0.71688779939417402 0.0051019676016930467 0.01141365112284059 0.016614243155532709 0.17507534983302805 0.01366698874100203 0.019379296190559597 0.014200951943678521 0.011004221836394412 0.67124356076543623 0.0083739527682406677 0.014234469783692952 0.20050057361209395 0.0072879230443899119 0.019174838497240922 0.11534958590131598 0.012993104164581224 0.010709691387239012 0.45993984002898325 0.012261270016121708 0.0054634767987911011 0.014681776605353778 0.010860146556130127 0.018996756569353717 0.12175416111027805 0.0098013737642202968 0.6761135324869465 0.11572549691250771 0.010524071204770702 0.74952018499251949 0.0074872345613283802 0.61247183221455559 0.22924333928293761 0.013618859715156218 0.30381078065099432 0.58475919504992935 0.014565315230885783 0.12858692543107744 0.0078515374421532433 0.71854517705612231 0.11694449063994256 0.003784415302394479 0.0067851972379929376 0.62315967127277572 0.0082668927555974679 0.0055663651963571642 0.0065617017178081641 0.0088210835228194288 0.024003641215363809 0.0078236037031733895 0.0059439650807270933 0.12550203239264007 0.015399330713936829 0.0069532758733291903 0.0064380218683070048 0.4093537461234818 0.013397934225888372 0.56441661102602225 0.011457742648656889 0.0081858601894175004 0.017109242477554434 0.0065235668083767689 0.0065432427398134539 0.84190698200676117 0.021223330002409491 0.11833661965891942 0.012191118453908592 0.116578616628573 0.74244876695820294 0.0043348616685106702 0.010099771594602808 0.0076168696842722605 0.090474155984067828 0.012721266835498721 0.0044642508704793443 0.031606058242163171 0.040017427007544709 0.0060073083935005033 0.23403419347372387 0.3244235065681853 0.030099472529735813 0.0085963995275352215 0.12896880913890121 0.0065351767129370889 0.009639528462464823 0.12120819603669242 0.013374951817484888 0.0083023288685777422 0.011791431384298893 0.11838672671890774 0.2186356001793015 0.42347458092360224 0.0069170850747945654 0.026299020342170801 0.23282505831269756 0.011236110105078818 0.0084040806511642349 0.011217906730717106 0.67112415926936964 0.0093077236701873921 0.091560417982896561 0.0062487883977469282 0.13578563260166207 0.01121080238717506 0.0066857640731013248 0.005013675092654192 0.72202192239834451 0.091680062658632669 0.21190072437252819 0.006025759408563436 0.13180410475703255 0.0084854496011026737 0.77024262620886819 0.14791992319052361 0.31939277482226508 0.0094670423180979683 0.008225736403266069 0.44360004699543193 0.026426046019423607 0.012658056883779901 0.012208753026497465 0.22099613054915448 0.35689768173858499 0.03450208624890283 0.0072956270776184644 0.0061552289071817121 0.34181992551485257 0.016810952153074026 0.7055719934462763 0.018221718007556217 0.0069868864689755228 0.11653325541972361 0.75660720646626245 0.16872691951093097 0.023493125278047946 0.0051958383614668421 0.024233605827815204 0.044924542937116764 0.65851676540723347 0.22150766511635242 0.0049264954321406032 0.0045100718430482042 0.01118318341160204 0.011704376837276667 0.012636615801878436 0.01611844907398171 0.0080103464715243679 0.021460320728994769 0.0068506358913688319 0.0087601392870636022 0.0056469413810054476 0.0076123643922676246 0.013394144414942159 0.11346389080771108 0.32793524193990109 0.12041100340699781 0.0048473194207800689 0.0039487885460945463 0.34223237706834092 0.018773013235071211 0.12749931353604477 0.013978684673766935 0.012993910273299171 0.003498110139506377 0.011204138197790484 0.23854869987967048 0.33314655816024791 0.0096197298413311042 0.009625009022100648 0.010139991527904686 0.11380025716488361 0.0074367071419815878 0.010272131301809189 0.0058052417341982552 0.0066138871149788656 0.77629798139666029 0.022080423469488727;0.0035874461481077359 0.0026940714769508566 0.0026449503720109807 0.67112773386817348 0.00096695397460848853 0.004930194305456298 0.99328958496732223 0.012551647372255299 0.0029654327450635543 0.32384172803160222 0.0025593535957642377 0.016136465896503104 0.013954916805389683 0.0011450969680500361 0.34403261516421174 0.0068511497094869119 0.002027351837825834 0.9890567621893589 0.0003545497657177556 0.00047444155249205274 0.011554078206413337 0.0017286868092378604 0.00055174357625050136 0.0092675298221929995 0.017223833792596673 0.013906398164260928 0.004826460907400399 0.012461465572987225 0.99981369909083773 0.99766439160141807 0.032328223594899674 0.0008090227304083221 0.66141533694822674 0.017448072551252105 0.99959505536841853 0.004169014422992362 0.00080084502831495987 0.0039540188593948401 0.0026118170048496855 0.0020904383058465087 0.0051976767154856187 0.012377759771212507 0.98116206107302328 0.0048915902962878999 0.0025407386232657201 0.0014326113815388264 0.00084421754521787017 0.0005741110547634378 0.005779547287618314 0.022685410358585428 0.00040934903107135863 0.96888811862344904 0.9937024555313666 0.32587237269064584 0.0017525251622573631 0.99991623719729716 0.0013768999535871708 0.31414161559907949 0.68743483189959664 0.0014225327571365364 0.99808697039127692 0.0024564854956710784 0.0036920153727314133 0.0022578544168505889 0.0020225110291901319 0.00075446121992155915 0.99805081695386932 0.0015007666592419355 0.00088580273695046657 0.0068251039183717605 0.00022613386289259681 0.9846610953283419 0.99836082420851557 0.96689957470417798 0.0049915528503782372 0.9943637963828903 0.00095882170025973095 0.0050409867125891725 0.0093126441501252023 0.0045330202939380462 0.00069825990622032774 0.00011578256513036469 0.012340540088431412 0.00062518059521081903 0.0030886013615097213 0.012278282629720038 0.0004926768595122468 0.00049160893832554057 0.0091319634501781238 0.9996750412395613 0.019329267542020561 0.37601152079408745 0.0011234223827130986 0.0029678035242205868 0.98243734685703132 0.0066214643335645029 0.26258749139998117 0.0023238487709501534 0.00086236232742043753 0.0095516601553437691 0.00060807110796175299 0.99467481829585913 0.00030738761688625909 0.00037148403666466701 0.30016940764274713 0.015655262741436811 0.0033235598372999163 0.012397327379334197 0.0063337274721730844 0.99786080497400009 0.98933719753303195 0.0045206885596431913 0.0007304436996214556 0.99449688463036234 0.0090674375584848324 0.010156516364586428 0.0011869338877582797 0.30645453870094885 0.0051300091807409166 0.1066448279369923 0.98585957115882583 0.0022549955923431893 0.033907923899344855 0.025851267835315578 0.014343219964567897 0.0094930906268789021 0.0022295291106032189 0.0084407718057518139 0.00032759148445510392 0.0094819469737382478 0.99546587691863908 0.0022822286865571226 0.0019943531046127173 0.0017797355637631253 0.0074341607472541409 0.0020629366642837378 0.0016160461286169455 0.040490857352992349 0.0024267499879556736 0.010193895042507103 0.31153245562912352 0.0051733210037805651 0.0070879815034979943 0.99700180221351109 0.00022511976172724077 0.0014174361646567121 0.0037762859113989319 0.00017647901462165317 0.034926741238166352 0.014372144300098019 0.00060960192072977712 0.98647255978720361 0.6576260065575823 0.0091567322690232836 0.99601995921577957 0.004840569506759076 0.9965294696247553 0.0073737261991949953 0.68073289707410334 0.00015288914405124499 0.98597014062408617 0.99999617339887559 0.96645039283128242 0.32541240650046288 0.0035655140814711845 0.010899571573895539 0.005650186377659812 0.33902555308309573 0.97414200921087168 0.032758312526504359 0.9783548871402663 0.02067806817257312 0.0019739959148748765 0.0062184939805165302 0.00042539345131394372 0.96977843479123105 0.00044930133950423027 0.010586966442829422 0.99753018229303714 0.0045937768766699848 0.004824894249116982 0.0070044487773200468 0.97734720555116239 0.018742842422954986 0.032182465732075512 0.015953824772093464 0.0036728504988772473 0.00072067433025724877 0.005722511484422323 0.043459714523462506 0.016594012095767753 0.0019975788742320729 0.026990878747059466 0.67319957825131149 0.017505653052901075 0.0021773128157819483 0.32648593618557104 0.039577065190670731 0.014074710583216131 0.0021160586269386404 0.99485394580600195 0.99770257525543404 0.019678382504224851 0.00024063512190729012 0.010267580897638432 0.32919487286923055 0.019665444728455515 0.0045197126576146255 0.01948226586678644 0.67607724830194671 0.001339289643646803 0.99997249748048767 0.0015613788749434586 0.9971806736310066 0.99980232669747449 0.0049556758641774654 0.00046572281105354042 0.015301370691621047 0.0026347689417214526 0.99806977198756619 0.0093130830275311438 0.00042242257040324725 0.0068575598727283619 0.31432064563271772 0.00035693215179022331 0.00094722026179716937 0.0053969461251679963 0.011021418746357169 0.00024673763801261704 0.02016114789307363 0.0081379291597675034 0.0071931054658414591 0.99454832604344601 0.00050013233118031725 0.9918512877118838 0.001324840996009935 0.0010862081543946856 0.99852583809824724 0.99576165274477968 0.0014980484651742638 0.0063652079363268055 0.34344669103826381 0.0020242877484170233 0.0045858371770510229 0.0022259885867987675 0.0019071622792805748 0.00036706884384153497 0.0057389554467555731 0.00058531973275714733 0.99014174081424056 0.99914441494733386 0.0019684384318398146 0.0051964887432837522 0.00010964160059469589 0.0053145290867172863 0.99954688602360831 0.0030288363227015083 0.00054049378240552141 0.0086179310821461689 0.99747937800159714 0.0041612125272475651 0.9981943485153042 0.99866771319746162 0.0030195844208945151 0.0014078213577338947 0.0039467811476515203 0.014270746776407744 0.0015043949339507453 0.00023590962220279023 0.017046023475543431 0.0008937200476158199 0.95415264286103407 0.0057428305503882705 0.66708184089420897 0.0039749543900412894 0.012220917372367478 0.0030091401914862483 0.016746043198626138 0.014931961790094674 0.97928122409703544 0.0123979221416879 0.0085232662862924011 0.002932697988096534 0.0012734744763166347 0.010093442902322274 0.010829033161939207 0.0090356349427262728 0.99954687988797275 0.66741182467741589 0.0064079798992361155 0.99749283674258349 0.00085634387609696285 0.94701931297737096 0.013418898844560932 0.025642119572317611 0.31173865105966947 0.0059799425179114084 0.00015830042586716824 0.013464835651371326 0.66555230169359758 0.016834231076092439 0.0137492789697911 0.0036734136424680158 0.0086787908361820876 0.0069404866762802905 0.00028690385286491283 0.0082121666860781074 0.010252818480380232 0.00071926345941246178 0.030350202688295594 0.010227987823881398 0.0085193929872784731 0.0032625638431270075 0.30864729791645867 0.022666181744588652 0.0021165218526928422 0.017329198212757139 0.0068653883702304618 0.001041809315448468 0.00075161424770623872 0.0035652488890398947 0.00090051778256896317 0.99931902434015207 0.020512975363332259 0.0019704661273138185 0.0057150845424319028 0.0032751089097385073 0.003869531590921153 0.002745349515449972 0.0082176478527379027 0.67102899137560457 0.99981703344973671 0.011675561122975159 0.028288005693104738 0.66817734930618822 0.0056962240786507471 0.66125591696788899 0.0043291774585649447 0.00075409818010582828 0.001765243609780092 0.0035124130160675161 0.0039686847131517426 0.999894463385538 0.98944785126657453 0.99804442999037568 0.99134994355701678 0.0043644292423605964 0.0015898629591350217 0.00026813352904327153 0.047922649049356184 0.99993479610986302 0.0038868883420240369 0.00048240010510621086 0.99446286196864642 0.022334591412486678 0.0045260005011485051 0.99797612168396421 0.0069908890067343493 0.0075015656649381314 0.97667261843082565 0.99334150352057982 0.0034646186341393812 0.73525498311439508 0.98111375983577864 0.66402698729749599 0.0046308400528752482 0.0042155502164719656 0.003110414706304767 0.0036567784319471424 0.0045576326614654708 0.0055769693353923816 0.98663463757604686 0.0010585701619273971 0.00016132066072860446 0.0027458724961525443 0.000158588344891146 0.032466477916935202 0.0082636109309978528 0.0011681477057119236 0.0010866992980266585 0.00074942277224793598 0.004283512811599513 0.0038608727029315667 0.00094997345712556072 0.0027612919427828495 0.0006017989654093787 0.0052482417569191695 0.023136098725222543 0.0032873520176742031 0.0050223764819378172 0.016911344065054748 0.0015399180329944268 0.013968236044621479 0.0020719353840306094 0.004111070393862418 0.0028692303947109483 0.0027330012893079484 0.034311229677968104 0.98591053773989867 0.68419989682392346;0.0072041022512406797 0.0079667190143043014 0.0088035098181896976 0.0062025547777710358 0.0099846251170152694 0.42869055508769116 0.085841280175961807 0.6101358634861469 0.17048220286664217 0.17049598242997338 0.097241227817390141 0.0099982750589623099 0.22449960454904869 0.023653125319812555 0.24759508372594316 0.29510293073603294 0.0077939149312811866 0.090699186433241458 0.16848286469452994 0.0055531837266075369 0.2953560067560424 0.18129590661330322 0.0088291678365733997 0.015634064248250971 0.10601538390621516 0.005826211169904027 0.0093039017657021439 0.0064620264028923454 0.011901477690331754 0.25837993096486783 0.0094886915055800367 0.16355186165902774 0.23549399117396352 0.010362451603253166 0.0060760566928381807 0.24543025203976992 0.094549896169189296 0.015766531153967631 0.011545280699008013 0.17145047793634893 0.56675887545969306 0.0063230744169425175 0.003783860981931445 0.24243552341544566 0.52800651834503076 0.020149581148220987 0.0050528642718277571 0.096629655133405323 0.18800472818052205 0.182654435047791 0.094240336494936155 0.0062334644012436756 0.0070858409159529241 0.018611371619005633 0.014191297696715163 0.09674378949148825 0.084415761939631406 0.092923452326728204 0.1086389657181573 0.85394561852297368 0.089652037323513845 0.16764787452735577 0.34783674036722806 0.0067147202110625272 0.17431095777689537 0.090299118274019971 0.16944666628850108 0.0047035011665943951 0.0073370305592415051 0.005500650460976011 0.026543237078653446 0.0074839829266863814 0.086524392786087576 0.10784238007120656 0.013226093836335006 0.24419015232157118 0.027491878837994206 0.010604169131930664 0.19010111004809466 0.01475351410563859 0.17884642772749965 0.0053979193451485549 0.092331576771729318 0.10510487625142181 0.56473168121401041 0.017920432983111752 0.0072277044047289454 0.17211064551076388 0.014218328468533886 0.0078088014377339018 0.16637188392828217 0.49193735439165542 0.011226307850215781 0.16562153875598862 0.14980939361685117 0.10228181451335877 0.094489185402081025 0.0092077124279489712 0.0083048842225975847 0.0080159865959740124 0.021805964464962163 0.086590254991636986 0.27005485883587915 0.33577760740815388 0.40033116162812304 0.84451319837845651 0.80337417727937854 0.008682471042815984 0.11683762157696251 0.0050207597553093928 0.34844978938768878 0.015111719254853351 0.096794788773506946 0.0052667304390032121 0.017989791461649501 0.17565172817485386 0.016583557272397111 0.019506744517654488 0.090056741692501496 0.0056664260497622902 0.1252653987919391 0.071134620533345599 0.0048096360482765381 0.085363861273465513 0.0060321004383205191 0.0088808605106224132 0.0082393890621521859 0.0057026901813474846 0.092197880196290105 0.016912386200754578 0.0085213396210048892 0.17257018750955197 0.0061423888064205852 0.091974074127266492 0.088581928785648509 0.013940392357355997 0.015226337809024791 0.092720723684145051 0.092821989380592551 0.010277460014330431 0.01792132213510712 0.0063725219574857165 0.25755239800002039 0.0061518946186971532 0.0058090613319754852 0.0053523250132815718 0.23219866562421579 0.0081302293324531181 0.24066247273787916 0.083353160055746833 0.93568565375948776 0.10144867528986176 0.0055055146225102608 0.35354679906777586 0.17112849743891645 0.3496642770853966 0.093906217427291855 0.0074348515794946382 0.088030797842381658 0.012095434532860104 0.0059862144541277668 0.015221206776454924 0.012468650105451708 0.40605644775922922 0.0096386794858352252 0.66933727026501244 0.68730754514330639 0.099806576229199029 0.0077608831946293262 0.16192582161585106 0.63648242156054624 0.5402812020861878 0.018632465735413373 0.089115599138694934 0.091436380149095872 0.090007156378961839 0.62390824342423834 0.23279289065850794 0.19779250832345743 0.35404301724135057 0.014111726607376864 0.023620038772390009 0.4798294935977383 0.20818431598662074 0.014213078897088213 0.16572101639174194 0.17363591986187496 0.088082955104672456 0.36871147704960422 0.2559396818231664 0.016697282665769898 0.2365906270304442 0.45742421367616481 0.15864276343356762 0.66472485652978941 0.62204027079067847 0.33416701997805603 0.090013053917314553 0.090122759755913606 0.0044651036489573087 0.011365861222061527 0.219448129524074 0.88012570312225669 0.011911382996664372 0.087228175160368696 0.26159408628998809 0.013314653001917091 0.09776476515635317 0.009198923890733051 0.10471182443251158 0.015567569161506548 0.018461804325951365 0.25288129373236057 0.022742473941120278 0.093509024977321623 0.0076348345307545818 0.015813376286706753 0.31395062585836842 0.098167479165999855 0.14523490128562627 0.94143511360745014 0.24986178486563745 0.10457293463023276 0.18038459717167504 0.20743815637049318 0.0090912956318905253 0.43785099724788862 0.0099485118817321735 0.0159542245019881 0.4954110190911325 0.093163019439659128 0.017833084851032546 0.94484015632060181 0.014605598373981815 0.0055173131421931074 0.15175380358074558 0.15779000235358565 0.012927967520951818 0.0056878821565179202 0.090532958565640503 0.57209596467978197 0.011299990813609752 0.011015401291149779 0.021381898099941586 0.011033414583624813 0.010742508914314863 0.63857537127834674 0.55306548673765954 0.15682622583272229 0.093846750284894573 0.084971679323702476 0.005791901363817892 0.12907906071296341 0.013184370064750534 0.18963204024082544 0.018125728286435352 0.0051070754059594388 0.076094958911805177 0.0092781872752809719 0.010147688784864464 0.015870107784992805 0.0044527703404858739 0.010369930106909375 0.53434772396775765 0.0044663594653490072 0.17398390878916109 0.91585711914301848 0.0051733381135251012 0.011244298088292361 0.0042628379981715994 0.095954931809696276 0.37060031280452255 0.0047648062102342067 0.22469505429625672 0.17333253166509033 0.018380712248651395 0.0078950000632891267 0.089541466382019444 0.0062999828237976334 0.17679170405549821 0.96927366757914246 0.32444807282919197 0.094988486271941161 0.17005717399544884 0.09666679969879638 0.012070890583034857 0.11502409514796708 0.019345067386015331 0.48285655764452795 0.091515730692050934 0.49488608399395051 0.01379475955508971 0.0050126537601953266 0.013006416443650306 0.18022354933090462 0.0098676393788874623 0.013417345107119507 0.092501342274579748 0.09987213786409585 0.091714897372763005 0.10184462541111831 0.014889484323518432 0.56430561362291509 0.49373146786954925 0.01199969177625218 0.15533933700002087 0.32717009213017595 0.26037588210894863 0.17467814046474917 0.0069987909726540176 0.13282819284032632 0.0043896933572966975 0.17162139117185296 0.24265107642481759 0.016905135112439559 0.099394352603129052 0.092035068973961798 0.8609105981853471 0.15055932837108391 0.17175244180453553 0.087075533809017627 0.010358634989231287 0.10527642915751494 0.0057551829082905185 0.17178910686585169 0.0099911443971192233 0.091369758277587546 0.044883634750741953 0.0036282042146747844 0.74867529351224105 0.0055510238718849449 0.018068875471906925 0.36113917671513374 0.18070548741368947 0.0081818207703975836 0.11434807386258292 0.014586246278900865 0.42192714771775996 0.65900123197964 0.0058924279833132203 0.5087547531863954 0.0076985065820096652 0.012667382916412338 0.085696343510240428 0.0056451908054853681 0.15284655979058792 0.017546102225393045 0.070666427456821251 0.16414628866673303 0.10957141562610238 0.19605816616355171 0.091928757636209057 0.089267637761402105 0.012308838473981195 0.085008752432598561 0.38758626382313638 0.16986216552508085 0.008528013396962332 0.0093720731675309647 0.083261842606059039 0.15049455289879757 0.26430471346895373 0.47991235344597372 0.0031753819242291486 0.0074568039466114643 0.015488075114549077 0.25361087336934562 0.011962549195494498 0.22656193219536147 0.0058408066798530302 0.0081978376919020317 0.018891008935698322 0.0046427484992818957 0.092482113897124005 0.007175428286601432 0.020208342420786826 0.15587353325451594 0.086937353196761949 0.15353161010606026 0.087582475455913023 0.093861986552854854 0.50486276245708539 0.095896779397968673 0.17270271400306228 0.011403309168727161 0.025473575420270341 0.17292195896038987 0.33620627885098076 0.010383502998115888 0.093222276217182889 0.30620921708347759 0.0069284397476151935 0.25441597023207463 0.61972739505366159 0.010680254294894189 0.0081654574874994792 0.009317306037403255 0.002922208841398319 0.082889927061451874 0.015400612971362217;0.0023051160418231446 0.0050069931647639763 0.0095815633305955574 0.01130632706352599 0.003852608020744957 0.0097970284392579488 0.0026525433157339015 0.98300214756414639 0.0058552551102181195 0.16540165417793076 0.0046001387183729975 0.0026853657805983077 0.016953797785375032 0.01355723009999074 0.14917690751834609 0.0034246331806709112 0.17763790782269046 0.0023713849674518602 0.0035469030739536445 0.33590545407862316 0.0037831419298299334 0.18924700963017771 0.32461901093488948 0.0056565302981726948 0.17346696251483593 0.0036333629673861766 0.63454462471379203 0.0046318231701346453 0.0070991521929288674 0.82114170833121403 0.0042070140436411066 0.0063529291566034552 0.15031170653138265 0.0056994119293070676 0.0099279660368462672 0.011192562093144866 0.3246502472150985 0.010744069652948746 0.0090685785023932285 0.49429651696651455 0.49486909755779734 0.0041250818599605854 0.0038015675029899141 0.014943342123980394 0.010351743006184994 0.49879165510353102 0.30409790789762753 0.9480181108266591 0.004820026994528861 0.16670212505500534 0.32534806060164928 0.0059495311592447954 0.0041696702761221931 0.0031258476672879026 0.16753678358041085 0.0070330813656622054 0.04415967842172934 0.023136281117514229 0.17959145515146396 0.0073678674308130503 0.0052848499252025312 0.45155239767504574 0.65368102158918373 0.023293661730418271 0.15221113135691863 0.012343299908247517 0.0080708037981672299 0.012773180962805865 0.62160148646689295 0.01058776253703694 0.94587495326848448 0.0073829639878426074 0.35921953901962544 0.50600172077595285 0.0061380119172882138 0.19206670672641346 0.98497809124667235 0.01043222248408515 0.0051566011296393915 0.017066519109371001 0.022267187850575351 0.020550477617643392 0.17531633300399893 0.60091404003517601 0.0094710241379336781 0.0058945162610483737 0.0055249074739290643 0.17779042145921251 0.0060548990738108167 0.0096097139465961007 0.011275373542098836 0.34807315404740724 0.65480502658529494 0.0039776713276820658 0.0053916681794206282 0.010544866821329334 0.0040329495737596128 0.18438449656223738 0.35558165413882026 0.0052584370120892536 0.01315976822318881 0.0078561158178877266 0.98626490246896359 0.15455380964509219 0.01194263846786125 0.50377308705579693 0.015048758796910804 0.0066602771633916388 0.0045730459937571629 0.0078496113053436265 0.0020206115364863305 0.0059470198078928373 0.17782906580266569 0.0039498929898712275 0.98975416376883274 0.023205471492426841 0.016538892899810483 0.76769277827691762 0.0044738554090739489 0.013546609811415285 0.0073217649010496946 0.0016265435148048401 0.0028922220176776231 0.1617540217601329 0.0036483138509390747 0.0076207658611545936 0.0041712179469350803 0.0098661789866242022 0.8161898920769517 0.52554491655167024 0.015292298098388262 0.33751244423644511 0.0043934378892648155 0.16630198502765839 0.0088746218168440603 0.0048194479918109764 0.010395049849564351 0.016416197738227868 0.17698082910190499 0.0038466221226514073 0.0040539991666906725 0.0029245680955162097 0.49480347356264726 0.0044876876587723845 0.0064369834387233383 0.0028506632476401027 0.47154386859800662 0.0068052038617173261 0.0091047838662777578 0.98819676461227457 0.53026607420363303 0.79895494874484085 0.0070948818113870148 0.0041368243424128332 0.0091389826538500994 0.76657410048183983 0.33442453716103687 0.0085573219545879414 0.0055920431462922237 0.48523529988805736 0.0073796414668564651 0.0046333166195800428 0.3385899902019206 0.0040223126646678322 0.086734339107263622 0.03525864669220128 0.037335066915786641 0.02282784009947493 0.0058244577287422574 0.0060645841040620685 0.013135755437268368 0.82966566498121852 0.16208476146990239 0.0060282277060626213 0.28224451765257663 0.32059685103630137 0.16780543504012305 0.18664871621879356 0.14927815813821649 0.49162627158766264 0.17833722436750959 0.0039429345491915156 0.33702163331677581 0.49616247306146599 0.0097426586405578979 0.15967617962439859 0.023232560462555254 0.0033162467114996519 0.33176408427736037 0.21979031259888412 0.0056262727018295353 0.015981170826803746 0.64112143393084842 0.0084960650246762946 0.53199971270211166 0.9781393043456037 0.011419402319948438 0.17426702044695766 0.0040124239571936605 0.0038291333321234808 0.0073880547901748759 0.34340254143282301 0.68534402278883688 0.19126869131250074 0.14002608255156079 0.66791965070056936 0.0062653555279687202 0.49960402284127609 0.0048578732237117032 0.017768543086085487 0.12249967817138128 0.0037212101432269355 0.30358760761865383 0.0059078391303647908 0.0052950588102802466 0.0066782651092852485 0.17752590403829399 0.011998270899056567 0.0069900533857005197 0.0080788281426121267 0.0081118120851641565 0.4920430476950971 0.34435901227872051 0.18515158491078049 0.33429253578102386 0.9436415777060545 0.15962487063715608 0.0041785502079495652 0.80187023832919424 0.005206878925068114 0.0062135262590731054 0.0059274839338000875 0.0038684491005491184 0.003575436858090697 0.16387834300987328 0.35331721046629405 0.0026821280243353516 0.01018077433881124 0.0039006138815291039 0.0026461063910630639 0.0087724105263996665 0.0083205786457707983 0.1741898561566346 0.78861545938209598 0.010149274772774747 0.0062050451701022979 0.0099634283197963663 0.34855247568164976 0.0035650231918843969 0.0044913654594497705 0.10748749041636152 0.0044960911695505357 0.00406110721226287 0.32080540007497965 0.97606773304309291 0.012578864719414478 0.019581178047325058 0.0076328202354578774 0.71015065770144048 0.15071164800644465 0.020393222617906243 0.0031818726326304997 0.003039663424155124 0.33075499885766035 0.1656640208302759 0.0076389711842457624 0.0066279691547965341 0.0031450308632723434 0.012371169120751582 0.0059447402355766767 0.0045321600884614763 0.015902167915834289 0.0039711338725397834 0.0068525274845192084 0.49869532855780258 0.0092774406084424298 0.67103254042251659 0.40908656529439369 0.16743489014327298 0.63452318796889573 0.0081002080826388378 0.0052186675100180128 0.022852823895323886 0.015728909756590661 0.9919556253391193 0.15420462589690601 0.021726809192810795 0.0031536965500364184 0.81275109613049434 0.17327332532207421 0.46511172957871072 0.16571385658354873 0.40981679719808184 0.007235185747892869 0.004860768392334798 0.0060931581821458778 0.006456476191097545 0.82765179748489293 0.01163942888020086 0.57926714502729992 0.30274609486806592 0.014006195813365962 0.35429269995955714 0.84847770910981823 0.014672129950515676 0.0089116565234421963 0.0087266263942984805 0.0035278856063432474 0.022860111295102979 0.18661689012283106 0.025448560357311294 0.0054633933171400932 0.17585795512760447 0.67247721379919068 0.0036030090799061059 0.012211915749864074 0.0027726251475440446 0.98888191330462583 0.98308762199955557 0.17424751881181946 0.0079153886066732435 0.0055315319951363181 0.18556422697428213 0.0074464225859730655 0.0082667322303927489 0.64310235946402006 0.49850192736760718 0.98545829477280322 0.0027017807398798965 0.1662680205080522 0.015670211481814317 0.016696172626997699 0.15688026737422714 0.028427551500328947 0.0057290737860552767 0.46791474439458369 0.0047799233245093206 0.96620790775264509 0.65601951931810709 0.01566985830130949 0.018266553948372531 0.007913801113023488 0.0082251588543472351 0.025534993130511639 0.0070443117731464992 0.33014983749105459 0.0070779843037581339 0.0044414596831165486 0.91698111057066012 0.011340632036648967 0.48847080841657403 0.011398019328013712 0.0062975407895105411 0.0056132873325586566 0.0083153989812999145 0.15688690457515919 0.0054023641243560946 0.010153447285521524 0.012661078800190002 0.17564857877587159 0.033209596320635325 0.0063627244446322739 0.33984225221276898 0.17294041025191328 0.0052953421047456824 0.49904199371533475 0.48487406610522027 0.0034577005655922152 0.17205998256916763 0.0033284754157988086 0.15966590814188167 0.16300703444098066 0.0090314518375054706 0.0029025235550212318 0.010398799257486942 0.30418583658904064 0.0071779957415625253 0.004596637414644872 0.17468543112362364 0.37352086888277053 0.17144733676045543 0.79967793317262459 0.0097765589213073753 0.33245809569094398 0.16999023504375588 0.0024892237923280196 0.0043657774842063204 0.32314284351813727 0.010900347228963232 0.010971916861198965 0.95482625741408822 0.17838011930211661 0.014434596838568309 0.1942374857949947 0.62944998475483649 0.0089514057024216945 0.0031037763938755185 0.0050702472702537265 0.0057942012705155428 0.3338378355688652;0.0061383708809245605 0.005858260884807941 0.0040931704099020265 0.0077112234470504432 0.0012443677802271881 0.0048142353636740102 0.0020687819247013801 0.40355563526749039 0.0049656309401531953 0.01007559791844671 0.02703201245718655 0.18208312298725343 0.56738163135624009 0.0068007965717068897 0.57909619534553158 0.0045141630198914252 0.0034912319197447591 0.0037160008114790186 0.39010812618199975 0.39862746220890199 0.38514599116870052 0.011041186742036078 0.22276333692738243 0.0041803044202323291 0.0032436799999177373 0.0052232626373264271 0.21280826510884296 0.0022058639641530345 0.0072589971114343874 0.21075362653937152 0.0041899983064480235 0.023761696660413077 0.012566940555838027 0.002876567352889871 0.0045707863913686912 0.0038371493914258854 0.024405179404784448 0.0028641378646230044 0.01053588964888664 0.20117971542612517 0.20535431906695895 0.0057777908522504817 0.0035299404434672357 0.21362995863072509 0.011895746795328843 0.20490829107671368 0.21801529654349838 0.38257587035102902 0.21686579893865177 0.010250640072059197 0.38202069510025471 0.0048827276247160357 0.0058629309139518375 0.0051160631745757875 0.0065157270896356095 0.0076900499922373557 0.98104831525199221 0.012108530304825529 0.01485236077272826 0.01612838721787135 0.39332045075983996 0.77616843722574114 0.0095346474163173125 0.0050078945256499703 0.19662713101620075 0.20538403500018015 0.0058952419770224784 0.015593097636430048 0.81368959271593511 0.013392702319343187 0.035951879647052695 0.95012769546309717 0.59139943021729457 0.011656767192055613 0.0039423863862994759 0.022495216517925694 0.97698539877794033 0.76151041512793483 0.0041750687892677975 0.02135201929218189 0.38852419612090006 0.016924137568423217 0.005873482781538401 0.047449366039994306 0.0034037357467171592 0.0089746087974004081 0.0025919232485318417 0.36151310244290785 0.1993407605736193 0.018529158230045861 0.95201072984420898 0.022191142691312421 0.59834770086793143 0.0080665055443766426 0.0045506152851584299 0.012444658188404758 0.0024175680171224291 0.011677707796463479 0.37821954394308022 0.21083813438276189 0.0076073694862985545 0.0036610788516690013 0.98666447767459931 0.0097257892615266947 0.40063302147053376 0.0092903522512148787 0.5980785860587946 0.0059099604234487757 0.0070768578114666133 0.0055656406590329733 0.0046975964879057922 0.0045331329346789554 0.026320609002366758 0.00472300133905378 0.39236520746573234 0.40100759555196197 0.015608472290358451 0.024327561588418478 0.022157233157300865 0.0058181724909872464 0.20646924928365326 0.0019978028419226916 0.003130586745266077 0.0038655602085669516 0.38109749519161779 0.0030807783837271648 0.0045703872678866612 0.21687618312406373 0.014531281138405941 0.77386869174055262 0.0037853659144819621 0.20232921956032068 0.0026416219725202278 0.021835905252555743 0.36576978765641083 0.0011048758927765772 0.1931966123116412 0.0084829708921093996 0.39487966784546968 0.0068794459028804888 0.15554559928052664 0.19214655417259957 0.97254595039173664 0.0041911978210681031 0.38760265004751648 0.0017896308255275814 0.2004628165090252 0.0074732048985731749 0.0049043069858747549 0.98969261969727129 0.012341673595271066 0.22128205018425337 0.0046860754463227353 0.3994838203949766 0.0030554618919990148 0.60320353589930209 0.0056844604761488527 0.0095274361646666712 0.0045030919052218791 0.0067211269180417338 0.0026915816057574557 0.002507310256276203 0.3979604910995399 0.0016360782740230321 0.0069742470117791708 0.95390586354105145 0.54513880382898761 0.98442159298142584 0.010976582655298096 0.006880667250232596 0.0059824896686170338 0.18493393458758978 0.0049920614969098968 0.019200774972637571 0.58853287442735558 0.013963259064511468 0.0040165914222394239 0.0066460398513169851 0.0039230265638000635 0.20712814479117295 0.19841565807886516 0.0087329993485196315 0.0048291319174829043 0.39410844565576708 0.57015335599109995 0.5956826891601974 0.58521216485088345 0.1812508302054289 0.2045074143135297 0.35944215044127376 0.0041840122421451737 0.019843752395825223 0.015840073410772152 0.013089649193453731 0.0071010774196281611 0.76124791022570271 0.0045967153361887638 0.010508686018641203 0.20776036393159247 0.0026866439415573129 0.010576595676311645 0.0072268212265471183 0.012546433438501274 0.021826921134702137 0.0068643582393497684 0.55877916507445125 0.013499638173924381 0.21081619974507054 0.0089668886069994465 0.0069663207644753214 0.42955050110486959 0.0038982162273388096 0.0074760909363830088 0.0051983899430060763 0.0046373797575559464 0.19740352966295827 0.20174997318097487 0.3868914659056108 0.18666440944407228 0.016042491446885621 0.0089786690671412716 0.96550440489958989 0.23586579528878859 0.0095841876444727712 0.55676667792849832 0.01249782096216925 0.58776654632561087 0.0047454981101878093 0.20948531970680895 0.0025787884591956961 0.013102724728806163 0.001991711989961851 0.0082798227157340181 0.0039219947043224249 0.0030250639821764761 0.0067327537509502319 0.0045887435349752752 0.0079203644605904053 0.0033865655749112061 0.77758193614655102 0.014741938110285506 0.5729644820625085 0.77961335344336469 0.2265843993907416 0.21068098864333881 0.0054339589875353235 0.020862825507242472 0.011109380504369491 0.0095263080110683084 0.0027229790720464 0.20133336370606911 0.0029610486929480236 0.0021457449086756128 0.014353951602627452 0.7937883110761369 0.38101605416544704 0.00481378252630191 0.0091360725690452522 0.79285395842467832 0.0068437369671935739 0.21932339679566748 0.0050277984955127732 0.17351615504411019 0.0068630232946957064 0.010249712245855042 0.19153632428976991 0.005001042075051889 0.19113823949058251 0.012121474660311309 0.0047094113469720649 0.19165345387202798 0.94694229649472772 0.0069646492033456275 0.0069095445266563072 0.3781351647893616 0.016662692488821577 0.74968346054650614 0.98342364729598808 0.002285827896385477 0.0045280955169473194 0.0089276946924583024 0.005293759728578467 0.36050503411314927 0.2204688330097245 0.79431194436061348 0.19992658904362842 0.57694438773104184 0.018284689212711001 0.17320953793984281 0.013200658604135454 0.007063938161826348 0.21917849729444683 0.19567294851750219 0.19578841174607295 0.38338585424384614 0.0038629887292003433 0.018712307383430195 0.98725250926973129 0.72375357483001723 0.018756865699794689 0.0083031411425730124 0.0057396584114372574 0.57264959767733936 0.76677133562900546 0.0058894064976391632 0.0041141005788965564 0.005479896844282333 0.0034077575090257538 0.21074157305932698 0.96655641496989253 0.0064405989819464205 0.011813395666587113 0.96760806301548341 0.78593018324572506 0.007517151660950433 0.190432450896792 0.0023578473235500792 0.9784430407490754 0.78355724738943522 0.39903999435081011 0.0039828683777676449 0.0052350239106220085 0.82544233030302139 0.0064766258167385194 0.013328629681599315 0.013269150862705409 0.78005880306080799 0.02590192765419197 0.0040994218616727078 0.0023128527460390034 0.7631610743382079 0.20725957063573416 0.18035479318067624 0.23790970992751098 0.0051592368528533428 0.032279484449472956 0.0033548233198740611 0.7937383762272594 0.4050731528983128 0.59568258747731151 0.0077486823710353142 0.014195791968173046 0.3827781836166182 0.95117157138083142 0.0040158540864248578 0.37867056281720568 0.011154774977019381 0.39112986512660763 0.77877330187186411 0.0067151232970996851 0.0030673083922416605 0.2133613780935073 0.57009358045129022 0.0042933300265807668 0.20074135449170322 0.007486572769916669 0.0070868051451894523 0.39672960920312528 0.77452850237691706 0.39039907661944062 0.0046665695532965906 0.01380638091813963 0.0079514785036356329 0.017426350864849116 0.0034370661664585547 0.97563419565192877 0.010920196801366628 0.0066017591109567885 0.0047590473029079606 0.003488513639796732 0.01067491314778124 0.0070823875223203162 0.01206385754652339 0.018365768591839044 0.3922688641340894 0.77484948025305944 0.13247730295494825 0.0062285832225125529 0.77277723745881566 0.20831186219786649 0.0081265385801893731 0.017123901377579864 0.022530177895609557 0.39619435738625786 0.0064025919849009282 0.0065032330910976578 0.0060592429863500687 0.0013324430820242658 0.0089113802688032956 0.0033322642287243525 0.0095187704201986599 0.0037024459353170737 0.011816204356781003 0.40448723990741559 0.02300468455117325 0.36590037869675601 0.0036859294529362134 0.015853001860340266 0.0060340852866201623 0.005907776281409427;0.003274317245026788 0.0037460033641921525 0.062743104100971323 0.50840741593321082 0.0062731252534004517 0.50864241893661533 0.014259738042484154 0.49369172971566344 0.0025951314932325916 0.0091126458437431005 0.0025271933371383702 0.023080356999614655 0.95942132502453825 0.0025218076845679883 0.98571927172370444 0.0023841360709702468 0.012353771205183252 0.0053842332135598161 0.0018255380346657809 0.010869053131021857 0.00044078947809138026 0.0063972440215501122 0.002887890093039313 0.0036134533224237574 0.43077083977290881 0.50526124140846695 0.53225889426255835 0.063922057688458378 0.0013334101803778747 0.0071845348005083413 0.0019181355530089655 0.97949616971906239 0.99503156142470495 0.46177580932995127 0.0088658345662518991 0.0060867818056442209 0.0034597012311978616 0.010758119118109866 0.012597832367823365 0.0037336449981834234 0.50320858159377257 0.012456788095883478 0.0024907406666056422 0.96626821451627642 0.010923289409554575 0.41468227248880629 0.0036569109266871725 0.019947913196311944 0.040504927626718791 0.041858288790700665 0.0056794062361701925 0.02104205547959434 0.023191801193635456 0.021977044847671493 0.0032963328669246726 0.0098806668263140187 0.0047140332009453084 0.93837418765988578 0.94314734658437183 0.010357885025328296 0.0081264776141526333 0.002814320703232817 0.0043319283307657825 0.0098265486126394713 0.0054215826688321818 0.003878986584064964 0.0039806466072683936 0.0036654292288845554 0.0020878387649233055 0.0015722510056701477 0.0040307918436116221 0.0036388307739290016 0.51057417023072293 0.038039454769639339 0.51435324946458527 0.99334089733566899 0.98678795266332431 0.99220821157623984 0.0029771641374824365 0.0028132933784479341 0.0028353877094355814 0.0016077060097030279 0.00090087147513024171 0.98048471407604942 0.0025836890309810234 0.0033601968075374486 0.0021840064637143513 0.0090380921381557032 0.0093716794579447888 0.50664543625758907 0.50146870370271313 0.96670473498119203 0.0063363106461237512 0.002380378746985315 0.4830330676786404 0.0056474896233998893 0.456584143532478 0.0024337126039745945 0.0026966995865534051 0.0027595725679591693 0.010441325560551848 0.0087876686247619507 0.012205062609120054 0.0038799347904641575 0.0046093842084456646 0.99178715063509637 0.99859126919135022 0.0016920965706037211 0.015583855766374183 0.0063721820323100111 0.48873409648891225 0.0010937743990194759 0.0086717882978236682 0.0081223795768103693 0.017362353275314289 0.0042801399597612259 0.005490082414838675 0.50900047097483669 0.004410128668389024 0.0018341811940170379 0.035488136521129282 0.0012834355974583509 0.002415955565735998 0.0032809873162451797 0.003862373707848232 0.0039224895382639034 0.0065701640089767567 0.94389320064273474 0.0035140932899242203 0.49914127572233918 0.5708499989480742 0.00095002880110744569 0.0010010056684834705 0.025457632565967871 0.0079236930582000428 0.51429163327007454 0.0065968689013449367 0.0067172861177313917 0.94823728217490788 0.0063201107629302089 0.002218612193786846 0.54430153661445591 0.013573404236243 0.0017061442696868151 0.0015936886990779232 0.016294350829951107 0.0024414496669091612 0.0038005430121925126 0.004498309686536802 0.0084592093230161473 0.019670064877395924 0.98392531361768976 0.002537060188824148 0.027817325021570465 0.96758603796686016 0.54771736501733914 0.0063956343262844776 0.0052300715287632062 0.94919404293741905 0.0031733882332861361 0.0055880504138528372 0.97415499793493865 0.0044633169685942414 0.49048338197428132 0.01164868883672085 0.9986989317377406 0.02608278397278628 0.97554375879224298 0.0051407161175416102 0.0010582655831246528 0.0014803673508793338 0.0043403129440417925 0.013613868051548794 0.98215991226214894 0.001949897014361266 0.0033390108382476439 0.0025004488603423513 0.0060767106857946675 0.54287206617453343 0.0033900004486176957 0.56132089928152396 0.0033204549912341707 0.019723061215233099 0.9846574770784311 0.0038570137227746364 0.0029859963514957816 0.47668175361370041 0.0034786597090679652 0.039410787570362774 0.0066355774875859197 0.0077615980791838294 0.0039059432338164422 0.0060364827800518661 0.020246015252159133 0.02910245723850988 0.013977045232704533 0.0093985084978532012 0.0039836840861721279 0.0020944357022483454 0.49722057751352478 0.0025472454472866995 0.021100880415321883 0.034711678482392767 0.0053390665071086363 0.0040544531117187666 0.96703122641306427 0.95556313059330278 0.029950065133398193 0.0046573995935019624 0.0033580064560345033 0.0030503183629863547 0.48990670006102505 0.4920908673873079 0.004616579373666229 0.010096891142287377 0.0045129196676511607 0.0079670911671474113 0.0026577047489359717 0.47238709166990922 0.98522645026386635 0.96513623994179665 0.0067610395899208682 0.010335457639848345 0.018677533061835113 0.0029681398612384268 0.001247999935649371 0.098922718229447176 0.49373026415106275 0.0015533608930128188 0.012554855523647501 0.005117815921558049 0.002446940872850841 0.023695485635575917 0.0025220112456960991 0.0052088498521590081 0.0012455854410583897 0.0050594835528956087 0.0083156231537916056 0.51934376975429353 0.49310105113163716 0.98413561774224956 0.0014412507199697152 0.97767832663523901 0.95204928966385616 0.018727689841374077 0.0048618126610788905 0.0024524418943325022 0.0017236588232875662 0.013403351349965408 0.013967902446193163 0.0071336700219978956 0.0025944128439238448 0.0030797364483419938 0.0065312935350575621 0.96060141772322705 0.012320540137852297 0.0071011746753451618 0.0016452764603272945 0.0013217351526835926 0.98106174702277649 0.015474228510388457 0.0041268385775899055 0.98252319199634042 0.018006353826132335 0.0040981918175311887 0.0075747576343253888 0.002577499635957394 0.0073360500436469491 0.0042624022721614802 0.50340007420098898 0.005039473563115353 0.0085527745609825356 0.4884418278606793 0.49379368296172482 0.005144782146650562 0.021383051420246293 0.0017398873164807687 0.0093417308471773521 0.0014995393980919902 0.0027021307369278938 0.99105329764838501 0.0082246192801001764 0.0032794435469738073 0.49578174092764488 0.0053199532900106037 0.0088861827525928416 0.023351366388443325 0.99856833834236658 0.016579318751543878 0.023442937711688795 0.96569595600555025 0.95496844736318209 0.94503696365024292 0.98008763398340681 0.0073807427167526789 0.0027321704526882106 0.0072498413550613587 0.013965450469297747 0.021031491813197321 0.016565947511372931 0.0094113792454923653 0.015721747804770748 0.97885062316955818 0.025558060706691466 0.0049667389145160541 0.0080341096351894126 0.0010650931266357249 0.0038462127312720563 0.0090136758373475095 0.0031573899585700164 0.0023626775686668685 0.0065520638252826446 0.98052079267750525 0.022776026657391181 0.97556445322149998 0.014234257607625141 0.98702111807173809 0.9894853869610678 0.97627924259439169 0.0040236113987314722 0.49610476629714478 0.017876965162769716 0.97734629152960439 0.0084174697453252793 0.0019156132024474165 0.49638729733479081 0.053380442631018946 0.033737913769097266 0.0026333056817382751 0.014317109201793334 0.0015616252645515769 0.99480422122538892 0.0035225078065911201 0.0050079908290667479 0.0048173603293572165 0.0022420118225064093 0.91631419331433728 0.026067171214132837 0.98613040316433809 0.0042924141436566227 0.0019419125776850151 0.95340491161871721 0.57040266524436478 0.02661548252436528 0.50024996391456655 0.0011690965348597131 0.97887143614488759 0.0043649345329681019 0.0027557242546201901 0.019228442584177621 0.027625451461498932 0.0021465135902563209 0.0087392349030669496 0.95962545710854674 0.035142747082276327 0.47813214236461782 0.0037654489789016297 0.49698713332225491 0.005586008332186353 0.0015465918301542059 0.9980296689758873 0.0033521678174532037 0.0046556638544961535 0.0011068970982356387 0.001837862987816435 0.010387381525866797 0.0042756824131386399 0.0030983200183170466 0.0017630034914456567 0.0011138560951160286 0.0024772299995800364 0.49110802578741874 0.0024583771940129406 0.0040990734896736653 0.00099478677600305272 0.0019638897831205865 0.96551551507977451 0.016537792468193747 0.006130505752580246 0.0021016307515630715 0.0022658749351401018 0.0061283511385754911 0.0035034609844991609 0.0059235894357630107 0.002738540627207933 0.0057687592904680732 0.0091278522593941491 0.96646835608617809 0.027087597053118685 0.021706777010592343 0.51297412762099814 0.52304030392137901 0.50471295296283969 0.97860253215399462 0.0089141164610018926 0.0095411816384253986 0.0021879694383448072 0.50205732255509061 0.0085682869001332644 0.4472374148169137;0.0036550511079392308 0.0021553645250238624 0.001761189898833901 0.0030640060645310907 0.0021591664097844908 0.0061029966750353205 0.0024163852114644671 0.0028257214146262793 0.69583927135785317 0.18680703843528035 0.56358679557312141 0.0017413643760703713 0.3760178739381187 0.55509951206016739 0.002455366157090954 0.0029018952114583381 0.0017600760628155487 0.24018928069040624 0.0031902691406073074 0.0060204165128081143 0.43405485473511651 0.0020602159984070144 0.99434418431021743 0.0026675929629224335 0.0034367123896846033 0.023270857174059838 0.77352150813836285 0.0019251026665654217 0.0036207046618897949 0.074708481316669392 0.0020277938909674313 0.28539358664845632 0.29517793408161719 0.003347175536786322 0.0037420062269246579 0.16721627678298603 0.58339337971438898 0.0020102297002632117 0.0030633018785303644 0.0052697881086892001 0.0042351479344101828 0.99526778181435438 0.26877851789524926 0.72524740184462322 0.0044395831896537029 0.0021834822119572443 0.62254984239713684 0.0042347961627591411 0.0045899448009843035 0.0030703928933743041 0.99034683849384975 0.35286445635576424 0.0035606388974537039 0.64716896395658607 0.003542490841489511 0.0022114665695610733 0.006028853958928655 0.0024008038849904537 0.0031809416671300882 0.0035441010311712527 0.0038314921460356854 0.0017483092974697899 0.56299147435289543 0.0011725689377453127 0.0041952659748384202 0.0050028119831591186 0.0020545001087982121 0.0039800015015299638 0.0035234753956586051 0.0023079785164393037 0.0055950293461076734 0.0088004120128496802 0.0067108944593822972 0.0042261711894493476 0.0058459685379813478 0.0039420901758950152 0.92857947838449062 0.0029029094851279196 0.98069113407621389 0.25871006166792271 0.0033064420361399774 0.77654057637963481 0.0026596983840566669 0.0040939470238415213 0.0028821049626257195 0.0021729613802478351 0.027282198397719021 0.96393326564379611 0.0017902264899570812 0.0037507183453197777 0.83221917191838735 0.003200902018266177 0.0059734184495877059 0.025177469613644574 0.0018232198285555103 0.0026601822553899397 0.0017389238827288814 0.0014457655860739716 0.002706364157588818 0.9978956356380021 0.0089925716568782614 0.0022246083414146876 0.0021360127902834668 0.98992957385755009 0.0035063593855717808 0.97645670738872081 0.0062615799344743414 0.003603791014353513 0.0025734777968775902 0.0029979750513523793 0.012417045205410433 0.0034030198504859952 0.0035465383861858109 0.0032528296616692771 0.0043649160759466864 0.0025904375820665513 0.011951656628655143 0.0024973404486188554 0.0028531170486308472 0.0023992665523427576 0.94966727863065437 0.28066705342875009 0.0018877173561471768 0.91567510077680603 0.2936722978787813 0.2552148682621439 0.0097391430016633643 0.33710842994546131 0.0043559029553279522 0.97887453517897938 0.0011755177659413521 0.0043127812606117005 0.0051991451543284186 0.0026268312281557552 0.9850131491079801 0.003783666436373837 0.0035950887818035062 0.0044592815716591417 0.2968139630015556 0.005102628070784365 0.0045209814738323617 0.9181547684457434 0.12185083213721973 0.0019390681126671074 0.94804545129488371 0.0031074425890899897 0.0035138671848079267 0.26610406352497157 0.010548394508029775 0.0038641452598391739 0.57427128170049513 0.0023667738412055084 0.023797985529200476 0.0041803757105924703 0.0027890530667992407 0.0098755175762811117 0.0085525221346427899 0.0030541279557706946 0.0047881264391284881 0.0078104345039369432 0.0019104754930470535 0.0027092170928712392 0.0037976809484442558 0.0038659658293701653 0.0076156842077110126 0.0060963264634074912 0.0028698703398516391 0.61802563833320878 0.98791577790285001 0.0011194988108620381 0.0032566210761002853 0.0034264295120887446 0.4418685376448484 0.0072234267949545568 0.0018244865139429418 0.0024472141410495024 0.0021597745294815052 0.97225261611455305 0.98614205117156606 0.71956714374080621 0.0028209204751983162 0.8031901075386163 0.0024113931735365197 0.012077365264135694 0.002976688192030784 0.0030621609315150903 0.0081614598965400083 0.0021835945041740698 0.0022679220076857174 0.0044957548266222119 0.0074133616879048757 0.016094396334721907 0.26074645495806287 0.0026855002006392916 0.0018368977524823239 0.0053058134368708359 0.0045530269035496101 0.0069948622266959156 0.0040710529402587349 0.0020980494431210479 0.0049091504363533833 0.0025009021650526098 0.0025711487091372317 0.0054801433986891267 0.17539759239366101 0.0060935797678552698 0.0029399474372530559 0.0021804703613321798 0.021539159560874377 0.0037800880024309075 0.023442081322064458 0.0021946861467026409 0.0025872404941676371 0.0020102722805539533 0.0035121576463158499 0.014552639044356479 0.0026955079598131202 0.0056489825627688431 0.0031067653803733314 0.0056690875210222477 0.0050426056404832588 0.0078042049584609455 0.0029461633929938995 0.15849730490993566 0.003114824433890048 0.007965337906748915 0.0032193275399238258 0.0023812129894992392 0.0038294745428136003 0.0030403408163858321 0.0020797924067809908 0.0023875889984718876 0.0019656590276284857 0.002266563533908516 0.0034050679881607575 0.012178898374116674 0.0097041374106679179 0.0038045096074435119 0.0025773360351975918 0.3341151608086787 0.0029142360715337969 0.0028571982031245923 0.68723816165227147 0.0067884115243042244 0.0024525460177493553 0.97637124777306705 0.0019581731496586762 0.0038171733897209314 0.003633585852866095 0.010260685343786989 0.0032533753280151534 0.0031741276349593712 0.0066163319259635771 0.93307212945838214 0.017902474933359062 0.98580969615467251 0.0025030959545700141 0.0027658492384184741 0.0065901479921123664 0.0023031626597672683 0.0057327067791449957 0.003543056172820463 0.14215462001613632 0.0018449485543854277 0.013070265843815161 0.0021068041156618537 0.0026838356941213115 0.002929108442903991 0.93925210588067853 0.0057948256508645185 0.003143836786003767 0.16919763213462877 0.84201873498831092 0.0023212368967392089 0.0078097599895019937 0.0024463891797763771 0.0036697159999012153 0.018920759809821809 0.0025541607054372284 0.0068247279866388306 0.0030761551045641305 0.0024667605398588054 0.0034412945621035162 0.37216470086870657 0.0020939122511020964 0.0020961044364801152 0.0038010734052434411 0.017203968418009037 0.97667798515796478 0.8392516164685403 0.41234525820828094 0.015536962876286744 0.0070708261423609049 0.0034020763526880615 0.002726483747381778 0.0024128792589972951 0.0022968732245761876 0.99533113918698946 0.46829887666242764 0.0045813502177068869 0.57952004899193099 0.0011205360705015663 0.0058224917542912544 0.0075949564351245778 0.002483740879732826 0.30745701033651318 0.0033331040266441239 0.0037760045463457004 0.0030936796616976665 0.018793893842003223 0.0052613274781772214 0.0012075658843176166 0.15474032025708068 0.20528123756430769 0.028548335431101642 0.0016407480810447634 0.0018570295141706343 0.54897823823158853 0.95292414956218141 0.0015703864159902861 0.0053771716478424178 0.0022236665024625043 0.98791528503131365 0.0024689035670119974 0.0032735416783428997 0.0049423817662843606 0.8496546848118629 0.0046278039658950252 0.98128756439050391 0.00353300590767567 0.0035747591616447191 0.0034347198733549896 0.0047278760227324884 0.0017041158279240923 0.002526211802182681 0.0021741237669916764 0.13859814248547581 0.016559728007874773 0.97389873934485094 0.97344610554853095 0.0030784512689110474 0.96085731688293419 0.004663748709417292 0.010415002940805383 0.0023666739362946279 0.0047044612988311786 0.0099764349286544703 0.011213213694793183 0.0040101106533176846 0.004581855704287539 0.016963698795822071 0.0040889553231868393 0.18313034710439247 0.0022293001190074463 0.0057882764128424817 0.97437621100049943 0.0040090846473308439 0.0035455018947085221 0.99621974691673132 0.99428801991491655 0.0036534813344741394 0.0043020000639358283 0.001953676173929587 0.0030501717554923639 0.0022085619090414809 0.17509683781380295 0.55087002927137241 0.0033397356834561197 0.0010937079673798205 0.0015857929898412991 0.0032138166290579021 0.0024010555361004327 0.0014328086414292489 0.0047378481819771367 0.0028172556860250855 0.003131184536974163 0.0051365810843751738 0.0054337072978219245 0.29985968603174995 0.0025884393080113214 0.96836154319323609 0.0025610980947306859 0.022699275832279226 0.0033600264404282688 0.0035881358864119613 0.0035844618415052541 0.3234650392997192 0.0017642988603322209 0.98956920939702409 0.0027777719954595924 0.0023982743243563588 0.0026822515937221726 0.002801285296346415 0.97526414921350768 0.0075344332109497578 0.0023967269673461919 0.0017541151813718161 0.17136255579632384 0.007234432501739399 0.0021046203297112385;0.77072253611346309 0.31444409298055243 0.08053551595208841 0.080350006205321622 0.080591759849182223 0.46157782357728211 0.076993237409981236 0.07846236412530487 0.083751262550475825 0.0015827301529964292 0.0027013185945992009 0.76893682176436329 0.31611047802684422 0.002354493341809418 0.07842866528868947 0.38573505088479465 0.15927161218874814 0.31313716311003553 0.0033906005504124406 0.082930331624794795 0.23092284222993625 0.0091811248946648168 0.0047351539185175127 0.15736632892835695 0.0043923778704752295 0.0039243470574241669 0.76822008191651159 0.39022639846371476 0.0042975808616004738 0.0033933289429402018 0.0049540737431101236 0.15753772963270765 0.0093054848190017476 0.23528096817952651 0.0084055312128657449 0.076062844819778208 0.0061980740480143083 0.76559962033953743 0.081305426363525959 0.76614292073731871 0.99795687184830106 0.38596420481745314 0.001477865262573573 0.46536267616098925 0.080336944059922033 0.078384793645235026 0.61301948844692578 0.0037742648222836178 0.079806426023307966 0.0019039287700529266 0.22913638308066703 0.32061026396193659 0.46750308412352037 0.31340660976785883 0.23346166141135943 0.0060124771887947511 0.0031814504346097702 0.23805797938777959 0.2327473776078039 0.080582823851219079 0.23261769106784605 0.0031427420643156635 0.68427138506580409 0.76482677397754995 0.0013440041747220443 0.081277954693029772 0.0073513751202440728 0.0042648760827126084 0.080593712271887885 0.086849840724101138 0.003369776135146657 0.00380309120307744 0.07845345905809957 0.46331952616549271 0.99754898355389343 0.39221930563290852 0.08121803428065609 0.23226518526405601 0.92359755930483645 0.0020791434974825602 0.32691695538317983 0.0024534804439918737 0.0042892241236275747 0.23029423870816401 0.004555846625551291 0.23519771068668244 0.0030614006130975603 0.39415626397262432 0.68971576669322554 0.081562444091022313 0.082007159191726436 0.92197999935175201 0.23725555442736146 0.53436605787871438 0.22836685401482085 0.0027451682906365418 0.15959464995439493 0.0025642778837022856 0.15614709126435514 0.0040009136828887517 0.23641776784376331 0.30679714802033248 0.38588803108834502 0.0029076101597744933 0.23653283905805728 0.53692203405569161 0.23089847454906684 0.0024946774807707199 0.92640561305602709 0.079780407682783994 0.45363126057609648 0.15780640794574449 0.30912700820461503 0.0027017491908702122 0.082684595956155377 0.31238280158191295 0.76667799019855687 0.38891313860816934 0.23344403628068422 0.16134599025049284 0.15930512029010707 0.0041030839182850101 0.31139812764346042 0.0039911315718188295 0.0091550251322374421 0.080098681115290699 0.23032186734940396 0.081427024888546903 0.068626299417736111 0.0017951284504494848 0.23756779869143527 0.087246689289247836 0.082432033594546913 0.30986932734883138 0.53709572364773472 0.0057899479360743753 0.54067709055139002 0.0062551985513156789 0.46885453452149317 0.0039317249606727308 0.0034417032454862303 0.0020092109219957723 0.0022535847100527977 0.31670658002752383 0.31158245249951882 0.086472561491430427 0.31251911556867867 0.23603490023271825 0.005946458063823417 0.0029866940047032506 0.082882284191307526 0.23628474213122708 0.081549294630219774 0.0021955898506648974 0.84494254785084488 0.69563693633228851 0.0015731781265648428 0.23527877619207682 0.76699353779479851 0.00453913565115527 0.0071593031594485226 0.079106021650265743 0.079998241963800856 0.082196298397570353 0.7691810110921764 0.081471823836360494 0.076983086766675632 0.0035596214029813876 0.46623727238213653 0.078103532833425693 0.15819510311373472 0.39964937579778514 0.91922655952101895 0.76992529553598987 0.53965731576828035 0.081934630411684639 0.0044425652442751339 0.2400989417108895 0.076814467705417541 0.0054325412007098306 0.30691014582182791 0.23134839947502381 0.0046711446355986929 0.0015526743055662671 0.0051747619741258433 0.54188446933607926 0.15866817967808675 0.001166595043474035 0.17075704143569156 0.0073269163189925279 0.31121095014642131 0.922050183143723 0.0065256813939568378 0.15592950790859125 0.087511944389493168 0.0028855670085892434 0.62037765304368331 0.23917628331749144 0.087535624714054475 0.16027066845953791 0.0036636821361903443 0.99267004274084858 0.0071441023501050529 0.082181614017819038 0.082389859703742796 0.0059015932904448731 0.85002563050819169 0.15882733445865438 0.0065950731352963895 0.08109125926702157 0.31398817497380371 0.625439192251106 0.69040591481082125 0.002576627219601676 0.39160128407860834 0.003047166028389336 0.23315855298146651 0.0046935563628116026 0.0022043150300737834 0.15863275880935976 0.61796076470110584 0.0018861649458634942 0.2276848030034537 0.0028171121233136727 0.31425710828976455 0.081141971389588313 0.15740163797321161 0.23238347884690613 0.0029561691394327542 0.23215144408900762 0.54431972581119026 0.39262374931855837 0.1451914183241082 0.38019057134350648 0.16115542815898001 0.23379738879206077 0.15888181757043512 0.087456845031186323 0.23670246484612487 0.082882799427028656 0.23861536858605131 0.22665936776349122 0.15717785200208262 0.0034483998573533211 0.23791477388311932 0.080049318221659588 0.77677701532851084 0.079422331666760132 0.53900220820102251 0.45520581031827312 0.074614597205903466 0.38451583743392326 0.0054468271978532819 0.0067043570032652624 0.61643670105346282 0.0052445996113462271 0.1579047330159494 0.080486499260876906 0.0054826182281979517 0.0029551177697162969 0.92290893614323399 0.15482781962599595 0.76686802460094183 0.31141535390303871 0.53065740839570186 0.15891314501617101 0.39143626551428373 0.0039730456570733486 0.84539495505323059 0.84141620179667009 0.77377968168388644 0.23712615180696175 0.99713931211352835 0.9934373689923589 0.0031430489972151775 0.081295633459910935 0.23625492572464132 0.0037161947312643424 0.082146214916625854 0.0024046593681085436 0.082970824610616417 0.15844477767784243 0.0049615539194950769 0.080623703594695922 0.081282826180264861 0.23411822604326613 0.0051645610555136221 0.23511904303314396 0.0048508196369904449 0.0049921316531128072 0.0037946520672031787 0.0043114955017418931 0.15632992369054705 0.38603030372548364 0.080675266824458483 0.23568287516574679 0.0047534446115275802 0.23112379342213835 0.0080978648824700898 0.0035363393312406607 0.0064084532344959259 0.9250716271160585 0.15896846434245621 0.0053539986497630762 0.61843623541100134 0.15669551162084064 0.078573216278526703 0.0033393939382626919 0.0042926411521362054 0.0029992217232605273 0.84609678579575598 0.92263136291999992 0.08036085992860767 0.003517862119571434 0.15956361768339886 0.0050810076111420781 0.38949353973238304 0.0036065215271470332 0.0021649151281708605 0.0045386169764014012 0.99712230182681472 0.76118422030389732 0.0032576020862872309 0.086122160996220609 0.3879524888976395 0.99540534323769436 0.0032391267931485409 0.46338987951588423 0.16413089889111271 0.080851128846709183 0.15963257880776097 0.16392815548026302 0.0067887521059124918 0.083567225448265989 0.078608432161669864 0.30736711845646592 0.1544613701925126 0.0035082684321113096 0.08406063610060735 0.30963148307323851 0.0022796948694972213 0.0025915781814478344 0.16118961056693112 0.08215057325024977 0.0022735332119132377 0.0042459935375493444 0.081539584172582585 0.0025454825996611631 0.31101788355943044 0.99698247377831439 0.23931436753759502 0.15811160672572172 0.76362937865631808 0.39266172905469721 0.30593206252073241 0.4628786570848934 0.002737776301617863 0.15948296001625534 0.0061039594343503343 0.15829733327664172 0.080391133533746342 0.69269781576932254 0.081574493908442042 0.0036263669633522042 0.15663278090524896 0.68478886562341768 0.0043042623618985924 0.45726949867714911 0.086614034919495639 0.0035780460043877411 0.0066147048989509847 0.080216017395849104 0.45309279286433823 0.1566772242926307 0.0048280155444280198 0.37342112118559473 0.620606210866819 0.76629103652493447 0.15804398118366136 0.079327547490277192 0.0027938029830350832 0.15822484215495941 0.52945838646684817 0.0062170461014261899 0.15124724615544632 0.0043337629673783767 0.081797618457555357 0.082239777789112359 0.62185427304830343 0.54178297507592721 0.62551619063898956 0.003863717217071602 0.15283286576928024 0.0014623652050711074 0.07875969301907737 0.084314437199994818 0.53957269424093024 0.23637207796562543 0.53994124878075156 0.082149460799382873;0.0033290269692043059 0.0059645464305359483 0.65419234249830061 0.99767215082412752 0.0031207328378130826 0.97219032421685492 0.28141171867479253 0.0028382680805098138 0.0099167866896492252 0.0032393851457798587 0.0052980840738591087 0.017065938367681041 0.97318413476147159 0.0064154394708678397 0.2389440882044625 0.0059563242378199181 0.26110697122662452 0.01854130624672257 0.0041787273033910303 0.0035698514835571849 0.008773911684867514 0.0046815690031320398 0.0030135865261389128 0.0078945275714281463 0.0042434914580706789 0.018780051517808361 0.015228607777286358 0.010840435332211311 0.0039178446601268622 0.0023343971528802104 0.0050459464733271699 0.0052586168451032337 0.76898050294311615 0.30158640166707451 0.0050370722507129834 0.013829109879847925 0.0042839894588328434 0.98434935134751878 0.0037273359102425467 0.0071875349000129199 0.7442537325994637 0.93233185212653025 0.0039518757067891859 0.25584319213945439 0.0093422153006480751 0.26005078093164713 0.0065401904019931666 0.24776847745650898 0.0065040354332656907 0.0067240063891396721 0.0068178897304868574 0.0069569972347926319 0.27414406980020145 0.26732991406486495 0.013157573715989865 0.99504434284892485 0.0025128650459133564 0.23776944020128316 0.96687689857360093 0.23917080916381586 0.0042339719990774254 0.0051888198573280843 0.018030296556267044 0.88226782007629256 0.0050063795101190686 0.0074922844343571614 0.0049050592690601455 0.0028047428420397459 0.0048817807282856163 0.015349892191366588 0.0079903277393968651 0.0034928554071703929 0.49508681696317186 0.97129021939741045 0.019954524769110096 0.5190111520338192 0.011489085986352733 0.014405803808576192 0.009183931945439025 0.0036250490031248615 0.26235757502380236 0.0042005276020273888 0.0028888238707780694 0.0078578575332206978 0.0057830651146274876 0.014756780138561451 0.0025477946391166467 0.0058441447327117861 0.69083640844477689 0.99170352679930551 0.0067152037652320039 0.26695058173697389 0.0028280048539686192 0.0070648744390501474 0.011846564755309182 0.011377279919347932 0.0074384436652064866 0.0031613734376700203 0.006219494016541368 0.72447974180728381 0.25836156294253687 0.017807813517607303 0.49139653373916731 0.0032030096078478018 0.004610011824002491 0.49586833005395969 0.2584854017249843 0.0053604294122102519 0.5127469939003475 0.21381583434512655 0.88492574613219865 0.02099796732939507 0.01186933703927996 0.97964297051642413 0.013093109103096249 0.0053670176072560718 0.25660628975940986 0.014502002371913202 0.006071951474827508 0.0073065892368120826 0.24545384788122757 0.0030162964500919961 0.0065760609547802435 0.0073362637807487356 0.0032620019563349865 0.0071430287592987845 0.023088332325678917 0.9637409863333064 0.0044618475686521268 0.0074295103651921312 0.99178757403418338 0.0025962461780264373 0.003912232270434233 0.46197937073431744 0.26874914530364674 0.04565579954244367 0.25864132010671947 0.0058314576943422122 0.011982113588466752 0.0087394961173068927 0.0050164828813877042 0.24234066142983055 0.024361393152129113 0.0052992548281821997 0.004890686416358243 0.0074755327371291416 0.0081190718487384132 0.0027620111907060031 0.0062457381495337116 0.012621329346762368 0.0074771829570902072 0.97112971702574669 0.0091019107050146139 0.023885144169077773 0.72899158164716482 0.96768346876218103 0.020563148781125994 0.018639391201047597 0.51150825093009922 0.0067796844057959786 0.0070820150849699795 0.278775284329281 0.0052338683242066295 0.016134979087456616 0.26100761192490229 0.49844379765030417 0.005675076264517377 0.011630684816306218 0.0099787377208798607 0.0082308525679581808 0.72203538792475874 0.0032861169224425897 0.25499398623901226 0.26165326511112319 0.0042835167735266032 0.0078804473748675871 0.0023961686927547621 0.9645528760782176 0.98599698065079999 0.0027971303860274545 0.019383362032564858 0.0045895947780868265 0.021930700080860899 0.26629162578255272 0.0034436578256556273 0.0044526093306077284 0.51230504489173578 0.006363523814777677 0.25580964506862253 0.027877889754876407 0.010845670852185805 0.25176096843351831 0.0061387232002344692 0.28343281494998879 0.2645790998548741 0.0050198246650082941 0.0059414405389287793 0.0021397196447150179 0.026576349639463412 0.64680475123869496 0.0038255230209595223 0.76945568212170357 0.0022535728747505148 0.0045495505855407065 0.0024436690945686202 0.006255258492684896 0.52427344432771461 0.013868111199644631 0.0035789247473643772 0.0061027629964489245 0.0033027880949235912 0.04373361204900926 0.0075032928925835348 0.010165530742848027 0.26129758977308942 0.0079450035960836694 0.0020509585021375883 0.23708235619108747 0.0047539514910331154 0.97872623745948784 0.50547565292242702 0.0030161469439914071 0.022210983936862758 0.031284742520667513 0.0041341478720038228 0.028515843846663304 0.2581352906768668 0.27630105368923114 0.0084804951253920381 0.029793875634291513 0.26463681250091364 0.73226768315354396 0.26524744746490386 0.01371230622164539 0.74960608805000661 0.002123751142787191 0.0037362866735122799 0.29338008800029552 0.0089371651268683981 0.25431390219758604 0.76717056266026318 0.0088127117209263056 0.0024659766414256374 0.016985463102791077 0.002858854644667265 0.0032727176013969198 0.0030288097964302034 0.0035067222549896434 0.72754717164202387 0.26703149378457969 0.0065012585631044313 0.0069044538724407824 0.011887602049459515 0.0045831416145753695 0.028264018535351203 0.0066592141978267187 0.48873521347054927 0.0071763236101276663 0.018233403699246697 0.26218316885731091 0.25112901999673992 0.013331523762183032 0.50012900440545804 0.0044991111902425327 0.006693710644844037 0.0033653815696962396 0.0039269276203378707 0.0040237861138007836 0.25532167761431984 0.88483108905642838 0.0083723195181696231 0.96570545259397189 0.75436132821944391 0.7785705457420018 0.002986347727231576 0.0031021578512868248 0.0021889830131520275 0.004208593922642459 0.033543825218821544 0.0048863424721397649 0.50620568360996832 0.01682965036776712 0.0049592930442837711 0.0041243357256925354 0.014131524900604965 0.015310235528806317 0.0060986677883752222 0.50792307646556001 0.27492421158185881 0.28479102315986188 0.015187153326269819 0.0086096013002596346 0.013611469749242147 0.25844476481939238 0.0069088689569649911 0.014670686766534003 0.0032774255959729186 0.0056271593245533647 0.0026703779621935889 0.74833210970354302 0.0095915474036484261 0.25364256517446765 0.27695671370088409 0.94664767481875567 0.93849598518167143 0.0052417755910180216 0.0030568343966042816 0.01145816191438807 0.95337209393515832 0.72124837513772699 0.0051364287183516032 0.76279355590452635 0.010396194127791081 0.0083142638780853498 0.95422387830792443 0.2322391338747484 0.91949642225204808 0.25002210843423606 0.0077059105925157204 0.0032081154071429961 0.49365627369772058 0.026825682529878613 0.0058960570637016443 0.25398601961822814 0.0047454348755577268 0.2681365415162501 0.42281640774562346 0.72831821945267616 0.0069035712285073292 0.229946707061398 0.72120979924932571 0.51669928573100765 0.0083510180011158522 0.0030452668666164518 0.96417089286631896 0.0027711064403954204 0.50092728091972805 0.0020398323378638073 0.01300847355645203 0.24856456680762712 0.0054079868879438686 0.022798896033563387 0.50730905398944004 0.69346078816344425 0.96446227563677578 0.014558500969349415 0.011904897440423272 0.003304939594051909 0.0026021759614286424 0.25156708921732651 0.74709215135454221 0.01286393633536429 0.0062725175880572592 0.50973514636679451 0.25950510581664005 0.021822343671986842 0.0077290039257945937 0.25935248688297624 0.0022514976067721168 0.0030668630382623694 0.72859184746399919 0.0053101550734398067 0.010285427619768292 0.0070215680256180118 0.0041637234779104571 0.009116372674654245 0.00088567088830842527 0.006045652836104482 0.0038675909804302151 0.0025658563954550789 0.0053426780554960253 0.45594588779269007 0.0070670438837389833 0.0038070632911925981 0.24350075767818397 0.0032030804433359639 0.98340850896289345 0.32092169686135336 0.93304505144464622 0.0056058606789654315 0.0023439733376780392 0.006831646320819432 0.0054798204936922137 0.0078331195945839111 0.011417947194034467 0.0047358531636234776 0.0036272617075045039 0.50758162783000615 0.017737370510428736 0.72691277581678393 0.25879763146253404 0.52181936290316699 0.049249331295983759 0.0039072189773974135 0.0040324846604268116 0.95264583446382001 0.0082816156871470849 0.042844243163744369 0.50001551464894367 0.011413004333222201;0.0032711448243954167 0.0026318750785772854 0.010387436654417548 0.99107222796943217 0.00039638602374753083 0.98465788514855956 0.019345661734102983 0.0024952346025793829 0.65320830040657929 0.31957993997057943 0.00048834220191331713 0.020762873931572012 0.98344622064960097 0.3084818659429972 0.020413189596848343 0.001576802378812386 0.011195817568240821 0.015364583384117649 0.0010291879392162521 0.0029307077306370351 0.0058607772324477799 0.001645033625963992 0.0014695374737284071 0.0008693355836772406 0.0036980375357352439 0.66293892971422652 0.95366389564774368 0.006545400923555782 0.00038645364555094889 0.0012685722379437961 0.00086608250631745336 0.012874785407212291 0.33840930059781082 0.0037912430155476328 0.0011256753384686229 0.026025495339621348 0.0063185671843486767 0.33712114119337261 0.0025950868896837541 0.6560476147219243 0.66816803417446202 0.012778325759971145 0.0012698894301766731 0.0064536735496772916 0.0013036100136762914 0.0099296752548957857 0.0026442056322495211 0.01805305417641364 0.00170978918809937 0.0018957592725997445 0.010336306165703364 0.0057258694655861683 0.99778712772116129 0.98250160096144401 0.0014710638917480308 0.67055196815606477 0.0024345165658972794 0.011054444413860252 0.97908635505564567 0.0039376399830238166 0.0034851173123347213 0.0053108354423786839 0.65672666447005823 0.33411717927970075 0.008036585493226469 0.0019535483285617011 0.0033664356576907635 0.0087109007836022184 0.00059568561883334903 0.0019903164231776312 0.0040204251683543099 0.0060466512555957704 0.99469187889933408 0.99993602821294902 0.66199862110354712 0.37153410716355939 0.98019220334946122 0.007101667280488882 0.000911416918960594 0.0026514922501489099 0.00083698273959560742 0.00075153768673874837 0.00041380603460238868 0.021834739678063306 0.0029737529726482073 0.0021152200714775831 0.0021236633242848481 0.98396976324759089 0.013520158079720635 0.99302217101624057 0.6625800873513169 0.67764000155625004 0.0072830039491523762 0.0014903169333068535 0.32789434370061149 0.0019428909859043912 0.001914018460255555 0.0010542513850374533 0.00045086271608356794 0.33834589474888632 0.00044061445628405121 0.025900826958491538 0.059984455841852059 0.0012022195826619105 0.33572472358310385 0.016366591780367836 0.68274186065693332 0.00042174740793958726 0.0034335146491210906 0.010289962463283033 0.66260557392719244 0.65091789362034902 0.011491020349100165 0.67141329114548975 0.99033102017575614 0.0022395426377513428 0.0051724388456334033 0.0061294070125887017 0.0012082084916186808 0.0040097654552692201 0.99410758070412819 0.0017545968727618799 0.0015253978384970638 0.0016076888405593768 0.0016285187038515018 0.0014024544253057351 0.0047755172220260798 0.99096931954008383 0.0025148847220812631 0.648312095737264 0.98813837133623428 0.00026213205303589853 0.00053097300205751942 0.0094129945361025522 0.033355120182684508 0.65852538366760616 0.0018613002327675457 0.0011751715656495567 0.99650791555435969 0.31336558471719372 0.0022259779203598921 0.021466949022944069 0.0046867942753828114 0.0015664156453558435 0.00031910190434972761 0.0026083823970329567 0.0086273534949824291 0.00043335442788299905 0.00071972235409583046 0.012000691056649589 0.0020179758417687111 0.67657242279647145 0.0016388279634516559 0.012712721505342422 0.96900171556952253 0.99461375086699999 0.98210659212508422 0.0012079153468283258 0.98228803089687622 0.0025603381559358598 0.0042205510507245525 0.33846183287234577 0.011438257668338673 0.65266872272073395 0.0081306183850112079 0.98728449768215287 0.00079982316306189695 0.98996772661315136 0.0036120250254523026 0.00093566877250514152 0.010291131189173335 0.0029135816864652008 0.0048019685157972471 0.34535687275776694 0.0032490285154060322 0.0011506252399908394 0.0012816949917606618 0.9901919625672766 0.99735748483636377 0.0013081708973360601 0.96246116945204241 0.31603412237093292 0.67564364471587979 0.016739107171834286 0.0050941351383925765 0.0016511282728530821 0.99340344769439626 0.0034006726119822188 0.0021636212236055847 0.015645756309519726 0.029540660959744912 0.004506220792972802 0.0041032756738502239 0.33621385654964098 0.3498383815101227 0.97652405944478959 0.0010477656707721704 0.00054428388098503493 0.0039303325202522214 0.34858035607444088 0.0015938444558595956 0.32994754563051432 0.0019263051278463764 0.0013531037563207224 0.0036059983332203363 0.0057326001480159676 0.34091015926881651 0.0034444308295413207 0.0013677963274852417 0.29741617585734592 0.0027149462295051417 0.99207287994745641 0.32889176958978122 0.0015655910417987436 0.024149448065844407 0.011237450937356838 0.0033269013771645346 0.022036608249451414 0.0019501879780166283 0.028515031414903948 0.9708603968216496 0.002171706482318291 0.36917779238605136 0.64768363597183698 0.0015101312944898271 0.019283084164213551 0.3004889560187739 0.65340491293801117 0.0017989682588573825 0.99283659326997797 0.00355070331733258 0.0076002497983285273 0.034152438921239037 0.0023161369287020774 0.0098644700404815541 0.00054088605461316173 0.0018646371082825762 0.33324723512076859 0.0016521880300894611 0.35082231195472063 0.99155230269563666 0.0042329773364618625 0.025251270951348583 0.98355007874178657 0.006043275594643076 0.00071292761318063032 0.00087186577652599833 0.0010024594343976843 0.0061641298577613472 0.99809166074777311 0.004590430908396846 0.013293916070170803 0.0022070439786346409 0.0086619119246935834 0.0079200993820151607 0.0017136364498143352 0.016519479767834928 0.013870538598073523 0.32549735076376818 0.97152157867900268 0.0017228289724205512 0.0013728806522223008 0.017661910705276514 0.0013465444300188748 0.0022354635162094758 0.30665187653695686 0.00098635327721882746 0.0036746287493674206 0.0027960325590556407 0.97783364060722133 0.0033335585779219177 0.98824742132979715 0.66514868748155143 0.9991114311977044 0.002318345816907358 0.0061663427050297455 0.00093398300995564264 0.99396821336084729 0.0040997182395977475 0.0045870479907292924 0.67123914521323225 0.0070905854358093053 0.00099302259450617571 0.014254617254988285 0.98455766781567466 0.0042592960700758228 0.0017144654338580754 0.016837785723675062 0.36466442431566881 0.020822527808609718 0.0086413496253633995 0.0086754302270509419 0.98292053009158742 0.011994377323961497 0.00090291221048114973 0.00064306331771420264 0.0012252894818263389 0.025457221764284513 0.00032841196383471611 0.99959175983864557 0.97671306325497986 0.0011393680889536504 0.34148859853590158 0.011050991998380571 0.020495294966797244 0.65538324311507623 0.0079554609913728945 0.0077309445817068355 0.010507691444912776 0.013389145189986424 0.0038082242547771922 0.33728301677407863 0.9912604506793864 0.98837105117177271 0.99052930743821876 0.015398976344400763 0.014440695446541672 0.99634124721286166 0.003266829900605978 0.00070732603595399378 0.33742883186279515 0.010158621146161471 0.0051792534839001951 0.0010156591661328296 0.0021394615455967644 0.3327230971127012 0.69009697934614356 0.67856722647875833 0.0021895673436857048 0.0071214999278835607 0.012295024888783916 0.67861539146943428 0.354482042202513 0.64949776458567809 0.98510181376122175 0.31223049297188715 0.99265919199828145 0.0014940596799357011 0.38675449599939349 0.0044305554061022483 0.0012354512272417567 0.0083304488565371128 0.0097869084882810202 0.99645675433511283 0.66646445240057317 0.34620067671003818 0.013878943790855023 0.0024365317320391906 0.0015490197184530998 0.0021524821043964787 0.99367490634370403 0.0069531957281808079 0.0022717920326858158 0.99512298664027032 0.010377932991140683 0.0045974018743380378 0.0012076089545901957 0.35442182257695209 0.67402194709159269 0.0012613175108471639 0.97708533295285194 0.0043814997346316763 0.0026047502757292878 0.00079324803930145421 0.00047913805316870549 0.011209230830199262 0.0037044932971395171 0.0017073629879806713 0.00046287859840448461 0.00036345214687244162 0.00091102780290205562 0.68817734853112356 0.001608215422200676 0.0019954348569981755 0.0033034961388460713 0.0012137926939672708 0.9919702076539576 0.98364040196256419 0.33919902858681394 0.001198614794120335 0.0013500049667224334 0.002584164745227813 0.0014163144791154705 0.0012798906182997821 0.0031808729118154595 0.00092234179013887265 0.66137722044516933 0.021166759701089614 0.0066528677631488503 0.98107648606869668 0.34682925264487541 0.019472918361076196 0.67417737785887566 0.0035633232517357006 0.0012709032590674197 0.33741431764756769 0.00048718907992786772 0.98148553441212083 0.0052654649179845487 0.0024749337311907914;0.22359272880800934 0.0043573765253209652 0.9943569576162643 0.76277060767837912 0.0061450666080209064 0.24070460469385993 0.11929736415893012 0.0040605509165839949 0.020409492577626635 0.12321906182484196 0.93396393136152178 0.33314107926595504 0.25337159893736327 0.0033369256649451741 0.006664659341882052 0.0021873323154282648 0.11529401110754076 0.11366810422421608 0.011568295959977501 0.001671721037694459 0.0062093249549156349 0.1211207900675447 0.00070894521685775723 0.98306232963003648 0.0036117148613762462 0.0046225734960417351 0.0019865399328912285 0.11469427665109529 0.0074520297430763546 0.53697373077987764 0.01225414583056326 0.0058777748736129412 0.63521466956922457 0.23893321987097724 0.56305017970673465 0.20149528763767019 0.74472077610939946 0.33749939403356816 0.0041801588703207328 0.11366905181312487 0.0026848397779138519 0.46339682908818369 0.0022658506585262676 0.001020098887023439 0.0058968168070176828 0.84473511559846748 0.0015435842574750601 0.0081847479301228147 0.0032569342140576275 0.11907071310030462 0.0061103970371984674 0.11421241303203986 0.098147063624028585 0.11497264918370048 0.2375149735073965 0.11227018264717803 0.0079141793924159785 0.0023468193208876897 0.44682545742812374 0.0010873325395706662 0.11511650636205779 0.00098363288563323289 0.11555041900315309 0.0038349520092206572 0.0023820982564165482 0.11815192478997601 0.0067798468379685964 0.54418770822482732 0.11991156295311967 0.99400202796106141 0.57785574622238789 0.014439364037904101 0.11512895167470909 0.99186554385143744 0.086636400877523126 0.11730192654928132 0.0017119368983487013 0.51759993225045697 0.002366382645511241 0.0096643107651761262 0.0012388629150770461 0.97825497961265917 0.0038011488689384471 0.027063490395153645 0.0074334231412801852 0.013886612823895568 0.99626069360720093 0.0018032030421484462 0.0023733051457959691 0.11349618774756672 0.00072636864507454502 0.0049886095482652559 0.99958641465446263 0.016313759902454178 0.4564201707862578 0.0033256531413343015 0.1176302973717821 0.11103806777482426 0.0059038627342849629 0.10735838817107003 0.24070771855212278 0.77191978640667247 0.0012819471565295431 0.0011148116741091037 0.74531171513837968 0.0023875407062770378 0.00063345375257692197 0.98921246211779756 0.11641973395671222 0.35198211650792977 0.75878888240681497 0.11323731633944546 0.12611125582345664 0.0046876877254201773 0.0021860722874934395 0.0060447047717227288 0.0013239288353985965 0.0037819988606221846 0.97497280125735675 0.24619090217559458 0.092951007399944732 0.009353471574488282 0.1252373855634383 0.0014435917688642671 0.0043790748495244275 0.98772354987835964 0.0016709553961254248 0.33901437306328053 0.4628122188896388 0.12365737399713432 0.11273793626037736 0.0033881901721895188 0.024686138165149404 0.0068156889334552613 0.0012749299085333325 0.34333253929449759 0.11246437004210545 0.014441926561168827 0.34153866736403693 0.98886327538636953 0.00098234409536039082 0.0028188951610162187 0.67596085589182531 0.0022214849550101943 0.65876786605285886 0.99721143587818195 0.0016468937519001604 0.5431489021683269 0.27777742477918266 0.0024136451934929446 0.36320534403636401 0.11366189675644973 0.44874993889722581 0.00473060213455361 0.0069054865529203265 0.0045091551440736583 0.97052915939965079 0.18542332466045366 0.11971451274550034 0.010172358043282629 0.0066500193996393946 0.12399573967364735 0.11284496652597154 0.016703099769266799 0.34642933815110488 0.002403686488495765 0.0016966004091819678 0.0080223210444812475 0.0023721623384350054 0.0061122729631604518 0.13591347059912032 0.0028000717220321028 0.0078805422666129252 0.55448553835679826 0.002510602861709722 0.11380150500135512 0.10135167040727211 0.011056484506686969 0.64857947109438263 0.0041958444536756342 0.0018839196498299253 0.0050022078781082804 0.0087161228999920858 0.0022489732553533535 0.45168636117110644 0.11347301084528084 0.0038515667304400269 0.87918079377740577 0.00075002448174483365 0.0020704790002619424 0.7656362220005104 0.0015105456627783249 0.12430527809425868 0.67536921127511729 0.0015218700843801891 0.0022391397295387751 0.0042519289275368983 0.0078352750368345034 0.0019254890739007038 0.78535952926647734 0.11399125143377513 0.64516332765160256 0.0016205464885812224 0.12096011818284025 0.007924339575222171 0.12136892108377467 0.1244731335334671 0.33135994173722388 0.1128349089588284 0.54822956363091235 0.55340579060800055 0.43686931811766666 0.30589624832658047 0.0017316440039372044 0.0055917334828343296 0.013835665527907905 0.1288286281082347 0.0014711928640794667 0.006000814210344943 0.90215853770247167 0.0020154624079786595 0.0033440514050235757 0.0011367956757288209 0.0026632526815918624 0.0017206818363605038 0.0022422103964673187 0.00066651000143971677 0.77872748229432465 0.54633963991009882 0.86780830271531317 0.0021688596630982564 0.84933338558089444 0.0028362022872856843 0.98547775938499971 0.11686883970912931 0.1192727062762504 0.98474759315864668 0.0038045227989968624 0.98610702885577606 0.0034022299142683508 0.0015492934964504118 0.16559661110099605 0.11243357484084179 0.14589854994090734 0.11738095387703225 0.75016826869606146 0.011033117801110737 0.0039004430320472893 0.99647875780026807 0.12399014560074149 0.0013159585742565786 0.78075359525459587 0.79573320215253851 0.012365655459614867 0.018411861527919321 0.0042780840336123383 0.11365250528002716 0.7230898323947843 0.0062243622861614927 0.0089526873907142535 0.68574746975932033 0.012535374204596456 0.98868856135518168 0.11716873818483761 0.0017885791894560544 0.8700437068766711 0.011812234167995126 0.9822319713218739 0.0011830481695546135 0.13633449429094874 0.0049137858948137634 0.11322146164640035 0.0061465681784902172 0.003420836372050698 0.0015428761229270731 0.0043907304946112155 0.0021562165595015929 0.012171054069111363 0.98772269306796523 0.56903159872289055 0.0027993227882263747 0.0022704460776776228 0.0015781477930547389 0.00096688585367837789 0.0010139248435320385 0.12732712984764347 0.011792595582331894 0.0034160097032589188 0.12234553766765668 0.0043939137365828895 0.014869334822601984 0.65357899305566503 0.11552144496420014 0.13073400094709134 0.010851577903175402 0.010677891494646282 0.21968363802880489 0.0010999111376897551 0.48237840881308741 0.43611793389679054 0.0024113945905406484 0.013282084096511732 0.0013102725624651256 0.0039643392154839847 0.019060942943551356 0.0026798730021722751 0.0083395802225999759 0.15415078804824842 0.0042957163691572939 0.0011571252433610116 0.0035291814754554755 0.11132801164677725 0.0022440042978264978 0.46182456175771863 0.010769622832740839 0.99158282110149099 0.4418095286930796 0.0011361046773670481 0.0019999075143182698 0.003289007524028797 0.0017757562026286058 0.12593970807728549 0.0012166679389706329 0.0038736620126117879 0.0062823092343063242 0.11553564135752556 0.11495881198918802 0.0036356555319582988 0.23171761815266359 0.34121551200047873 0.23662560996097143 0.001743538359072889 0.0025025625127961032 0.11803693140725913 0.0077174198521939973 0.52967285449131074 0.86527492580484555 0.0016276777436436309 0.0013398617440669165 0.0089629100771934141 0.0068516061961458622 0.0030340005022188995 0.0047029011150844227 0.11214917328656142 0.38166880470080999 0.98891691942887916 0.87258785150786822 0.0025269969911517445 0.0011787233975563706 0.0016494615363976566 0.0019433583391274363 0.1118974178471915 0.0030560430016063358 0.11637058415343458 0.0028659589789411981 0.13222295626887004 0.00079534594198998583 0.12986362023276335 0.0013508752821679818 0.0031374848325196685 0.0023948762381960022 0.11644181305013351 0.59970215390060311 0.0047815552646877282 0.74498527158930039 0.0022233096665067549 0.44548594047134149 0.003166668080395479 0.11222206609860502 0.1276536388399982 0.12569331439224318 0.11627385625814149 0.010259173636109113 0.63392129787215223 0.98744979959063206 0.002155423655830175 0.0088327661061710049 0.77350803395781542 0.0032581172248910186 0.0057618430895119803 0.0052583678198757505 0.11671746044497619 0.0054040088681670496 0.34619388511866944 0.0016575670343328742 0.34293279187807207 0.0012033369906151396 0.0026099603132113069 0.0018697098093536941 0.88205864087673957 0.0041856782346562432 0.12269284969798605 0.0036051196450221541 0.0036481208818686444 0.0018416464846203874 0.0053431616239770583 0.988654744858532 0.11877829895499822 0.0056636312378995114 0.9884967130532375;0.0077968890362353528 0.0064709004738456597 0.090966203585397254 0.58224441756465584 0.016706192759677871 0.043832835561956343 0.25827787046071299 0.0072680118231299743 0.011488896760140813 0.10237594957038841 0.0054876737974727599 0.083980486145138075 0.29831780134058128 0.02983740357614674 0.088201375602206852 0.084632962818161725 0.0076203103341229133 0.20680772297615185 0.0067066183713054561 0.0041900904564635922 0.23789369702995133 0.011396451843555888 0.0074903769584958851 0.020163282732031544 0.075241988912308516 0.009201306453725069 0.019953331974075336 0.088279982799102652 0.0076745663453584396 0.0086652718845297294 0.0079979992543432517 0.010520261144691508 0.72197239792238466 0.42857849009456112 0.0098627003217911045 0.035333283363636156 0.0061349014945773677 0.17913045003108305 0.0047353931155724683 0.0072680532665223389 0.15924017823293968 0.012958527487122836 0.0091980436698233924 0.018656327358760705 0.079418143761380885 0.093054980172849897 0.0057659665984998599 0.013338700101023837 0.0095904435873803359 0.08698851928694562 0.0056454790191428506 0.011037869383431403 0.72909320580454184 0.023919818826706615 0.02459949708754814 0.50622383784272396 0.0060162595346851229 0.02712425725976552 0.48501401799479038 0.036257817601934646 0.088851758683541449 0.0074376335495340423 0.016044812120555235 0.01947658367347618 0.0088280507695784223 0.0084953248137010721 0.01043864136737991 0.087681714059122617 0.0065297221646215386 0.15163759885174616 0.010561986386990029 0.0045155520751748879 0.32900176714613727 0.82654368422188718 0.10755643882080231 0.48656110727942192 0.30643262438236801 0.088477801955913774 0.0035549217049147888 0.0080242648037476896 0.0081909469572817809 0.0037677052382687178 0.006521902721057969 0.1381603969128555 0.10427119017549064 0.0071360937755121515 0.0059284611993267768 0.007304505154568936 0.16623250748245427 0.3326498044706927 0.017463718870791307 0.015103646783812368 0.0089023806160510918 0.0072348704956390125 0.025260746754599911 0.0081147349489791593 0.012534896227661612 0.0073198292776392353 0.011959597983052827 0.16683241491763784 0.014905657424324894 0.73121124368114798 0.014436280487668913 0.013976283866804922 0.12536512922118678 0.23373061907050291 0.5449572346669419 0.0047620460360718129 0.021574872219027028 0.014748706977904464 0.14183783107637196 0.019255904982519285 0.0086231315706042679 0.33976008651293266 0.20915736241044919 0.0096226566045430999 0.011476646282861271 0.17016455693734517 0.0087376206879138784 0.0061330122611602568 0.79913742955346934 0.0052212214661958509 0.0068153002303342801 0.0051651600730270681 0.0069308179163342079 0.010988525692045479 0.24384195192110752 0.33051156687876793 0.0060628558287483918 0.015507229722646855 0.37887166790544652 0.006979588021944429 0.0073769599708605593 0.007016338175053957 0.010663306103574724 0.09985891631251255 0.0064814194896014215 0.089534838615239185 0.21222810016621019 0.018848634561161849 0.012022237490515531 0.092520015221593574 0.018182438797480587 0.006350126746299093 0.0039369313986614305 0.16419662251098802 0.006225679156487151 0.0039495435433903178 0.011634909768556802 0.23674190384945426 0.016301332646000005 0.25594110993713054 0.015990333932096888 0.56672169064716782 0.71719486678971345 0.44620856586305024 0.71727767108620366 0.1676686805751087 0.5548526460842691 0.0055541298255982396 0.015957546804366854 0.51252797545126827 0.013331038215814859 0.49846765395153736 0.01209792639248917 0.56535722158007629 0.0069650089246627266 0.02322857386633137 0.0056358901918640205 0.012851430151945193 0.33170733299021971 0.0060855169265875246 0.0093176381229570001 0.095476261987791022 0.0063657066010717233 0.011381855663089201 0.0061933497171401805 0.20047876334783493 0.59241349476330663 0.0049245020113278734 0.31141683490184968 0.019505818178176332 0.6533362419542299 0.66907116759123064 0.0061524899569036003 0.00586389412304555 0.1093685586039838 0.0090699385311230358 0.022999696803613176 0.23641529805984346 0.41369210649989935 0.0037770929018693185 0.16756979303357655 0.58056275688547732 0.29130109910716706 0.012882057914758785 0.086378847004594014 0.021313941911059585 0.23750454748331479 0.019773015835603432 0.0085457915305992005 0.10930039427214958 0.070078463358335411 0.006953611297426639 0.014852750832442058 0.068684279542381849 0.40453951388271997 0.087886887092294974 0.0048222985486466299 0.10101559127692449 0.0075459990856420137 0.46342765483950943 0.0090899056372912793 0.017160712674969023 0.63181118430239736 0.010385621198008481 0.025010709032071397 0.38525665119152253 0.017209601172418248 0.30292198081602084 0.18216155286327895 0.0055622667709306775 0.20254037216488216 0.033630604798521563 0.0026640518870500035 0.24589896518797283 0.014067436967217694 0.096303611053533217 0.0073876264879678272 0.64329817074648843 0.0066692424549432442 0.2563215183984312 0.88435408549587469 0.0052176524488787776 0.26003345179990522 0.0075382507026666755 0.0058556246420774132 0.305818441761329 0.015406656011374739 0.0072587238144819479 0.067060176818523221 0.010177288098129528 0.012514480769548383 0.35543742577250304 0.068721255354050353 0.0060205958186908626 0.0045089506397165951 0.086471264896310324 0.01595892717539716 0.74264500735639449 0.012805278543080735 0.37511473457802869 0.094272979403178678 0.0057816612070966987 0.02266447037311722 0.008927159085917586 0.0098159131725934594 0.25867620214446008 0.078284987294211419 0.16851499280837509 0.0037625170766973975 0.18415565206600873 0.23742988598129305 0.013046039178526026 0.0041035507979878486 0.022688405721505992 0.019403932592173823 0.0092805535946102781 0.0044955388402871319 0.014805840170286511 0.0071118245071844204 0.41892463271546965 0.016070275707302899 0.70616871185181185 0.0063164477161442864 0.0084620097009732061 0.0056223535080707565 0.53232061931690822 0.0089249085859101854 0.019317466998743416 0.84447947139208646 0.2668697633856133 0.0074921851540607296 0.0059796689179339238 0.19038667973351381 0.17009421275337744 0.014789835916047583 0.25834572101123099 0.86220756965492151 0.48344096457633801 0.098486676081699198 0.092894607305476759 0.030966141453393936 0.35483538845668899 0.012435226296057946 0.0062474665264150506 0.010567328331916878 0.005168829271727452 0.0087255436348614417 0.67510881779927323 0.68678412987474158 0.0075469500025236594 0.024026259554962463 0.024429887973832998 0.18590585888945355 0.0099665338092610432 0.069505325364308146 0.3148333489520948 0.020958170120731978 0.24501485535543482 0.01056861907713424 0.093128394931449782 0.014425590430569509 0.15137001156168098 0.10814532783260054 0.0063498419754798212 0.24259886260313912 0.36301832200901107 0.072625067401066265 0.0055875814370174295 0.07334138932155107 0.16498189401572411 0.0091617609441174471 0.008151606138336414 0.0070336118884368722 0.013765506123806675 0.0090179216548571597 0.090806584502276091 0.024997659474217129 0.30101090990231372 0.26159124692707664 0.76402659987087873 0.48568088331578718 0.0072446713488895746 0.42216658514315908 0.012999192493452747 0.43010280170837012 0.0045904110040611342 0.32354718663857018 0.004480892357097083 0.012243443631081942 0.085325801818006738 0.32239195867182674 0.018447912047220242 0.28960522488730234 0.010103456906066236 0.16031363359660722 0.007138277580958587 0.0066945372275883227 0.010508286878492595 0.9633094541174414 0.082765027611141573 0.005359820436217369 0.74244358797279797 0.010288811962746138 0.013056427011247401 0.024342846043540298 0.074170922683706564 0.0070172210100619961 0.0055912205461168003 0.35066490237684939 0.0068548330624578291 0.15961476879162753 0.0049726833500309958 0.0062580983808808253 0.0060357707576560787 0.0085727921664081712 0.0087260953912332243 0.0062716566402682312 0.0037938527896820649 0.0081694526527573159 0.6111759948492097 0.0060623501552266911 0.0051704197449620138 0.032418264024742488 0.0066071972037261163 0.28864735309455314 0.34909449056314606 0.077007368072410265 0.0038843390866001894 0.0083687366161165032 0.16135399403554829 0.013068328784163341 0.0058720440306875687 0.0082618921198499111 0.0067934729076962186 0.014751446730191095 0.23813442650410871 0.0037317178581011091 0.16701427338888331 0.58441182310721262 0.016839259552355816 0.83892458116401425 0.012401191581607272 0.0061427874393389969 0.017300411538611941 0.010467134117137421 0.32085842276203902 0.079284443652854461 0.10268033916505397;0.023233729419664333 0.0082718937184211409 0.0039163716787623615 0.034593568088812178 0.01175172282108471 0.41086630535835239 0.010434149745882585 0.0040332972753777388 0.018824240993960521 0.95073207016197714 0.0075735056121919424 0.012283468255772 0.010216187406189441 0.93403599326930897 0.0093394054548060334 0.034168642672664715 0.0046758622129330941 0.81923256703418945 0.0078994179531826914 0.012016637353993555 0.12749307310251692 0.01297433509561075 0.0066093851681225824 0.21737813958891511 0.76010133945926839 0.016753942750066479 0.031505966215056073 0.008525560264944599 0.004415237134311089 0.011587415528750455 0.0076208197910668934 0.010612563022018594 0.045774114314729678 0.041195317852591347 0.0093713506234397274 0.49645442674018003 0.31154448193377543 0.0048195468103533791 0.42365721687468466 0.27541439755135866 0.025999322497180875 0.0097586679025575621 0.0044152760937023064 0.0067212583555696613 0.0054999359627238564 0.041508361885754727 0.0067508161629581632 0.27211984047767629 0.01254692298969943 0.0067742888542354383 0.011418684721479671 0.0060795420315043463 0.4180184946580332 0.012067946880451021 0.067215426768357789 0.025084877500904015 0.011621434425567775 0.021633356446051008 0.0059448582144757062 0.021019794555642984 0.0083265173915782129 0.0071693114913781737 0.2056907124855859 0.016972619213943149 0.013684100276826693 0.014443321743135075 0.0050846039519022983 0.19010392251275396 0.006246502850589598 0.010897285862202835 0.015244979961932987 0.013049771735522173 0.16589579694544357 0.71408249198661533 0.011168876828854833 0.32507064555241688 0.016422148687982547 0.010933407602796621 0.023200435105256781 0.011092464210925735 0.0071972522268579798 0.0039692542540914902 0.0021097906268960995 0.1628363106912768 0.52355648932971943 0.010084341695994124 0.0092686111971288631 0.17091930226178928 0.0059100241594139315 0.011186748668324845 0.17847930096083078 0.0080399936011176509 0.01555191853349841 0.018565366536857548 0.0057081251349724339 0.0053247127187612065 0.63190938774767758 0.0075395294903803046 0.16741839573789646 0.18823522063498446 0.3136868855881057 0.18265231191598036 0.28239298806199142 0.047064243381363884 0.96199582187624333 0.0089999000675354945 0.20945002546705704 0.0066468056015048073 0.030799824177565809 0.020434858292173494 0.78064709982299174 0.18059265604475958 0.0074831146843965714 0.17313333424477331 0.17026866891319328 0.011575058547781982 0.010098125382805506 0.011633757740550395 0.41362715658615196 0.0042111398746739886 0.0615554324065654 0.0057307083741491528 0.007051577069468116 0.010855439838098366 0.016491814781623416 0.0098636883128524998 0.0092042707028378284 0.14238750387429783 0.0070010566336000217 0.079704381786556519 0.0052440636008926744 0.0042749722592868213 0.009533720173624409 0.004254719901662902 0.47443145346064741 0.041350586510138621 0.0060289947554422064 0.010098189066937477 0.84173022506626238 0.035121831732336378 0.01024413401651415 0.0080592859088106043 0.0094781521505647934 0.0058071226122254098 0.0085104894873578567 0.011462637373366854 0.29201125340968348 0.0047338578169103104 0.022128495198730481 0.022359149171839631 0.0077781134879190694 0.022790328259691291 0.0099031726610456835 0.015634053584454757 0.9744111421601922 0.62659278700806165 0.025327041927928944 0.0050153546624284139 0.021395808142718239 0.0032794851270905936 0.01038923581652914 0.0090670163110541293 0.013098269625305296 0.9655651825660595 0.020545254005688268 0.16061769449432312 0.0095243910968846532 0.16656983468411254 0.0053869641399794908 0.15231876420757548 0.040562254815326042 0.010013759956406106 0.0047361836530479852 0.0058720140490283335 0.011514418262689854 0.0067671431754629226 0.01009697275260008 0.84216905388761987 0.03585577423229204 0.0044725665423265438 0.021796669325980695 0.87749151439526563 0.93162470309416878 0.015506054651132358 0.01005111545224259 0.0063683588237925075 0.48228056880328474 0.47662903624637598 0.0087628206069300229 0.47227675368553329 0.32486205902045384 0.004245990233127302 0.0064153032812768167 0.81933964142079363 0.018693592215789628 0.31234226859284508 0.023297500123258444 0.0046931619940669949 0.17349407585581406 0.015685411889496556 0.01060993819563244 0.034216546589445999 0.011017988999756926 0.004933867895595411 0.32360580950400875 0.010667389574520611 0.023531901024704361 0.0054833016292891628 0.0065662878910672309 0.93530565519616504 0.011589787002705935 0.33083234381180376 0.0070372184413931742 0.069186836575651445 0.33138661630567462 0.18171526450810654 0.56145861897594418 0.43687861267271655 0.010324323435127521 0.15058657788898794 0.021937803585669321 0.0077838453705703047 0.01229512955891752 0.012976751411852436 0.0066483778360960271 0.1918581760934997 0.3361131055016599 0.018667689226680516 0.060213867884098639 0.95541294063146021 0.0057210941248162549 0.028228052737559631 0.83186731917533385 0.0029039660176054631 0.18016218858606223 0.0035021816966632428 0.0043461875576269321 0.16202273143041415 0.16836847911337047 0.0040832650965993682 0.63597372291719689 0.0083831111352618802 0.14127762830869051 0.1631630225555798 0.0044223050840433084 0.0054642665333283586 0.0324369648997039 0.038852351207817354 0.0075500626101974834 0.77297516575289305 0.0096988509208800304 0.13234382052015614 0.0053027423469175642 0.014631961349403885 0.020772145423477106 0.0080084760363994621 0.0048588098925331181 0.025293150389023918 0.79760517033936706 0.012560374558689708 0.0020157072470088555 0.1816572264239345 0.0047082297049025846 0.17098855780929118 0.0052397762176931975 0.78094902885344109 0.011281408235672835 0.012923960746467811 0.0042013606269967812 0.025686166004946262 0.0066328640312643119 0.17020466126940859 0.015155201815134311 0.52194793585296995 0.0056302146784531545 0.016430047058294144 0.006826974255290697 0.81106381536293037 0.0098900576162777691 0.17001054212280181 0.03608648694507044 0.62824913799798621 0.0067320010062997607 0.018506909131523849 0.3260482551745279 0.0066784190055937942 0.010252654848108486 0.017728682670409036 0.029257650321015648 0.034496265928155731 0.01359010574188806 0.0066655469900946222 0.017463590220315888 0.013502480780031471 0.02056784698413424 0.0061875162707410846 0.016002551695703936 0.0224979794187972 0.0060129934617154631 0.22022735617185851 0.10954510172831575 0.0088973096871683924 0.027842816817566299 0.0059054965893517259 0.0079382013969467244 0.027749214718929462 0.75869786730002775 0.64251664902735206 0.0049009280982254067 0.040719697031150894 0.012716738823385341 0.014260902517450146 0.16863741816974137 0.19041852113489852 0.012387107754009891 0.0050312216507489484 0.0055569588963564655 0.17199461932491059 0.0035020966678111017 0.003650936185516008 0.013930020062864461 0.017907362910820547 0.013303944447345319 0.0079007087500711139 0.0076401255232367614 0.029999094674879892 0.014721527020822738 0.26631137024179885 0.59244107050920358 0.0082575128162090481 0.17888820680263981 0.02992895725407739 0.92055317130711733 0.17070624568274081 0.029409254600947576 0.62463945610308491 0.79323874178741893 0.0035183911054293615 0.3193287187096816 0.013117378872766306 0.021250987229620769 0.0069059478835628609 0.009135516672942514 0.44555378323080652 0.14108356115392845 0.031451210678716202 0.33046959230572232 0.0085634274936525132 0.015329568633405439 0.018077544736478761 0.17595084071881653 0.0087164052063123457 0.009427685304697557 0.45285659543075851 0.0090719158976159103 0.010553457418935409 0.029458964788321038 0.0063668921901326499 0.17302344714661544 0.00996967410166728 0.052319692778133642 0.0040939236085349683 0.01444261013451191 0.0050586563412991 0.0030136021454305771 0.22791385359144034 0.56136342380461879 0.16373088793144125 0.010918116893710484 0.0039330828182575894 0.011441332870269319 0.18781302265743527 0.007613841926391818 0.0087965493682079753 0.56037992077989851 0.0063627520283354244 0.01493555868385511 0.15529028203633716 0.0048185980907520607 0.0057921493365419713 0.01212062623413932 0.17937953416767916 0.010242466027534362 0.0071150045399786567 0.017113120264237544 0.012388653940373383 0.60488101484446977 0.029688904223134343 0.0040426564766592038 0.010293945955001917 0.27128431287369165 0.0082129264389862438 0.029472914065970059 0.013815644624582762 0.0063318429772576262 0.013788401406787752 0.0086147972306159469 0.0095686215843381519 0.18554826005046679 0.022781856800767608;0.00247583838324675 0.0013746701645505448 0.0038973888779865358 0.91732077869524709 0.00023228966671915417 0.0018989162508486201 0.0010993899281023112 0.99997112938780286 0.0036382453766680657 0.0019690139894508701 0.0057044561252369216 0.0041257894531543564 0.092469592602915429 0.014833385493937971 0.0070604373802616686 0.0013306082231391778 0.00093792388335043198 0.01469427896302903 0.095392524618260977 0.017881910919640805 0.079670344765385037 0.033076595319040031 0.99952844835382415 0.0019580914491745156 0.0016038804845987893 0.00084508277547424258 0.019703394391371139 0.0016965244405504341 0.0011657345077680261 0.0040585400624590911 0.00064609939760052739 0.0047507345927378939 0.00093334929757681474 0.0026239360785007999 0.0010569450396167334 0.030825637292250154 0.0051694394834668391 0.0043297425190040699 0.0018733006947056277 0.046021879201519025 0.99996755234999746 0.00076428050510834967 0.0082305568398193373 0.94944888380466319 0.073716670573447857 0.97653941401676159 0.99697473802098713 0.99465392808830011 0.016048749866615766 0.00089226342320749066 0.0049080022271777895 0.0014323935718591448 0.0061290147011773622 0.0041251871606573058 0.0029169839336495064 0.0020489922071927251 0.99871791617534256 0.023379214741014415 0.012394103500095901 0.076617201809078161 0.00068590525685332474 0.99969670474823702 0.0015206849965435114 0.046352622389941284 0.9949415034584923 0.010239721798651723 0.0048771002779638452 0.015388393922899 0.94668141866922584 0.0056918913354263509 0.99955496860790682 0.0046494790212520615 0.023613310897927887 0.99063090595262038 0.0028780782821220263 0.013712116527999391 0.99752085549569269 0.074500821740542122 0.0027941531943686451 0.97381535369061734 0.0054433266758803327 0.0071285369466929848 0.023630242865401045 0.99577445027507638 0.0070989305510610334 0.003734954087695602 0.0040346844533116879 0.003623410687789679 0.013837454087749945 0.013191333148610207 0.011272776717054463 0.0062448950983722551 0.99127195258693623 0.0014216232957130308 0.01097341262676621 0.91112665238232005 0.0011192138210237238 0.042958231785255707 0.82139325472887426 0.0053102173804318855 0.18146236775786562 0.00080364420239658653 0.99546949564446729 0.0014523249766639622 0.0150244533111491 0.017833359787609183 0.044013322045161507 0.0043434490637884772 0.0044775541198356509 0.0036562156873345244 0.0066567668062329222 0.97850652416970685 0.0050446148689127224 0.0027259387817445062 0.981233454456925 0.014536905803537252 0.0013448955789313911 0.95337454079095907 0.97955125612818628 0.97812728395777504 0.9393380842708916 0.00066532603515408553 0.92518071513123712 0.0043677886985194342 0.0031088051088393998 0.0079934270810460561 0.012141752560679831 0.010460495497144848 0.015108264852136316 0.020338689864292974 0.89699212336086576 0.01014739869144516 0.0014808808405186013 0.00043025835603087079 0.057736757948919248 0.0019437799682116425 0.0053229068862029275 0.0027573382825757118 0.10957482131594765 0.00065890796402862941 0.93853075011693587 0.011588484976833692 0.057452717115569596 0.0046502722300431265 0.0052575877527092901 0.0023821175312391703 0.97389933156042063 0.0066865748001875914 0.00062306068074194192 0.97652941463530185 0.94813633242249951 0.97653355692442645 0.0026308793697015749 0.087229090665497222 0.011705280183253564 0.99413712316566427 0.013191445696211416 0.0081894966198511575 0.0024949142949439902 0.0044734720358590397 0.0025274057725772664 0.0036218642506015849 0.87826108837890593 0.011966272277572548 0.011198788313717956 0.89768479646157828 0.99856955751318333 0.014732152121503283 0.90560443277140856 0.0019351756181476948 0.019124369394265317 0.0089408991270149094 0.0013057044083415823 0.0033765676990258364 0.99939390449526333 0.032655471100420497 0.0003117508945590956 0.0017022945346164484 0.00087606697244405063 0.018955970872329697 0.99803174333691713 0.0021956084062587436 0.02500816200553653 0.038129163258949432 0.008454124600858549 0.076527984308293828 0.028817050142040619 0.0050377620187517175 0.99603207074270961 0.062414313460940285 0.93720458703969001 0.020186615070170666 0.015686124033824137 0.004425664260021096 0.12300101140674469 0.96128156248300844 0.00097363611384848614 0.00066352648235780453 0.00050092006909951037 0.013499946778186283 0.016276140760477811 0.012860108702452754 0.0043683630320208401 0.0014309622602393544 0.01011313053379298 0.013279864663441408 0.98046144421900527 0.01157600636739476 0.0027352804133468521 0.0030272466260503148 0.99836225578003013 0.00056173063471928871 0.0070800093143280618 0.00038446298733161416 0.0023048611405628305 0.021456149952876504 0.019529282180352048 0.0012663299463729636 0.98192215622166212 0.016536693657913146 0.0084176252423487224 0.008442896808051846 0.99288169797760972 0.0068497574063798999 0.030207767259775253 0.95655878144371465 0.97033790052580893 0.0020793234765070032 0.054609871265500438 0.0024068497762462712 0.04487321092403318 0.0032416530361622994 0.0084024437256456364 0.020368480324766347 0.0011138340671221583 0.8953858033721096 0.0016378876543897782 0.0032796783718170171 0.00065015119637176245 0.031257035620987972 0.0042672221001988642 0.010355217644229836 0.019015475472149691 0.98575129555036334 0.0038110062554805426 0.00038789445071579797 0.0003574143785114994 0.012537544805097254 0.05991602553266151 0.0049741789373991263 0.041086707087865382 0.0016895126831477562 0.022640601030894381 0.0097639227332295478 0.99258755705489587 0.0021908862263564617 0.89761384847280334 0.0048849436255150227 0.99912398218069298 0.0091503072716659969 0.97166144795536702 0.001945887395092451 0.0019737082957530516 0.0010866159973664672 0.003580813367867777 0.001018892182671025 0.0022045017880086559 0.0019484188631527794 0.0033076800115433794 0.0031511537405983295 0.0023278683050430371 0.0044724436092531961 0.0011666357944642865 0.038635249651240731 0.99992725785148917 0.00015523516019472986 0.99411844004810312 0.99181199490305794 0.0016261443278336161 0.0038424612841455783 0.032263657169595672 0.0055930881223510698 0.99987970919792035 0.0044129099302297487 0.99975465275440623 0.97112557254279264 0.99730669144028905 0.0005486881477910089 0.04465005309654374 0.0015939567966033259 0.001723124592893646 0.98838829098170078 0.016689881089817313 0.013765310670127635 0.00642408409666186 0.0012202440025231142 0.00043230497272034085 0.16031458162741655 0.0051188700919454896 0.00040183840666721603 0.99241735976500423 0.0021283598103194897 0.021077351835914637 0.03262774386294285 0.011362121766208249 0.00076578518395276031 0.0026538107648223733 0.00083647286530079889 0.0069638152896879793 0.0077370374114115008 0.019844760247342458 0.0087972498624599715 0.93305960158396517 0.012420159141634858 0.0073229359193251187 0.0021218218731232953 0.0040449554202402725 0.9732566058127029 0.99926580652350816 0.94718369658375934 0.031642641782266528 0.0087591314204370774 0.013405170325157452 0.0094769010444000473 0.0025907003649460192 0.91328641370137753 0.010372491267114786 0.99190735631746263 0.0008634928957611921 0.0030636311729173929 0.040433317773881539 0.044459691059717948 0.0036496584887759963 0.0055672595597451371 0.0037092168890108619 0.98991589238569444 0.0010410052436212864 0.95788013890688695 0.98436936632126992 0.006045074777625707 0.0018749384421489065 0.95698124190438871 0.037215546719167332 0.99232161000289842 0.0027735017757452105 0.060377325428006695 0.0012685995746717204 0.95198583396604486 0.94748931304480599 0.0036513414735136751 0.0061749083670165046 0.018717774283068662 0.0039769346728006534 0.99127404787486162 0.020310074020424784 0.020862949721318302 0.0064945227782342019 0.010449177208458537 0.012292928992191653 0.00095252305580013886 0.96877870397120036 0.00024589726915144952 0.016770450167970234 0.98247226939517029 0.023516669465265191 0.068106575305541858 0.0025381225876830267 0.0021617195084288436 0.9162563929147145 0.0076877046260227927 0.99235555599451164 0.071163754450879746 0.0020888276786247967 0.00074711773841409359 0.98343958019044186 0.98698973452221306 0.0017244266221428523 0.0017803339787446357 0.93171490782528466 0.010357555078684509 0.0081349662741095532 0.98983036269833213 0.98968705022938142 0.010953282106559154 0.010231508508218407 0.013016328991525938 0.0051360435393959626 0.0020808419430273523 0.0010602186238631618 0.0027358705358351953 0.89821039818509874 0.0087288556277531053 0.073005197293881774 0.016632037324806205 0.073731101733936627 0.016868830218996437 0.0031517366382543184 0.0037548041102383168 0.0047669126238083503 0.0021674185960798911;0.97426044997059946 0.026693499447831823 0.0004621929190128934 0.003221472124122824 0.023238665713597235 0.00038467576075929715 0.0093047121132852871 0.024538124085199602 0.0028661073035274975 0.0020492272435002215 0.035271680303698282 0.98386923633968548 0.0082206767024186646 0.014263383444460546 0.0021632286710421213 0.00024709565376680221 0.00039542819240094676 0.98545874280576118 0.94512449141930033 0.012678428427083895 0.98094693465408445 0.0025652977782679768 0.011847840943698217 0.0019214786101217126 0.025108171862318649 0.00088271854465216907 0.00078857240391027228 0.0054478032051832282 0.00015501856346370575 0.00036376674848810707 2.2172598208354353e-05 0.99997494777015716 0.0074834441284980938 5.7996762245019922e-05 0.00020345016017630368 0.0018661201409333951 0.99999400699562402 8.8446341194867213e-05 0.024854146046180057 0.0013214505455273254 0.00028844908249005534 1.63436259379263e-05 0.00099649219095740578 0.99917063994431632 0.013392485176372459 0.014313660877878335 0.97569995153650502 0.00021697460102660537 0.009271574152104757 0.00018051857565984475 0.99518102150033638 0.00056120269462412928 0.99090992721076132 0.0081295525908246687 0.98662040343050805 1.1960396951345028e-05 0.97513919869924448 0.00081872234533506309 0.00044315554201122809 0.00032223342052257927 0.002027108114654111 0.013148541554530125 0.00037014629280058159 0.0034638537783745899 0.0043881645904105416 0.0043487882357600852 0.026044203308276805 0.0037475579370345098 0.0026403448629288501 0.032279043717331472 0.0018798399431445311 0.016607187820053004 0.0066990085543331482 0.99995877789974141 0.0049500765951392585 0.0027794708188575135 0.0069055161223475891 0.0010507602962506726 0.00067641200279356989 0.9898943097769124 0.00034409067101816038 0.99995011129427047 0.0058410662220567842 0.0043169377248365526 0.0001963005444636406 0.99668155061121566 0.98836869722882958 0.94319469715778026 0.00030730799505342821 0.0001390357885965705 0.011356246521862203 0.0026409815734332121 0.99220949449441842 0.96776440486812365 0.01410569047929844 0.0079205899746827707 0.99950139146575701 0.0028939543788876047 0.99108730417076019 0.99990842427770343 0.97973551025746097 0.00028835812568089582 0.0022290152241460776 0.00010332820907218042 0.99995252880456842 0.0049574803652264682 0.0052005811756228437 9.1199192074937842e-05 0.00022565871200815114 3.4655803947943299e-05 0.98232412445940764 0.0064560785614121647 0.9996665230782632 0.0044074498031904099 0.031817360364124393 0.99226005879760015 0.00044462760942169774 0.00011503629982082169 0.99997833778676248 0.0026386758088945859 0.99999735112265409 0.023032553222185594 0.98913065061995453 0.98680252738724228 0.0048925591819888739 0.00056897439241197117 0.00094124987290587086 0.00024923863541207787 0.074362933265840911 0.92783828581507111 0.0031575013090622975 0.00019425109817325565 0.00025965399485213463 0.0015834885308740317 0.001763680114018193 0.042101913979274104 0.0001938905469741686 0.99839830774056992 0.015868827192656924 0.999993269237618 0.00025583338567792505 0.000376295982919347 0.97101836721385215 0.00099528044257216129 0.00065011720443056869 0.99967181938773453 0.00042035529594537565 0.99950255029654256 0.00063131438924512485 0.97330556197915974 0.97900769527231724 0.0011601366804315019 0.00017040035355350621 0.95324655744194076 0.96534048707472109 0.010150843568905124 0.99970549169885536 0.00047260825438845373 0.00090541497356751328 0.01148964793801753 0.0025075407292472762 0.00060138119721109447 0.00095341625973177006 0.02738066151130409 0.99351561901254781 0.01066713871464788 0.00019759232880601981 0.00020997937670611246 6.3764128363814147e-05 0.00090539809806368561 0.011461508292114878 0.00020743327417839405 0.00048334060898404019 0.010784594086738012 0.011650057328101931 0.00074624855082987501 0.9854361739265648 0.00017452983555122829 0.0041759533833121056 0.99607201771838694 0.00070996212695084043 0.0012167699912052862 0.022039098787784723 0.96552018141285301 0.98103213942833412 0.91667751193203073 0.97025926050241851 0.98194526204629173 0.0095710898866674214 2.4912981584737033e-05 0.0026847310235394999 0.99773626728090314 0.0010626332300319665 0.99960559314586273 0.0013949454166382453 0.0062621540348860279 0.000558454131870692 0.018249707897860148 0.0012065515828229383 0.99944899771281259 0.0026763470186312271 3.935215187501657e-05 0.0037009268331052061 0.018775105001790519 0.0055239181801028572 0.00098672126587218828 0.93689523292345267 7.1164097477785743e-05 0.00018020473185848516 0.0086679934949464681 0.0070794221719522564 0.0010729794163116019 0.0069022680581597284 0.96898831665438101 0.03371706491913723 0.021420631960773855 0.0083426507600786702 0.038458677756738259 0.0010149678850456254 0.00090222702464254421 0.00096341737952773405 0.066161614819420456 0.00046426839245716837 2.5341060574239564e-05 0.0046108511646919753 0.0035993603138394247 0.99979218891059318 0.99847588174628499 0.034072365521517239 0.0055916872166481956 0.011832808015332172 0.0078064665869343464 0.0076850568997320432 0.99786774137198841 0.0010138030010248746 0.00086941435822742309 0.99942974422324249 0.00090306601191685325 0.00045473951894528465 0.00078379390640050117 0.0011624757951663597 0.059714883413875382 0.0015377794749145534 0.018008687071352236 0.00058937429122376205 0.00069058144526165123 0.00039870778002006789 0.00028556534725212619 9.7740824635045778e-05 0.99390608898066102 0.052768279979460521 0.99977594887955989 0.99903758531684117 0.99862787278566756 0.01891331675364983 0.00016970216445789642 0.0010830252498982976 0.0038435875080215535 0.0037116716568029559 6.8098107892142565e-05 0.0045417844536661065 0.013234398621847478 0.00032032800996321562 0.0013957430026450999 0.96563758706754876 0.00054279432611770118 0.00014514255213931678 0.99657222865612716 0.024892818596083405 0.017252256946733286 0.0040452314972637682 0.0041686066535316577 0.0066795095162256006 0.0005145753833447898 0.0026385430875969346 0.97405037594689059 0.99989922297958045 0.99779981915678073 0.00081891946369204265 0.025398468447358755 0.0037928200099750331 0.99891849297224367 0.00019980787564861788 0.97159774043632352 0.0015146250959030489 0.00083482630828759521 4.0032747525530942e-05 0.016204553139398625 0.047522803455284542 0.0012385600037321922 9.1228320032398533e-05 0.0019728308322055316 0.076991790330033505 0.99743342393757817 0.0050564707020279822 0.0031667828381284988 0.9796925174082638 0.9937809737349601 0.00070692485782251565 0.0036362975534423333 0.97648546578651174 0.0045454646418351449 0.00031716271544703236 0.029764010881158709 0.022596153289582605 0.019867959684354966 0.00087278728579343989 0.0060458375955166404 0.0033710689838877725 0.0054646123438893577 0.97578214130664909 0.0014303314788561435 0.0023668143977593338 0.0014061499688627992 0.0038533220691782874 0.00090677736873487043 0.98845197082611203 0.0023057147910309265 0.99978713434499722 0.010783730086483961 0.0013484908554691089 0.021086185784504264 0.00073365779117388148 0.97855306215264837 0.99801462021541365 0.0058350089464595375 0.0049216179474213207 0.000919178090555072 0.99011503792991395 0.93942079236630827 0.0031612940329558046 0.00057054153703307256 0.99464377728030351 0.0035260985976892198 0.00013506535586363524 0.007061064614946295 0.964325096830148 0.00035796185042734883 0.013458711567782172 0.0013975308603613257 0.00038891623090771222 0.0039408677821378196 0.97134805996317963 0.96339567736261122 0.0010523531856957071 0.00044802085057170116 0.032750499275066708 0.0001865896966868094 0.99731332250213511 8.9304311164944381e-05 0.0012434121239763784 0.0031244397725351293 0.0150469898226451 0.99270025785462823 0.99141123501266937 0.00027380260798131559 0.0018239391117542113 0.96017414990104355 0.011204702984634187 0.0023131377283204936 0.9639365275969547 0.00087012663228708622 0.0013463031773252527 0.00035352130012655168 0.97062303124429217 0.0075934077739324632 0.0018607233247071114 0.0013819691332533045 0.00014094317931144268 0.014640797557906662 0.0042152474522367455 0.00021152268518646243 0.0032542184685956572 0.00046236421558243054 0.96026150545772759 0.99416538547615896 0.010444538487138322 0.0019235377702895879 0.0043458266855861257 0.0053392365561950482 0.98617883708965814 0.002008784971201466 0.99925487662376644 0.0014093851192580355 0.00019774894991361438 0.73718000114146021 0.99134151686289351 0.99804653114554898 8.5827702163404694e-05 0.0018781892616943458 0.00039177071077904928 0.00022907334475856251 0.00010043827624687346 0.00057683762508186915 0.99813545731130604 0.012948636159291739 0.99216548351794454 0.99921028062432127 0.017262143250484946 0.0082263157129462087;0.12206046052312672 0.008367311333904965 0.062461416997922826 0.062104870153013518 0.0065280753928004922 0.17228615070931563 0.0046247123112669796 0.21949027737627927 0.33023210447367651 0.007277415079980515 0.055012525356658043 0.16937076356830588 0.22725140223622098 0.013558850685007937 0.057043421181666595 0.059394600488339881 0.0066889816959344317 0.064977291645776827 0.062408672040827236 0.56471310761006521 0.22910462551145425 0.0072280593604448591 0.16210761121223943 0.0063654127312847645 0.014662807788820155 0.22683504290735493 0.22251227698461379 0.0033356528503218539 0.010196049132622112 0.065517895243823371 0.0056235234275553245 0.49548989443520325 0.10328764568898932 0.06325370538705799 0.0073378595754233665 0.060269028232831492 0.32461210248297867 0.0053544376147412571 0.16673296396719323 0.10592962149250267 0.074953109376877047 0.019244445867661865 0.0055290269030297441 0.64844732816393225 0.062604496310868493 0.12363815396931799 0.53303317452027199 0.11991613357035433 0.57582141152954791 0.0083888904702211237 0.38548345954019558 0.0095081718159189688 0.32900698340591372 0.16657762616947672 0.056536912730554001 0.10977808183690825 0.44240406095304435 0.014246286823407088 0.067141729522823532 0.11200503585967264 0.016301529981836281 0.11456891724293465 0.012647291819471631 0.0074084648718699114 0.061278067131069057 0.46566742132734285 0.010642695973068923 0.30762615997638293 0.1170667312167758 0.0045039457617346099 0.58129587231591329 0.17616009282782852 0.58738286625983815 0.21457364091264028 0.0076263261918302272 0.16161906914253471 0.64086415665465291 0.23377462153754364 0.014191861218609002 0.20943008485937148 0.006281471930021142 0.4427765967895515 0.0070057611899534081 0.53236616469811859 0.057906047343512228 0.0051862152277800579 0.11591272511675667 0.79427220274441546 0.061661260614981131 0.21129996353565442 0.84572243125343727 0.3772013516614886 0.32701740519174421 0.15978899514676528 0.0046680007551763688 0.063985008373163163 0.066072374457528796 0.060129513514008075 0.064199845218091592 0.44175453302266582 0.065371463329931365 0.003405843924675224 0.16620793832740172 0.054479905032649614 0.063501288314233378 0.012897420494788066 0.38284511917102054 0.005719875382282481 0.0074973327273298931 0.017876937300929492 0.22025030257491715 0.066654310440590198 0.49046147358719266 0.16305477308875876 0.46578551065351281 0.065099613188780103 0.0099906811884282049 0.060869823782022527 0.16836776822877528 0.11689597707007036 0.52501250924110621 0.10377818334880551 0.0060597093158678032 0.23239066963497201 0.01280531379540021 0.0058431303754433155 0.06890248853760389 0.38311354125302255 0.071678811680811735 0.48913421888111386 0.11202701687407071 0.060113868730342204 0.05560426884573999 0.010657359690557158 0.52470875918185311 0.11139847245017699 0.0085450079530331128 0.20462528465861365 0.48658810801658919 0.33408038092462194 0.056528896906427671 0.011876429330674598 0.43375003747291202 0.065491745758396169 0.011113464911008439 0.1135506612400429 0.074511156933658479 0.010736770994630657 0.0088444436598127119 0.64333720222324531 0.063436819309884332 0.16084831636141025 0.0099224804910648546 0.0070068946334776519 0.042031516591063744 0.2485847226533657 0.17476028333563035 0.062590483384225556 0.0083947530432945811 0.41339842265267585 0.0076382574669113558 0.060049965127412168 0.019249555773089351 0.0087623714171388839 0.29581324041773066 0.43309926102585161 0.065292780882330759 0.63566988376927258 0.063809477923584601 0.0064467511715786494 0.050727298583007958 0.015929673672129472 0.0078189989137683394 0.49055125071082922 0.056344567427273805 0.061027386237853289 0.006626252644337559 0.1171750411597427 0.11706852823436489 0.17317974615054052 0.12422954989225485 0.01740595806547017 0.064197180751166025 0.58732420237168526 0.12319629029842494 0.067780840781187152 0.5273699942293516 0.0060949860701020441 0.0078344475136170114 0.16798902645964131 0.067063520678281266 0.44353117239710865 0.010405869448437915 0.062838660540612434 0.060321740861213835 0.13236155682927203 0.054978910602564532 0.1711067932469674 0.01045428902797488 0.061230864975457856 0.063620815407619866 0.013656685002806881 0.15038217932169376 0.062616575666641652 0.011320839705396804 0.11918342515491967 0.16734567735531752 0.050764359152456202 0.0060998085744414458 0.01220277501557775 0.068129504743534824 0.0079141816332686573 0.0090661705431945763 0.010348218084008088 0.0076119713814690312 0.065708875034339434 0.17450430821921578 0.11407044612040038 0.013633828408513215 0.052052429633048868 0.31175159550438669 0.12817272780336578 0.12230362266738991 0.1153443297380574 0.17316388989246045 0.40981139084117574 0.23473109732891423 0.11386776826955622 0.18113339704573725 0.16684320254366494 0.018922061954463845 0.0073290225155744244 0.049839085133246558 0.11203495560729347 0.060085715480931133 0.0059998594232092833 0.065022790308273765 0.0086668986326675079 0.0078641959601337824 0.011077793057209564 0.32424500083655472 0.011364095776218193 0.38240372672621509 0.5311910735467823 0.060032326430411544 0.011027398041960753 0.010962123260725341 0.11142067818500678 0.05982738284570234 0.3199024506687001 0.062274281303987433 0.16482844593824025 0.1608763974029811 0.73185486757811358 0.49510194528959356 0.068973295651970301 0.0067483358716040262 0.061970834634849856 0.32671635188773684 0.1571362384161076 0.068779450278051033 0.0060580294278635436 0.0097073904341815568 0.0074686835362483559 0.072007599282698162 0.11955373367102766 0.0085350299525880947 0.2303035201710554 0.11117540858315871 0.45026490968361393 0.0074557321444463816 0.22265288068224726 0.011622876571340517 0.11149401907197747 0.114912937113597 0.25937248551927983 0.16096410823752053 0.63769543036740839 0.0067160021676336756 0.059856338405291525 0.010299325870277916 0.063611129053693219 0.062638213476640697 0.4931330405713108 0.12645045648729675 0.0067068654042665259 0.099944040174480733 0.32370129635479145 0.012426219993600393 0.010491308646432874 0.012621501942924326 0.31837279639972582 0.59567413337893327 0.061879894148695255 0.17052833021191274 0.0076107906913598982 0.22907876841602767 0.70306346499273797 0.16050358806576853 0.30221525112151831 0.11577123547822235 0.012721504579314877 0.275747884431848 0.061653599806456919 0.0077638037426329852 0.30525878761150782 0.11447210233451419 0.061376358918231289 0.173219838219109 0.45923913077325368 0.0078457173997664963 0.0075877935324825561 0.60016996625813224 0.41041465885610201 0.26968727508869483 0.0048181758092651445 0.0052552796847237723 0.68759442532923254 0.45297721474102681 0.021084143277803183 0.010054314311167998 0.11140535190946094 0.59319020517034815 0.064501897391356755 0.10971856801632811 0.12182261043676239 0.43596142261670906 0.4766007405486552 0.018560862132224333 0.0079099591113959127 0.11880219570753264 0.25567906746185864 0.013614093090944799 0.28190584320098894 0.061012010207769272 0.16652967040150951 0.058732026781792693 0.22935885442564535 0.19069956837299001 0.36685508903346836 0.0092745126990864211 0.23853928438886582 0.11373572893414184 0.84642714236343708 0.11781807124699441 0.20636285689157743 0.37630449556085072 0.0089290626603457553 0.27583578819602045 0.01006204507812308 0.0097787913685739494 0.21950811478119364 0.5822610746487964 0.06187481138552324 0.69568520705408188 0.063366237261877262 0.060803262904806754 0.064752584236060035 0.6277841364167277 0.29124566435946547 0.22283842807791618 0.20631904375817317 0.0060836159921656479 0.17523053474677561 0.0038506967560530672 0.52196861784455084 0.011249517089107621 0.0064193870524059853 0.0090723819979226551 0.0060739210420159805 0.18155627560129997 0.06537387791245057 0.057629026030422914 0.018686879752288311 0.067123524413616617 0.12491443061274371 0.2235299424209149 0.06952640293657926 0.077389875388662752 0.22007820195189962 0.32956006059202292 0.059609291019181609 0.11976713227738252 0.008675431504183 0.11190120843345321 0.0085345174995064589 0.17398592284521314 0.0084247160508531434 0.036771931157480592 0.011178277592700583 0.01047516623976996 0.11637463297294348 0.0078995927026711352 0.11896687742266612 0.43671664402752319 0.065894819297773174 0.05819558173610008 0.75801238296624918 0.0079122542119362035 0.0078575759246680161;0.0052047659444837656 0.1126043418864453 0.0041641198827677842 0.0039960263731165175 0.0069606130095631238 0.12660704589976129 0.0027102538331930173 0.0065298673806613765 0.99080610539710023 0.0084286494445688434 0.015074021668927337 0.0044975627960548558 0.96492041384631055 0.0075050818971698456 0.0052538880919647205 0.0055665944661165492 0.0029885131362939695 0.466261606609774 0.0036058242443957516 0.22616281839015775 0.018732488078936797 0.005318199541695913 0.74865930986963869 0.0055699993006451069 0.0046353259781453139 0.84209677984581988 0.36892424730377155 0.0029167024297386277 0.0051220871731218805 0.0043967215166418779 0.0030871618718372336 0.97833265581456974 0.0031660655403460847 0.0042531912097968846 0.0070580101991406814 0.0066975406113822617 0.0074006565912424268 0.0037587509436080059 0.0042532236936588912 0.008093920804789741 0.22637282575869075 0.66893206949300521 0.12863670162466556 0.24368122613505688 0.011298100315517126 0.0054703957923172668 0.23176605818935012 0.011030341558263622 0.019814044274587789 0.002594207372802422 0.98704170104731692 0.2236778945900465 0.0053846636983920261 0.49804836175669853 0.0049362743478085797 0.0036020309935406235 0.0075959523104974841 0.0025357468576891456 0.23005270448254372 0.0087823751036550535 0.0035889647442882058 0.0025224581346345865 0.22478852325605325 0.0043421739980212632 0.0054217054085966068 0.13226551529071168 0.0025475669758540866 0.13767941015299051 0.0038925266581565717 0.002159103568890779 0.0075810484834288342 0.33996896686262457 0.012898542109812651 0.0044852924061328523 0.22291207771913149 0.0070974406287954671 0.86499502171112241 0.0068846622122313052 0.76450810923440737 0.5529850793893657 0.0033994625011845329 0.61472151653614704 0.0031325158483382978 0.013119837845591897 0.0035475690397366246 0.0027886434090914963 0.01295775139120204 0.16101698900880554 0.0020564755332282214 0.0052137416509096032 0.98925795420949214 0.3599724613393106 0.0079870807244719223 0.31922652804773133 0.0050124641546927789 0.0045615987098323787 0.10899989959288307 0.0026609367926722577 0.0039226561596136834 0.98021984187460087 0.23121385615932888 0.0024339312014214948 0.0026131715339742247 0.23555842509235891 0.0060803760684283266 0.37461188263108075 0.009766688245384467 0.0040036081953972362 0.0062776435045264443 0.005152292258544992 0.51123131735631633 0.0048480133563833534 0.0070889997864553691 0.01046068395128117 0.0096166344057754295 0.0071110138145374629 0.2251900687881575 0.0023169868962387911 0.0079846785553754733 0.0054221009835521434 0.97617823599342723 0.12772199112466201 0.003726619400755242 0.77396959295205581 0.42661396786059169 0.12242426549432137 0.33699577394543712 0.0063801795723984287 0.24651078540360591 0.65524665654997383 0.0028576202391361531 0.0064433697824358028 0.011055499361796398 0.11358172051582581 0.56321862447558313 0.0065200015546180989 0.0040553928192311461 0.0049001142078174045 0.0064294883722830452 0.015377586681011447 0.014025557432422344 0.33839644054957918 0.020745843036787372 0.0042919248330192099 0.77251336787664471 0.0041562485863990478 0.01075618721973731 0.67243378388724484 0.0026120991818402474 0.010089561727435555 0.014528182539547817 0.0041888086940952887 0.010031761398671644 0.0078825381911157254 0.0057825856544920524 0.23029857333952963 0.013759808176309335 0.0056651451673690803 0.22162543199492846 0.12354706609086463 0.11011179348070277 0.0044266628740329775 0.0068931916035655724 0.0039325374660645193 0.11707500388860595 0.36943127511628748 0.0043907880619200659 0.75761528114292465 0.22681941858422883 0.0015430327338472149 0.0043505239519570828 0.1168983902434441 0.0093987700881905112 0.55366432119849884 0.0032919223753124869 0.0024238041976268861 0.0022495154535467554 0.23315858905908923 0.22781391947259499 0.98689979365985325 0.0048031766654499444 0.14786059581397648 0.0046805924023702586 0.012246736099301457 0.0048718670304323574 0.0051114642308868422 0.0095649085595699221 0.0034414545417594676 0.0046098901560769397 0.0066963523401949963 0.0071319747808956079 0.24789862439919322 0.004735169759985493 0.0028311190194588247 0.003192445388041702 0.0063542992150820146 0.12162866145082857 0.011151518347339628 0.45279798417115402 0.0039881548769673198 0.0082253611254443446 0.0041784485170063574 0.0087849627447627223 0.0050699991195597999 0.48003223257448069 0.014971193144144877 0.0045931077113198432 0.0035120230276805531 0.014707108609954471 0.0064992354747723663 0.75725093477735261 0.0029928410422147955 0.11007885228821501 0.0032026937873857741 0.0078108389733648042 0.64064101545738672 0.0053062776139469513 0.0032215076565733393 0.0041678900812263265 0.11347939124242971 0.012353750853662212 0.0059324802044078886 0.0045829079551191138 0.85561425640773636 0.0042363166869743892 0.015299151015096822 0.0041251384096048661 0.002906019324639738 0.0060427645608315149 0.0040732856666465672 0.1222905260345713 0.0043064928044415571 0.0060935696160726756 0.0063901430877708523 0.0067394586468719382 0.0051412167009772716 0.44714503564966357 0.0068706363998040339 0.0034389746059784432 0.41673991396533472 0.0059202253582701821 0.0037700702991389783 0.51883813740186979 0.0067020249629144175 0.004023126154209666 0.11780594145145519 0.0039438003283158362 0.0055549494777530298 0.0074523332248658302 0.23629748726656175 0.0054948258656532575 0.004129211658156268 0.020108992608140787 0.9880720268777905 0.43343695294637519 0.36599687329991537 0.0030264569605140132 0.0044327800065987492 0.013705447472905453 0.0036100571925254195 0.22875799275749539 0.0034702188848726974 0.62866699798859726 0.0047291532700865025 0.21483750355712611 0.003751162009212303 0.0087550878525295365 0.0051201785001298173 0.8468242566773676 0.4477941072508777 0.0058335845431292275 0.63986818054631078 0.34166974176679249 0.0046569447144740378 0.0031398710586514919 0.0073135352992607207 0.0050515006180710626 0.0061454531077177812 0.0041669685749443075 0.0076557738550894214 0.00381569243724586 0.0026239990948457221 0.0063874712775442034 0.96677573224533075 0.0042317089946361172 0.0033958213624006445 0.0067288926114192418 0.5567074416909511 0.7516912467092367 0.14182986226200101 0.24372250196172485 0.34827295234414851 0.32995682796279646 0.0031426306798654022 0.0035839603305807652 0.0042640874375212742 0.007237755130479747 0.98041315657806627 0.97459472442119388 0.0087036263195850744 0.23532054050940246 0.0060387384966016037 0.12327204577701067 0.0046354269654119516 0.0026549576016656334 0.97560615463580325 0.004877328373918138 0.0051885188970352009 0.0069151883511480126 0.6096918865970975 0.11927740778306192 0.0020901809562172257 0.11785896451438906 0.0063701157027683218 0.52401120953201408 0.0025921419960973353 0.0031706818449791776 0.98582700440486248 0.97475015663775677 0.0031416695043887319 0.22891203146437672 0.0033022508952621522 0.98812351961219425 0.0069009042835263962 0.0036705978710829586 0.23094614932655616 0.10473148980466369 0.085497205492313752 0.96421327095924303 0.0031129727415472657 0.0052167448313230587 0.010209510283388224 0.11537954379424196 0.0056251296889772802 0.0027639584637731852 0.0038936097431520513 0.0074186660912762322 0.44203722804015161 0.13133194203479442 0.13173401897775674 0.11919105691379141 0.96268339636278433 0.0060132988874561349 0.71248246922063885 0.0039651514788834157 0.01199735105067177 0.0098713718879231555 0.24944583614952168 0.0071361268223152242 0.34314961732183824 0.72310022116190309 0.0071098860309517838 0.94583963755586753 0.011676202591085798 0.51399481199390262 0.14509764278765208 0.0051343738928305294 0.003694443421411348 0.65323056964406123 0.97893942367587516 0.0063210015807794893 0.0084662527441732444 0.0031063375577204677 0.0043265301801108389 0.005044915598354946 0.0091660656142047697 0.0067844444591949084 0.0045636782101459925 0.11520284197005745 0.0024934906417297389 0.119718352382424 0.10878359407198565 0.0048132035399995584 0.45303533112837957 0.0035926560931693057 0.01049455497510474 0.0027996788840968369 0.44929768418705451 0.97148974973681845 0.0099253351526477386 0.27017884157343303 0.0035512575509155453 0.72892916717356027 0.0054515547261081397 0.4356526551116805 0.19116157066373038 0.97493152818028594 0.002141570138610366 0.24797253198679492 0.0040712471372632703 0.0062853763374276029 0.0029520171244944017 0.0091445369454035245 0.66075577634407356 0.0089603025372366543 0.0049589605080379356 0.0025966496871480242 0.94386067021277986 0.22297946429348345 0.0017960736007244318;0.0081681316000253856 0.012708191247144151 0.0049828410322199073 0.24396166492589927 0.49622248395292434 0.24615161242294167 0.0016858999882827059 0.0061899596023950523 0.0075124152253353092 0.0016211449094864971 0.0035286723066001867 0.014084044873795594 0.0038286349748655694 0.49278353136818542 0.0026582617370728115 0.0014868714557323684 0.50612707067635454 0.0050232800686464 0.2524391540846071 0.24911473307789853 0.0025375039429508008 0.25391017560781914 0.0058852458168623407 0.0035956207125962796 0.0028699011854431142 0.0054645376380707562 0.0028866455507838809 0.25325752509402322 0.0042017229638549054 0.0025098712718168294 0.01212777121479487 0.0031176109977738161 0.51633462037085254 0.0076137865942545024 0.01442113062873375 0.7401302920786581 0.24275585745631353 0.25190712117600289 0.0021664874574769269 0.5124933054087859 0.98021094217429727 0.01304965640473056 0.0014316373682672938 0.25826908309950614 0.0010956792343055127 0.99353237475926892 0.0028710220184817387 0.98483608815283996 0.2540844506018457 0.0039007744521821148 0.0054413236607071206 0.0059219210571698567 0.0025711302773409376 0.015832911012403778 0.98833198302660019 0.00223676342558915 0.009382433487441123 0.05665774431932552 0.0018750007050997359 0.0059394146232313299 0.004915907562319557 0.23498625130463507 0.0084280579532197437 0.98952421147126091 0.9952401392649225 0.74419305050756202 0.0035266929443985326 0.51973850555435708 0.7437195644602701 0.49489612906881736 0.74255877143949511 0.74846949368847882 0.98367932645149048 0.25767887338415107 0.25232272734943967 0.0061579664401753883 0.0013736971352752638 0.003880867981021394 0.0012778266781617433 0.0016883685658460469 0.50918849877859129 0.0081731517493029947 0.067737293184086 0.0011432288718377767 0.25359563382192779 0.020018853057297933 0.22978327010984634 0.0036126150018441798 0.25828651463102059 0.50963901818248591 0.0013390063312331798 0.0058137328532075734 0.0036062257140762688 0.0064706888006853414 0.0062753206358710026 0.0069793319834075222 0.25073518636398368 0.50805039421069909 0.99320675268980829 0.25961400887769914 0.0075258753662327607 0.008873071040002482 0.74055880824223153 0.0088577236073987646 0.0046395930833793477 0.0025495508184822111 0.00696255587712033 0.25182420415443491 0.99619815545171031 0.0059036319922043598 0.0028309412055467415 0.99416613358875572 0.2653466289931305 0.2396517113146337 0.01868398591667117 0.0015936007253084335 0.0048932346778505047 0.002974539920609435 0.0035173412405951764 0.73941332388541037 0.0018686895245031579 0.0064663368669756853 0.99334496685779794 0.0034362024659696446 0.0024708817032428982 0.26131305517575359 0.75383274533281375 0.01441527898284109 0.0030341642817325017 0.00079538884809485537 0.0039895771367908176 0.0016084681797093048 0.73912760707593717 0.97951753109739959 0.48362131002546288 0.2569162917567378 0.0069907698127514841 0.015239072960296904 0.0010377523650947904 0.0051031476622429876 0.99211452000759337 0.0024478053730454369 0.00080820196040320199 0.0089380125221652923 0.5064672558151071 0.0089102022671944565 0.98129678450463453 0.86777966534186368 0.0046422481500657652 0.26409065297765899 0.25265607792085581 0.25423054957738961 0.25115661777125342 0.0080905215975424598 0.0061534282656536283 0.74202622976479782 0.48895433340371974 0.99815271930552485 0.00083479002132952752 0.0018796394621066641 0.002804884457110776 0.48613898779728326 0.0030902080053599821 0.014735190453204875 0.99675242268956765 0.00081129146755457861 0.27418098670697716 0.0066290800374942923 0.25705094346703233 0.98414666841125298 0.0033696210217818434 0.0034637089732050689 0.0059043096609667483 0.0059648482207136921 0.2462423698826495 0.74704956930302013 0.0021198548239652645 0.49257887672705836 0.0036601757623110705 0.0005235677125241038 0.48145363432876864 0.0009563124367395297 0.004061716067565291 0.013848733103789191 0.25806157688646869 0.0016963818803688031 0.010696830843726414 0.2508477204827127 0.029686312481371671 0.0031486403978098244 0.0096927530090961077 0.0010936903572687927 0.0024361249322410136 0.002767890324451904 0.0046495332406491455 0.0038552688374216531 0.0040181924057298892 0.0014688147776928222 0.26811443611867913 0.9948221415789521 0.018231094461380173 0.49334670625411281 0.0010171134717125733 0.26765278720900165 0.014066186432201453 0.0005706568581503958 0.49412437550168231 0.0031807387404563098 0.0050587304912695138 0.011938604151716303 0.010762961563965778 0.24513172122713045 0.0030241932480744834 0.0079393303547014918 0.0079404510836437181 0.0017703872330572942 0.0068130877431819758 0.50046111942798499 0.74234638777589179 0.00072027688737936807 0.0013660688599029147 0.016541705449046974 0.02051103738825176 0.0019343767103155271 0.0025755850048296983 0.99552012442875282 0.0057745582248599249 0.0016132041537971781 0.01108376462438489 0.26301864360116084 0.013619245304536872 0.99828821545423319 0.0081709107420811274 0.74836421743041559 0.99095630675895985 0.0072517320720227067 0.014306648243982371 0.010813008701103039 0.49027038339126 0.022066755118784448 0.50613518994965701 0.74915226766470133 0.040830175282421236 0.0037923400138121319 0.012361881094189137 0.0020628029093548881 0.0017272572816601382 0.0080583337568652276 0.75398508868990977 0.72743675519405393 0.0026066561185107712 0.0090026321433308541 0.0036918170210319956 0.24655427083924203 0.010311197239012557 0.0009277416505193201 0.99864080606745276 0.76963418603204614 0.24820322225458472 0.0014397328737161272 0.0072907228415622048 0.0050585294408297633 0.01791126093572612 0.0049361590152114318 0.0045850658969017501 0.0094490144629187124 0.0088703650922853858 0.99569656847608656 0.2414745682592426 0.008811188217271811 0.72483271056861276 0.016652002630356016 0.74181282576123575 0.73920689214313628 0.48660281309957287 0.00092071864454922666 0.004545856776712421 0.003809593446759576 0.0022741092969681357 0.0027250248866867673 0.50784455191366451 0.0090639288632765221 0.49854631768273339 0.017588501505794722 0.005854630133005855 0.75117632740128526 0.50831131683269604 0.001610337168867511 0.25583423423424795 0.50069861513341873 0.0013365864851110562 0.49480325645091888 0.0024542274726837322 0.26344865669964523 0.012589301755902253 0.013180168228610841 0.25390537219975134 0.0028094924771324662 0.0019814774463112815 0.0058605775782267812 0.013650534732979374 0.2502939304706211 0.0039136365680253775 0.0017633840211884579 0.26953468597115865 0.00064928421514878288 0.0040876274245024921 0.0031100489933830839 0.010765436906645307 0.51932490504035522 0.0019126729596362219 0.99506797657660351 0.0052477829240858073 0.24391870280258687 0.010477701356352263 0.97972605358579035 0.98365261601708298 0.0012917520294173129 0.24784520047033307 0.50203023330336616 0.98363320018422595 0.023097030761524081 0.0019728060590897983 0.0040636618716667003 0.0055098845039271219 0.26533631985692646 0.017527821363911705 0.50559417242920446 0.0096338755974297533 0.0014441299337437652 0.98634447491189947 0.0005005569739109355 0.74126064205392661 0.0030060725805589896 0.99109324230078544 0.73731427354564683 0.0024129580843236902 0.0041356472317920787 0.006731550349886737 0.74736992539050906 0.0083412310806435866 0.74150508516599922 0.0062876411341298965 0.24775975682669965 0.00024169423273800848 0.0061685693559385135 0.00063471183458261248 0.0044497878840487042 0.0036064844196012015 0.0056776506898824231 0.0021435924381008773 0.012946164723716447 0.0033719586877918647 0.25799782074136579 0.0019241281652406148 0.0015788538055685614 0.25469644417605514 0.010663319840821341 0.49929403634189873 0.25893475445191988 0.50039814548581474 0.0086171495019080231 0.26146521632930658 0.75623580224168929 0.73623248482719472 0.011190813704665497 0.0012833540676788573 0.50474426076373624 0.0041730440418241048 0.0043305480235214366 0.4981673695362856 0.0021085664085964762 0.74849776798441858 0.0044367321297961986 0.99353534839974966 0.0072326800877613034 0.0058286253970897262 0.0081460351856087188 0.76131877748795129 0.50035022223812375 0.0097040345877176179 0.0030224747028282477 0.0032310330840774164 0.50092946417203399 0.0031695067915807583 0.25508237051616883 0.023515097423613737 0.28373848410097918 0.0017714989876269579 0.98486518029207082 0.0047080604834513293 0.74408278466291455 0.99556841810885643 0.0015894971109033443 0.0073337634895743768 0.98917235574337714 0.99567778281528607 0.039145298638136955 0.73587472500116236 0.0042013363685983462;0.0053086223732343981 0.0045217794386927055 0.0040708487860625295 0.99060067767906923 0.0015244590369116796 0.41980483352491077 0.019181884649665804 0.00061884294833059177 0.3974310599572336 0.59560971161560716 0.0027488900961810522 0.0064609083076258133 0.012237908689755484 0.98522996038933253 0.0053951194822190263 0.0050059887463853054 0.0052108980626297801 0.97694799927709786 0.0017440982641159265 0.0030437372873318939 0.44269388182788921 0.0042432280074881437 0.0018128729656958205 0.020031624993907003 0.031292741911265097 0.020312905040632899 0.0089415463181877798 0.0024794151865945263 0.0014037730433569802 0.0010470016706497628 0.0019121678056190109 0.0030465354623056698 0.78073290235648685 0.78641431246464766 0.00099065862562656049 0.40727542595646155 0.59634805821328862 0.59193566922087215 0.40396230785934939 0.38813920143981029 0.78841945451933038 0.0061046335103658155 0.0016443588621126392 0.0034038779376748445 0.0010666549349450541 0.77647505694739993 0.0031402020677340631 0.40993541213041262 0.20046021187160867 0.0027117076588665289 0.004269446072476318 0.0054362161784702601 0.98453239606541598 0.0080862967765085066 0.012088928857745361 0.39119485921899533 0.0011688181797586711 0.0048559069046853597 0.0097082482908230888 0.0047233091923219155 0.0043292925906187711 0.0039989224012583714 0.57815751653706315 0.76577949507673004 0.0040468701081073557 0.19950143002796195 0.0019764305025939295 0.62408929355459553 0.0014058128320600608 0.0098148112570892818 0.39377201697973757 0.0038941856252689873 0.9938388307390974 0.99252055668682182 0.005099654551741788 0.6126903335718441 0.013210081147762264 0.20462147535830011 0.005713955007265667 0.0082764742391150878 0.0022744457763913717 0.0024528288751340535 0.0006479949885129393 0.39938201879195678 0.22972705177668964 0.0059176056028165079 0.0019549674651807747 0.38657030880875232 0.60163983213442285 0.81137890116387301 0.40417019796123144 0.0027198772628003742 0.0015380670286428751 0.19682367535811848 0.0011670098277295436 0.00213382937081092 0.022074409442658285 0.00191471788839183 0.20476060090698486 0.99181314937437981 0.20560301293559741 0.23545253972877603 0.40138519576774306 0.0057302663401357402 0.78496235124527758 0.0060128200631223323 0.028931102168785888 0.0015652607170128867 0.75837601776306784 0.19879585952219583 0.99382002365430766 0.39515419163460119 0.20856007205534588 0.99753062587076291 0.38689342615222277 0.0026449888016508221 0.0055191284503571724 0.0020309231841937488 0.21595006711618028 0.0052272490087804727 0.20595090598950266 0.0033601322728177957 0.002765215259774701 0.19934604175143911 0.0032672978110631747 0.0093167537020499257 0.051654558955914837 0.012377627911431072 0.0019298287868388323 0.40559116275666984 0.021236075662845862 0.0012043795932930629 0.002564651986488507 0.0063581477465218085 0.78801511870241647 0.0035652144073290131 0.0023603744126176568 0.002151591176868352 0.79618512199598335 0.0042419091562274575 0.0041000061089630354 0.0054779742989920725 0.0011306137915208896 0.002779650687837816 0.0036472986116048052 0.0030811706129923152 0.61249763825073589 0.0015914369888178229 0.0099524422926115796 0.61194781862788972 0.0010775981224463158 0.38188280980900047 0.0038197232011598138 0.013640223291062514 0.99789194427349215 0.8277003971775041 0.20977977436795653 0.0084465589559953973 0.016051976930445754 0.0067460401670871037 0.0036584952126740402 0.0026278264252726519 0.0064439626064444408 0.79094679578854965 0.20580183085336909 0.016164767771892088 0.0010364701504019757 0.0972851317001482 0.0027655288338338533 0.020024792232917959 0.99049025991631745 0.004342237066689107 0.0032788232924898537 0.0038056605390336135 0.0051769997744759884 0.0021626750740069687 0.0018973904547836505 0.9942811306604562 0.20571942899383225 0.0014058162498245784 0.010056527653187052 0.61070009877682629 0.6230259600721948 0.017864692874472333 0.00099528679302337544 0.0028502316343095024 0.41199987031877672 0.19854144357969819 0.0030663015141740293 0.97884888638068168 0.050503069888007457 0.016093800859851005 0.0018378124415401385 0.99917953687131544 0.19579183972153802 0.4074997049313821 0.0021966201191118743 0.00065220370815430838 0.80648694702324542 0.0049232428836473302 0.0013939281071902359 0.60155515892363287 0.00078888555817145146 0.0013246243741449884 0.20533449464947462 0.0033643150912489091 0.19886201642723431 0.003777352962191846 0.0020683808963972532 0.98414075689896241 0.0036566003382028332 0.58933945886024397 0.0017106751882053619 0.0072228132390680915 0.59362382892948695 0.0098187213057670687 0.24637219307314118 0.79378243651811065 0.00070826173597352319 0.40746530961226746 0.0078221568290760858 0.0019743538499835548 0.19633413811439859 0.0059162564743269024 0.0030734468490057902 0.9877340205638605 0.58990895386324138 0.0024599768749932116 0.39240125258257769 0.99955178153195412 0.0048228026449942691 0.98687690331716049 0.60630689244516311 0.002000062053030798 0.99564553902415875 0.000882290208325207 0.0015853088892242135 0.049779298869758098 0.20585388804905172 0.0025526137015577616 0.98155501282505342 0.0038089291802491038 0.0032688864929724332 0.0063020955422041277 0.00042567671685020685 0.0009020420194777556 0.0063988604387287332 0.20268153239148751 0.010378267746069007 0.83552516720153425 0.00229088329988285 0.024825496210167344 0.0034688398928761962 0.20954934218932342 0.58996022940006088 0.0025302897847039158 0.015839728138022563 0.04768327584724176 0.98757333979642292 0.0014921196664704872 0.00067119463092604379 0.79915982025678178 0.0036847068863698489 0.0079177668173854628 0.0024664375405180146 0.6153434201220348 0.0012435095883933185 0.0049861322664072278 0.0021164977125845089 0.79686157454723872 0.007501745417270049 0.99193234377965256 0.59103423580259562 0.82872174178677738 0.0015173007645911886 0.0024766257329334801 0.0011745454419970543 0.99510441470677202 0.0047935481777628373 0.21263188162472754 0.031536125370714096 0.82502259336184802 0.0029503108358817907 0.39774195558594072 0.39784888116702921 0.013667704479306306 0.0028887245320459031 0.0054580388929855164 0.22499799026392617 0.016550997765225846 0.0023848979694724251 0.0015509360706151341 0.20567255060029244 0.0040446636843965086 0.19738897056825677 0.0029584046624830758 0.0016521617098827473 0.40116613546390611 0.00074943504588050546 0.97812139530537645 0.20576928196542371 0.0048493275085706158 0.16885851718704331 0.0027233287207234021 0.60449157868270376 0.20307462337007215 0.41283588954853845 0.98938267489148513 0.0031970281044637573 0.98282509450615541 0.003374707560597337 0.77337208939460345 0.21037030107193722 0.78789812477694698 0.014757959900155153 0.0030313976489594607 0.015824845659773774 0.012947782543661796 0.0010154361015670612 0.0009915653631870293 0.62572693318885908 0.0026504223159720137 0.2033510442436022 0.0023565049501345896 0.0039085780889328422 0.59519131899974875 0.012625404885374029 0.79382351503629611 0.59810634962686204 0.0021198562022506692 0.99208953306486758 0.0071731498318174458 0.61444808131596385 0.39069018251151955 0.97982995623167479 0.61375779846734768 0.78663367283538399 0.0021055856319176177 0.39101675019920784 0.39915449557602467 0.0023793358433253581 0.22454994207643963 0.0051754754080501637 0.97689424280130188 0.20460712539654183 0.21023000049504403 0.61693271175501196 0.0016541687593008699 0.0052490542657289601 0.0024201217012803254 0.40104365057829994 0.0045930177021221395 0.0030003487997529608 0.79054143164906154 0.3761985060746269 0.0054111961065444695 0.010247570140702961 0.0040574490351356993 0.39937073858740679 0.20036720030209693 0.60740073664459793 0.001917756764502268 0.0049581420398651585 0.19890229989716054 0.0018680917848519873 0.58620730564812029 0.031480562005987756 0.010044790039292236 0.0022531974999252108 0.00058007703436756752 0.0012549869262145695 0.59029000903151307 0.0030557316462942255 0.0023201812010934485 0.80472218133031681 0.0017916351799830974 0.40628627401108219 0.19276745574173895 0.019145142594800279 0.20364441920637855 0.0021943311108867272 0.20475217702507878 0.0017389892089815845 0.0043257084758465923 0.0021609476216460479 0.002131765376861005 0.41979907362492191 0.0059781583697499424 0.0081114075103842793 0.017951119135320937 0.022787924841900328 0.0048228506570616881 0.19077467934787504 0.0010559596139726847 0.001268532975394233 0.77572616859349386 0.0057970996727469033 0.41571653275909981 0.79174471535959046 0.0039846580589706993;0.63553937995854226 0.33980550653359581 0.0063991567280590961 0.73343390359104588 0.0031054035916970681 0.01273339624642611 0.34680591559996138 0.0051255180862956355 0.00834263749109352 0.0030586453204592091 0.0025056533371038349 0.97677585715682247 0.0093337928117875404 0.026394470548842593 0.00790030987307868 0.033275476319869761 0.33905498170379939 0.01528263972181256 0.339089141953063 0.33539764502540842 0.96137662647299382 0.0024241306530666971 0.33996070647327037 0.98314988666992109 0.0090990482187624719 0.66096583790295593 0.0084016139672549693 0.004478709771176842 0.0068477276960550518 0.0033047784998024715 0.0082217644968733093 0.33466753906974078 0.015923936935846456 0.022286633258677496 0.0059424866922534944 0.0022468028994954217 0.93014942477841878 0.01116944334959616 0.69482600529080074 0.0062746184978041599 0.62708722733056466 0.0076160451042513967 0.33999641190943525 0.016518889724108116 0.022679186762345843 0.010227955623202004 0.32877394307521912 0.034168168472046637 0.0072276727605456031 0.0074973991375316277 0.012670478750350421 0.98394710320901557 0.019617682543574946 0.0069607645859199761 0.95614998268144369 0.94962302542173516 0.0041126467211257817 0.02677677023057351 0.0048165366097755041 0.0032315335011336597 0.0053631205970365884 0.97485566903037268 0.64894113202538284 0.011419802273353829 0.0018379697390997606 0.0023463820333538181 0.3681747703940102 0.61970885582306989 0.0019885433495331717 0.96722164583191061 0.0076948913516087566 0.32982250062218166 0.67725816594977439 0.62409509383966144 0.0084023560843201357 0.0091802889142183451 0.0041574433661307527 0.011136411172309863 0.62609588533476201 0.0040559609210081907 0.0037688185594433724 0.0032239305219379103 0.63062646484814833 0.011653509103781459 0.0029461145622620604 0.0069844581969362883 0.0064277272950759978 0.0041516349953561234 0.33856925937419396 0.03604259434671625 0.0020374824058165845 0.65123768008954741 0.35289776583352389 0.34398960008890489 0.34539877183134804 0.33555159930973333 0.33507456387765344 0.33057476369659866 0.010171264956418133 0.018854118072002688 0.021286410896485752 0.015629526114949121 0.0052337969902954747 0.0066751452016734856 0.0081590010708553103 0.0090799887468223754 0.0020987628097305791 0.0015805560877793596 0.0088777038702065481 0.30698660408513068 0.63816302169244721 0.0044317617870760963 0.0077125644605546672 0.96169768352524898 0.33682606846740865 0.33049420120922962 0.011756644035138302 0.0041646089634693254 0.016073680970980369 0.32390956969873136 0.030139887272646076 0.33879956403802092 0.0033115042723740368 0.003482749150023294 0.33165233296856683 0.34551595315438788 0.34196112159108327 0.0032676805089332174 0.0047329686100556125 0.0093132160774023979 0.71061839238053881 0.32999190809770951 0.0021660473907507286 0.019555716377177474 0.0088195325959707291 0.0064830522995784831 0.0035498294741585709 0.33030702624875091 0.64339159214489483 0.98094722994241657 0.0015426471148724254 0.9626344368935007 0.0068154590734112452 0.33333879298572427 0.001796316087121717 0.32934219630767214 0.32984271904189078 0.022911634656867984 0.0053481432806781574 0.010234987594432017 0.0022938878762038028 0.33130781802171028 0.0087420438434665099 0.0052120260372794033 0.0069235977614946764 0.36396402445578796 0.013190768339494403 0.012612605896004967 0.97256206421143632 0.0012941521090782389 0.94700483242485622 0.0056756471323105278 0.0031143094051654619 0.018164455445028708 0.94742242488007522 0.024465721385098282 0.024588843655127712 0.0012089089167738607 0.00476612241247507 0.0093059929738543417 0.0044606709927777948 0.0069861019673275338 0.0064575867825623192 0.32218066345200186 0.0046577720415539575 0.0037606084982680973 0.0041010268147834194 0.61632165905398617 0.95074174477866324 0.33718455767264527 0.0047676031752720361 0.0077858409064520597 0.34432952276881129 0.64371130958809464 0.34372665693523113 0.3258762908489749 0.020747430022783758 0.34786791699642056 0.0048513682416917135 0.012213358124120451 0.01416211920130111 0.63684330664779321 0.0052853778734463751 0.68419380168119059 0.3341753628378023 0.0045055370938218509 0.0090925687077895168 0.0091066049181740445 0.38223442078701181 0.33490764484789054 0.0038996397358690305 0.0023863166447695488 0.58925862143536611 0.0034767952314543379 0.32888573321061498 0.61569660258358194 0.93868154219611433 0.0029249896774974199 0.0017693725263263028 0.0033114669112180965 0.0042374955496947558 0.012389183859737319 0.3339181578312535 0.32788233200384265 0.023155958637484958 0.96934125992977049 0.034581479557154682 0.33058139092143135 0.0056708107272412673 0.95776694173842203 0.02020150515160582 0.0023491395953468058 0.61301710586845992 0.65315696973929427 0.3302908739809417 0.9661035172724689 0.0046681694909210571 0.93547089262004779 0.0074710364806120574 0.02456787779558392 0.0055826472664190626 0.036405910155209921 0.004201005821423907 0.010600327580072046 0.34034147137346338 0.024817916747972124 0.010789709553956549 0.98781117923520312 0.026399883763638627 0.34602191099736018 0.65786934111426976 0.65133232773248984 0.013415434910411625 0.0029805503147564759 0.0051838860340408001 0.0063386606746611059 0.31992704182073284 0.0045785052783559313 0.0026866721135188672 0.0046072958517874582 0.61169506469860369 0.64567871895546114 0.0085759336824919943 0.0028229043540597353 0.97069381752009554 0.0062303133085761225 0.0070622755719013733 0.027493102664861838 0.011176158380029035 0.0059660215567221321 0.0051148670638911826 0.65584453188784664 0.0096736130661494498 0.010582564279852994 0.33260285668697398 0.35589202916097218 0.28749006584815584 0.0057350113785052566 0.31751044804217743 0.009824221734125128 0.0029838112552610383 0.020488209841589285 0.0043582852382045264 0.63638254265929617 0.0061606045276124911 0.011090641612768839 0.0017533853094446237 0.31261720069605936 0.96493294517793848 0.96440642083758754 0.0043067782189276337 0.6158710338168002 0.0064486606102226573 0.004021577368639527 0.34053600540097745 0.010259132124015838 0.0019549091216105466 0.57595212755982605 0.33853033777032493 0.02483285968684645 0.0054216228258452646 0.33533795906693253 0.017736262205420676 0.0061002049069195461 0.0050501562509142599 0.0039746866973025402 0.0085034494769066216 0.0039546845409119159 0.33696367437707714 0.0053134243730248738 0.0047590459622362229 0.66470713450555174 0.9421299787571209 0.011314237790542466 0.0070649464311754893 0.34570643081637548 0.0089329095197230868 0.67991238061881765 0.002690024334644105 0.33804518621049134 0.008868400326274296 0.34662703960304769 0.33115383231110723 0.0034933444911658365 0.63074712397083066 0.0034967853287024972 0.97265309052002624 0.004013071169018112 0.012086263736024491 0.33629964708640059 0.34410091760377487 0.04506002369788556 0.0014502208442402937 0.34015102452087337 0.33351527557508648 0.35096189077279988 0.0032635702212381922 0.0059536384819502443 0.01234346125281072 0.011836948022220772 0.96269956147197966 0.0046721506485089583 0.027423021629983467 0.0024960799529357806 0.020773117992380491 0.95236126102377294 0.29340842007303147 0.016296411653759665 0.002526390084076598 0.33645806405142831 0.32781774875501762 0.015013949521557537 0.0062871377901023663 0.33595955780792125 0.97318681110677252 0.6493371561060215 0.98308956153966576 0.3312977186606646 0.33158354601234696 0.34225232861078841 0.63184911823219414 0.0065781138143351037 0.0035225472914303139 0.0020288023748442885 0.3477703698795408 0.010813968234405299 0.0015860814635380665 0.33207102752783851 0.0033920047764543493 0.33127749503309001 0.0051189703651401096 0.0082494311194500972 0.0020911084256262603 0.32770491980645206 0.0024965506293882027 0.0067525374394600129 0.0025401614655921998 0.017035488012572271 0.007567144904983801 0.33321967327779539 0.003064871354216125 0.62690695201210733 0.0038405811231396166 0.0023992490824054713 0.0083164118228794878 0.0054928145661134378 0.96338984249030446 0.016566820946217573 0.33476392488620804 0.34710934852978242 0.0080400446943631604 0.010493725455410483 0.0072407642334727631 0.33359376784250211 0.31521813895468231 0.0033938704723921569 0.008077441407019624 0.33490831682549094 0.95093360042694464 0.62382772365308481 0.0018263010683879837 0.33549236978598013 0.015131203673056728 0.0022172206088580176 0.0031801348815421416 0.021256423617472764 0.0089994462053377827 0.58800343263769161 0.97741591360170343 0.0033547513227832676;0.094640703385195882 0.0051546868188260169 0.19123136002225502 0.79920508943653179 0.10140742458291765 0.41087977661960762 0.30458763332047933 0.0048568156002571777 0.014376364465063384 0.0041434803754581218 0.0066866488778193987 0.018693275107607217 0.71287336622530184 0.21703335740639251 0.086223772669797763 0.38695539526329709 0.17156923057550849 0.32465548021844309 0.01505443477716897 0.011424689443013164 0.24036173612733086 0.0096475518606278163 0.0062895994923537965 0.78603309579798475 0.087197733618096865 0.027057076321876213 0.013892833881514865 0.16815446584334476 0.26725451865452965 0.091563020327847022 0.18386047821561938 0.016142600062340896 0.67529889302092116 0.43090224493728158 0.31705509826514339 0.012002419674088594 0.034117397264980635 0.013083232904846953 0.017025183433109541 0.0080369444399590838 0.16588233559691448 0.31877442880572004 0.1625173419756879 0.0057996855828922646 0.023328965155815638 0.26032406527290614 0.0049809790437775007 0.010303032170894302 0.011487129458589096 0.10016995683216937 0.030232253092815804 0.015212192929646314 0.079405496233468154 0.037073777665177096 0.090792287143344905 0.77758980111570342 0.0071524941561743535 0.085029755405474292 0.27783517908198202 0.080072594802797478 0.088979244068997945 0.0067710516739779864 0.081393305661669343 0.088191699550994707 0.0064211895848502488 0.0059342500598904679 0.090973372204553538 0.72809655511130944 0.085897765949648763 0.50905510883998628 0.0084435111670345224 0.1829275109391138 0.014909542766541221 0.3084917869357181 0.057550440304113326 0.08607521754639362 0.01112903027273714 0.18563520307648587 0.009063357914497203 0.012136125012695596 0.0099989985092831454 0.0057866974975709414 0.18256008006544336 0.072371250468945575 0.32573285422842269 0.25742655307646889 0.25731758512301695 0.0040798997248270557 0.091362440441615372 0.084591904361270634 0.083494680790803036 0.083062074440341277 0.17624031266551257 0.026376973451291155 0.48604332239948733 0.0049516311644147593 0.0090164887919767824 0.0093399349067246513 0.49729470112766416 0.00886916546407834 0.31154178692666978 0.5146639586494941 0.24257941565535787 0.10151249291158768 0.018154765698287618 0.004690763511757884 0.085510371479045 0.01540800125118361 0.017440562606136766 0.034825305610742374 0.11415038598744774 0.19406016764671052 0.10807112776138722 0.011980367666557881 0.073288217738016734 0.095170366194379796 0.0093603357745430226 0.38224286070117874 0.10483254897452834 0.012635976428322813 0.0051023239953315088 0.046715839898849781 0.24286499930807143 0.0073155141802638251 0.012720428069648675 0.0082455966407173412 0.18326166484321266 0.15777053698094337 0.0066419216073566305 0.012785352934983736 0.088086694791298423 0.010874361609082204 0.1828744538383883 0.16340435316443411 0.088513274745807349 0.75575509025684762 0.01980607531442577 0.17194801191149711 0.21432781758823027 0.35287213884015201 0.014246647945253503 0.25186452623444883 0.82626044232639184 0.0057502891239635257 0.0093187532365685485 0.099057998662436739 0.0047459523102088416 0.099254716402911086 0.089703688402203108 0.0083569635069857609 0.012442323173167975 0.010683647509627149 0.0093316768100610743 0.017037324650675232 0.17985672218455739 0.23281863512220582 0.24352207329823752 0.010860479984925654 0.30380299673275213 0.0046286805430734816 0.17482800621618849 0.11480333922594177 0.084403812963233044 0.01611185779508437 0.40503867252164777 0.0138311826915024 0.0053380941829738607 0.008555716082772646 0.0053262622255534032 0.1723402662834122 0.016975430687055367 0.0067908049202005175 0.0064833881810635666 0.090691095751646314 0.0076607796673258304 0.018131831653009481 0.0072030926885483411 0.083330485969735663 0.42483805509722439 0.0058412141426039434 0.01887953634638926 0.011288374793728405 0.22935064135759145 0.01446816852789375 0.10397746061698365 0.24371723714604976 0.32044032895005192 0.25494688374029528 0.0046561366376510439 0.0083030192463827562 0.43209462920779618 0.010338067542691579 0.26171100119414475 0.55754878176522227 0.0076045054868384993 0.16788114417845917 0.016759890462400239 0.32555461711621914 0.0072298401134127744 0.37461693228594267 0.0080691834945810347 0.17106968337659059 0.0087703518482472199 0.27332021686944563 0.0093952703305902347 0.16045949678439764 0.66052599901157427 0.17955365845349416 0.010557844135719698 0.088843179340537426 0.011262429108863976 0.011644217992573758 0.011512922895696102 0.013621257882455481 0.031368925374446494 0.09564968119613633 0.25502687903520116 0.010078499375963187 0.28105489654593235 0.43729514565949529 0.013491199973760661 0.077377726424343041 0.15907913005049273 0.64319253325845727 0.0055024072210536814 0.25550998357886218 0.085440107852211122 0.31690335721607438 0.17078187172527784 0.091181658402551116 0.011800898172427476 0.22236048515852705 0.092752984990663603 0.016873979094926904 0.43238886235237906 0.0088903893610769724 0.24270322694769964 0.16744993208907138 0.081986379722737132 0.082977015339896876 0.19319931325173179 0.1060818813292886 0.0088365951154356168 0.0052547485544904623 0.011611908038553177 0.0060959880464650828 0.074135142300503984 0.10156512957818997 0.020849982565023413 0.39704193633149865 0.0065545669059444032 0.34824856820512073 0.33350523751011785 0.012924593602507011 0.23705427307672419 0.0061004370906455538 0.090495294955097866 0.33927567151284244 0.21863869934813268 0.040104052463981507 0.010550510725375722 0.62363134820335786 0.48275724498212014 0.098450980440223684 0.0033024862308381462 0.40526559106108961 0.01266072486884769 0.14595134551919856 0.0076736065647160607 0.10383183865628344 0.012827614468129401 0.020032562415280397 0.0095923067133283236 0.51894109692939061 0.0072988929152691256 0.0078134159256048538 0.0064461260205106313 0.31323082144760672 0.011382565937413738 0.16890303989901445 0.018093017294046172 0.016611827735895649 0.0074493293927560744 0.004688434953344498 0.0085414474094808873 0.39691115564650059 0.021882984917533967 0.34508698367675616 0.35893903943154987 0.68223777518240658 0.52700313050483694 0.40965132896882717 0.29591464691808289 0.33311534597865777 0.083597683840143794 0.090682207479953869 0.0099513417870972093 0.0060840438180341429 0.0070286981154916136 0.10165043807228673 0.0091457302431887412 0.022057986946513373 0.0072860611092249779 0.09245450168343744 0.2825694323207823 0.0084044674045730353 0.08608165461070201 0.7973004332386987 0.40985984559309885 0.0083130286940819673 0.004374247490112248 0.016940092351200222 0.020477403182778645 0.0033428303372261018 0.48357707679328804 0.0078478322039206173 0.58304598809678976 0.0066714291127309023 0.0060731080599633249 0.0062061044710221957 0.16254951515889429 0.2723968281808819 0.0056718354400409586 0.0065385869010723581 0.0047436921574267694 0.0090456656494729247 0.084546561522755484 0.0072588578146841913 0.099355559843930338 0.09752214415933641 0.39149495688650449 0.0988300354124068 0.012089609665522107 0.019963018388007129 0.77838710267444966 0.39625273801337602 0.872912546956369 0.010382805461957974 0.0065517307512260262 0.15690383563497912 0.010713588319125472 0.014045748076876851 0.16598901697950813 0.0057663887073872112 0.58017712722576731 0.014696736665274816 0.79549207697958735 0.094739830590965635 0.02137628739293666 0.013856771239481222 0.11898455847717096 0.011360600687965138 0.0032303266523479313 0.028174393051191626 0.0069243484524731305 0.30909074596156139 0.12444639215218571 0.081938476796327903 0.11501924311515105 0.0052797251540601109 0.0754616398300271 0.17929708566007901 0.10171279605666032 0.0068405127248904766 0.24664208446245092 0.021880404390377237 0.011335455151071266 0.23506159772916718 0.0083791450686951131 0.013617889695120667 0.016510098469129847 0.018838700815048504 0.31148060122572335 0.0036645755691311439 0.24510435776443926 0.0091547873354159391 0.16772520679050854 0.76389433562820841 0.012254200650029436 0.0052057850185399917 0.39733127212012054 0.17558020326127941 0.014379994237640557 0.011805560885114847 0.014817611935971028 0.1669014318453903 0.0060134179620271577 0.0115253137477692 0.0057362524438926681 0.41096627604008823 0.019619474569881879 0.17390198292009418 0.15892645028827646 0.0081347676745083877 0.0047355717405397572 0.012909634802309399 0.31732048562941445 0.021224840874623275 0.16435517524388327 0.26205862651941042;0.26204163479349324 0.079762173489067723 0.0064451708997249162 0.013199716913224219 0.083943937126220586 0.33566023849815696 0.031492580579931602 0.010603512209909061 0.081548431347981426 0.22381396648447294 0.08649756059578384 0.15123631660781772 0.20620401494651422 0.29585919162478153 0.062586746773247715 0.053771985067719526 0.0086308864460124275 0.67240126956835444 0.010756213362662337 0.091387095197278334 0.01722428971102604 0.17971243386636301 0.030942315519357694 0.086043907351374627 0.54620686488872594 0.011393242053580353 0.08823535011823691 0.064026689809951479 0.060821017809181137 0.0098004528345924831 0.019903639309612461 0.28513615682688781 0.1525904222018904 0.010665760819001256 0.010663840840567828 0.30386050964665423 0.61519616420717815 0.011121194395917553 0.62362349652701121 0.096259151788386038 0.01308291258228964 0.018369489185016432 0.0063045254356797432 0.14716829611678081 0.020800964165714569 0.0099377679468717409 0.0081865726483422267 0.083135587045592388 0.088228145563598287 0.010914373629040377 0.10107216003071666 0.0083753721594291772 0.33304159722001769 0.078512813223497527 0.30475118409104263 0.013478534261734346 0.064342937426907248 0.49942550003119568 0.014794263400951017 0.53629173890736059 0.0097274662411884968 0.20634387453960998 0.0088153570949551421 0.077344866859894099 0.0078719305313081338 0.018741888918799965 0.164075374748272 0.023806434499122224 0.01268058771449453 0.014000998698871661 0.16620245959813315 0.0041435768609898943 0.0099740288226777916 0.29101085275977173 0.076677156317230474 0.18869406227525373 0.21485541545919995 0.20317670113598815 0.17270372057396766 0.075256826169554147 0.010867417708658777 0.0069972989781396395 0.01519423669009796 0.53036336146437602 0.34411785865933087 0.07577368640660706 0.0074670646390446556 0.071582150869206163 0.014779929545780288 0.0097603281363088552 0.088016880373728748 0.009863944154189468 0.25403915591728066 0.35520014482716233 0.087147253447683051 0.076149123164857113 0.45193865859260374 0.0084025560408460299 0.09433274861202838 0.011206434198684827 0.68462944901573652 0.029082266242254073 0.015358905254677145 0.28448404602115718 0.328522786972403 0.13513234008773711 0.41698235779026205 0.0097305614840998301 0.035932994984974286 0.020504446557766995 0.28186630715256411 0.022963518663490307 0.28182958100258837 0.0063518044791029751 0.2162496165556482 0.1575856789146329 0.011536889921853033 0.083350803117314035 0.19410507643182606 0.10031828188061771 0.23279011008890782 0.078068673819287115 0.01103120687017844 0.078684552658997459 0.0099312560469391221 0.14886630004255064 0.088476087237920276 0.014564779489066947 0.0083737197945096715 0.020658572180114815 0.13829436090512229 0.14865944507219592 0.012910303260102189 0.013820657303939141 0.24720780826408351 0.24030995820429066 0.0091756515489190213 0.14024415209082589 0.71171768311150252 0.32386018036285996 0.0095699022705412577 0.0070839270551487331 0.011401414182588292 0.0065728121981814104 0.010222815990067162 0.070354023742877247 0.077989176426534301 0.011247770183495289 0.010778316980251692 0.085046118877710894 0.024013622950123471 0.14745285961120477 0.011259703557882084 0.097821652860101596 0.55193440494101331 0.10215961054246289 0.028113441355269792 0.017590855690342282 0.14711079466734084 0.13389804653919879 0.096188369702101512 0.026220472411107656 0.012052607795466394 0.34154722989068165 0.10312252366982312 0.23215860574671532 0.071895636352224387 0.021691344601832904 0.0057880333832842617 0.0088067828385253386 0.14393380507204639 0.027016906429492303 0.0099076909659060013 0.078702420206646168 0.14477038109231505 0.01418143600939395 0.011594848602885314 0.021288004595830357 0.1426475722274419 0.0072148896025372947 0.13883163824261077 0.093443121704488916 0.20835862964401683 0.15327128912248708 0.18356314557156578 0.014361103766611462 0.51860172618143019 0.20220084397635951 0.087318201776515336 0.097592811175642433 0.078565265414298771 0.077678134627519796 0.014192492303884956 0.60029364997905299 0.21942300728913877 0.017799433931695714 0.31505047652509616 0.0081209929575050844 0.020689353065437718 0.010676094132326116 0.081670504195074628 0.013411312055629707 0.013841255323425318 0.011043457948773025 0.31456104882681646 0.027989147508831125 0.099040024966429718 0.0059483498966928488 0.0075962402340764628 0.099651694368360716 0.010410007816742062 0.021605227108789274 0.070320690800615815 0.61981147183396301 0.21197780327256799 0.20877807670429241 0.035958284105068197 0.089804501022094682 0.023939864249023973 0.010222314777246146 0.14767703011241151 0.006007950346677597 0.27888497335298679 0.006791795563934569 0.010666453328467149 0.07945373957644912 0.66509278090627921 0.15814508342142464 0.4996080466420581 0.68174679944390648 0.061852189206477635 0.011684694230900393 0.30034819560922549 0.016615350954812043 0.010011701486065016 0.016995047728403243 0.073312602470437582 0.017734166243090779 0.021802104682250439 0.0092090511839719377 0.20891730668267749 0.0089776310904609788 0.0096496796981537115 0.078363572967625778 0.073291016281577984 0.0088414653016752002 0.28493080628549222 0.45394825222237867 0.029912855797879279 0.39682848719302383 0.01634126093760057 0.19673862057969876 0.013143996779448009 0.43488971023290124 0.26557227619771162 0.0076348447616285779 0.011508678549565809 0.016615241119216358 0.38687725662677747 0.010352133177627022 0.014233098904225 0.0094123478428706584 0.0099133313252706481 0.088983285114549893 0.073750438431658516 0.043305918288867776 0.010146218747123535 0.15257744117940125 0.0072759791218016392 0.07293492169495161 0.010461871117720508 0.092374787015936197 0.015792247415176874 0.12802225741866347 0.010556350474395581 0.087140090315342936 0.019754201778057416 0.3387005402226404 0.0091722312523137423 0.0071875742125998565 0.28030334688839498 0.68600017318243234 0.012031754984240757 0.092835063250994138 0.29578400470338273 0.014112194806427121 0.012574665897687732 0.20900129772720524 0.079860146091522782 0.027150091830611539 0.074642012511699732 0.007483378848599502 0.076281895614493209 0.28227881489165196 0.57228974983661651 0.084972285246980528 0.018420071711537686 0.15626902922766026 0.011330388886360196 0.014577196752108532 0.022816449421140285 0.15617620267555829 0.14198905028921366 0.014824037146340764 0.012224798152527496 0.14955667759296112 0.62651091966680794 0.33886914444479499 0.008593045623276719 0.012662868893023555 0.016446366630745612 0.0059144663266225616 0.083428914167099272 0.014684367350414975 0.082747738662004522 0.020541245363803591 0.090278414708650528 0.16188596969786972 0.13511244479618115 0.20448584816441795 0.011597020798123952 0.017951155845117618 0.017419326623312359 0.025760070944582228 0.18770403467860877 0.22890041474208783 0.010396072916311989 0.31040898437673886 0.026182595001516339 0.14048448855114806 0.080480695188536677 0.13190393754215185 0.22731459149088773 0.0074275895475247461 0.012551166563330739 0.086571715419773695 0.18159000831056693 0.14871362146931852 0.22845644828849845 0.19746006288966286 0.01736368619317679 0.0086064854010895857 0.38918781713567785 0.02881806155726041 0.010088170882867089 0.07551321205460769 0.085963318502424696 0.011306817807827945 0.15012937359579698 0.015425070877969089 0.074212445205203828 0.012220335624561186 0.079119776410382259 0.26096613790229889 0.076678744807766291 0.011209518206294657 0.34304671896173072 0.079440289952499382 0.010988745587600495 0.017447016378960616 0.34211228661491644 0.013414558783826925 0.069242723004041287 0.074957114728545757 0.0055266522616920838 0.081666182932496723 0.19409788611162487 0.023296534174057807 0.011068552034408359 0.068388641522081878 0.013863107280321623 0.012320083308586288 0.070800506963473203 0.011697886758591843 0.15361015929718755 0.07004073333314377 0.16392530200378844 0.020438218861996857 0.008441510817782447 0.030780920336223608 0.077502845418461447 0.61811416502217364 0.024972712479830819 0.071566080870225812 0.013556162890692636 0.024880988323601031 0.16120777990446059 0.7009549154645156 0.016132664095992667 0.085205090532596922 0.10208420478775708 0.01078611219391571 0.14640063939863981 0.14228151546650636 0.076949244194199129 0.083391631983096695 0.1439662025346696 0.079045583307607137 0.017337730199337306 0.050235407971006792;0.10344014958041761 0.079829610030001108 0.0084862432135498038 0.13344987062347929 0.066057213699622364 0.0083489427841747458 0.1028244635038698 0.15481677992659215 0.089707541913524938 0.006508774010832219 0.0724800093971677 0.69760812616607537 0.015364487532658753 0.0060133669068352311 0.006574456398957422 0.0085514041727625424 0.009405781832392518 0.0097189776466760011 0.45295635726840811 0.0037113488602471935 0.4780432489152826 0.016299991655317193 0.25790523832590206 0.0078469526060666282 0.0040037422426802329 0.0043545342494027243 0.0052377805166103223 0.22311756064195493 0.078704073140663827 0.0051322938199631126 0.016404093654934122 0.44974384963223651 0.011265692475528308 0.019806484823378868 0.09237099562384217 0.015895702701438408 0.78802081916503419 0.020164588650813615 0.29167679625495224 0.0087370260162350499 0.030195634910246245 0.0084379866730338975 0.0060494140081158972 0.0085274847013518361 0.0091939931418768533 0.34687087149372448 0.15325374541611314 0.011736460990418664 0.0082880962021272889 0.0054669389809061802 0.0064178276353930985 0.14972850080381386 0.026192851750687737 0.0057501428150377861 0.0058481447878188479 0.025264293362698215 0.031171788145129119 0.008450909811318014 0.0063862552221866601 0.0077709383697929764 0.0094528334987156876 0.10112785189386057 0.057418824719249882 0.0049187384215540458 0.021605933656012793 0.012810642936309711 0.72029470239071047 0.0077593126050900293 0.0079576878988694873 0.017976586770234775 0.010490758888008543 0.21381049944686603 0.10806333026045721 0.51941342334282969 0.064650856765373521 0.0083546480816661037 0.0068789156601773462 0.0035369114811528131 0.007566233950941614 0.13816826106113622 0.0094442053651177076 0.25081698115477941 0.089563331265937712 0.017004237626781226 0.079286634858132476 0.85017629533431949 0.1420182387021858 0.42684652094996028 0.01390727958533527 0.0068004648146819946 0.0042929588447481667 0.14685477220030618 0.33132772428307378 0.0086738588647036624 0.005204742123210683 0.27637175530658681 0.32233440250241607 0.088450809374290562 0.59154377043976802 0.73851687653728548 0.023006228830363948 0.0053270821580899737 0.2806555695513997 0.012211707611249928 0.56906788133030006 0.0074071591975628558 0.011793096192178798 0.012771892282586208 0.032695509655121448 0.013037448275846991 0.007297022078152051 0.24335042530658296 0.48609639078643274 0.0046668721857513976 0.029447241020885001 0.7458922846172642 0.010566285942318603 0.0099200522595530773 0.20893898999908844 0.0058040777078142095 0.75228499191936271 0.076051124919991941 0.50596811856536106 0.0064026704814397067 0.0057168179234379701 0.0093183200301175315 0.0064425294445995436 0.0060143611039347308 0.79699136987830133 0.0086378054608231732 0.0044876141433894583 0.010435981564528598 0.077020608312872649 0.13084221651958153 0.013896422123877667 0.25495954040144669 0.15610632273168293 0.30195750274041755 0.0087904267594902715 0.010458110423867578 0.0069694381533822987 0.0032561787526282126 0.011671837370371731 0.014789133663020728 0.12111530953825611 0.79092898709997517 0.0095461824291245678 0.22423495434579338 0.015554807685430452 0.01050494438934774 0.037893342649315674 0.15613655981424374 0.0091113332952325495 0.081142090700195582 0.0076692602301305039 0.019140896100307975 0.062590842695044474 0.086683940546084429 0.013429388702947275 0.0091583282791221996 0.0090438534548098921 0.0087105916175088047 0.0056534178433861083 0.0079175459984794187 0.77033983990698296 0.0046845328007384442 0.0060138822746221478 0.018810515315373248 0.00526730680125145 0.057881213939766682 0.060887470589148451 0.0043489222282231919 0.0057499996967229575 0.0056002222770072255 0.36276338104488326 0.0098521088988606821 0.58253516247397408 0.0043980536821093636 0.0062557602649053598 0.0026900875031193338 0.0047339128228878645 0.0039656562013612008 0.62661877212540751 0.012176462640077271 0.072979826125729119 0.35161018385867532 0.012643531814605721 0.019041957969381813 0.006005967965324821 0.0047699328754822589 0.006432816006152758 0.01096673818114181 0.0045545696961052486 0.27352596615157443 0.01055504436022222 0.13977070825392326 0.011074907935939573 0.01578651464686924 0.010820386948042602 0.64140760609577974 0.21057843963430001 0.0083201560960088575 0.0048754966872989842 0.092898490554617991 0.0064419100174122664 0.010221762377044561 0.010795255267281607 0.0055835051535035795 0.0039159055904802306 0.08009600913308576 0.018118510786750756 0.0088266565343670927 0.0068828126060568092 0.010450085244425176 0.0083521095610237187 0.0031239245545001473 0.14423105794151292 0.41477708401198404 0.012829103478889369 0.010514001601397016 0.0061820327044109329 0.070676676223382806 0.016634076603953163 0.0059213386591519049 0.47950375331077905 0.07377752917803701 0.67270278929857663 0.015307564659517672 0.035221067202881456 0.0093415340588435744 0.33169222173131174 0.49757299658136517 0.0048869615512559424 0.92524814376578612 0.016326948544287793 0.17014803378695773 0.83086922429346566 0.015127205304871631 0.093310808526588379 0.17873649423105559 0.0065398332898300802 0.38230937584277325 0.015764039910007695 0.030151782973350694 0.46771678866222305 0.0069624196004847896 0.011009063650851155 0.013626128468355503 0.022643426286315681 0.0060760820060977586 0.13456515714060099 0.38676374851296991 0.27692608290498866 0.069772957566314645 0.0077278464090266563 0.0076572329345180185 0.13912854250901674 0.084954449275029709 0.0078169812421379006 0.0035003719776009103 0.087948938026197465 0.010812347311014792 0.012274935727447946 0.0044462364492875283 0.015324868516015748 0.0080176599045785994 0.0066672729582103688 0.079218072669853506 0.0039771813644201518 0.023567429290919914 0.025322476985711835 0.008027294969210428 0.0055985766056833863 0.010346450204176124 0.15671420214142351 0.012285607127345378 0.78750349157828847 0.019461874580366925 0.010367044031343527 0.0038281896214969781 0.0049222380572119728 0.80956187835069005 0.015484486020991915 0.33412071686615846 0.010145150758129849 0.010553814130776218 0.0097713454610841351 0.0080656302781296815 0.005717116799137203 0.0073941767988813696 0.0061312698053780767 0.0082900222526043846 0.019497920496382885 0.037340176751911251 0.42190881043626349 0.092539461148629099 0.012759892847313171 0.0064392120963566515 0.024588251408007567 0.0053291278210562051 0.0074609920385446254 0.002178630931186764 0.0047408199123605294 0.16062920740313391 0.53356877347811504 0.047828898680462154 0.082565087568689771 0.007896636233543539 0.072540278659743843 0.0050567173820674806 0.013583790715237264 0.13735558646159457 0.0084238921399442702 0.0069740004060068386 0.080949137273315555 0.0906630252524116 0.067963035206753009 0.011204991587687067 0.32652169063212999 0.57479418092437218 0.0066877039400672399 0.25701448468170063 0.0045534465659835491 0.85657799727433059 0.78159719639164638 0.010671999867985289 0.0093015123777251581 0.015357615035219083 0.0094262795930162811 0.82385886682135179 0.0098171906566978558 0.01096757660548392 0.0086755785100826391 0.16155504473361149 0.012567751019295189 0.07633381158872056 0.012972895968476603 0.0043615936815778432 0.074635135220190982 0.16509574288798159 0.070185513168493918 0.012247817752483507 0.010333450468848041 0.005715121618238039 0.010065408831412659 0.056429507017990606 0.0065512192635069615 0.069551428571442961 0.76440758700913558 0.0074423575052833934 0.0067598926608101201 0.0093439204020396883 0.0041973486420522942 0.018263213712637068 0.0086784261445017989 0.0052008726081236136 0.026084726351057227 0.37106050932163548 0.0040444385799195976 0.0096942613946217893 0.012516580067176403 0.41870829351432165 0.039400624852785886 0.039461278480215724 0.61945600638687115 0.0046771559143836622 0.015813450842932054 0.21911029946304547 0.0088725802580195932 0.73492494855395551 0.0061682580857763264 0.0057460662463441736 0.12081791131457362 0.014484429940453295 0.017589865715817575 0.40169029222103081 0.008059027947466834 0.037884245818797471 0.0083291036266631563 0.0087299295392275055 0.0075456967875961603 0.023989574841892656 0.45463792909274353 0.048563013272616466 0.0074290450315533055 0.020190727410164883 0.0090473079984819613 0.37538901820124149 0.0057186094403841869 0.024625766884865636 0.0073896973886338089 0.025904156591198182 0.014801625556099861 0.022607749821378142 0.01928039370883464 0.10925488423450297 0.59084551932925788 0.0058188655633936359 0.02366997056699699 0.020086517320253877;0.066089190669631578 0.064471556653067391 0.074733145678608684 0.052630446926223685 0.11930213284919852 0.032698303310508041 0.071932004609443614 0.048480961221723975 0.071581947154099879 0.056387823677538022 0.059806413133715909 0.064888170724376804 0.067857060278677855 0.072959233908246865 0.029810830148919561 0.11721114229030991 0.042834035456777469 0.040034184753596332 0.065547887226581641 0.053426750019694401 0.050259956604846057 0.078435643689982834 0.059171638070564726 0.09681188381169327 0.070774599517380604 0.074238117507075888 0.080615495595070724 0.10072488264231323 0.13133060505371053 0.096801215183102293 0.081072956486214404 0.055100625615896751 0.026298553796986191 0.10581793454556179 0.13629566374244168 0.077679986273513565 0.024035507896709003 0.098703195247042658 0.044997128089293091 0.055127591006310935 0.045622887199294068 0.11369946404461839 0.079562672424052724 0.046162723579861883 0.099604230500984603 0.031295981864503983 0.047209165483390138 0.11840973107981675 0.0573037447165025 0.041066366411583503 0.049624391538458781 0.0990377370351955 0.034171974840699296 0.040117473336947485 0.042681832770751202 0.1027816428601479 0.079917571448973102 0.053209569616960051 0.066731150498112429 0.062785072291166949 0.095467125369721503 0.073622667421688645 0.050471101648679351 0.052854270680238909 0.033017200508139055 0.11869482062645755 0.049406595720575236 0.056510913602027917 0.13972139134771275 0.058100929545065919 0.082496027033396577 0.099288896079677585 0.042606751595788458 0.070780761120391528 0.05369396458758055 0.061226318790874437 0.081386256498344606 0.031765143707519379 0.038122129203709658 0.082158083795812548 0.095323864637705258 0.072502998892658654 0.078412559626982722 0.058670138378940556 0.04160646911782824 0.069210968527641303 0.069684683628981378 0.012916668223432407 0.086959051743289245 0.12141648993516664 0.023921114347252036 0.035577677888217939 0.091187249777201745 0.029017587171707864 0.080720140038393201 0.063673698785832428 0.02367218226209963 0.094586306156935696 0.053486812335047249 0.016020407901315925 0.054449635772420117 0.10227013634225866 0.059034628060629243 0.030197071349636968 0.044611613498929538 0.03604682515357923 0.063769457233590524 0.11087069623472569 0.052663363392160829 0.11619090507840722 0.069479421468324906 0.082786301889229905 0.075689391886299071 0.034926948554016152 0.054874157008482201 0.046555569088445672 0.047198182801898449 0.067874094986875827 0.054980210725430495 0.1335931956133887 0.051169699966297111 0.039515927231828202 0.11032511377710413 0.098309762203852444 0.074225828497098592 0.061439245017523403 0.091377215924313887 0.033648152656528818 0.040948609724247409 0.024046999051268961 0.034603208457050699 0.081821380923773238 0.07629453068726641 0.066045313288769586 0.080669421039130509 0.066631053384418978 0.11612621194360793 0.061782581222162188 0.062631090400966385 0.067410403795769042 0.04573486176233435 0.057200166356824414 0.090159099011462476 0.082400356270945607 0.079996680408996046 0.055695410734618159 0.071564348380760659 0.097725855307372156 0.077390400720390079 0.052774461435851669 0.059280270540562251 0.043195531021563052 0.076964516139222089 0.047029311802248508 0.062596967169667769 0.067445008765069731 0.050919334732760745 0.077945117082383553 0.091374520970365164 0.081081128553563822 0.086347056469218336 0.10753167324180918 0.068583530177591237 0.056702464848932176 0.062459395882991584 0.064279144065165175 0.077851111663490208 0.062069854599788456 0.079929973280169458 0.026615808573684795 0.048458282278525722 0.029637214251554501 0.044829446480211338 0.067977021314451505 0.035724427965327814 0.074439584682969642 0.021818204000800468 0.038163766055498427 0.053297946568120501 0.030798616512707596 0.075975446631345755 0.045866522788291911 0.027585775979622484 0.088172470309489437 0.082757588846402816 0.086992517993846288 0.052263019677208561 0.068377014952542961 0.067665758553401387 0.059469428398369606 0.069978612972307966 0.04678744209383328 0.035856382389995008 0.046879095913457812 0.076790569786857443 0.0096511879337797882 0.051606423286722714 0.085753664384193753 0.069555092734760293 0.048660906627499521 0.13587821987965057 0.050137377654059387 0.052133726868566141 0.060310586453563561 0.032733112500605462 0.078127446512023038 0.034431035934643611 0.088415036338595043 0.03372966460109144 0.067259997050545681 0.068178342339424894 0.094860464639095116 0.03909313117687653 0.045216410232260092 0.066968286514675263 0.069327500282747395 0.096587298155897186 0.065090693232389835 0.058483262897876746 0.070543666383604403 0.06339997632470834 0.068234483235998844 0.12842607162511127 0.046233901757016097 0.092820808023432649 0.047385040725669389 0.036523270832197745 0.04518892024924246 0.088119551730590523 0.047306710198402283 0.068708540231408599 0.096961985188437669 0.048778700207613733 0.059285216070603497 0.048408511774029689 0.056655269346651133 0.050482838920872575 0.095262605631753997 0.13783648919455227 0.041546514589790966 0.051417326735190519 0.090903437944609145 0.050897118286073219 0.078100092547081459 0.069218547057604385 0.077869444521571338 0.093608302514026104 0.053788338113180151 0.096219926857106869 0.01951834451139654 0.11995022531192531 0.052188707050426247 0.064668362872265947 0.046403136904600295 0.040653893656055276 0.15393012817737581 0.074337980764122 0.093451928023794317 0.034419086806003613 0.048668539565708546 0.030005852842731936 0.10825983679649091 0.071280629567410284 0.075384254497674663 0.054198592168938721 0.068974213918176541 0.042819816260164699 0.064601165257287499 0.029958587947258485 0.046599344976547684 0.089581420609495768 0.062712992986483862 0.047372758347999595 0.050101609700279055 0.082179490795168633 0.064862451850730113 0.056897104180352646 0.029316964248110616 0.092187840652099284 0.057173051014438432 0.076407526846127449 0.058969309953267809 0.095197333260288203 0.081638085900848339 0.079468829356785245 0.059451642709816982 0.078129093095374441 0.070668346578959429 0.054785012219722574 0.051156444766016246 0.031713890213609118 0.072181303823046494 0.052599183084606607 0.040492477293037753 0.055169140579527827 0.14726689237848467 0.11277582152324141 0.059484221579284416 0.084413341791668997 0.04128137435727635 0.057505036193519578 0.082206718858855388 0.06440813839944276 0.029845345502202879 0.050831470234986215 0.062596610796140442 0.069759120268139602 0.056790431807155595 0.050193846025739425 0.055820997994554339 0.022884668771291205 0.040657249650640583 0.025770664810424893 0.024825529841388812 0.08222517660929507 0.091155580509919384 0.051197433617895312 0.047574774573765168 0.063923465879487829 0.069562158627214377 0.044516070723174796 0.05078971553581195 0.07025251043361698 0.064783234151110244 0.032655707675585441 0.036151032987694946 0.052204549056571042 0.090742943792454331 0.046783774538109515 0.038517828304800494 0.044443861451293296 0.083713327499610107 0.04968721872982905 0.016848910510316732 0.080179268498440939 0.054257099295811559 0.062404219109317448 0.064401110038275242 0.049920443264125307 0.04179911860223455 0.10609650340868783 0.057964902702530255 0.084643684401812913 0.028704663578993088 0.071052968972059163 0.07916328617887762 0.056015470142263414 0.057838082084158825 0.063586978252230711 0.08974550816617044 0.071453285187006541 0.049747634938251996 0.08993183203783861 0.023636998440304136 0.041351617580984941 0.050377574981331108 0.096223404356491155 0.066605244879287984 0.035747337392604744 0.066286586576052811 0.021453600442186117 0.079660603390748694 0.1043218215973185 0.056814738300012171 0.04624567192589913 0.057462536521312141 0.031786967222538612 0.085911543668410917 0.080117372073928064 0.046232850259526212 0.12039343075112185 0.086237811207654613 0.06691909440921362 0.069979476802221205 0.058929992946555571 0.10742965082863982 0.029768775721139999 0.085062698551555946 0.050936464625807587 0.034578126259075484 0.058685321511714024 0.095735427568611045 0.069950217178654212 0.043121855909652118 0.082693186878664213 0.083188975790678618 0.070372989032103594 0.058810621465397603 0.053265052448910465 0.090702789846572568 0.10774220250571381 0.062145043427848649 0.094515373022540025 0.028593689684710929 0.08948494783908828 0.054154783163792838 0.061915373415336837 0.047425174145388445 0.041121365677938421 0.040670320664762102;0.0069254981311552746 0.33175621967346813 0.004188718356656706 0.0060553406231295039 0.0044329586515708622 0.010421837730895642 0.49994567035066684 0.9420359059998431 0.0085390877103593554 0.0029688056516090923 0.34785453513202264 0.0070906167495718847 0.54554999521346548 0.0039580357407057653 0.15213950916948302 0.0046690153951491047 0.0065710077329215327 0.010460182484044483 0.36401583729871601 0.021540474637104467 0.82162424272162327 0.0070745956144893894 0.18438866859035696 0.16883917270927978 0.0045876165203775996 0.0062822953120149532 0.009191877113640945 0.0025931781815136863 0.0062464741809057488 0.0061042802986433446 0.0052000317583055494 0.77745340271053176 0.0091966003884282402 0.16697155547653261 0.0040561404836866348 0.0060431703270473177 0.023387854639876911 0.0020408679875612012 0.0030989387897161287 0.0034972120588776202 0.0049137832729443855 0.0062040625669478634 0.16730474702303461 0.54369814393539084 0.35455614375967903 0.010846286444307358 0.33864167002309753 0.018559733061521349 0.003895118228821999 0.0050758530563956468 0.14356170087173839 0.0053530331769038927 0.0089658047660459532 0.17315485093031666 0.0086553599660800663 0.0035230808935739996 0.96335578369240027 0.0034251727723579057 0.0033929826886542978 0.1616395838427894 0.0061555725959881336 0.51948435057008147 0.0067884292641382654 0.0055668721774600697 0.0063537895368517058 0.0077966335624893657 0.33832801368463744 0.019122204553911015 0.17527813528988623 0.16003223936245642 0.0081701895637839826 0.16889825335481101 0.0098519397887103996 0.4475493060042029 0.016325090385772102 0.018128039504255171 0.010599108949210789 0.16694222657073327 0.0056153769641018366 0.98196273636316977 0.0058539556270118948 0.98211119666876356 0.4486638497975835 0.022187385190892722 0.003658690875879556 0.026192919451069881 0.51868309142326074 0.019702548442474245 0.0059718731169638994 0.0098338041729336429 0.010443414994575548 0.0031935091791885769 0.46547783267762088 0.62250818439960509 0.33498016476218134 0.47414342897708922 0.010516123290086034 0.015259216708196993 0.013130512137198437 0.32270162089606952 0.1783587182744161 0.16968859094451258 0.47557788719183292 0.0073677607534745225 0.33824828698074388 0.0052764093774997347 0.00606494013619319 0.0054241702077143863 0.0043042427482975669 0.005965530263029678 0.18536357386439273 0.004970137931317788 0.19581065545495879 0.0086682584193603345 0.70705962909422326 0.65348065390078414 0.0061207145381060989 0.010109772713468721 0.82852166843322284 0.0035615533516380072 0.057325888416996262 0.49140740272161698 0.0058242302349706294 0.50271160664307557 0.17126508865072512 0.16848747885517473 0.0092996390643610496 0.013034934415916426 0.36828084399522426 0.48590259912276285 0.0036903903122255922 0.0081496141373686489 0.014613105146441863 0.16225366106049818 0.0087708167316287236 0.0058569386367985339 0.0048043229159365208 0.48234618271845253 0.17233840968151756 0.1731102157254992 0.0095052523483517663 0.1716833845568265 0.95714348797001425 0.007193384602594383 0.006229697752454434 0.46816167535246289 0.0058651188671411079 0.27940681875844198 0.0064485163469957286 0.28590497175971458 0.65419241239271597 0.013903070719427743 0.0040804175662554551 0.3429570112068317 0.0056445443834762903 0.008326321540209701 0.63455985933907089 0.0052630567824000201 0.16636016822922459 0.19683714427652044 0.011835016272409293 0.0043684405896077822 0.011056586649111588 0.0052728446279317479 0.012717937294324083 0.0022354163220507494 0.0047566233737735665 0.0072222615406635545 0.003283044177117187 0.0059443419575415171 0.022182602419545672 0.003520802508765246 0.0035579638678835315 0.0049075598861954501 0.22172711400759229 0.0091379227832634573 0.32627037024015154 0.003146879427876002 0.16366746535600354 0.4782923396559372 0.16904929680419023 0.0038297673108462068 0.010773349850650149 0.22023246282816394 0.0059772546758671595 0.42830722885166284 0.01390336241172142 0.17289677148406948 0.16981067164968092 0.0047216646935980952 0.0078851376473382251 0.94173544305785239 0.0090380216645770568 0.17635815922861475 0.0035432435542975113 0.4812526120510604 0.010093268388446486 0.34546697716933672 0.0037849093087586917 0.0037209826633270273 0.012533132657960576 0.0049628161755252932 0.0064218794092927621 0.19336210180071281 0.16644935327291535 0.17284359316186831 0.0066828000672773027 0.0048657224642354967 0.0033054260636966116 0.0090972370672123826 0.17484315250225294 0.0028943603153625246 0.17039694620923737 0.010525421804908626 0.32846981348383869 0.010691664880098102 0.34430696535927241 0.79069842298105053 0.019572681283269659 0.16087333381724317 0.0043466921280293745 0.95575945218050351 0.0080423779344757917 0.0064145615818552472 0.45119422431750378 0.022189579993034905 0.96454550652389348 0.37349233217024003 0.65199029077590087 0.0034055733548813698 0.48934805528322173 0.0031680246419676329 0.004046947635987886 0.039212659627665729 0.0098950408143156973 0.013032791680977332 0.36610642346584105 0.0056383367000128123 0.0033577761273572938 0.16884672176340762 0.0044989261249585941 0.015014295199652208 0.0068233667039445806 0.18999199543304932 0.0093450157208079948 0.0046511141641386988 0.0022034344903954142 0.0026013858849788588 0.002992576119864262 0.1809570608667386 0.73913126466047352 0.15428951112704276 0.34140121141106994 0.23388434732435873 0.32389974244139774 0.02113986332878515 0.0090019035272404513 0.0096174970675137299 0.0046693442523709668 0.006477081611595421 0.0078378299380610847 0.013796646379476755 0.1668139593470398 0.010367830349015023 0.36144134372011627 0.16328978902433966 0.0063213965584427659 0.33232142475072185 0.47482894285619576 0.026098769382349656 0.007661062681150561 0.0058290104419902958 0.0049335766173772286 0.16275483419073716 0.6570407791885714 0.0075004882138913678 0.97625624384906673 0.96987492530256803 0.004452145436830107 0.50496283329967606 0.0025888903306715135 0.14750874530100638 0.0094751455663110405 0.0091210565149058478 0.18059282271886654 0.025284827356086684 0.022678929789448139 0.0088847991723320554 0.33036768251110071 0.0043433568716380617 0.0043825907580687948 0.011939266863007923 0.78845043232475875 0.6525286561431255 0.0060990053861664784 0.0052893541841388808 0.014168744192585514 0.54134225144560055 0.0090783687827156248 0.0081964635607340956 0.31603353853266364 0.011272508956694873 0.0098495448362606423 0.51990920139644192 0.0019161505387097588 0.32495146027372801 0.16213826492888656 0.021564424593817494 0.20253616131124935 0.16635064627011123 0.17254264293412103 0.013031687262282314 0.0089487850546053956 0.0040321106405819184 0.016259913755914884 0.0053140629221588402 0.17361976200645307 0.0045407209361852541 0.98390748737458478 0.18388975081563463 0.0074460540767173049 0.48019205366507511 0.0079238297147320932 0.34202091229687515 0.50497626221473724 0.01198458436294738 0.0095213275040623695 0.012519579487796216 0.61688772469592068 0.020395582624539877 0.0054596340221111841 0.16772738516145949 0.34010790057165152 0.49223840068841551 0.018313519809390118 0.60806639079185476 0.17104009184477661 0.16875552804094707 0.31864677955488707 0.0048450641617574144 0.0039227622773630264 0.20442900667944466 0.0059544998052818068 0.20869624069426515 0.17039036779082517 0.01002502653462951 0.76762062180248503 0.17049799159028267 0.83294491689765127 0.0053783361732969827 0.010010398293882561 0.014732690595126056 0.025803716350658843 0.35094707183583418 0.93605817234881383 0.16856460621786504 0.17545893690487874 0.79860024458485857 0.013236197556741719 0.0082387965067308704 0.015335736874816489 0.0052796371630887736 0.012361125256563545 0.0068266318104698602 0.0051539520384361014 0.0082050966987697593 0.0066383680304918594 0.0064172342978315276 0.0099356883715544936 0.15924429847452645 0.0091027058451897975 0.0061102795609927693 0.017286948902858184 0.16795645654302555 0.017806766313481284 0.98076362247889581 0.0028178405317846565 0.16070417470742984 0.17949476093259337 0.0094332796552146648 0.48401547262771677 0.0059571033765413745 0.96996516073152228 0.16941736819925418 0.0088780586222426926 0.17727388163874483 0.35431918928763789 0.45371881259573887 0.0075722509605032386 0.16731533248271629 0.0068762087103126984 0.0082594897408458379 0.0018486988292987559 0.16681894907693326 0.98584555390494222 0.31849449128081941 0.029113745735924682 0.49998090675225287 0.47671187048573804 0.0089460985810700146;0.0029882931241539908 0.014952912967582544 0.0012667205373154606 0.00057740433280645622 0.0047186243390477693 0.02665226925983618 0.0025533349306800794 0.02271464499138709 0.059707613887254707 0.0020043400225628013 0.0044292288280679756 0.0019812870453528816 0.0020472538058857077 0.0011394662580238623 0.0020439765955375159 0.00033013229284122085 0.97475693996189239 0.0025721325256231491 0.060230658934980495 0.99997099614549101 0.977178470853583 0.0015649200396322153 0.026572298750194429 0.0021765437644975173 0.97415451270486364 0.0080427060994928291 0.91564197731270924 0.0024387554310291012 0.0025147227853226971 0.0063440454830565613 0.0008717304557489899 0.017838727191363105 0.00037849012813698257 0.00079658377321208433 0.002804784881196508 0.036371634900172554 0.071276292134936151 0.0044732657083700056 0.0011091385230903444 0.0015646411271937404 0.0062077734318666334 0.0031969676737699732 0.00108467383839633 0.94898653278938938 0.0033871492646954113 0.97819556138159136 0.99605095036483926 0.9841116093271447 0.023250987834887653 0.0071970225219442968 0.096184693758816553 0.0024746025137626711 0.018900883864398504 0.017822026744100553 0.97406237471155199 0.0037781198234931629 0.093319894011431703 0.0011362875679710232 0.0016801971561536877 0.013052426792263917 0.0010963951110675334 0.016909073980514638 0.0022852576479202866 0.011165819711756054 0.017369401547972556 0.98116757733315729 0.0022757459328200881 0.025592594568935385 0.0013211688602614727 0.0033147793955217953 0.99628063900003805 0.011469264770958219 0.0047176091650350275 0.011077893786071089 0.00065667808869599212 0.02971656767688172 0.0091267942510293125 0.0012568840975677573 0.001100852939164254 0.016198752397199655 0.010244296696188411 0.99635891483744288 0.060789685509522261 0.026015608261364984 0.0014018311035754983 0.00083243269306479742 0.94017487451004067 0.95763633874301157 0.013483794454593937 0.0018341855760140799 0.023903483434974174 0.0055391133810649418 0.00319919899154297 0.018951806425807238 0.0013584383351771942 0.96325973889467864 0.94522161710728514 0.99971931745341625 0.0023855599861955365 0.09383795542018368 0.0038145439893883882 0.0027505703918792421 0.0051202181737971322 0.0012891357322321502 0.0048811892703459229 0.0025739352698488948 0.0031791539905202692 0.0031848063899532915 0.0027412910874609953 0.0024278518502722354 0.032493465568167214 0.036144968589132402 0.99382330879774716 0.0040000972157649799 0.96042184517566886 0.0012365556730123285 0.006699985804281783 0.00036905166860544907 0.0035205770566265958 0.0087067728284854397 0.026743406694991607 0.026138827572365856 0.0025610544540960235 0.041103877742443604 0.0053422051936177729 0.0032784113681106355 0.025390873827712462 0.0013842274486603997 0.92448947586503505 0.99194309199993336 0.0016953038480970195 0.003218616745194928 0.03825778382501914 0.9225726569954984 0.020053208586213081 0.0010312682568362533 0.00087494226763409303 0.021380253014462437 0.69564493169168984 0.005902227222212438 0.013601102758182741 0.0087389088605998363 0.94310793060606934 0.95299810874611568 0.001443676404590968 0.0016688917771127743 0.97813592166758556 0.0048601646323423236 0.0039359154782592854 0.026382364694363267 0.0027476646476161859 0.00049392931262993349 0.023119096201094556 0.0021293947649200528 0.001257285636797489 0.0015238702780899283 0.020259353798836564 0.35777007487631068 0.0016229540923285012 0.99748724320929205 0.0060873132691903128 0.0011862413531637498 0.00070799940569921994 0.0012429312909254437 0.9937374760212806 0.0026149765420617793 0.02216847891294086 0.0026983735849681217 0.0077195210044130992 0.002060609032124659 0.00062126132737363592 0.0040823305231914506 0.0051755942295440196 0.0013858901936612555 0.0010607859991477824 0.99056638458460278 0.0069742127074348629 0.00090064485745273753 0.0049102338500901128 0.98655097929651325 0.037794315334292165 0.000234033686830821 0.0060792832461798183 0.9910246098824349 0.0011314579551374758 0.0036727799199325626 0.028199574302773017 0.0013760453226063889 0.037370598818637822 0.0048532359470022891 0.019086961023302419 0.98904296434183925 0.0010982699703235301 0.0012937566035579559 0.006942708295926611 0.00017156856938668372 0.0018854052385628528 0.97666278553810271 0.013449025953583982 0.020914689932053074 0.0023068755681266702 0.025603150817513281 0.033724849873990964 0.068758111315070439 0.0097448825732238814 0.017179745471016854 0.0087453089307991897 0.0022372530129151332 0.00057211124698088337 0.0004831157407228645 0.96576850839057471 0.00091745044243634873 0.92943075460957281 0.0078652289123203965 0.0070326562058569183 0.010800943620780195 0.96761832919462676 0.97420044444033804 0.010476057656420042 0.0012154641033392383 0.023267843730533797 0.021080332905083349 0.0011035341685424356 0.00038099219008617074 0.98992725839436768 0.98805950911333884 0.00040216194635426714 0.0013436149634558942 0.04698854940021964 0.0012532766242009763 0.025402694532814876 0.010083654478790503 0.0032423831571986215 0.007110595375360516 0.9875413703887167 0.0024412563570401502 0.017849872479431487 0.00080219126038722627 0.0014243209097598291 0.0075250069820915729 0.016642194015474558 0.00097447595254827402 0.013999705929772989 0.99914186540237293 0.0013565138754193882 0.0024388175522017741 0.0021123624159228708 0.0012575806290733515 0.0048109013474040858 0.95023430746800697 0.0042951666769508266 0.010989796675533599 0.015721668153362726 0.97919128651483234 0.97841195571517958 0.010056993761218685 0.024687379932647864 0.0030882622958536992 0.0051406680987485971 0.0042269702040020193 0.0014272727049835401 0.0034517009965595838 0.0011108854071119241 0.022448200089341248 0.98134688795226843 0.0016936926255652295 0.002071687632084364 0.0040634566312434299 0.94608991101410655 0.94468770934120216 0.0066505349305669452 0.0012835939430039913 0.0042841085858763249 0.0012924997517573375 0.99027645146854026 0.0022789647842342857 0.011712073230351946 0.019462737311476082 0.92337116545028386 0.96156258359063307 0.0012078511143504978 0.010462708048113761 0.0053921564435870165 0.0046822697744992323 0.020407836479747643 0.0016035103152885408 0.0013481116167964634 0.0015628831206216675 0.9459785231204052 0.057266483399348526 0.0021233099682625815 0.98876505681435256 0.98267253460242332 0.0026555075039999872 0.0015015016066745495 0.0011924199364811909 0.97304808308752566 0.062720989922911252 0.0016055888047100157 0.9781086060675328 0.92538477541293029 0.0033814163603317145 0.030183882989097976 0.0017508461515375177 0.0023974762417176831 0.0037091136874564446 0.0050090558520368283 0.002842917686088276 0.043661291992963806 0.98943161325537943 0.0034482292855557363 0.0075258528398664745 0.013952595307208352 0.0029465379911612611 0.0013833730960066098 0.0018183285709443906 0.0042091306153336869 0.0032571168865923325 0.99165980965335665 0.8900819949446811 0.0034906758756568347 0.0010448366393267729 0.0025768331229374408 0.0018267643807060824 0.00468711797531668 0.033515635089139607 0.0043909811526743657 0.94730215225462688 0.0093834621910285788 0.00053758625588122176 0.0026690350240022704 0.011748603019467535 0.017018242138748176 0.0051339887830471869 0.0020205011613741684 0.00048411356291216473 0.0017836334839365731 0.95491536378596564 0.0022730594747575662 0.002349622048546109 0.066620301686525663 0.97589451939391825 0.0012598674427239229 0.97895870568220833 0.0054582432065034539 0.044300197132098242 0.98816748546518141 0.0038979996438718162 0.0070803977763107071 0.022554639925050975 0.0033485559528486108 0.0012523546803643499 0.94204827531127922 0.0024177992015494143 0.99704636690344295 0.0025551007484621519 0.0025848320259301946 0.0073562574238222869 0.99985822062432106 0.99048668972404108 0.019650069155938581 0.012870289803701397 0.009399645378955223 0.99289620669626233 0.0023820953157108805 0.0019077919526392965 0.0053474436003348525 0.0015643257521871655 0.00052759433105729469 0.0060601279014427193 0.97388231748900822 0.96680222456426756 0.010570893290991234 0.022543234375406309 0.0027043339181645021 0.00089078772670576044 0.0016649616622873733 0.0050647081527029235 0.97719702730746405 0.98689412195535764 0.99269506860933976 0.00041269941220040232 0.021748212957550282 0.92229993131832089 0.99611857281041538 0.01619408713538828 0.028584370087231234 0.0037827030919080754 0.0023757582293044482 0.0023840307816868256 0.0028325010027501242 0.99905576805468677 0.0084111017366934344 0.0017182649843720352 0.98277440565970553 0.0018487247553572112 0.0014544913453264818 0.9924717462887499 0.0026174612682662445 0.0028104399591724082;0.0078660537525399154 0.0086075002024630157 0.0041623513456961556 0.0039540654568868388 0.0070564225750093567 0.82355614829957724 0.0023920452201377741 0.58658183225401828 0.020064844529286995 0.0028701174841929133 0.0024615650484749053 0.009577120199557981 0.0040350648034019462 0.0027507639980308722 0.0020518127252702415 0.0025155445088720966 0.0051036397901931792 0.00856080333046692 0.29218295437610375 0.70941610400261301 0.98792015859348514 0.2821559221025296 0.1562587622865142 0.0026646288398020882 0.27196527190570963 0.0069877063344081268 0.56205640552515801 0.0024216065649138234 0.0043115761440265772 0.0013629121961475884 0.0019155900727029843 0.0096344344788627263 0.0015603914427043208 0.0034459436361651916 0.0041927377283176694 0.43350511990701768 0.0039357281267080923 0.0059759869392009132 0.0045597865447840665 0.27371317574602505 0.3126242270075334 0.0063862713521145023 0.01526113538954163 0.29920987202867938 0.0060366233748514256 0.14582353465678963 0.81409359801030967 0.70670700641118755 0.72668157765319474 0.002944747491530981 0.96888612284207865 0.0027145228920890762 0.83426810727180789 0.84580533009874082 0.0086540628101468252 0.0062033733795136487 0.42744123791895061 0.0057022368216274287 0.0080670492161078345 0.007749531488208776 0.001220427257469773 0.031193242651092867 0.0018660724702490674 0.15908897079372633 0.961414078028626 0.44784446373951109 0.0025811637332445337 0.0069064605930659207 0.0025558016565609123 0.0043635980952029148 0.97515263793956874 0.0055025404142607197 0.0051603856176884429 0.014789105037159737 0.0027820674113810694 0.46436815219541855 0.022102669243216397 0.0047578757639984105 0.0045423731196565838 0.41966015901473186 0.16248226865153303 0.99074049680437004 0.55953163184831167 0.013072412430039803 0.003060919211591798 0.0021150526875976855 0.58438005184241471 0.010057441808698891 0.010253354790223256 0.0045894515052287681 0.15856294252183634 0.0045987839866344343 0.0094782723872523077 0.012704361286587416 0.0022369522300392164 0.58723312184727039 0.4120232483620152 0.73075618774820716 0.0059890106287513508 0.97827579093795802 0.0076110601085559067 0.0019417800200652669 0.0087536483199309265 0.0022868090072816869 0.0020699326578502014 0.0043171329096597759 0.0032943961947318225 0.13264422690965499 0.0052772595996676145 0.0056801937980755675 0.010168861129496422 0.28844783579744843 0.55724114598496222 0.29676722361690866 0.14721998036770748 0.0034231691280373231 0.0037434704330255204 0.0025915926781651102 0.15900373992262939 0.28721853203214093 0.96821636026955282 0.44686215400924212 0.40362822033472662 0.7137667507937856 0.28698545941097048 0.0056721547074056328 0.28188606849410008 0.002784915502023695 0.0077991425884520304 0.72124602967689289 0.0088197196452196609 0.003438678807701464 0.82272686914892601 0.0063769960221908744 0.0061408574517274874 0.0028773148301408304 0.0022665269021610686 0.0056536132295350412 0.016231535897933948 0.288079260530273 0.57101122359701595 0.040708297802555547 0.83345342553098289 0.14827690074529939 0.0061091828700035877 0.0037405308334123458 0.37204445926115493 0.013699125400768147 0.0036583845731396939 0.016549076044226216 0.30169102749862264 0.0036231423907548861 0.0076782744926896258 0.003602098473194734 0.0037213062702821111 0.010244155954591331 0.54790100887752913 0.0095758741086172158 0.0039309864688605043 0.83490251623587364 0.0040586915567873954 0.0034971408173529988 0.0019548978950284504 0.30425249087359907 0.13675286312599705 0.0041589166151241898 0.57543420775918275 0.0020894801310068472 0.28548830149865495 0.0032209000044574249 0.001300538060622569 0.0024900175829586819 0.0040495518610879156 0.0043958407534204881 0.0030429522020783899 0.9904937011891185 0.0032270468877605256 0.003344837320226141 0.0028869359220046139 0.84747071389833795 0.84666132965709429 0.003013813239583692 0.0031571373782182661 0.73281131128068588 0.0026753468421395667 0.0063760298522207142 0.9706138288170103 0.0052366266468776334 0.42958763824363977 0.005330833000077465 0.44451644998252093 0.98840862634465387 0.0023847013067961448 0.0014142605368413978 0.0061076128437189542 0.0018394971757726242 0.002226213277973961 0.012345810736443434 0.13279187445925852 0.022471628936787724 0.0053184264302579562 0.57277037014397936 0.0032399386845989573 0.12512580593050723 0.023604980043701679 0.29029959682559425 0.30533223572481016 0.0028962750763563729 0.0033052291595328702 0.0019978628666070348 0.7291321809372564 0.0017772010523194471 0.29434553818766579 0.002542791607712416 0.0043771610996526369 0.0094246104737794843 0.15916954886735701 0.58169763469492997 0.5554347327568897 0.0048679643709184624 0.8274660330125343 0.01408791565213063 0.0064237761218665299 0.019059770529415893 0.97954558455896268 0.011354720642378196 0.0036785591354164902 0.0027020990479931883 0.83920775772057421 0.0032416655734919327 0.74413465082028574 0.0097782192121780402 0.0042780039641081985 0.28452237174402673 0.14031859205639854 0.010444494750352189 0.0077058151675683121 0.0034617494460611755 0.0030907067180283142 0.012192573714963559 0.0073214584168357997 0.0016866725704174045 0.0025158567141999916 0.99829606565655982 0.0026146363382410654 0.0047529473258407324 0.0026566436298305273 0.0034530879415909086 0.0097265457291210652 0.015632705261937257 0.0057666521606926638 0.0070102768014483419 0.16246651757050906 0.97918788805042745 0.016171129482216006 0.012517631482619685 0.0053100897678532728 0.13333971732984756 0.66853838221632977 0.0057283979361481517 0.0051982544571806556 0.0060857852016971145 0.002252715748834149 0.14717011649417744 0.99002956932284203 0.0011177625649578745 0.0033033055855711205 0.0033181670239470591 0.015325510759978683 0.83873475488905469 0.15456354992444751 0.0025988335494916467 0.00704539676017105 0.0057214016163311208 0.43914204923749728 0.0046376256791436097 0.0056636775621393132 0.0058005807757727425 0.0074513694428526983 0.1749679904887543 0.0040312418758003937 0.14370084343347148 0.70461586073274352 0.035067242914506025 0.0054414992286354298 0.0022166283286238191 0.015424563521061883 0.0026478294252215186 0.0062952950855279634 0.0026892483809581621 0.0020095218411846213 0.42585737756879727 0.97014714350419928 0.0069828121499783194 0.0049971032692059294 0.0025336913264507972 0.017735313054363863 0.43386750081971337 0.0021631512644454645 0.43303622676654169 0.87291795487724988 0.0083697570106324552 0.012235200818464529 0.0010887832296118003 0.0033691815695357382 0.0040536568592109889 0.0034463004829149218 0.003426892361135558 0.01282650103500417 0.0055617370656890121 0.14719609838037179 0.0061613188269062317 0.012495637343443698 0.0043507473483992967 0.0059552640580546679 0.0025138631716069282 0.0027925081763013572 0.0023718973521251671 0.55924319329708294 0.0088030954363289282 0.29149806547754498 0.0029213725594323808 0.0058974923111680165 0.0023698623466351476 0.0020804311500587599 0.81616968136966894 0.0011744158421084846 0.0090532546336927963 0.021752839020419461 0.0019928670521761004 0.0030063639252039171 0.0065612318101926116 0.010961152671197899 0.0039746130114204723 0.0047809915766237913 0.0017874787913914087 0.0032195536904427989 0.58357991428056533 0.0026820359441911776 0.0046878338180468705 0.013578610796681071 0.46018718549372728 0.0025398498990280268 0.40643157675521557 0.0067541772818068054 0.69924560289675886 0.82833483896573556 0.011946209205969149 0.0050530430784180231 0.0081448484377191557 0.0036628585289343882 0.0040231583801501481 0.012729394275016286 0.15061762810903312 0.98911692904282811 0.0045025629016871814 0.004590957217896108 0.0039553251740214786 0.71398998551620207 0.012075241600431779 0.84327137064137947 0.0064498519464888677 0.0077808616668096839 0.42373580913827941 0.0050958114841300004 0.0033523769962664112 0.0018456412269362982 0.0018727199384380451 0.15177935980053439 0.005758319123514777 0.99324237688737138 0.5858507681807682 0.011227271426519076 0.47924411157008351 0.42351732533792047 0.0030566329694252689 0.002850855310973956 0.008159967375786354 0.58481616871732789 0.007555926359365704 0.71135753914815392 0.0018717892114344934 0.94917460866133707 0.0075634048159459854 0.83947690065797675 0.40355525766764733 0.72366034488571951 0.0024655772044854685 0.004128654361061081 0.0031469915539788281 0.003152516143195032 0.99451826667652488 0.010070303149995859 0.0047801945354310265 0.44841863214938049 0.0029188606736729582 0.0035233960755849426 0.8931965912241695 0.0025307083942887414 0.0015330361052689214;0.62365183093749221 0.46557800524672316 0.13233853683446661 0.39892114471149343 0.73016001243572914 0.13522465492241775 0.38552478731564765 0.13906541779312134 0.0032157245032351242 0.25401982341932994 0.53262264350973876 0.0054294817848581237 0.20826609825379536 0.21071840925552152 0.13499321276936652 0.14183306485601649 0.66716133145671852 0.13372374932787828 0.0039673422676327428 0.27414314998414413 0.0058353671381050978 0.0026485588172441886 0.007869998373221861 0.076546443146996226 0.66467938693877004 0.34276312595322878 0.53288818485117251 0.72599072504501372 0.2074958075362196 0.010943174776574312 0.2745646253247922 0.062789449006323383 0.21204599489414722 0.13759431225770513 0.8028511500355765 0.066676945761659487 0.0019012395129013901 0.28149219118484892 0.86448565909486219 0.7342048288600791 0.20124084840056419 0.13123593405935316 0.60365604760580038 0.0044332989212516744 0.34019366828249686 0.0081603326149517971 0.069734274186923892 0.076078893721889668 0.074300047982501324 0.54305965724473104 0.40706704754806122 0.93144087984309221 0.20206770175139704 0.20466480270863646 0.32645301409638122 0.0059549693376180967 0.14017791496278106 0.13604796532152541 0.0033532755087783972 0.070878920098790252 0.068147457267248676 0.21236628756884607 0.8596009243873578 0.33694251353528565 0.39360909450181736 0.0064662993073108087 0.006105104590741128 0.0074062339880248285 0.74123896548802648 0.0045561865032222688 0.20649958743384977 0.0023198501588115564 0.93188280085527686 0.0081059262526473712 0.5272812851848605 0.073532277425727877 0.46598970444204063 0.0025602509266681901 0.068572508046039343 0.06929600338896251 0.20618724914723602 0.0011195732284450853 0.8624982431817686 0.067761382557700339 0.0021351481548848392 0.67030475606187978 0.20937170031200869 0.002550434951945969 0.66115118478372559 0.33855978834477279 0.071451632572980414 0.20521800317169989 0.073054389475777026 0.0056817995854364029 0.0049826834793906746 0.0049196138074825615 0.0027586013578540583 0.07230671301229441 0.072185305302745417 0.47072925075774924 0.069135679197831257 0.52688693431083666 0.072461462087520592 0.1445131844347782 0.0010156339725737428 0.20110303552121958 0.13491876604439357 0.0084795793064477796 0.66647869861822751 0.93455976788035244 0.33351228892339491 0.28686833207877971 0.21869406128652266 0.084243143623198596 0.13705322610777351 0.18235799661366298 0.53149437179115533 0.13140326022984991 0.33403653122233268 0.27140796719911919 0.0032812561694275716 0.003123485480878721 0.24220761962264192 0.33277847423390206 0.002371316757820729 0.33900818469425475 0.203571934855521 0.20523373481547014 0.0067241012519711624 0.13556936796075836 0.92750340466748138 0.077240751661219409 0.27297820273439399 0.0035908259348519625 0.0055383366394727122 0.0070027956744752057 0.80163557252504258 0.067532222330840982 0.071184701011356766 0.0075308114631854224 0.0039365298191985955 0.0030002820119681061 0.0018315743055551282 0.070467809902283393 0.20592081484325611 0.0048512584673614211 0.52682778469006353 0.21038130315697923 0.39633915958598964 0.8565968720362459 0.0079363874163972479 0.73060307886990472 0.005382652014521358 0.0054960164553692053 0.069406627933741583 0.20445122929533649 0.0023018911166226203 0.27590156045506631 0.46015979084780839 0.0043481097102925194 0.0071798960765606396 0.0031130769423055975 0.20461013343531245 0.27009240372993237 0.060914714371371033 0.0040523614139575635 0.20401094950184168 0.0053779985234801864 0.52181142530452673 0.6657300566306299 0.061983170980512522 0.075596474116515211 0.66742270421794858 0.1234482197845104 0.46264539565927976 0.46828829613401979 0.20206600554822579 0.012689997254528476 0.0073100758647403228 0.13770666436890458 0.79388583182453565 0.59617053547357046 0.13710123875283889 0.20923543902722971 0.27861182073343571 0.073370300479195558 0.0074024885889431846 0.0031843556438396915 0.060132890914856657 0.33514672479198765 0.070704682384635717 0.06944887765222954 0.14025105609229321 0.13917604009097934 0.1382821899487453 0.06895712176779456 0.068941762830222575 0.070685282348130526 0.20196814797796148 0.41529214555797866 0.46564528852540588 0.32768010877610937 0.79813405010484972 0.27260855232018266 0.070626380728413818 0.3362322943481949 0.2130862758025609 0.20324351911300634 0.0011701348621615015 0.0014653122653376085 0.069220147349648667 0.58672658228508878 0.067950568744730933 0.061478816840034922 0.0025335445539434514 0.32478646401037065 0.47129397233145232 0.0019941304586910819 0.33724921168208444 0.65924633462580617 0.60284509975579226 0.069701491639627577 0.40890406892101805 0.06918889627503369 0.39271986920432339 0.40753744295183236 0.0037679197083759918 0.34201289222595421 0.072797118519175405 0.073251420647392138 0.13637298516246676 0.26881500493937899 0.070337734353019848 0.076338584096168907 0.72712265611267091 0.0038106364885499766 0.068871850764331818 0.68907056116450338 0.80505674717635767 0.18924679335822975 0.26574117345422327 0.6710391243706173 0.011330612447409842 0.13519159223302701 0.27818308354344295 0.47263492062746859 0.2097982162379475 0.0036042707826294497 0.0063488445558872739 0.0040946564181816286 0.86046098773502533 0.001961452892527991 0.72699788963359369 0.0028882859946013843 0.40599208496628109 0.20612633262295996 0.81038901299362309 0.070565493023974718 0.070282723938801972 0.20820146538706905 0.072602044193378762 0.27519549621849121 0.067952026285543726 0.53234707467836495 0.46879480945785301 0.0049084328513082226 0.13925627725096074 0.13645154095038903 0.13949839399366792 0.79522274601448883 0.1425853983255766 0.0064559719131113595 0.21394502090416367 0.13891461895441881 0.13726322554166515 0.19909792872010823 0.14220992991332404 0.0046006069585699761 0.40899808392710829 0.13549961941459374 0.0022262226430875207 0.27391282615088963 0.136265981383764 0.069683414717277972 0.13746165735414609 0.66834448200614283 0.21111800872394745 0.2700674351870318 0.26814900706306521 0.07662307582116111 0.33268357990745373 0.0031407866312836868 0.53768663257423588 0.92819078582892844 0.3339177043961194 0.3471732349940847 0.27656290379586912 0.14382652359890244 0.20706885250344825 0.1353315199995993 0.26978513918319108 0.20541379975687177 0.14657490521774263 0.0050434928708272759 0.46923418786657656 0.14231681906197191 0.0031275564555544397 0.0021497449740360375 0.0030355738521828843 0.72939867678632908 0.6645041809720682 0.99048985005345558 0.13651462880993659 0.075345272253507678 0.011729476338306776 0.13780116728325056 0.075260790269700908 0.46994253336931135 0.072065903648603144 0.002099396452368691 0.27208629237443815 0.2050849214004587 0.0034348507707655956 0.79269375539355891 0.065570332118808819 0.46588424241126891 0.0015632395315910372 0.27745288266076656 0.12974272052406105 0.0028252916535961431 0.53581009610928942 0.070233760840066259 0.0029795672568966244 0.066886827657768488 0.0074391606384846144 0.46917069553218904 0.0046558303454698547 0.20658090204198754 0.0053204685239858027 0.7310507245250617 0.13760581269550504 0.063889723264774073 0.13654048523644918 0.6095163330710115 0.21883117476140587 0.6695547658213632 0.069792542811644112 0.0050038834746053123 0.13531666607848991 0.068806601194029968 0.47017432561113148 0.59956382425206722 0.39686349816921168 0.1431453220988467 0.070232791604432548 0.13727963329541998 0.39831770836015679 0.46157152686967573 0.0012883343427579684 0.080693941062534053 0.19571458512873438 0.26967326832022587 0.071538825378519161 0.14140689503866016 0.13314686769707651 0.0079258115982161707 0.0021522467103812382 0.40031158982510873 0.13931585364542454 0.19906880291676637 0.074649333320309222 0.86130997955460953 0.0013806889010355566 0.27252922050545469 0.061697961110860233 0.16754689826706054 0.3237568550483233 0.0020424560665131919 0.069043337427918267 0.18763993277024338 0.0025239104835861393 0.070933108950109611 0.20205236196872053 0.13560176962527218 0.26965572412944605 0.0024899371934398442 0.59799530079166052 0.26938490301171852 0.2801367182828759 0.077599726211218023 0.07059551916997743 0.069960694759446246 0.1231709224150889 0.0022140025050246346 0.47194178172120604 0.25789315615238007 0.20602483512329836 0.27640021514427415 0.66950770615127697 0.0059965845981562946;0.20887859130897207 0.17319509154356 0.054470605753285738 0.3917218428659337 0.31132678213263953 0.25476998522266964 0.28459527628183789 0.0089373205878918883 0.0081555067168422486 0.0091545744275456833 0.23312093864045105 0.29803779948607695 0.13649067460864442 0.12919703687499806 0.097571524141955163 0.34717747763435741 0.30352439012413884 0.057907834669948227 0.13858222527500974 0.012645413683580235 0.21523796195722072 0.0055188829534967608 0.091752923716023255 0.33742789734433087 0.055179360527524077 0.21410798100596748 0.0533840866812215 0.30171567306551911 0.27747239009840236 0.015565556173560329 0.15908663337147197 0.091994998506592318 0.13764643463112833 0.3310499329960418 0.048196630336564877 0.13765071858980346 0.18024445367713549 0.17136200189114564 0.15670975220813227 0.41539815056583707 0.097705341974168483 0.10666434144815763 0.0085579178308902298 0.1955719480242778 0.30434601001034511 0.015211361935421388 0.04863049576083707 0.0067746050907289048 0.05119995908695818 0.0083915511019615509 0.14357547316736527 0.27317603611443714 0.017643906289103652 0.050523824730117871 0.052336535231825368 0.1782215466224269 0.21791445175544652 0.10038250965666629 0.09226006705285239 0.13558534581525694 0.14115867510589564 0.13624992982188155 0.057224166364066499 0.16330782730345603 0.34302172045454787 0.098656784553535951 0.0095078918612364928 0.5662527877259349 0.1872858026314175 0.26487428215090919 0.012819224407419375 0.05988638540930883 0.85549371703874866 0.30056734834485871 0.13888177525703588 0.1611612144094218 0.052116971807089636 0.0033899937164730649 0.050100109635571731 0.21726378713000252 0.011886188436053954 0.054872012637490294 0.2139771834380596 0.0051541186525783014 0.43869381248854578 0.26331028966442632 0.16458265495889024 0.0043898824296201566 0.094247553394280287 0.39157077573990406 0.0055281137325655632 0.26000966510292217 0.062035064587348081 0.13278948939982652 0.31077394277744641 0.093918922735425639 0.096741408949894372 0.052737778691236026 0.67371763393773321 0.33579086241998596 0.049520142504575398 0.091348469723860251 0.15696286894102901 0.2661960483006483 0.092120589362445965 0.052912211943735063 0.09337013974478571 0.046892201285659088 0.35869031030216231 0.30284435440586538 0.13694230863467804 0.26666044241798548 0.34410981890515435 0.66650796971860149 0.062791971260883775 0.18499708114946811 0.01165546754851756 0.17491156130750571 0.22937250314143598 0.020965451467381303 0.13292732338239421 0.24739236809972326 0.094382951784788491 0.047982790181930475 0.011050352804197042 0.13851069707575481 0.38406008652941859 0.012494257222681633 0.0064830168890640423 0.0056030084220414283 0.57014099192063417 0.22706302946910353 0.20411904265601355 0.087285043556064229 0.3234268692441129 0.50571387795067635 0.26950607181634428 0.13604510164784051 0.0092713629869468159 0.40143148362990311 0.056545201097753885 0.16401025803313818 0.068276273157383952 0.2228574315352489 0.22629378271333092 0.25611428339518283 0.010594814072694818 0.23558379518441089 0.044258420596348866 0.28192211017338781 0.098300554647768282 0.30041677582121329 0.048197595927946354 0.26329378609594084 0.073102269093538411 0.21595831687551492 0.057612790383514537 0.20132659806099026 0.050960098176058746 0.094694042556599314 0.15110524271163406 0.06260510899626491 0.011829310462262059 0.11122512115980629 0.19637237600904481 0.03717112280926655 0.049012129167166726 0.0083844088675055946 0.0093303981809720344 0.84296682949350332 0.52637450458850088 0.019296972864102809 0.048725271013749967 0.13448511958565432 0.13602541086172387 0.27121665683554452 0.048323146563439258 0.17894150202431391 0.26086566534441341 0.088866368595125783 0.19269970067200803 0.015352297842406867 0.092064199957984455 0.052896325355068469 0.21525633854528564 0.33952293206788586 0.053189198310995882 0.20733486267850496 0.091743600472578513 0.24541413118380154 0.3475767054135922 0.09246123948157553 0.0088586779751090201 0.51876194114681584 0.0062948773810520735 0.092260537538186499 0.08986509214730469 0.046937614409083749 0.18799792459325324 0.53446646514100948 0.010206813107985225 0.0095868737227115738 0.0095254966067177555 0.19399621350677645 0.0058289150910049775 0.0077696177636472751 0.13327086166253432 0.13576603321473349 0.0069082709068347854 0.096325270092956494 0.0058755747729760891 0.061552343885392949 0.089608578249966375 0.17263202669441405 0.12196330301212437 0.056541275722873971 0.089367431742320605 0.0080366180864354271 0.086414038991128816 0.28271044696591635 0.19700881500387854 0.12770891926883823 0.39678201260990509 0.020882871077265542 0.13280259252208015 0.49564849933365457 0.091202688937308221 0.35226603708526483 0.30410378869881338 0.5098576360677417 0.0073516329547065763 0.34812041418911627 0.091334933362505311 0.21386457595872171 0.46820672275955111 0.092408398151625964 0.21330433126676968 0.82484631471347469 0.31698805540500019 0.098300915110500708 0.18093530873470068 0.096983170176750622 0.093876787037493331 0.0055982438313840217 0.13251832820547838 0.0062580442303590209 0.13486219478276715 0.0115206539822688 0.018091193517907528 0.011905690165737219 0.010302001943856243 0.12946386766582046 0.096294164582560265 0.061466122167000321 0.13735440618329037 0.098688535510557049 0.77539138151651499 0.26921729905122288 0.77251572260609447 0.012320550455194567 0.10999394180341546 0.66624802687138029 0.0066707803069414422 0.17687996367478828 0.044988254203577958 0.088963102466543778 0.010199184600889337 0.55694109330568664 0.0067552596716919438 0.33009118949148952 0.18504853937592275 0.090330770315106904 0.013789862108742541 0.25188491454511763 0.050468080717592942 0.01018527360157572 0.092516810989472231 0.089582010452483971 0.097013032776195121 0.093553821262588016 0.05097315075379933 0.28603397208173564 0.05169302103713292 0.0062239782111232558 0.051647394455366577 0.47523409752933832 0.40198009068130525 0.017505388002657073 0.02110425080041501 0.44146252216123938 0.01492854178984012 0.007985524960037094 0.24874172078016329 0.45475858403859709 0.10364995086920967 0.16939374919188291 0.0057904737822566934 0.054771421766659376 0.10302845167235161 0.27296256933736152 0.05137495820335812 0.1386128941033227 0.051447392542535546 0.13569784954977013 0.20941968519662221 0.090958665508849706 0.17100442805806426 0.33582501938157105 0.096164323527099166 0.25610928125755472 0.0064701438772503802 0.50532763542092085 0.0060914060601506004 0.0041468710546009998 0.51155517263941119 0.056812474543000896 0.19439215029607904 0.00636675304644719 0.13895649810167879 0.048371644406333833 0.11112652582189106 0.26719345757447571 0.0039728710069166263 0.0091985191706014571 0.1338289595386758 0.17303118447064719 0.092673826782401769 0.049414336431578047 0.25285799491768318 0.13021062577237721 0.84272802427189064 0.22608876054109456 0.13609636901129807 0.0076264702098937844 0.42642278530852279 0.63860374563746036 0.098793807229142938 0.0084013369706644678 0.04893816533332606 0.060222506756333533 0.050937148397786694 0.26538862235006444 0.17365374222047528 0.18186856712569574 0.61818650979617407 0.052860986562816945 0.30868320240250591 0.054753625128708711 0.25835085554877962 0.050516015562798021 0.14165893619703421 0.27274711833046716 0.056248618539691445 0.13736504789705489 0.17729979844577948 0.039322130275323545 0.56003831871912746 0.17416155202206662 0.011557338154283822 0.010180352403225137 0.0083818083176857433 0.09694467312045478 0.2171729509242368 0.13535609548671537 0.13154582904623882 0.25940935402670673 0.047227549368675258 0.77411179576830991 0.007029183668063833 0.089354574934178449 0.055399367904197812 0.25188642254291305 0.27413288440282552 0.051106755414201469 0.0868889208149458 0.26280822931247116 0.28715639362975243 0.044619429305326058 0.053725721000063668 0.0098796657606182742 0.073262909867343726 0.13767124740854225 0.06028600496175035 0.30852268800263699 0.0063201675647781659 0.095013832736655479 0.29726075317126716 0.42780938982378397 0.096459167366408943 0.18632530550319004 0.053876211431818893 0.094732174446542264 0.45043805501862477 0.0051590057483130881 0.047619504858532634 0.25891270639302399 0.34164648820989718 0.22845097106896839 0.21433842435439263 0.055013024076192518;0.021390336211878982 0.0097210251220244005 0.0055840353160924181 0.02168463817866309 0.016758778446808561 0.69946501371973835 0.016206739267572826 0.0027286283303308316 0.016423514815749954 0.10936473053144083 0.0071663398395829126 0.010746743804460931 0.0076249843406286299 0.27307898622524507 0.0075840387150949489 0.91466205209562912 0.012594445027173919 0.73522108093210714 0.0083483911584659211 0.58603518550369804 0.11311549920149691 0.0059311806683395281 0.0093213850146491323 0.98615139693648868 0.55622117588642139 0.0074220914390093918 0.6114387181433677 0.0086613033062703342 0.013610425064439231 0.0059913598407423246 0.013275915021841186 0.0043914903525849869 0.0078952348009296031 0.021820004156302135 0.010107901062925638 0.09597919179832054 0.80153326700899341 0.0031276106908383174 0.85875239514256652 0.42157275667472532 0.1023514280580762 0.71920830838843053 0.0030547264746423291 0.0037088003406066739 0.0057944875847263317 0.0067648617332112439 0.0043569024901492269 0.0082315050943018789 0.094487689576737116 0.0028398987914153373 0.51310241223511166 0.44149103749800339 0.10087927687212507 0.0062486616403047875 0.84641192172295765 0.014989492164280168 0.0055741908468328232 0.53024518723178793 0.0037348969377713763 0.36745250086280723 0.0092299978290318451 0.0072163196562804515 0.0076900972477862966 0.013757308595764175 0.021840630453291807 0.19367942671476873 0.18556330165553539 0.96950944229577585 0.0065094303104332773 0.64706912441892173 0.28004367114388673 0.0034098223708199336 0.30317884165705555 0.019354178987463146 0.0040370572383622008 0.2122189719868135 0.18933950407797639 0.18936573058352882 0.44048704153337087 0.0072198308837565905 0.0048249798646727892 0.0028935046619327212 0.09113191375742502 0.54830361296400676 0.64680635969673073 0.008138917386931066 0.012726366885614257 0.0024785173488004963 0.094905082770371463 0.011350948407129934 0.097423309437636163 0.0061312357995141334 0.34670581674864637 0.43627165082048258 0.15621311801376916 0.0052553248977049768 0.13314614833979763 0.0054876143461747001 0.97920858722114168 0.41499871267890953 0.89221520851018132 0.10198650679975216 0.18995423494745189 0.37885114319030855 0.063731448195734716 0.0064959815373629307 0.012337848998818169 0.0049286520780337014 0.10029638871392335 0.65724741956903454 0.099396114373921554 0.002160452667370348 0.1027571559174197 0.087662778305668043 0.19471297031330798 0.0086723420420747252 0.0070250195514743406 0.0079497995922901809 0.80077831729443194 0.27189014179010546 0.094506136003235097 0.010464220790196495 0.0061294333068490549 0.098340369258653762 0.007932673758982902 0.51884568773032691 0.37158205804717648 0.0045275550964702701 0.0021273932746420001 0.094696623831445392 0.013096938183458959 0.27353251519209221 0.34421663955192872 0.0063395830028045823 0.76774044194980839 0.22565312019515846 0.0041333819922635797 0.0084700770832850988 0.64846121612181262 0.22097353375803974 0.0049031436803821772 0.012460683209583823 0.01451742751889018 0.004642902160514893 0.0068895340970349531 0.016357820080839705 0.014521187578537155 0.43565692489401064 0.086347544885030672 0.37433377915792465 0.0035323492020931046 0.0043612512992270876 0.0037204709845735729 0.0043358011366376589 0.54060457775612514 0.36994029128513412 0.0045861493790891345 0.53691858402894566 0.014076797566128577 0.093825029040893973 0.020872121870584553 0.0047293594978180366 0.0047264364271632732 0.097099793581751415 0.80188050608435735 0.088763615515069838 0.0069874280706858508 0.0046162787967632098 0.0037273832601964134 0.75988077506110197 0.10304721275343522 0.51919325921264681 0.095365929144005851 0.0059335522273249175 0.36751952031521196 0.010096116732099094 0.0063314045148867085 0.19397282050389172 0.0067407761750063024 0.0035684413846739081 0.63490795725173099 0.090494415282928856 0.0089922084204691888 0.0073895706312632654 0.10770186963332463 0.01293390320383998 0.7951257213001286 0.44718582962875358 0.0053500586573376275 0.1996321085924373 0.11461237093402454 0.095856793490389988 0.0073324950674869627 0.9958406923409594 0.004707269242690151 0.0098693973442977364 0.013554774398091371 0.0033079289483016047 0.019707978815326002 0.72762503341944718 0.0045783378689619545 0.0061458791279074042 0.0059242866143490612 0.0066908358865065921 0.55116695608589206 0.01034012337380188 0.81418805958373519 0.0048840805214529527 0.0042065722370515195 0.090215414469301383 0.0061342229937654666 0.0028327171274371041 0.0039949082902290944 0.30643476229410122 0.0111585224775454 0.73002645995741333 0.69281038083409929 0.0029775926799444274 0.0069254607300080076 0.03709683344968033 0.0078192546039407996 0.0055104991099854559 0.28171829810158644 0.0086263225225736897 0.0062814546460803382 0.45098942339722392 0.5621156502657968 0.024822734260385476 0.67582102961893453 0.64553882366125093 0.0044373848735536113 0.18387744887615254 0.010543930340125534 0.006375183841230995 0.19987664813474998 0.0029335275497379167 0.0051323577061739402 0.97202494769009051 0.52077428176949958 0.0034145804328011148 0.20217990776917599 0.007306372494740419 0.0039987427326286353 0.0029453850095810591 0.0028799293157708455 0.0045766569541476785 0.80067457528835573 0.55794017752192127 0.27671689788770537 0.38099508259656123 0.0051872791121405394 0.37970103801641925 0.0062299188101235204 0.28179109761892202 0.55826230927545795 0.0048980675750952473 0.54745756330445461 0.30873519906981434 0.96839202868862329 0.0019433496744944378 0.0032061869886087554 0.59205766830460071 0.0041352753944236464 0.77872088015764607 0.0031327445588582234 0.69781371708020368 0.0050844668479493047 0.018393297081176742 0.00291227967164325 0.10126057958232577 0.0080349222469751572 0.1915973092791643 0.27408806286577386 0.36911811617822671 0.0040773803280842666 0.005068979539604882 0.0031438026780221842 0.48952224381074 0.0088181477518704289 0.09683622833729652 0.0065298726449619596 0.65162926135922317 0.0061441430250969596 0.0094901331158228127 0.099683881123772078 0.54461444138556492 0.0065495784953159093 0.016063637135076705 0.0043430124037982312 0.95841642843549002 0.0094831485820963818 0.0063210878766630013 0.0067019757108574924 0.025227820496835331 0.28468682437750298 0.0033371639210561326 0.007743352595162829 0.28313197337491458 0.0059920560990876157 0.0055465455200989994 0.0034378836647857604 0.36338072326453852 0.0067337591913866988 0.0042896775877494875 0.0044778868808827638 0.0053797422478202017 0.50076204514867673 0.54561460474306056 0.0039187839244810346 0.27148083727612921 0.0052813980712404463 0.53874165205255398 0.0050362346657791277 0.0071072242041631999 0.011856560994494862 0.0053830471833320008 0.46050015523851101 0.0050354234724136835 0.0048527274310067384 0.09674727379351214 0.09878976624187745 0.59807155517183985 0.099397259265606358 0.0046194507956153477 0.0058671874814609053 0.54556045816008436 0.0057242885592737706 0.28210496527361567 0.73630499467247723 0.0094907221693020863 0.96732910324869592 0.0033512846935580699 0.19017625532803106 0.004681396113190784 0.010401074775304995 0.71377389502534505 0.41876250810514942 0.18943754992909523 0.0080190128437809972 0.61733335947440793 0.0029220649535794379 0.014767857519172027 0.09839301933154164 0.2065231193652286 0.53037995553222217 0.0072642723968813711 0.64098010026335817 0.0047115612149100008 0.0078378192592065982 0.0057319577301676045 0.011718767126014697 0.0061878937896362564 0.0081431215045056661 0.086676303955499107 0.13490800919035073 0.0056613852493664473 0.029737427369157587 0.0055392731640645284 0.0036495270144243606 0.10016142006343549 0.011192228696173855 0.0061871024878943828 0.0081546707975597172 0.10066960548490388 0.0027103800851130907 0.94323378591223261 0.44346175454696024 0.97634767846541137 0.0070115690220733497 0.0039500147542731231 0.0063810701728570689 0.009812783381012026 0.012131014002721641 0.0043806676600293432 0.19238536947343912 0.0089377485794917642 0.013504191144362519 0.010565081674365616 0.097354286857055786 0.093796581694161982 0.0033885947987227138 0.81707561777475735 0.0067985152096029485 0.006824329075752711 0.0085213962138665778 0.012755975001773915 0.02027470463592471 0.74685120345382772 0.10837968371297849 0.29782134245697695 0.0064355149546337477 0.012258450932723883 0.32625184188561834 0.0025254562030662007 0.0035513474890891666 0.0058183541406564045 0.53524619218454228 0.18171234801644379 0.23349718075136852 0.01749129874324316;0.96836832586849642 0.0076730828071555346 0.0030639032484210843 0.0093811703327958598 0.16492455781536502 0.44029014602351879 0.040707514544287851 0.13678487187424634 0.14956825471688287 0.14788531868542557 0.0047160305013920793 0.038652202475879888 0.13683720272723396 0.021690592922351679 0.004680590313513644 0.16371924133954766 0.5616552447737726 0.3053127349941876 0.0075295313704413034 0.016943747150884279 0.003325351830267042 0.0043725649733900376 0.11688776285324928 0.98722565593040978 0.25429888959726965 0.005052313727147816 0.0096412103111677451 0.017278210679545609 0.72338255737227097 0.006413012659568589 0.93150890692289534 0.01244239099498729 0.010470667770584401 0.0061959067494280033 0.0095417171688656956 0.28373917403454402 0.70964300837181216 0.0037530308868030681 0.96346080092614994 0.5760579311743198 0.006079575949704613 0.014421326034810375 0.0024454297552255265 0.0041613156052543445 0.0015456738244399811 0.0043001247444604063 0.003831991069234748 0.0046304234360228236 0.0046397554362221267 0.0019662175050013755 0.55516180608415611 0.15129523301885198 0.0083900563131763962 0.018723288205245093 0.51674070188723475 0.016471669658448339 0.28771163231103286 0.84191807440532251 0.0026289088982412471 0.77316718752286728 0.0035469363715160316 0.0027152170533139564 0.0034574854469000783 0.55039971110075037 0.0098342540856921779 0.0031976753441115176 0.79056641270684602 0.96314326433545583 0.0067839504642142768 0.86645677581412373 0.55379726618163017 0.0055871764484148358 0.15637696320262742 0.010216604439335093 0.43556430592859535 0.29701074769787628 0.28458498354940476 0.28264270683770842 0.2492112542253403 0.0056932383323407033 0.0036712664852152363 0.014293947613070545 0.80956150210353628 0.53303056873675803 0.33347264371543028 0.0077260803241377936 0.0078836343920978286 0.0065744952526937024 0.0077766435383721834 0.003035230444857645 0.0066341292657204837 0.0045627330173815999 0.9904549076059338 0.98026261351288912 0.97868418772189736 0.14419697412660928 0.15031767438771909 0.004815201587894751 0.27935049268696033 0.0030651193120671116 0.71261583836619979 0.0069233657711082284 0.0043160392522706139 0.72396555259502582 0.01496769423025099 0.0066380051006191812 0.17454323975012792 0.0038435238752536544 0.72535166170453813 0.022564533026461286 0.01478040212192985 0.0091417127325707486 0.45315506619229673 0.0045889639001158427 0.17283995671045793 0.0075676859679909801 0.0054434459047056297 0.0039436702075953452 0.1469380261037728 0.33671356503868244 0.0066426194043082386 0.1504635703639757 0.0080958392475275458 0.0067403523293305401 0.0033738748260705217 0.13959569450407988 0.81699333592248191 0.0036698174662128475 0.0023840974450210005 0.0080013811559192828 0.0070254961590564945 0.18113497247939131 0.15524107922163916 0.0060693182154856707 0.019219726995116117 0.84532294262453433 0.56179259549510108 0.020140303350474544 0.47064755661376645 0.98696452342174656 0.0048127132363774052 0.0067021932562934235 0.0084428106568890278 0.0024062509881238219 0.42625907334604651 0.14633659450760669 0.0065945908330328424 0.27502160613291377 0.0040200197890260707 0.14956361660390202 0.0024596492019411257 0.0061111072077768801 0.0037294071664666171 0.0052453483905707636 0.022385435925410372 0.0076331090467296131 0.13666903818461659 0.01137323006584681 0.010538430719875862 0.010344396131502278 0.96793777274726045 0.0044763200746153562 0.0029687356207558089 0.021685667125364551 0.41837778867089981 0.64125129296224292 0.003654486030863293 0.0051212900932362197 0.0029559915152911329 0.15630973493883082 0.006027006264617555 0.012509345657612038 0.16025065930020541 0.0037061917359238654 0.15982892734703111 0.70636678423842558 0.0077035134690895601 0.0041520590330145673 0.0074668614522039297 0.0023767659761910484 0.012855300477070449 0.002685256797350362 0.013162256051209286 0.0047031889232446835 0.97456110525982798 0.022123252847288628 0.53843266950948077 0.2896105030244534 0.003654359932506459 0.14260548234672799 0.0074464473791822803 0.015506732359355895 0.0034665993430519006 0.45778726784240414 0.004857497968423401 0.41809409935603148 0.85446885566989594 0.0033258570909003049 0.0031796375930627694 0.0088006007027602532 0.14483098674857223 0.0054951527422017234 0.0032842691387145375 0.024207915305267905 0.4188843589600878 0.0051561446550834203 0.03406445120263029 0.0027447105195113563 0.0042061167670386307 0.0041198477830627894 0.0047401260071718715 0.0040299587639221184 0.28822927368921814 0.99173056084642475 0.019359141215121715 0.4242033622106488 0.0080654998866806112 0.0015616204709277986 0.0060952490344335589 0.0027712543015664766 0.0056446636472134142 0.00395167962128127 0.57745014626747793 0.0052352636531367569 0.0033908592162633635 0.5692475626911625 0.65916416372559172 0.028008071552796485 0.9779810056933409 0.85265155530320769 0.0032693965432183461 0.0063911476708750524 0.012212703330060852 0.0047904593093839043 0.57327257043650426 0.0018244779005463633 0.0096336919749773799 0.031202295462195342 0.13895193763258321 0.002892079222593681 0.14836344527638656 0.009222813355898779 0.0056429420353036833 0.14381625802313952 0.0090277039950960297 0.0026174433398429989 0.30101467570175389 0.68895784086785505 0.55657292781274603 0.0084268237390081515 0.0041189117634745113 0.70106276943651025 0.002698868992528811 0.97948857750465779 0.28783217898367386 0.0036877816533054937 0.71595142613030471 0.0067771591075628376 0.74853742091340247 0.0014722383611332336 0.28626762568794478 0.019658736407984108 0.0040172802791893676 0.020616929134808216 0.27894934450044967 0.15188835871531201 0.0024344153418054812 0.71950856831496024 0.2865499573905117 0.010223107137279462 0.28146075668965548 0.14485252356509265 0.29534297814840876 0.16512195149050773 0.0026216269634195427 0.0059571023846520148 0.008485924539256411 0.18758216884585494 0.0043152777493702093 0.0046406549179126922 0.0043549831123459639 0.39342727233803354 0.0035275755700066133 0.0033100256523647424 0.025031836273690686 0.7122399562052063 0.0078885739005992786 0.010180548978974441 0.0091355168960380265 0.18241995513626488 0.0093089788617007792 0.0046545830772833727 0.54777431705483037 0.71795273129145343 0.79256381369369633 0.57029208480063098 0.0067513881859425978 0.14231425799554637 0.0054520740026230054 0.0025229304786570502 0.0026880773131266605 0.43696227701242263 0.0065056276740949387 0.002104733674371962 0.0051159591195104083 0.14744953634875541 0.58038527088960679 0.99119464886950337 0.0086725279609154993 0.0063940946586537838 0.0047607825354672537 0.29848404739723172 0.004018191434271217 0.13593080442474093 0.014949783298468819 0.14488402247039753 0.72333517460489694 0.0049102116598300511 0.0030126678833921248 0.41701200137224637 0.4199454135861429 0.0043804141765137958 0.010623385072852726 0.13663185776857731 0.43056848758680871 0.1530914155252589 0.013957186789223412 0.27906387849089359 0.17715291829459598 0.0062923561756962074 0.46011857886954138 0.00269022150701581 0.0046294371926567136 0.0019561420443386943 0.14183257113044842 0.56160394047147522 0.011822174599297661 0.40755686810567993 0.0035948731971650973 0.28184193444360495 0.0025817935212065659 0.0016800536980653476 0.6993455815753703 0.13756674179851608 0.037541803151835113 0.14395901177230688 0.71733619719540798 0.0031959656258752148 0.28336062813156726 0.0035378669644216161 0.0079478502559945877 0.54735771816538703 0.29436387207761022 0.0062263496860096718 0.011665404465290574 0.0041334267389298296 0.84112601751953975 0.14445467300259221 0.0032117764926852133 0.007966031525431197 0.0063108209365368723 0.0065240179848360747 0.0072466806567007885 0.1412076744027975 0.0028037622399382286 0.024864092136245665 0.14131334074719348 0.77703182798154102 0.0025369907342954255 0.14377554567942119 0.0077702993290316644 0.0024194250828001923 0.15043799360067647 0.0068894449981576318 0.0067809352866689898 0.55414590104234696 0.56905939201026889 0.02094636128217417 0.0023586930355675964 0.44077228666834589 0.43551732131920451 0.71822565815485528 0.0093892036277814228 0.0069504735201657277 0.0053585162945016321 0.13415796170936944 0.42280908570978615 0.97920749856778233 0.42108543281603195 0.78796677486530919 0.004200290237973801 0.0035235090420040385 0.96071570326299649 0.0023721887864389551 0.0045776511238242732 0.29936088168113839 0.15376153744184398 0.010205460969992227 0.0023097317930193782 0.0059255221631369665;0.56291450317059388 0.22402544908941968 0.0059361323423560985 0.015146691191263627 0.11091956259537644 0.018018370091389704 0.56330005112283865 0.008755465395780631 0.011014954076063455 0.0093542211095623551 0.014508849949307425 0.078338236698662342 0.19481054867727315 0.015304183691721802 0.017976526620951797 0.11610582904754028 0.14098868202894876 0.096159479767214839 0.09087798492167487 0.098070231182733475 0.0097117710566239825 0.0085948294117203453 0.19459467098148417 0.31948797007705482 0.011232152348121112 0.0091464864918137656 0.10577382880583139 0.11175257818775765 0.80982063411842031 0.19006819865563104 0.32427572646514013 0.40530542590366353 0.21062658885380658 0.01846966207531758 0.16802031411663104 0.008654799880233998 0.2999870680600914 0.0057721213467253956 0.23527615212956482 0.19674806158021826 0.00804651352094813 0.0059305581315872791 0.10702730652029932 0.11624672988094653 0.01812716533097648 0.011351269573510219 0.10072201616433327 0.0095845339521030311 0.0092551822352362582 0.0073910537377980673 0.02855938868830607 0.012366366163604847 0.011861815028172282 0.011161749885084896 0.73676106629921412 0.125808191562087 0.12222006354757572 0.03629375581427749 0.0072031626391422035 0.22293421327797625 0.010701662381333008 0.021333780322757685 0.013024310083549252 0.23842881858339088 0.012091210793619233 0.0069314086866985236 0.21232036844833627 0.4885251613545547 0.38090817981170416 0.77771637279938821 0.11209919820900348 0.013206645353609851 0.10915092349164446 0.0098047065330061529 0.69609058965675696 0.11015343939711494 0.010844799993489692 0.014329505394039946 0.0088937708771507241 0.0090069881904573344 0.010914766461531849 0.10060721664027836 0.23202709667427571 0.52660316557398545 0.0081192989509780693 0.054749457860698833 0.34825236643386798 0.096030862484539153 0.011296723893792722 0.10277553884363039 0.0063435502863968384 0.0063156074049373822 0.67638909190307206 0.034863155560334716 0.87586464070317105 0.088604795041291054 0.014625264616231483 0.0086606020578531128 0.11123757821593044 0.013065714473484574 0.085786879566626922 0.11443058851560274 0.1704686133564097 0.011349922953410883 0.012086110409176721 0.011473378892784158 0.12376772989379822 0.0081579648691397395 0.13116791395252794 0.10834173093646264 0.51679393631889214 0.016564951317256712 0.67794784572208833 0.010321453335009273 0.080442499271423037 0.014455613640000484 0.0092946879574620448 0.0060741645857066671 0.086404707598932165 0.1092336647502553 0.017555768203685401 0.33045148835163807 0.11284308799292191 0.11167728029247546 0.0087878750513412686 0.0053252430396973291 0.31340230511956968 0.0070440770023229666 0.0038185459845458858 0.0056818524532795574 0.1086169507646494 0.01916723629716701 0.012074391037617347 0.0074379528091375376 0.21025324474631596 0.036608854525342613 0.11474501103204054 0.53268042169180596 0.093420193341095303 0.9699761591844176 0.011272425219192122 0.0065206759290798643 0.37419791809152453 0.0088124155060444898 0.11154811996893844 0.11138026906991555 0.0066335270308965667 0.025313735232750552 0.014438874766819227 0.10422369795178775 0.017236207492469166 0.33353340192117736 0.007988550087141319 0.016183636399771495 0.011833295928360646 0.047055673487220409 0.0083103576087415372 0.0055166409244876684 0.016917863118696974 0.10249409393042837 0.90325182704622387 0.10792592638744405 0.0093005282797304252 0.43955432205472306 0.017158498289096581 0.65023792309943229 0.0098630782495464191 0.013253856333520371 0.10659410163239137 0.3162596621422667 0.0074283383859843491 0.10182540444158843 0.0094694452122709091 0.0063517578944730715 0.0072258059853012825 0.22341056238656093 0.082092615426662477 0.0059486660621031768 0.0094567247900965625 0.0076618460858477169 0.0047223504101348299 0.0086463566967153963 0.091321521212423831 0.10395650922933718 0.53047212229462004 0.68036672457532577 0.098722179609549959 0.45375474067649313 0.011555103700744173 0.01153186030822189 0.026161340422904807 0.19127570519368878 0.013628595982027064 0.1804728999799971 0.014446236348283927 0.099621472146224868 0.58335061136053046 0.092910193316729631 0.0082671421289133053 0.015048588436192705 0.1077165960737122 0.0073734722843868802 0.019776664950320128 0.30275734895120066 0.007522463724084937 0.0057013851118091711 0.078668498890467772 0.0086160040782786752 0.007912375425944463 0.013252562140232627 0.0062231906035929126 0.10615066787294054 0.016289169844302495 0.31499280819314579 0.41225984925812409 0.12432715782351816 0.010615044160862036 0.0097779297628343715 0.37697402076113096 0.1040420555901575 0.007347358187444435 0.011303032652462601 0.31609966789559613 0.010958008553155466 0.0061065239102318404 0.27924290365999088 0.0073273454679819664 0.91061211297247224 0.034922399018284769 0.21598249264559946 0.011812212124831781 0.009311767292851653 0.023701624758317053 0.0045843310959169806 0.33619442591391768 0.0048851460734919 0.19345019199717503 0.11369877742501563 0.10785048497592439 0.005754395440693845 0.013394682705124769 0.10864435680089288 0.011654587108557189 0.098032165046811226 0.0075331669491348133 0.011622881911580615 0.013804980267602192 0.022748466204372531 0.014277936967902834 0.0073102947208159297 0.11079712281155797 0.19548174335661395 0.018811236566941669 0.20402792406727779 0.10915712731794669 0.10954690074265178 0.39540020125581249 0.022361703611040389 0.021283417109270626 0.0062461997420207704 0.29973986501534333 0.22397188107973995 0.0048082927545484893 0.098755171464424821 0.019993357263522811 0.020472835462493892 0.0099200000298003028 0.88057086336610546 0.015931701526205513 0.052052740303934961 0.012329108968614173 0.011092681175864471 0.0086694755223380524 0.020033761005480304 0.0052592783830133563 0.017752018402370357 0.093092767585304603 0.025980646673176663 0.013401970959269253 0.017780061714749391 0.01191241045663749 0.1998511995618914 0.0091684026159662858 0.0062056163386795217 0.10917437569022734 0.10720108756942745 0.029993444345474973 0.017939416394194198 0.70337225203079945 0.030576180608544543 0.021761440572380372 0.016860021676496688 0.13176630165956804 0.76345320481978585 0.29922107379299223 0.43584250722290918 0.11632420688092346 0.12210308129274573 0.1123050888832211 0.0061431246617562755 0.0068756537592949704 0.77356290212676393 0.011676271949974323 0.021170605973326859 0.01328265241927757 0.13320724398095832 0.33113738396803216 0.78650536983620112 0.012106078465540338 0.19385601915848377 0.0059100193120932868 0.014539891303973181 0.0080848521711858069 0.014697439083443883 0.28619514604209739 0.006778808196949716 0.38939017185752856 0.10239183074831584 0.098143954975527109 0.01376589762887798 0.019110778719555504 0.016058650357594323 0.10390312312156053 0.012231601964787803 0.32548378902240621 0.0067939093559046156 0.2120633958837588 0.011724882629800818 0.014894479096227917 0.012418052254905325 0.3017208792595989 0.0090398303213385083 0.019232371822142727 0.0049386369745794733 0.28478499071694668 0.57485040526853959 0.011404759988077613 0.20692128778795593 0.078147280223651805 0.13812455298737644 0.0074834087452364294 0.0036461383583950655 0.6473325562396931 0.20210902061159342 0.19683753097833348 0.10474550065283374 0.6392509523581128 0.0039345295963026262 0.79168944594438895 0.010348544361609112 0.10555484419563732 0.10436185111805001 0.21760146442725453 0.014501215700165299 0.013356340213568716 0.0096409259289315374 0.35444038573191611 0.21941534390918227 0.28403622935881206 0.10979983063861218 0.0083056381707481697 0.0074718913301657242 0.1095673398275126 0.012487558828660022 0.0071400991215223638 0.0097026814777433149 0.0081748332760885698 0.097420274753657499 0.008259121598295914 0.10655273909385209 0.19778658906811591 0.0097776602830485677 0.047096042292979153 0.0068630299942478105 0.21331022852864523 0.10600320252711226 0.19970764844922734 0.11118489068307517 0.0080472170828732557 0.59102085011643368 0.86653121372074282 0.036553048205482656 0.087284929985861209 0.010499039109701069 0.011453314658703122 0.023622638955516622 0.11429570298684391 0.30526257437636439 0.026307094457193099 0.6200239943959609 0.010893208843446706 0.0059532379238193692 0.035148190010194494 0.0049719332996951346 0.094206642924902551 0.49484239217361725 0.47857544732142193 0.19376065642798715 0.098947911867002372 0.094764841091029686;0.15274570479233865 0.34310286870527934 0.0076114450182651963 0.0088775458400200125 0.160743777783141 0.4454013977561776 0.31872727685751379 0.0099953106260161437 0.21523607202068323 0.23801697788525095 0.23053220275269404 0.098011278068368193 0.27765917003642721 0.16556268753287579 0.0036607509925991556 0.0077766050452990924 0.0061662907217417285 0.085198562522540447 0.97172928074488507 0.082114932806268484 0.10514857477220939 0.15494952086539027 0.23152628456050639 0.0079301643443168181 0.16447455762721208 0.079295877858443914 0.077493880155244388 0.081645777685351001 0.40841896517913867 0.0065801122532049335 0.15465705807520558 0.58849324074796527 0.074859613246304288 0.0088602688170832944 0.027349967317214896 0.23776872496498411 0.42894478859370316 0.083689891268394268 0.094492181191173766 0.24923768586146194 0.076636837250288525 0.092589885703655062 0.07998212121178383 0.16118876314665487 0.078486081494485965 0.65744702466283456 0.083483622831365317 0.080764926346338611 0.083535086205398262 0.084648812632064932 0.0041090176726837737 0.083585410613453176 0.072555194400068787 0.16184108785307594 0.0054884306637657974 0.44305397933511415 0.14752149866172967 0.40364767756337694 0.0070459377597257844 0.31614025616505714 0.0072930652599484374 0.17758621165221899 0.0045065698187936546 0.07703415694705866 0.36522790948870032 0.67547091571044704 0.89734574447161597 0.085344680938527595 0.10164938889748457 0.0090798594473501422 0.23877884681128575 0.0084724408533643422 0.082228438925414662 0.0061843289307876494 0.078483447531126349 0.004318933549725637 0.077791066974897391 0.0034465813554290245 0.21499685149951869 0.087718438224249004 0.43507820666935826 0.086603595262057798 0.083836702616090109 0.3953280343899086 0.2424976147402613 0.56976582038631496 0.0032918010607212115 0.31058832406491016 0.0081064494041320594 0.0080658825558180269 0.30255642796214394 0.0076924028563808977 0.078257425457959634 0.53257762613457593 0.009697874081521108 0.013338364718972026 0.59519975785616008 0.082292439083852531 0.010086208846238637 0.3816931824815154 0.089294917741573165 0.0074510857969210809 0.014653745642913834 0.59253195813665371 0.76389899165331121 0.0049535125511589407 0.45109389264748956 0.090641295234049374 0.22162269474771368 0.0064682615977283966 0.0060960945152253986 0.22299296235213698 0.1354691474925668 0.0052132684149428128 0.42777847659980361 0.74406190343448664 0.42420496448835432 0.15841342714691542 0.069333863979784707 0.0054311154465631079 0.0036444456717362756 0.088443919112061981 0.0053985584747589521 0.080159980997982813 0.084197325919973656 0.082073004643564706 0.0069650588257712141 0.14601336913935442 0.012933486910603753 0.094569729425780111 0.0047870453592602693 0.089751684945378496 0.078389366842705629 0.17994724653714661 0.14635238779202026 0.17536616289797807 0.082252562505822399 0.17435006497237665 0.012419983701874804 0.10818049599339695 0.56728307909045816 0.079789475995760514 0.28849602448019995 0.080313125447057016 0.5327916517102782 0.0090312137043421815 0.45008065130416464 0.0056425262715590636 0.012592903377181074 0.15862769705114663 0.012835657419207034 0.021595591915016678 0.08068279720858576 0.81607262907523026 0.012139597661520608 0.30457644784316884 0.084431723446955403 0.0084265711378902364 0.014185691432958725 0.082541057288932643 0.078109577721702073 0.22400542286257463 0.0039945964215244434 0.30392589349065985 0.0097677356001930754 0.080459370021036175 0.096203480842344938 0.79654006333296623 0.0029162180074938752 0.083007481885432485 0.01168015470005883 0.0033609527828932124 0.0046318625612900201 0.0086733088616622288 0.0092459978586498324 0.31245088481622468 0.087491887903736992 0.0039320821175578297 0.14936508048932157 0.15662434471097775 0.1570332142728931 0.0065513335282978771 0.75117158920559524 0.0081789848043291348 0.016728013979866289 0.49448583032489218 0.09555084016019208 0.22966101625293539 0.023597501436031999 0.007183486217769681 0.0072227886778818522 0.077467070834420129 0.015369959665212433 0.02189915921799325 0.085106896914516991 0.006702967202268607 0.48528459408095148 0.22628304365165647 0.51164047983113803 0.0055311641461380616 0.089784267656463079 0.29990957958984371 0.0087736446796536395 0.081697133814536291 0.31006165350049447 0.16129265597992182 0.0081434228185864703 0.012580717290879539 0.08245430204442146 0.01360574932164786 0.082516363506315082 0.0050475797387175454 0.0074985303980172066 0.32024807356405977 0.015562979033467542 0.004379051353260565 0.082062402300114801 0.81728067644021363 0.22258109165768669 0.19793798255129308 0.078291473035754483 0.22526350691747932 0.011839903747279477 0.024761530057411212 0.84764391204860501 0.29282814397274071 0.6733334257842678 0.026402840628268573 0.30708782181408584 0.31657532854634907 0.23425806608633409 0.078792548245621929 0.24440071570448063 0.080027871905697087 0.016506981630999271 0.005750224182139752 0.67726375626229551 0.004958225222358479 0.010805106544707579 0.75016025470466507 0.091002042593603782 0.21062973602670387 0.0039854978259859326 0.081590249432960851 0.14120424803191153 0.0049543668722069334 0.08222088750329308 0.31375232256301988 0.01384325560077989 0.099706989992539408 0.093087377295528864 0.004863347130837789 0.0057328385260503618 0.087647519798648099 0.01780510660898358 0.007937532283900376 0.0805635184375494 0.011869876398029463 0.086008366332688047 0.0058043216138172283 0.0066680691529428914 0.0081139744835716093 0.15395552706494794 0.0087982980121632925 0.22474715672272566 0.022993296014812661 0.14941832681519707 0.21373314754072797 0.004761887504333491 0.078107150979362272 0.71040577187228204 0.14146455961095522 0.0048279333628703999 0.0053869513464840819 0.0075150104114366711 0.005418072797279844 0.081460638108510675 0.014978944441346592 0.0034400606525873362 0.011578960145252955 0.31894007753601955 0.23689210871099028 0.06617248681506406 0.42166740129656377 0.66639882612292323 0.15818051781689585 0.032187919607282414 0.15122427054091803 0.0089189039820412874 0.0062985623844614286 0.011931565807119036 0.0060261393420733269 0.15727016854728612 0.085522675964266368 0.82640805585793564 0.15144210218809351 0.0034324995746022641 0.15641882872221796 0.013809781811335187 0.0034513045843922647 0.2149984095997417 0.0060069950312888918 0.075819597349693305 0.58064248129303075 0.069006536662080287 0.086290748257935479 0.62469501561144569 0.32084109881207235 0.080552146826270404 0.0086073659501740094 0.069433172213224648 0.15823782459192015 0.0083096936156300295 0.073016716555718647 0.0081421272275821032 0.087205705741674661 0.23089819494859415 0.15874145855109234 0.08924602233795019 0.058530594528469725 0.021711953123848562 0.078470600211192648 0.082629140739555074 0.021423651172522908 0.93020865574182021 0.14946917687812353 0.0055134886778732389 0.089134552979899001 0.081014784264888687 0.45315676936668337 0.08566994052515392 0.43797154842730035 0.22170340506486777 0.010514687833977427 0.077157290537572365 0.084327342756894269 0.0072959095378367705 0.013563073923409562 0.24596598441828924 0.011001871027761878 0.23194486800156927 0.16996483222247574 0.25018170467187911 0.080098695052439786 0.0095379888097052723 0.0057178264585130518 0.0096490591432545486 0.10937523638178882 0.40980780895153035 0.0057474407530266622 0.16664926458629858 0.010125771731703348 0.082051436184567741 0.006259530843710435 0.15345202742645347 0.0063511502951354914 0.66779949832060337 0.01496160466218739 0.0076824721339676244 0.079682000373391529 0.16736653624992995 0.092817941216048139 0.075220629211689413 0.0053594704365236799 0.005520815256094172 0.0089054553897684966 0.011308632434223795 0.4464665893838547 0.004425837804087852 0.013529923115064967 0.0063589637538397324 0.08372679941243838 0.23209138392271611 0.60588429635112329 0.29817362227065947 0.076300102752707877 0.19895041536380739 0.63801327260974017 0.090000969358009011 0.42660877011412845 0.16137506443030092 0.012168256017659581 0.10007096944560312 0.28956436896213222 0.0039884851092925507 0.0075131569547560112 0.08620626804976303 0.090861398504063259 0.14911515913428286 0.0050886559216794316 0.0096709124084775749 0.078148932150944247 0.1689302844055017 0.5928183363802817 0.16277922491703634 0.23114015013783787 0.084566783658527545 0.082789054422640715 0.012667575309542777 0.006847551592779561;0.0037034641427125588 0.0095619249723399753 0.0040510210243271437 0.0088506819432812751 0.25119749598906616 0.011125211472677896 0.006817472496142625 0.011673226314021158 0.61671456231997424 0.0027133805784746836 0.0044062830059225537 0.0070141952443173346 0.010805865861017692 0.0069491265676598496 0.0049786478248557212 0.010464967661219692 0.0054357948251895598 0.0024200992758885739 0.35236140550707673 0.95116763057047882 0.021924720886206575 0.0087194023418541815 0.99010482075041617 0.004646477054485551 0.012327891690531407 0.0043446469703672837 0.0051357314875111375 0.013646425173412491 0.15385785214026304 0.0023654856569379993 0.78685240910607424 0.4040045848302799 0.0047391999303081599 0.0019593054969175381 0.61133759907153351 0.0061417965376837427 0.008206647062434928 0.005500708106357716 0.0046721209978056108 0.0068567910319544297 0.3768778167886378 0.021477192512473434 0.41544553572316706 0.0025978678552434848 0.0073743624857203031 0.019163520458396279 0.98510114156255046 0.1980615259437643 0.81325049932891358 0.0099632404030925471 0.002783259711845734 0.013395762758511785 0.0030463380799251451 0.20844235927387506 0.0016342189687187246 0.977458900408396 0.0100037555032087 0.0093516151043639782 0.0048536497768696882 0.0084933156284776757 0.0078706517442936677 0.9593631173636773 0.0093538159503267198 0.018655096759541752 0.022739982644655116 0.11105081441667523 0.019452249078636543 0.405138789490193 0.023794512195649108 0.0035664678600392614 0.0079398211238893152 0.63267881558143357 0.019480559024700778 0.0042982407173784501 0.017910887388882427 0.011135711429790484 0.0030394612212871486 0.0032851805958635919 0.01201593432085123 0.0067879975771969192 0.47601122100431603 0.0077709976000697022 0.002716144197634125 0.0073532618228914345 0.010855532929523808 0.41141041914733367 0.61422582383696445 0.0084893431839053596 0.018052896013390232 0.0054882263262434313 0.014968230268512215 0.013094448082221296 0.020896480985283718 0.0020115883754381987 0.0033720769411167287 0.011267733396576309 0.9622510466648152 0.21528369628971022 0.40457646630791932 0.014673017905643871 0.78616694515250574 0.16363902421846246 0.92857020832963888 0.017479829375601146 0.96612116365464873 0.006702252922187334 0.011283668558885768 0.011328882811263097 0.0014611698862428302 0.0052338841311194489 0.0053330455385145669 0.40222782685177894 0.0055134986183623547 0.0068242717443172413 0.9462778349978388 0.97635334914892202 0.011121367661453437 0.011700161411033957 0.0029301301318011672 0.0034787228206071678 0.0045324203798232645 0.60220161685763185 0.40242689317535096 0.0021580709663829626 0.58287318068093941 0.0038686482529185014 0.0037858927216196259 0.0069940222695601354 0.010561601509020118 0.97736114723628975 0.0055703117039484287 0.0041588539327328646 0.19182456911390375 0.76067575247790575 0.0052893929795939081 0.0055849016969801261 0.0071434296089125443 0.15596633467779231 0.0080731784614006576 0.0021027488359469989 0.0082298701177168209 0.017204623892316147 0.20849800527554449 0.0041454782324318127 0.018643621289281813 0.0016953520312245885 0.023412867227070717 0.004217918588158189 0.0029443995397975646 0.94295451180063139 0.0034029662816748973 0.0068056585081778089 0.0041355720446258626 0.97915973094376474 0.0063467721521885366 0.023192940379260434 0.021819566987232489 0.44730908488449922 0.0084044392107289149 0.82609352504486677 0.015335072111514001 0.0042803252248454406 0.007550720991417203 0.0071372238048914571 0.0048785792850726869 0.0079451289261828033 0.95919059391129002 0.044849077340571322 0.0049012341020260308 0.0053894136450894116 0.0031452610845443137 0.0018035158035845549 0.0041805169951450085 0.0053843952467130737 0.20229464785731796 0.41156598526771826 0.0048347141918348427 0.002799310795900616 0.0014406718885326293 0.65594014361859398 0.05723532376533752 0.0031100514046925641 0.0076452949331433208 0.006772054505925231 0.0027513227313849024 0.41023538238842172 0.0051828579843411823 0.017192826450552475 0.53152880293021476 0.0032593675419905579 0.0090779872394018968 0.0069048427609022045 0.0049042246518594288 0.0044896905826195248 0.0084402120027008611 0.00079704642058308988 0.005434794500381564 0.0055763212769314365 0.050350981084718686 0.40137934627335747 0.20307967100351568 0.020938550618167295 0.0036106258034051568 0.89380555123598826 0.55800895482011093 0.78127323825878336 0.0034334191894909594 0.97050899108084188 0.0052651154877515708 0.022363556758736913 0.96812266672908798 0.0071725776510707584 0.011120115891610178 0.0042300262878592673 0.0075984718142260033 0.012102636012809514 0.77269633623320499 0.78652579609344953 0.0091208927327586578 0.0072504883946005296 0.0058333388287328241 0.97515027770826401 0.005150622096013825 0.40630320680582876 0.98843886151956961 0.011703203512874906 0.0037988078148971736 0.0014720954093006811 0.0074825117127613004 0.002064903896131291 0.006199306226524229 0.60497936696074861 0.0037271924989909899 0.59240419738498296 0.0093285173858457648 0.2142759693311713 0.39420718942226995 0.0072994903632059597 0.42428307421228029 0.98323937498145264 0.0052361494676847363 0.41172546252836878 0.0051072434782566054 0.80782405564571047 0.61902710804169903 0.0065434824657772984 0.092679360455935167 0.0037240633647128577 0.012346207801883701 0.0054056032227700196 0.020643302071896116 0.011580764539675733 0.39436600495204976 0.010826135328772465 0.010174071029467144 0.18079952836506888 0.0029771046962225301 0.0183081567573617 0.95954820349777348 0.0038230010911310111 0.0019905949284594569 0.0050516463344407814 0.0094550536508094512 0.0074513809392488892 0.78217706903363271 0.0014234145365914382 0.0065985132581685884 0.015245529917096327 0.0094477079466555626 0.0052594445444580336 0.99838232562178764 0.012897381226592751 0.0016856025789832156 0.0028482217832205381 0.021508482806366601 0.4053046768279247 0.035536006156920874 0.002818093733778742 0.0047374897599394639 0.0024328159838295114 0.0093719635788646945 0.0071805599767351281 0.016588641863986221 0.45210999428928467 0.97469844104337677 0.19934524657680486 0.0079188390293989594 0.0040748802836904265 0.0028720462089101093 0.0024923734480637892 0.0035785242717325961 0.0081259436167849339 0.16706251554872098 0.0024964182823724321 0.21000382226508038 0.0041498897923838325 0.0025740090826230533 0.0087810673959277837 0.014559913303828165 0.0037749285979126941 0.0091900212797948432 0.011854482141486296 0.011026916567564018 0.013450226897738213 0.38553536457171816 0.40022462390502633 0.016019005870388334 0.0046065106530899782 0.54115729916698296 0.0054096692545656522 0.0098505006339128683 0.94831185647790173 0.006654117985473296 0.0030528250326911149 0.015652093120661809 0.0022373456396546673 0.0097228829070901204 0.0097761816228532604 0.0057699726142635757 0.58650803396190043 0.0058232678847141509 0.0024867187987659325 0.0043924444943887154 0.0041081720251689574 0.0089097758218339221 0.008260556663239129 0.0026142433529344209 0.0058694703180410101 0.58596062943085381 0.0070686760282281432 0.011214636503123947 0.95618311631684272 0.0037484651649564802 0.0040159205997559091 0.020020145362241799 0.012673137176624123 0.0046863657913886105 0.035257409803293199 0.0032667722431840079 0.0057289851596528159 0.0067477542804821617 0.80412025192938064 0.014491874625060897 0.0071169447833872232 0.00644761541477457 0.96908616541480974 0.0084578184322163623 0.97126069474633425 0.090961269524370947 0.0051934055728639133 0.0054256274498679499 0.0094246539113257265 0.0051506609008404062 0.0041849530686657562 0.20789084905606506 0.0046625765462184341 0.0092283958922471047 0.0068084674300684656 0.0063276816543981224 0.003550861924381555 0.0052434202927174964 0.021786843098987867 0.0099489166701471586 0.034322707199260477 0.39872101309366492 0.17751043459625274 0.01824727817383881 0.011181806706547996 0.0047272577551500513 0.0041749188594500716 0.024893141092779486 0.021733149204694865 0.93427685931507432 0.9784769683990171 0.0055104311412729479 0.013841746374645006 0.0071075633395526385 0.021665668275067662 0.018318828082286298 0.0047025389276005702 0.45882352063811743 0.020986862781200172 0.003544337159007416 0.78565685442919353 0.008016293768444864 0.013266311823107739 0.60093412730882956 0.0021431671957216013 0.006893091818969725 0.76296351827071918 0.0075728290573827866 0.009297878207608995 0.96050575797205817 0.96388649878402732 0.016942325945466019 0.76832628770874911 0.018561822314069613 0.0040997783858596325 0.002026842069813517 0.0095500916639388346;0.010552160366732923 0.014563488182562187 0.026251434535089168 0.011538688221139754 0.020960372191765771 0.018456186125419251 0.26008031619403543 0.25080949071483233 0.16623176577774632 0.041416992506735507 0.015836186261878334 0.0082906910472460051 0.014394309052790578 0.036234087656517346 0.0086759812250714052 0.012269718099262365 0.13999041360247907 0.0087463597244802366 0.36570180383639439 0.20404674516170401 0.0096489782729359975 0.68020215222200209 0.12980527640917938 0.017061540089230474 0.27610038665379472 0.0086064336915974461 0.22582306521182216 0.0086059808535085287 0.019477105014516206 0.016210909167992841 0.013962797580213744 0.0055757377756894353 0.009643946135924706 0.01396074686275735 0.018741264919374563 0.34293212256691447 0.021461741314709109 0.013303122764627792 0.017750028511566238 0.7723838415752502 0.25461641085968095 0.022105054361839415 0.0073473284260778277 0.29745978850307109 0.010076815505054614 0.14525901132984304 0.013812211402814726 0.025564914034756463 0.82227603535633187 0.0069031930480076631 0.013950358723940877 0.010493239817501804 0.28920545897969557 0.0076055973193788319 0.015907483851480671 0.012466854104047 0.10576503777517098 0.14650466611699489 0.3990568581085876 0.0282513056625796 0.014014014246812208 0.009964997724421415 0.010969990817015544 0.39446634689810633 0.69630993901423899 0.034200187630894024 0.012930674692094975 0.0085001877534969725 0.12851761237944131 0.17302653728258602 0.89608005796122747 0.014872732470897262 0.0094203358075178618 0.0098913564424083049 0.01225532774519859 0.013601548726912495 0.022208187421320247 0.12985285984642125 0.3727034882112209 0.027653235497087134 0.22555686845931572 0.12860159603135571 0.14057465305487488 0.018142712501124158 0.03238573023147763 0.013589927035654766 0.0095251397510814073 0.0074414195645245594 0.029275306703263556 0.0094578708732403465 0.010984658601873993 0.012517077729177576 0.015446321353918343 0.019178265287281421 0.0067707698649706717 0.017944192218865361 0.0090134865835605794 0.3434130311370065 0.011040056461780304 0.013277381469209459 0.0072114751590976016 0.010786594902524134 0.2818038933123358 0.01003425316115019 0.0096199068801238914 0.0098704463097823453 0.011393284857954674 0.45071839445088985 0.011232894531415075 0.11931810825365911 0.0088057656641800496 0.14723627435778189 0.14017351087941302 0.016340715317358544 0.014875965557788874 0.0073448061611991293 0.021521726170067836 0.014216510607954431 0.019546985413383285 0.5867943020250207 0.015574962548566442 0.11312627392653674 0.32463271174775227 0.0096468863494318068 0.0093494658717318997 0.012611434168018505 0.050519116339329005 0.014186631148082586 0.018168996861272744 0.0067125325395382685 0.024554564686816209 0.012513527461738292 0.024079982668395044 0.47677264889888288 0.011439085303178265 0.007415173249820624 0.01172960890641753 0.01596274639025299 0.012970010817842883 0.016548159085923522 0.44738909711477903 0.097525720730221782 0.011751828625721453 0.016453276691555521 0.018762715247129316 0.12533732198840195 0.22212106508940854 0.13775894955778645 0.01260661840996647 0.019134055189774908 0.64170312319635125 0.010412694689350225 0.027009784406404641 0.010691812839722259 0.011441135255114537 0.014137888768889743 0.0089224018673434279 0.25081442218708722 0.034654708385337747 0.013183880933518103 0.013787544427429859 0.015374884163477692 0.028231981122108354 0.79092813230719061 0.029155491177562987 0.0096997281743474335 0.86401688627485684 0.05363239966969334 0.13881746253069679 0.0091062434931467196 0.01178373256004653 0.0088007391389373895 0.22166221664605845 0.010739284155691513 0.013478493929106862 0.12562403045968568 0.0066604335888972421 0.01406144876087102 0.0095739829876239253 0.0077280507196646423 0.12328256774098176 0.012818947133306634 0.0090378590295632135 0.019238193882883215 0.017198297024870735 0.0083945312606949919 0.18220915133805302 0.45454372853759367 0.47558020477851476 0.11699899727819439 0.3417203070572124 0.0066961347187103511 0.014474934222910119 0.0069594834599239598 0.023265045694797145 0.009753618699745668 0.013546986185152713 0.0087053022424088203 0.010312104350521104 0.00985483891566717 0.011843641027884657 0.19247941817453601 0.01485644778750218 0.0091532099840201178 0.010525413507538233 0.027749056123087232 0.2819711439530625 0.012116204219572621 0.01067127032155281 0.011734370576341628 0.14796725080843526 0.017991516022633994 0.0062981787755295275 0.012639717607638342 0.010939573188382803 0.02551582575735762 0.015422706475079399 0.0078165692264678191 0.93335404320675641 0.033796483320719439 0.0093466752306949914 0.33847850023761383 0.016457822731672161 0.011769642387299373 0.020803574822282796 0.016171626696476642 0.0055748092408093985 0.0076537007133576666 0.012582992727858159 0.11701669308147541 0.023307294149144935 0.01955086204392463 0.12702865663461446 0.019442372886470168 0.02592008669696818 0.022238214052988089 0.0067867873064166705 0.017604560755753201 0.010685545955090419 0.013501749729032009 0.012779352996478966 0.015024805342428024 0.011732519482833508 0.0074212343520500077 0.012979111561138498 0.11497468149408484 0.029243252429463358 0.011043184920884738 0.019325420168328816 0.011541211554025595 0.0091621485083047387 0.11077000681142447 0.011886514019502541 0.011429259059765344 0.011383376045092704 0.010610337797386739 0.0212239479532003 0.68622420219577407 0.02035786237165008 0.010591860830578876 0.12920240341875636 0.010340508881544737 0.027015246993259225 0.018084708104736547 0.0050277349236688956 0.0720077401602741 0.14065789878729465 0.0074120287636543257 0.020464905387309953 0.012111268297769472 0.0085179676972782642 0.013146633602605547 0.015828885541232577 0.01886682501718372 0.26761161590288851 0.0064080739441829421 0.0089307437330708971 0.015912981452103878 0.23746579424679212 0.46191261903612663 0.016479338638445806 0.0082865178105464374 0.67527252537227478 0.24465870959330321 0.019957631009216478 0.019582837868746622 0.3229088826535873 0.016833373027647026 0.015243368820771784 0.20217403775116791 0.0087039085568829527 0.29475274923372025 0.016556895310164289 0.0083620813339044201 0.010680973499747039 0.015845811741419923 0.13402660339027173 0.0097462105865556547 0.026841632347297802 0.010984481286527565 0.56795001936581291 0.016064623831990445 0.013053200498436671 0.010433976140595795 0.015117845790478555 0.0073862500042815469 0.013557593740029964 0.023241054620750663 0.010969450492119542 0.02107798277285754 0.007973957762075011 0.0096686944640535354 0.010984592696036532 0.010455949442580468 0.019916896164684166 0.043343470528669374 0.0073980097727378812 0.010527561635731753 0.016596366480758813 0.15206778757060205 0.90709181345131473 0.010863160469116402 0.010737021453976005 0.0082173788664642883 0.01154589121178219 0.020202433052296995 0.0095478667860892357 0.013276142230039813 0.0076644588997476365 0.0060109199151218463 0.022858302269370804 0.017683888559738205 0.013455695910915045 0.01050390874373432 0.009543941968668191 0.0098920007986932987 0.0081889612503783724 0.013656153864656698 0.014898298826798202 0.012116964863482776 0.016124429453065456 0.45007399204540371 0.01676625831887496 0.011720416911341973 0.11797408900621638 0.013901800410306508 0.0093111766676924109 0.0066086271568649175 0.009135688253471266 0.12894640344029365 0.013415798296119556 0.24704874798076282 0.011009230562650053 0.0096668863169051267 0.0042103558437839488 0.010166551828983083 0.14192712206229846 0.0090971742142650202 0.013982011772880986 0.10585167539481334 0.78113485848321085 0.039863765822257882 0.013958286502668851 0.3037324116254459 0.011695023033687472 0.01102146900717246 0.012336171821069036 0.035498648382566965 0.035278390821944998 0.020252596792818905 0.3549032924410459 0.049286894751217121 0.0060525226507462896 0.033206437022321372 0.44333703119505019 0.025066513118467491 0.01274402609755791 0.016191512470860574 0.10991250075413818 0.3113202297527593 0.0070031257886353721 0.016120344510813206 0.13141799418034028 0.31926943527880436 0.32100827446278041 0.016306209048503335 0.0051647478000844665 0.012208483221846473 0.010322580476925561 0.016047666264743004 0.016016804988240506 0.444712166837055 0.14192026531993024 0.0075529951649790008 0.32049041429744474 0.028071365531882796 0.020080354894158811 0.0049386272565150541 0.012428025383673011 0.0093937467146465083;0.0091371579337167445 0.0054361497340696171 0.015784264535231816 0.026246767949498886 0.023909390950793235 0.021991628479950384 0.016455823507916592 0.042979168423017522 0.0078173064999859723 0.0094927913005940345 0.0083707405235109167 0.0074115870944149367 0.01190247494277176 0.015884577664363908 0.0098772766894963705 0.016253847667833908 0.88266648502162037 0.0078497702869558435 0.045830268197377788 0.95266561305084252 0.0074553915011004775 0.02212276374660746 0.022081624793856246 0.015637395150210304 0.020011263118205752 0.010991738948359649 0.0071079506402810296 0.011389467000670917 0.019120329481082551 0.015018357461255596 0.011728978572627145 0.0072889385207547015 0.0073789384487341096 0.012422249789370622 0.011536531565763184 0.053075383601625836 0.021722989885611034 0.01631285038526337 0.011324584406544557 0.006334087145543902 0.040770604596932568 0.010304107802543899 0.0064380343252165894 0.015513205534570852 0.012658659347690013 0.92263804707940489 0.012755538761611944 0.82895161047109267 0.010823318597198792 0.0072266377475113854 0.010413910575429324 0.0092300194089549661 0.0096910032546134398 0.0099461023578683028 0.89866927878722991 0.020824717105026383 0.022686250449217127 0.020197128532562541 0.010994978859537366 0.019991335009140122 0.0064840373860586623 0.015143000791028045 0.013282367000114311 0.032611413269598349 0.49684946258200036 0.013208884356184619 0.011867677444473094 0.0081041451638040017 0.012439145469590107 0.025228604922051472 0.93655442808641898 0.027506389650035559 0.027844937540867712 0.012891903055274479 0.016330908677656419 0.012389392687496382 0.00889302639078976 0.0065856941514105885 0.011339731340085799 0.012541482467170243 0.0079246218573967714 0.015694374709657146 0.019204814256601949 0.011630205118666997 0.017996405572078877 0.0068487879090449733 0.023062772969710672 0.01141245989759301 0.023534437294670918 0.014825864735686135 0.00663352566899633 0.01464702737711469 0.0078701942619681733 0.014282028811052097 0.010605931917103038 0.04154704250985719 0.01565585707306651 0.90038522740422011 0.017137408220747663 0.010160200468527034 0.0091943723791457019 0.010925773118712262 0.020066589822149233 0.0097293831859480116 0.011380645753775712 0.015033092925485807 0.016728005388651979 0.010075573535865726 0.013901422394873769 0.015435065364938955 0.011259935520525658 0.92258781900654552 0.021090881089693966 0.010626885706728066 0.011024299604036209 0.0083241277770682437 0.01008941834785165 0.016587978812250229 0.020339669947191767 0.04925662458063039 0.013672825620888382 0.024420615408051998 0.020877134627504818 0.0048216705914055254 0.0082508680093001819 0.0067324533439611853 0.89541874368884133 0.011797546795831667 0.016957944171262854 0.0069375763047793537 0.0041449892253447905 0.016515976604238022 0.015177983809732119 0.051436412200613318 0.015720199222622629 0.013833223137238268 0.0093218995830244584 0.018683926402296887 0.017565404028013168 0.0092498711396029297 0.085598964916700979 0.0030195034609056468 0.020917789549221272 0.047887054776671767 0.012345840104665677 0.01556578891917537 0.86532480168817716 0.0091082214313347523 0.013659913202943484 0.006948417863071734 0.023166134632384875 0.016378267313535578 0.057597746922329857 0.0156549902401724 0.015464316256182341 0.025808736327383314 0.0040779485386375344 0.9451205191537877 0.017605613592727443 0.0078528588857140515 0.010313468527754381 0.017488389562998728 0.017402928885913358 0.022623557121686746 0.95263823514735302 0.018110032774458232 0.50204175889001856 0.010943457894865524 0.7827730619383757 0.01315048368481548 0.0097018830981635031 0.0089474168190822601 0.0076941676862364253 0.024224903317706568 0.0076106427265235591 0.14273100147709705 0.0053281242378611683 0.019010168201848584 0.01605232322540099 0.0016859565993032457 0.038774764085291881 0.0064464675313562229 0.013046908146351677 0.83587738191803918 0.014949429573258869 0.011689241693337824 0.0066578844999195218 0.0069678557987812167 0.030805275375339281 0.024666196971397998 0.031613710350765989 0.0035022713999285204 0.0087703129696190957 0.007774633457355698 0.0082034339838398286 0.0064609395040202723 0.013089417339487252 0.021387024159486831 0.013592901556410367 0.60228274773088708 0.012325134480791436 0.009896313919052796 0.021644408898285783 0.0081526962367612175 0.0080000855496691527 0.013151814739276246 0.70442037778122024 0.011041941246117955 0.014227901716490146 0.010338050970047429 0.80925369108716505 0.026443423733471541 0.039671162303304752 0.0083884338177629657 0.011848234196940971 0.01735371673214009 0.02922433019173103 0.074901929648662643 0.39002958662500786 0.011226195734913395 0.015808626411656417 0.012341787626805673 0.013411824582989864 0.01136462268868082 0.009621028571725726 0.88993213799555193 0.0059255140684401908 0.013765529368060036 0.015991943655065573 0.019919540430807407 0.011042627667315792 0.11214508159513528 0.032483808016593028 0.016073426950797307 0.96101137301015416 0.0057945008912098622 0.005567602395374383 0.018083165953183558 0.0085064407819716303 0.0034406430553627467 0.010922452754729414 0.010877026389015323 0.80232933357452008 0.0048238998622744233 0.01137145292628924 0.013390186413618867 0.010046354544287461 0.021016918644395005 0.0099141392219684651 0.020530130958614917 0.0076878390506813317 0.0116789671624641 0.0081284378021738261 0.015809697888463099 0.017655256402632075 0.011749269037748138 0.83354050703256455 0.012410109435315547 0.008818650118009648 0.010327427407926013 0.015754016734721245 0.012013161936903577 0.0063921707219087021 0.011541648182896 0.013938918352931033 0.0072911182713386842 0.016224521747429353 0.0090529333899606185 0.03888371795434279 0.012441839690597277 0.02431826876509471 0.0065573183934130412 0.015646373592760741 0.028876082649165354 0.067327334126670857 0.0054484040117972737 0.0082332598979689593 0.010971214263232418 0.029714398445923121 0.11733590592736834 0.016592277604197136 0.055601927175482291 0.050604871643079641 0.006079597004086619 0.020149219850559758 0.022487704880963934 0.07598990841719927 0.015457568779517592 0.8687678837677415 0.11287673432823983 0.0091074538422554821 0.91324201575061636 0.017499755119891301 0.0049106008099716256 0.0076979562108411975 0.015455705303285598 0.036373892420765185 0.014075672282672945 0.010360407902743885 0.019577347502697302 0.017220015062753259 0.025265090187077566 0.01407232569026419 0.0096937517845956458 0.0091107767019709546 0.013206124277252096 0.015261697473627864 0.018293015276690791 0.0072897113990054684 0.90628548373696272 0.0051543399259779106 0.008386176171146181 0.81596674728994534 0.010988920224527871 0.015974502701552207 0.016983134200200221 0.017209572031344579 0.012018634357224261 0.8587692689457227 0.92843753292482978 0.018042416845872919 0.014647089774228191 0.011456023369196818 0.010246460254640504 0.0061168565008611238 0.0064866127231260028 0.010053448373004238 0.034938556325630053 0.0081042099644990304 0.0078555329686420053 0.018517590253918866 0.012916652021844752 0.013676717865179719 0.0073715662175020298 0.0169868870461015 0.015083218321998115 0.0087490345426789115 0.014725161998967746 0.014510212332740916 0.01037931037998815 0.0090159088520373239 0.72942938115654687 0.013013110483669363 0.42006989433704994 0.02182065309617048 0.0092727096575902085 0.012813279593061271 0.010047498458727461 0.0075942832986127078 0.81542121824236813 0.016240286589820109 0.0079226656719709951 0.016546357885140667 0.33010927082515329 0.0086966453729693007 0.010182556415717147 0.020324213239019354 0.010607318273867588 0.85282476999144052 0.071600807165846284 0.013896565981644925 0.0156194418840549 0.018539538729514284 0.96942964855707237 0.014007273348732297 0.0076619510973320887 0.015212896808618528 0.017302627818256054 0.021494790263264042 0.019090837870416735 0.097599669418030999 0.070686066069576503 0.011326428132425844 0.0062387429993284197 0.045484769673098675 0.018542203905557067 0.0099072436078018085 0.010705011663515071 0.90234686157521937 0.045808128915133257 0.0061368107834962951 0.015780191964602206 0.027929993660831237 0.065579118374258644 0.054269014089360135 0.0113649006355567 0.0066046407828451708 0.015277488549605905 0.011224580611251554 0.033346852217620016 0.022525648707923812 0.33321432856229438 0.033205880320860123 0.0090559612239090245 0.0073809068487616578 0.039271578990833514 0.009514940412289034 0.0059522133447115367 0.017103471845029996 0.010707918927631992;0.11714774659207065 0.032550815837510148 0.23186772697859248 0.003116237276365359 0.64152441617704259 0.12866077612561003 0.0028672594002577966 0.23143361509364341 0.65094488666942685 0.0032766769456702392 0.0020265199031826793 0.12167774077387172 0.0037402696127434129 0.0012637050474914515 0.0023957475777037817 0.0024651768029622942 0.0018442072440508991 0.0035572173645672931 0.0046718198909645415 0.0061792795030769605 0.11623032242966226 0.0034909324251386721 0.0060484520416888184 0.00259968792765258 0.018175680873584236 0.0050343355322195454 0.90216758735623404 0.00334122082725242 0.0032904197547658875 0.0016964995628748702 0.0024175875237234194 0.0044426552768642982 0.0016977271103510445 0.0025680130385532462 0.0056327515714856956 0.015774227833955323 0.0017782031950913108 0.0062339396354726892 0.0033201467354045536 0.12000721445559709 0.21771091630776357 0.0074486212133631968 0.01441046629863723 0.78367658684047004 0.0043287421320260776 0.24128451847463017 0.020442488629900561 0.14261736410006823 0.86067116260574994 0.0021300614535127169 0.22810476187506212 0.003412841446290556 0.1274753843682867 0.23667242794130944 0.0039680946734585824 0.0039726252753877781 0.0035842260381549135 0.0032689205875760323 0.11775657907968007 0.11125818563106912 0.0021189577719369964 0.0075516375395081204 0.0024486286416153785 0.76250669620429512 0.34423544842828091 0.013368222056515175 0.003206520769163012 0.0061669570832046088 0.0026397966832111194 0.0041642308388785878 0.31594864906827874 0.21978537817716762 0.0021200044962465959 0.0028091796291689866 0.11311292794273194 0.0062774562467666521 0.76059334893216124 0.0022021745729910538 0.11473826109563075 0.0038167663700251174 0.55816592775380081 0.53846990065615241 0.98548707547523184 0.0020730920434288867 0.0031624151716238775 0.0032880310159681576 0.98008715105580546 0.0013625655952846792 0.11978650479181036 0.00567778606820227 0.30040807695054877 0.11442769586281364 0.0019154479605314259 0.0040879102683572368 0.0027049641937298531 0.0061056468864612553 0.0018378007145956456 0.99011693951043145 0.0033655582021743314 0.10736588931821966 0.0039221631659174623 0.0020564794527988656 0.0070571987825444396 0.0033405247507836164 0.0028753666128312552 0.002996838011395898 0.0023455204526907341 0.0020913715815028028 0.11645268090326116 0.0038393920937019477 0.0033800201268663738 0.23254907871868774 0.0066639419604987175 0.23048517440036048 0.0032184908986336589 0.0028516058766035988 0.0040303415364425325 0.0024704540684252216 0.98459753284065243 0.571138643053693 0.019772277681193322 0.9845988122374173 0.012619980376216021 0.77305212289037728 0.99370051569354723 0.0057024559341768404 0.23424269617172158 0.001564324787796249 0.003033296537791861 0.006542055634175984 0.11441902690915776 0.0024447599560527135 0.011068077903006042 0.0063470135835618805 0.0029287260254623757 0.002145214733187688 0.0023743524632285442 0.0017899322661207244 0.0031039725122735447 0.77240674043520963 0.25210399937514372 0.11993107547010834 0.010975033275797515 0.77273316327508335 0.0058433676272563939 0.0029084571933722944 0.76962033479355263 0.78852233503982172 0.0029449811884104107 0.0030310608086949837 0.12037743812516259 0.0046645961653999151 0.0081111621384253648 0.019187839045113803 0.11526780725599362 0.11519684423983674 0.22924496465556748 0.003769415216301559 0.11361091795745192 0.012436118719030474 0.038041712272336263 0.002847780946380234 0.0018049502718279146 0.11745743958069223 0.12796457279813034 0.0035149186236184643 0.33496338178604185 0.0015690421046248449 0.34452726255948801 0.0026581663194182137 0.0016950810888658168 0.0022490623265973698 0.11595219459500168 0.23669275990111904 0.0034159657912209243 0.84949748483502563 0.001788041787844702 0.0041003904002896484 0.0029335073395494356 0.91102001232778285 0.9718344143476324 0.0030559615922374304 0.0022287581016548932 0.73804303946916128 0.0023213743827281853 0.005392206290755471 0.22062724755009377 0.0031260791569961413 0.34071194139573735 0.0037144223494486621 0.016692378750291184 0.65469595252338419 0.002460909601459455 0.0018330136090699306 0.0094734451954437849 0.001225511902748758 0.0031057600180168731 0.031490207470235863 0.69476054434252421 0.0053966592478991871 0.0034773149326212723 0.11370279373507246 0.0021672145488808203 0.14241420625042378 0.67167127979737917 0.99101363418136224 0.32946316532970787 0.002643814596019109 0.15135789827144816 0.0017770758578820704 0.79708637968696283 0.0022601315175308678 0.9891710396322585 0.0022267843234855733 0.0068928669615150821 0.014294188849608458 0.65208065178469932 0.57231097831592836 0.33026815690114864 0.0042014352188257196 0.1272116417201207 0.0095433225631798378 0.0050237255544701535 0.21077508444966733 0.11683406759708814 0.0015556707899138243 0.0029153847905913806 0.0027598896199361373 0.55216240326010235 0.0023748144644573982 0.031943045885518294 0.0051531539684373205 0.0032359269099700347 0.98511400135070992 0.041293087205726747 0.0063857149995475027 0.0057575705485109693 0.0037019435870387788 0.0028591033855385412 0.77067148615100312 0.0026972401556268348 0.0023269086990060439 0.0030009007919727048 0.99707121771350316 0.0027179140271852459 0.0042050920496148319 0.002487325653114234 0.0023426460643833818 0.0053866964525819405 0.11332679703140197 0.0029036062087251222 0.0029985049815921005 0.77443461103671429 0.75778191745532752 0.015187695292762204 0.007049260371669328 0.014372646852753213 0.0020934135668490882 0.0052064172594068047 0.003026796340614321 0.11390322022188043 0.0058093989998048703 0.0031351447695753677 0.32951966744555566 0.99577707343569699 0.001411655752281229 0.0035159413872727007 0.0028737848228952631 0.11757548983691204 0.12707354896204326 0.9690029861185232 0.0029529194479002516 0.78497465149738166 0.11573199764990985 0.34477061696440819 0.0097095097522297263 0.0045807102181688953 0.0026374144290053836 0.027990966016139596 0.016249658083458313 0.0045079343983303946 0.46274014048744155 0.24526352547370081 0.97364370708305903 0.0056657441750135856 0.0022874248532063564 0.006077278453096328 0.0036276044842707298 0.0030816880438472379 0.022589670481285795 0.0033414315078381454 0.98518079407159109 0.016823728987674164 0.0054253661985701647 0.0036995682344139772 0.0025538514777024295 0.66467057703133903 0.790638112510613 0.0030243507897914899 0.7750479934317227 0.7874388598024602 0.1211277741521633 0.0046884909077322514 0.0013056228719632529 0.0031614941367257557 0.0037986311231741673 0.0030626146269719379 0.0026032224032754001 0.0077417220665528686 0.003737575101325513 0.33763320272067804 0.11292692824625826 0.098715712477367393 0.0034334351794868649 0.11801355053806006 0.0025645674524463376 0.0035449344713920495 0.0021269936118981118 0.86478302668215212 0.22814024222007964 0.54824694871551372 0.0022156272872604103 0.0024096997246582739 0.0023012804655761329 0.0013513123148572307 0.12852671231065324 0.0011181380861305938 0.0056286194247826575 0.87532809854692928 0.0023342949909993197 0.0026514611415540609 0.0048779172199024199 0.90397941363570689 0.0027923119277766771 0.0037607405756543027 0.0015164950348809485 0.003286263882637848 0.85567092861531147 0.0031982711693719097 0.003607456506539871 0.55019071850635659 0.24401875857826277 0.0025687461592115422 0.0019692441754717558 0.003420593262652448 0.0041035526856218005 0.0082275975545966166 0.0043756016022408273 0.002659518995895832 0.11584435103350524 0.0053628420218647934 0.0044192990600552557 0.0027744064287298881 0.34302499496941291 0.22487990980862038 0.0035979477584376801 0.0042339281282573393 0.0046590577129842995 0.013232285959682261 0.013963841383945536 0.23114751619400145 0.0033113291821471602 0.0052193327849571012 0.6795027569610721 0.0064656616409826118 0.12746489545023923 0.0018064938993958717 0.0022592769655914169 0.33631624091494311 0.11012864303629188 0.97958550526456223 0.019866165480233053 0.0060586737991983894 0.0035934580756681223 0.22766101060550137 0.0017526653324925778 0.0031332172643745611 0.11674868504430082 0.79762701621909837 0.23738328742696246 0.0065010339987925424 0.002522693288949432 0.13385906039162571 0.0036697225625589346 0.3387129303898761 0.54417815806941428 0.99644180761594148 0.0034705243902833664 0.0062947738782750205 0.002677311538098769 0.0032342255134246815 0.77451266524169005 0.0047511049467748052 0.095618714312666109 0.88698615828691163 0.0027571902182935682 0.0037148970390456643 0.89335130726450807 0.0039141023172912107 0.0016938078767376994;0.010915677549273788 0.25297576724380416 0.012134350346947258 0.071091999194577593 0.69423947183638668 0.18303556006771982 0.32811163378713909 0.070586776175665833 0.077125058295745549 0.088115757343907475 0.0073039718474533707 0.0046927829775547589 0.01318420802062014 0.57123941556453905 0.067262936418027136 0.12998232463552972 0.243074515167781 0.55200709552881844 0.13359436983482403 0.12767762554870912 0.0057277985577365229 0.006788611586338914 0.0076676528423285095 0.19751931075089746 0.26492500307319566 0.068592402459396851 0.066476991184089979 0.61110059524925786 0.43567306283159635 0.012619791021468624 0.66974694605506857 0.0085793119696999254 0.29342526514226713 0.077690902706348181 0.49084665627426144 0.010606070416369283 0.049429433158436446 0.062104500326641228 0.0067620908348689987 0.13527238909860412 0.11739898858436501 0.30774960441275212 0.24916160185360026 0.0070595946113524988 0.56439633375774534 0.13379251277788268 0.00560714657070676 0.064669447464084484 0.0082116182093832715 0.077676116759914052 0.0095220328157083825 0.18709043266329539 0.14012118549182009 0.066859751053477301 0.13193502553664774 0.40644592367348431 0.13502612579077578 0.0063043190459874726 0.067489802237014215 0.0029650273695859004 0.0058204781185509265 0.0045137622008059944 0.015548414676990786 0.19582421174553294 0.29572254034656731 0.13121757742618306 0.006702234285000175 0.32644372268712213 0.18476351724803741 0.50586837775095239 0.18913622485014142 0.17855814365441447 0.064286032258702136 0.069958612657486777 0.61390407999643071 0.25827378395581158 0.25152130705952058 0.063359753252693607 0.065471978852480794 0.0040036733051484058 0.013915458421017823 0.008761160025049855 0.80399750608379206 0.0048241884287026134 0.65984551332492969 0.66053604939223742 0.33016163481929706 0.0069365160636032739 0.64055504334106406 0.12461487275355791 0.002363341408538059 0.58562862236813007 0.2509900115295769 0.0037405271822612777 0.4269618239783225 0.0070109027550598656 0.07087174113769798 0.005065756817198599 0.5161180155978643 0.048446790252069646 0.081604871119028463 0.010632930383717213 0.61700694144832169 0.50336346722154723 0.11815595974709561 0.066759612882871619 0.003895942346820256 0.48120301517261144 0.20704122517561446 0.13514482881704692 0.13006171911416692 0.29863272544915176 0.082948759467427885 0.0049603021132554569 0.0059452963551292239 0.0046419559300648512 0.0040495646379726455 0.12493923933777877 0.29394789181625303 0.0086118676900348527 0.12381804448924502 0.017396250860827266 0.35925619785669016 0.0031249298917516615 0.37341842225880184 0.24538374107246289 0.32640370713549099 0.0068811812553686083 0.13352302851340286 0.0026618811055365496 0.0028509191662418401 0.3692285867338792 0.61036105730352741 0.064885940717656174 0.01038225215342219 0.71324465891287048 0.37836630908375823 0.20284362901985853 0.073547005450154121 0.08974219174232731 0.06144755173780346 0.006532421656131833 0.0082352138032857972 0.0099445329958261428 0.37762003739163835 0.12811159054036503 0.0061487510227222729 0.5086464020887973 0.13278601432705744 0.47815317790749856 0.1305771033454857 0.072401945589611327 0.0048251298628852581 0.0053289888389263171 0.066769195191561118 0.068062151186132736 0.07187890314476858 0.31329752671490441 0.36041410206263447 0.0089927764447329528 0.36276931272107077 0.068223236787848501 0.19538424882634092 0.071982033816317292 0.12285457040168697 0.019465297080522265 0.07182216668899441 0.0088176622852845152 0.0043859225671166718 0.58328271246504992 0.068606213279142722 0.0064706708184034799 0.0071334097805924087 0.0073849994556169449 0.69093182972678868 0.13096031941373631 0.0039614612057886044 0.11885735711064192 0.004150538302150634 0.061495178902175152 0.073827534841033216 0.0046032522748177158 0.0094615649640452451 0.0062241548301773548 0.48651450650844508 0.42652014387450932 0.11812121986103331 0.20213690734816467 0.12449536866933381 0.070942059162584031 0.07473219074519788 0.0028217716296108711 0.068433410566787686 0.12399187700211239 0.0053748554731688292 0.37376613140073528 0.18394130645039961 0.0080837447748980749 0.0032221122379437854 0.13595673391858287 0.0044550010026870651 0.071976311621760866 0.06631091342110311 0.86707596410115628 0.13013290540732164 0.0035336502849721584 0.18827357681267104 0.0043445541872835069 0.0049876131176303977 0.13428484925423262 0.065859242272314794 0.0058740136530424742 0.0029183446532617899 0.073490157670034015 0.068441827203489181 0.56016440439464366 0.55086043327532674 0.0091597382434859837 0.86625475865901835 0.0089700102105256183 0.0034067784151836991 0.079428100258227524 0.082202420973910229 0.32093181928146053 0.0051259340343501958 0.60006730865213342 0.0038851507487436998 0.15092425540841314 0.0066764939418144202 0.0063784008325783563 0.0049475581149550129 0.44741217419208268 0.067293075854093914 0.31632826932281316 0.18760343908169591 0.0075012677082804992 0.098732153891202601 0.011592365168191636 0.40790403402113418 0.0042274631836813148 0.12811246759476289 0.60434858743533004 0.069113428636744315 0.0048128702484903224 0.23951482058133017 0.4333749864282912 0.072199264828314055 0.25822991393505068 0.1920966439036999 0.1303297132287155 0.34717694677067162 0.67913379211364733 0.087859719584754276 0.23786521386396919 0.1829455410336541 0.0052111070358227497 0.32364880690115766 0.25031974572625765 0.17278474831959834 0.058817828777393916 0.059470444437414352 0.43972186975745725 0.004855952401260355 0.13219326063357206 0.065861341201514129 0.25753052295999679 0.12539744108440931 0.074665602042676485 0.0041769939503458605 0.42871653750799976 0.010119844816855073 0.068740221453876107 0.3108697688107751 0.19041702364600893 0.0052426793923367118 0.13106405385974645 0.071121532660286563 0.073714959849566261 0.072954940002081359 0.0046394367464612125 0.06682227128950595 0.0061430472701306206 0.12510062184537724 0.13058150096389604 0.062068657764900607 0.62122309949646681 0.5424478918354656 0.011266577771306456 0.70133662272785047 0.19123825269345751 0.29903370445464478 0.073302219800827059 0.13979222686506615 0.35471295461886965 0.076589996679603006 0.05685332336984962 0.53952378370068299 0.0095345871476418265 0.0088040656747145601 0.0033114574501222393 0.42961564585399348 0.19505942843006541 0.003932850063058521 0.0039913934976746552 0.80418675356791458 0.072755597179413906 0.0063848634383414024 0.43098041448437052 0.73811967522194533 0.0056526177785002308 0.068207029285585405 0.23804989943053159 0.0038040573752327542 0.12851566111368515 0.89633177370815476 0.20845766113425973 0.5445091895273475 0.12394593441806645 0.0070638534684791809 0.0097312696600664033 0.53161895488600086 0.010742131555683321 0.0022024680395348354 0.13942364726673417 0.0092916185821859225 0.18082993972005304 0.016211273274704539 0.13101390527870588 0.064641390725264716 0.066754619514535582 0.066135507959798681 0.0090863020394887917 0.0058399219438041395 0.0049600136104335189 0.38033719969371838 0.016587530645024766 0.30367647849570051 0.015777453723049124 0.0052494536945751329 0.19623103298269517 0.12574881574767632 0.0052077565111270001 0.24087352595721342 0.0029407508845887788 0.065705838834180075 0.0071747752289616357 0.1240854814386409 0.68482167313733688 0.24094924330873069 0.0031911620760490126 0.065740246215939477 0.1889516388988286 0.1473118783894774 0.06433192917612704 0.067465609387562284 0.0041681704137978611 0.18456434921501708 0.067613428088199964 0.38434089628752666 0.0037396850215657427 0.24461880560600083 0.74837293669357563 0.0081114867471461863 0.0096351512037433206 0.68133782006014987 0.006404366230959576 0.073373748692327184 0.41497498139942635 0.004811558235438813 0.62433111216134962 0.0047098784294738183 0.11708536526077086 0.54416780313221913 0.012970645545215868 0.49458881122880477 0.012296499566833548 0.007236255316705264 0.010839256154574012 0.066337275714599284 0.061079610711067246 0.36281305173887679 0.0090395816177366792 0.010911237601525001 0.18979543663263587 0.44955972538120387 0.36930955488680711 0.010306951803802856 0.13181901117823458 0.0069311195970924878 0.030694556889179925 0.35504393120084177 0.0042747670380329358 0.067373701392388519 0.00653277601858121 0.00504371139969601 0.26140646485348984 0.42255811153502121 0.002741828445507747 0.12280986753701192 0.47929266426288364;0.49869400715235818 0.997951150382691 0.0013749006312176373 0.0034499322405960892 0.011924386072965684 0.0050895254443187104 0.54318789000911827 0.74351153938280123 0.010569748280863194 0.00095449722954018808 0.49872734023397425 0.0017968175320523293 0.76414182306207767 0.0030365489918056203 0.0047060315144363029 0.0039549126726252026 0.99022291813587793 0.0018794303882727862 0.50024431031285976 0.0013475179862154278 0.49655512606707597 0.0020894936905358468 0.0026679861947670721 0.017850330969703766 0.00049354646826933475 0.0031635246340782626 0.0029248767311408322 0.50155244694328593 0.25992895041239461 0.0008985981463702264 0.0056967514792883494 0.99766091475676522 0.6345057015499993 0.0092185149487165278 0.011998155706532357 0.0027839826539697099 0.0033333175699004213 0.0032819354930667399 0.0014703094033863464 0.95313466106014444 0.0065675796577812995 0.00059965251470056537 0.0013948008189526477 0.49136379190009333 0.49282842226104834 0.010904735698461211 0.012345889080376897 0.0020043294229453723 0.00049360012415848077 0.0010560291298929454 0.0026526364040287201 0.0042920866248440251 0.0039480801224626265 0.7368040087232115 0.25190851157980193 0.00056517818249558207 0.99056607973360045 0.002969458966314262 0.00098992029394863804 0.0052178853936323075 0.0021664286421497524 0.25809571580347379 0.00074668222658972792 0.99406815960503359 0.0076134753179716219 0.00098513489929770242 0.4984106648167177 0.51489332928952147 0.2613537844776947 0.0052069342932723577 0.01212533873845012 0.0069443676779811165 0.018049817949295752 0.49844535740890572 0.97538472744010951 0.27514642572539988 0.00172984869098759 0.0012307193553296786 0.0047428767068124359 0.75897940719342771 0.0025224565749704018 0.98183618623157187 0.50239319613867883 0.015779193703601507 0.0030427594218087389 0.50988770495305247 0.74589958017831015 0.0021664747731467882 0.020958313353703462 0.0024011141819665401 0.0021322442514016661 0.01937984152992453 0.51367108744407142 0.25813298954940173 0.7252232164285134 0.51777901199778498 0.0030418467570639948 0.48959781338094127 0.034622337487135058 0.0088095917220380043 0.00048042266826285634 0.0012577109750924913 0.74876697035031525 0.0010416359360599608 0.25428831609863206 0.0018357724558984796 0.025522828755702255 0.0014571015319497903 0.50813926182537417 0.0014480482746488214 0.50555016882613513 0.010356027951951905 0.99449738792439124 0.0021413559082147401 0.021909752313523642 0.49967609353699083 0.0016702799121187447 0.0039266094713783081 0.99287658663435585 0.0015299228256085407 0.0031152285503425192 0.75404587230805276 0.0019068050792112933 0.24867304304425078 0.0007386852104155333 0.0047462919179119302 0.74301543837929263 0.0015329333589762925 0.49624260109256374 0.0041674460838418172 0.0021499734482471632 0.0042785539893310989 0.0053296493436718684 0.0015521351575470957 0.004704199569344922 0.49486311360420238 0.27889657009290142 0.02165721744841223 0.0021366680010186517 0.75855249009864689 0.003201167913634275 0.0046809896290099457 0.50911655025937375 0.0039422089751762427 0.75371310496325306 0.013808307676807477 0.0048995696040409504 0.77128113821628719 0.0030560936090704991 0.024873641873453589 0.49687319791016787 0.74012575577042616 0.0030146820708492061 0.50291628948092493 0.00091592095481519747 0.0053383794575343341 0.24651009904744223 0.010336548097929886 0.0013651195939919489 0.0034675594747615233 0.77186703306903792 0.001921312996559882 0.0030294487446917862 0.016218395629119937 0.0027730774659349292 0.0033977967100805679 0.00075189247994880692 0.0018253558621145725 0.0014740673327980802 0.49653594853992783 0.24226771405887332 0.00052142391588682257 0.0039915183199652014 0.0041735009214428137 0.0077547628530695162 0.98729943718645208 0.25873571068334994 0.00058216302168765332 0.002409108468664707 0.24822046667794165 0.0030543800290401147 0.0017195465537862534 0.0062713210260614497 0.0051382598689505505 0.25226208770981245 0.50111658370540135 0.0010296892831680362 0.0047053828200919945 0.0022448245061098089 0.002560077614607803 0.0046710856554444532 0.48281218741973803 0.0015380447022952683 0.0063682638461246017 0.0012054594827742133 0.51900950166822246 0.98509975780451109 0.0021763100117504234 0.0022711195524330804 0.0045554253440952507 0.0038975216497688266 0.0014796682817138993 0.0045066107937205193 0.99863935678278248 0.48983751769225081 0.0033782732461092478 0.0041106379354581835 0.0010863576355036263 0.006197164826903202 0.0014590358280736797 0.0023344142428721884 0.0012240531874173721 0.74473931643688174 0.0062998530514752227 0.01745844025243215 0.0010583217608910621 0.0051379213067487758 0.50661500364626855 0.030323886518895143 0.0012389972713434038 0.0024176683346765621 0.49911818693054349 0.99374861271387294 0.00085472767420892231 0.0093804902578834455 0.99573556131081098 0.2576035203392158 0.51364872467114986 0.9936495834768202 0.005681975591019725 0.49986445601171242 0.0035925877944595506 0.0010171638941452053 0.49299290840375021 0.74502687086284691 0.0076570451601456965 0.51129771435672866 0.0016222873051965068 0.0046262007696430702 0.0046947674681200608 0.0036342622173011685 0.0044945405689471836 0.010415962417351921 0.010319705000595265 0.0024546350959861914 0.0012486399478205106 0.0023323028955223963 0.0011047617446995157 0.018594680713800521 0.002543338563779223 0.013523564346010552 0.0037868325700290868 0.012648511984796778 0.0047002784565944693 0.0042651652651947945 0.0028424786305827864 0.98413087164881441 0.25230650964381673 0.0060154870634593271 0.0010796433314344462 0.020161392784092264 0.012654608179361551 0.002796871921834026 0.0012032731266079736 0.74713076973527381 0.0021898860689321406 0.0013136781040987214 0.98710571472159314 0.5049917678175555 0.7331381694206236 0.030449825467563252 0.0042601045290376087 0.74257377285957027 0.0048028849409923503 0.49531441157996497 0.0059875316642552905 0.98205739566241246 0.26715770462388988 0.0013646288355033101 0.24948670121913463 0.00065914773452611388 0.0053449214440271734 0.0046438791416521536 0.0013053251695943641 0.24685596689396092 0.99394902851541012 0.48827934159673392 0.0013782598687267513 0.05461869974231081 0.0030035198874981597 0.0034874778887518344 0.0054063627231621721 0.99520082866406856 0.80044825854005808 0.0036067121393366596 0.46582415572732866 0.0013998759112992787 0.50913304990211894 0.52229422717585683 0.0032460706225422987 0.0093064674957458789 0.98788342745567337 0.00091536595920728068 0.98620098772049991 0.0018526533411420902 0.9935902260194962 0.28518623515665353 0.47139408348742468 0.24844568127306754 0.0015835166914441676 0.0023268738421601972 0.25727093273568985 0.0033580148427319913 0.0016132293861048823 0.015029992528031874 0.0029520472951830856 0.51683325901483379 0.0016314446709921975 0.9938765032767487 0.0039397930764400188 0.73935597789838525 0.51038875123237726 0.00098360363409127557 0.021473466202633063 0.99460825849516865 0.0082116856375928221 0.24258058400838253 0.0018764477495023823 0.24968128066241427 0.26559383727924391 0.014878796401251016 0.00099120973488652777 0.24977824296272313 0.49387878474105207 0.26294151840291768 0.99677254445802066 0.0018291346627011362 0.0043474393875765132 0.26391844574644269 0.01563598380648093 0.0011105515389465016 0.25745570860178885 0.0048993793599802962 0.0039316230673330224 0.0017145437274249142 0.0015702391483955835 0.27043981767128128 0.002160227244777848 0.99759982864352548 0.00063512806034930476 0.00093990069213225529 0.98906699557568778 0.49645857723264281 0.740112179429952 0.74339582697262752 0.0027250299399466508 0.50818179177768807 0.98613117472908063 0.020314449017622218 0.0028022146337456331 0.005350045480815524 0.0026674611087623987 0.49063627494445894 0.0020847281764788186 0.49115131944834467 0.0016945168552102605 0.0016798301918195375 0.00831004802531503 0.0015630512904120934 0.010913521693693643 0.0016089721859551683 0.0011433381604392648 0.72821314428645034 0.0028692001495794284 0.24740957887223683 0.99054885445919472 0.0048214967589752479 0.011676754602324761 0.0060820979363010539 0.26286095907553492 0.4991573121904252 0.00092444786085449924 0.9806001060588958 0.0020149805899805579 0.0031842804037724212 0.26174080309505071 0.75067790405808488 0.75905154106334372 0.7452140338946549 0.0023185553348419158 0.0022597501709824535 0.0017992500462249003 0.0041879348450589446 0.002000475371384557 0.74677549471331162 0.50697007615805878 0.74106792882482797 0.25586814548863662 0.029324667423652397 0.26004971780130398;0.97815766775692747 0.0061093914108163927 0.58374310341260216 0.0033455592862579905 0.10516454371065467 0.0079144451890817077 0.50008282157956518 0.0024860218698267585 0.32097964811119162 0.31565909806494236 0.024612290587289282 0.68769913553363748 0.0025216075111794524 0.35960979228680967 0.21228099753740259 0.20087703479320002 0.10337676438642414 0.10390493500139501 0.01723025447909508 0.0060679535962276949 0.0035813376516556483 0.32725662164778996 0.0084722009664287903 0.50834595344695055 0.0071182670934102597 0.0012953312713626837 0.10216177280660514 0.19499892217764203 0.21080762176565207 0.10238792666496351 0.79835871785809243 0.61019640057685121 0.0040461916036584047 0.38620964551421544 0.56547437758740071 0.68487745718767767 0.57295695794632151 0.20310493404326338 0.39866713020679562 0.10523147997005734 0.094859049012653893 0.59220295235883358 0.0053744665945508335 0.0038520252716286426 0.10380167504002689 0.010566559526482791 0.0031605644862870404 0.57714648711468375 0.0043609875066403956 0.4038829079181 0.10272224616000598 0.10382603756870452 0.49734672167422089 0.2944693397784432 0.70187297156366835 0.10154905185478616 0.74192137943982339 0.097090642878993397 0.50073669628980921 0.010464651204819713 0.69293588839346743 0.0023622394731169088 0.10201137768325896 0.0043920115805482609 0.0025001089481486204 0.013954845656112035 0.10344973039846198 0.0053723957326429917 0.10588611389428317 0.9157490581834371 0.59712569025264384 0.10799282219421061 0.0040639603876312883 0.88798189083399115 0.97957570295317131 0.39828700928270899 0.0027000812337053489 0.49088924070353657 0.0044853345322505176 0.095992177141316429 0.0034853881359568372 0.30220521095964609 0.0086123719060268323 0.48989602296564022 0.30616028776697635 0.012330563466586585 0.49879853059471957 0.0016031999046499498 0.10382961843595061 0.10620781802939681 0.002620815311073148 0.0035704024358423196 0.89097679268761865 0.10090328571179781 0.10736716470366729 0.01411374052761189 0.40602462943741319 0.19124294854474144 0.20115103791186356 0.0027744595030325821 0.73054520943098256 0.60040485768286489 0.0050521460446988874 0.0049999853381733923 0.31305087895325739 0.19308048988109808 0.0044907401923596994 0.40873866844717294 0.01898906812864385 0.1022379124958471 0.48282510240128479 0.0052448097826987995 0.0084661727122160718 0.0012256543280386558 0.0036080237707393236 0.30259190763830701 0.10170773395794544 0.60254856073999485 0.30125985918173853 0.205115640686544 0.49489503435300797 0.78744056066501744 0.10658736504054295 0.0032971088095261089 0.0052407126118652276 0.21401507180482099 0.0025883178122461945 0.10045965956642568 0.11484013266626 0.099109766207544664 0.10139335839466859 0.10330116858833255 0.22182948140189071 0.56269431123347424 0.0087504027628025286 0.1060770267222078 0.20241302018902885 0.52501887045010598 0.0031135719115362656 0.57733699593655907 0.10236248593757113 0.18164751874314547 0.10269578177758168 0.098831283889323523 0.29777314632834179 0.99515251641583036 0.10103601838935819 0.10138529790168098 0.096138470567718626 0.0036994803430667527 0.10204696058717813 0.0070624289510198357 0.10348182651804817 0.0090994056675578819 0.30333854783652159 0.0023929890569905359 0.69802070754798273 0.78186917113991194 0.4589588580674292 0.57928532252709031 0.010298577169827407 0.39532660875796105 0.10449182622691125 0.65422744502713792 0.9764913070355864 0.19700319374729233 0.014547382927206257 0.0094274069940558265 0.0035077548782187161 0.0084173603990003922 0.10566790374454782 0.10537291643548444 0.10160218945023947 0.36420057912787929 0.10437551075648349 0.10520332517112438 0.49096059631694677 0.0017844855280987216 0.018230356857569515 0.0028341403460576896 0.0033646780780123885 0.19946425264858161 0.095284802511096112 0.0016060251566877256 0.80058404998231425 0.0053627614296854476 0.3024204382254288 0.32661696320172506 0.0035791649196832229 0.0019829602673905027 0.10677912530355996 0.30283252787477843 0.39684828963668717 0.90131681359359506 0.10085119911709504 0.0030412819309778355 0.29614934116495734 0.31513155842800333 0.013933241694491736 0.30572993412795801 0.61410188382893072 0.11395859863299318 0.0089112641986455483 0.1101477425093642 0.1005140267433462 0.19997488282234244 0.10506329366689145 0.10584474200593047 0.19811762128546728 0.59557642374061548 0.11569842226947039 0.0043677136761820527 0.20661168719156101 0.10004293209413215 0.59448382569404046 0.58507193286032955 0.50100833849880166 0.0020216191585303057 0.0047294009049398148 0.31910020895682562 0.10076815595556654 0.0032082861842144535 0.003309530659463363 0.098726595848641741 0.0028423569969652273 0.0064491311720486222 0.0032168368128596596 0.30720212352467313 0.2937299298034951 0.09403767062231487 0.0010876305092344246 0.21931693143088488 0.0064325875490911519 0.49431427357760549 0.10166445367153243 0.20525534325406722 0.29374053199411987 0.0038594848861855063 0.38748459325915857 0.0025579871160810079 0.0019756962226727243 0.19789147371402852 0.20292609686236338 0.50345413923952576 0.33280588549867846 0.49502486903357917 0.5836704871813142 0.50633932721425956 0.79982327902208128 0.59764415633979107 0.007484225243369249 0.99298008464741228 0.39640879902381282 0.10708642183018563 0.11064681736445132 0.10524912966996104 0.0068063801240277645 0.88041891111576909 0.098677378222521595 0.19179801686192041 0.18975745130435526 0.202889211980152 0.88314604999931001 0.19761417700759648 0.0037169488255679025 0.20583139389751498 0.0073322197861543795 0.99564499671576612 0.0033566037852977033 0.76994634042382859 0.33064655748511346 0.18681659424475516 0.0037327475049405306 0.39255826604210753 0.0015221337065205024 0.10219537733279413 0.39593890715804197 0.0014107780503803367 0.22518939287117759 0.0065070184098299242 0.30308619221046962 0.098091842280521896 0.39731762691764561 0.19989051594309035 0.002804677584420438 0.20321833856426 0.10159204865105501 0.40336443864040111 0.085857075291583207 0.0027228619350034003 0.18533284992143165 0.005474600074150726 0.0053827218004487958 0.20783311462224505 0.10499288320487708 0.1064484136742099 0.10385346076924551 0.0017138861427367124 0.69256789056796342 0.0016989581451203536 0.0021767241813235782 0.1070951337463476 0.10149607313227013 0.093331032565773256 0.19698251010680062 0.22995549620902997 0.0063736134897166841 0.59575070373226091 0.0025429772295975147 0.001671947752423935 0.20173719939056831 0.0027956734639824044 0.0016455788723896939 0.21148781254852236 0.0051917091611443653 0.79526094703300287 0.21149026697330237 0.0018474177403374941 0.0030797758955545709 0.50349486958329026 0.0016317818870602637 0.20870181016622213 0.099429076679325448 0.02607815281224455 0.10423903455132982 0.0032237481697337065 0.008205730622397267 0.11282792719887115 0.30882288077260733 0.11425009283912353 0.0017553876705793442 0.0028677931182909773 0.0047162401485363343 0.30774179386170619 0.51578366902591744 0.78604350824461688 0.31980100976209175 0.0024181865526910532 0.31200415716592533 0.30665447930542117 0.004972698077318081 0.00089938515918124061 0.30129496944679268 0.0027347832866784104 0.10912884204957193 0.60882057346737217 0.11133418724239984 0.0045911127370629893 0.002846534335979865 0.19065240352885396 0.1016428906526811 0.11072409588298295 0.0073885491083839402 0.49402978840175882 0.0015617810916396483 0.29525250502765771 0.29115106661575324 0.88408287530496688 0.0063764053292681604 0.10660678171468152 0.20292699263998962 0.0096466317379299213 0.11155593867591554 0.11226764279135749 0.10941128061177174 0.003783711439581824 0.28229597382232002 0.0064128818212579554 0.10429675353357068 0.024563790692623662 0.0050926717687986576 0.0041371177381579428 0.13009919795602326 0.19538014244809301 0.11974163732694609 0.20034759008003361 0.010225877330417367 0.007200334454641604 0.0031108980975291306 0.082744812308679208 0.0042732718235675513 0.10827301724376173 0.10446114875937068 0.002614477787701454 0.0037393404376880024 0.78903313615321014 0.0019054163552052234 0.29879669068768816 0.002307658398166719 0.98126912774394337 0.10427060158837928 0.18766906815455817 0.0088857070857345476 0.0044272800292988823 0.0030857642115870412 0.44354372673565662 0.67615385772964709 0.10655381722579038 0.39019147123216991 0.66250635558559512;0.0062259981024980465 0.99577445154515265 0.0027873528081686656 2.2065372753436075e-05 0.0065604681840109418 0.0047706926325934715 0.99937101884690571 0.00026806373199739529 0.99999955528507878 0.99999948928099236 0.0015149705722571558 0.99973865486928248 0.021697056079331672 0.018642135499503755 0.00018522543743408786 0.00065577483938347378 0.00015862646160877246 0.99999863295045255 0.0016573629568035655 0.99438871929542705 0.00044343063885556814 0.99823351992714349 0.005392925693415135 8.0166489336928363e-05 0.0010713986054703094 0.021463586111482923 0.9950805441605719 0.0028445954873474884 0.00017169320717922383 0.0001446416484977947 0.0015427381046027369 0.99994094901021702 0.0025600895269543124 0.002651224634865381 0.99266206237168397 0.003737684102826207 7.2269297774418549e-05 0.0017669363485069201 0.001089246598240479 5.9872085553314249e-05 0.0073847866255714366 0.99867461860553997 0.0080264788484730298 0.99411257660635233 0.00011860184550884356 0.00079082523517443211 0.00097586164579809443 0.99729241775600475 0.021375484255376782 0.0022048654189586324 0.0078819191697605054 0.0002320518238354301 0.99998960487959099 0.99998437046498201 0.00025878719605775127 0.0074516514062362366 0.00058382446378555687 0.012582487285118023 0.99999339983021907 0.006621734047180642 0.99971907902819623 0.00029828508559761891 0.0029566310544933295 0.00033462189299464097 0.0010302338232359145 0.99999989735830719 0.99875371446856909 0.9980444762759284 0.0020855275654380829 0.0012395180262345007 0.017623851970983498 0.99633217798699059 0.0013914977428680893 0.0011923821280063072 0.0011605177989802763 0.00042816162408581534 0.0019434816994828962 0.00020321291766281982 0.99999982894206685 0.00014318524773026135 0.0020860250164322722 0.025451543054058594 0.00032952952496262703 0.99999469445703382 0.0041696290432019292 1.0673670318644247e-05 4.4580388250308541e-05 0.99686537870453318 0.0015358363327903899 7.3189969072726714e-06 0.99999977557472675 0.99925150236115112 0.0033775496540473854 0.99999153316934619 0.0018370626085290527 0.0084739585450193493 0.99998807808105061 0.01847065983259636 0.0045663293564552291 0.0091188139663515733 0.99932223969160272 1.2062983728138188e-05 0.00096155814486781636 0.00038584489659958661 0.0053233086614266232 0.00036729330059247445 0.00022748787076702935 0.0023045320212295652 0.0063925737108359226 0.0021678076948965451 0.0039712252661582015 0.0020233977900397785 0.00012988174525454876 0.00042560436821429206 0.0051833894157244167 0.0019653085688003621 0.0044850222231922988 0.010460942920415054 0.00019458317553484769 0.0012903634856034135 0.015514482751037667 0.0013469502333991698 0.0012006053930129715 0.98974637914742603 0.99492191041488265 0.0030884872686230305 0.0012043213711004554 0.0010799491998750852 0.00049539495452851463 0.0011222801308815576 0.00040968657406004102 0.0019674909518568235 0.00060941348661168102 0.999935692834097 0.0012217096568985348 1.8232857975863205e-05 0.00021374567414225319 0.99930133268123822 0.010759549248040484 0.99641493644447054 0.99671248981676575 0.011125843622017831 8.0523913156208555e-05 0.010265893901042402 0.0026221927372033489 0.021763301679782732 0.010387668830922727 0.0027278376949071985 7.51875226637427e-05 4.6788914181689082e-05 0.00039257647999431128 0.0051587903283153618 0.007255248251830989 0.013616787743957933 0.024622217475770997 0.014019229382638358 0.99829567004954511 0.0018230573708737786 0.0023509087621956899 0.014939331288118106 0.0039903241216867232 0.99956154966121202 0.00033349699280962961 0.0072833834985161442 0.008339416219395903 0.0057274996654516769 0.0021202471396579779 0.99999997577439526 0.001234341346560587 3.9002837934474367e-05 4.2986297493765148e-05 0.00027455364182425176 0.99325559724119528 0.99999872068687901 0.0025163979207582293 0.019341000012890647 0.00050016879476675181 0.0022694568557449705 0.00048079897309621716 0.99795884008254998 0.00021192594713492161 0.0017656877653218492 0.99928035193120657 0.00026308726530178625 0.99763428574919422 0.004163318096808288 0.0018514785277379041 0.99479232146850516 0.00040119283500277041 4.5632147793786781e-06 0.0025862637406208065 0.99999997991453449 0.00101151095513557 5.9957900255404846e-05 0.0011912426061533952 0.00091340034819366236 0.99999173541100372 0.0019878137214315111 0.99999897451266562 6.855119343948546e-05 0.99565984862021462 0.0023253223019563426 6.768196952265311e-05 1.4279952197182434e-05 0.99999945211303953 0.99440355300687533 0.99819373871359496 0.0072770552913548805 0.01163459078178521 0.99414854870670055 0.99842060577831915 3.2166547675559096e-05 0.0028287852494672618 0.99863254774240251 0.99814759944347498 0.0062085318559548588 0.0094372165680455394 0.0090816131901936652 0.00066159992753367966 0.0072190944143173163 0.99702777377255114 0.00052291995972293974 3.4165051178758479e-05 0.99967579611943014 0.001622451090246871 0.0071996983563496937 0.99454997392887912 0.0040202050683913462 0.00020528604240542493 0.003022146576262397 0.99472475122101101 0.00015827099932850657 0.99996295934386026 0.00037626390032512147 0.9971781310655925 5.1856293193621684e-05 0.99993339452818863 0.00033501097308302096 2.0273319647831462e-05 0.00039701077888531892 0.0024287876423634324 0.0031533533640572221 0.0044374448708621537 0.00096612323187406893 0.99774533171134805 0.0026181261511826338 0.00072422952504854312 0.0097852709578284767 0.99589198757216302 0.99996607670253279 0.9931619875845642 0.00033034578607259786 0.00014177080299453818 0.99697858372575965 0.014967781382961239 0.0015818955527566842 1.0713511492800474e-05 0.99782287808056791 0.00080905061768273836 0.0021211868991104455 0.99517842655937427 0.00019802125335487039 0.99996364601986909 0.00010384613049760363 0.99543102375061432 0.0013289424627734372 0.99779130796384785 0.0016031050105890586 0.0048174774883662777 0.99612671870654323 0.0021355021033419501 0.013519852939982606 0.0010790788674471495 3.2869545808219713e-05 4.397660215427377e-05 0.0018656710668371172 0.0011783147611630267 0.00020496736796464965 8.121459491098816e-05 0.0073075523353001454 0.003630223452957482 0.004382552749194862 0.0037311972565878 0.99999999562315423 0.0049787604640157282 0.0027718508617110794 4.8957648220988177e-06 0.99999875878579025 0.00087037388169285005 8.0454954436873894e-05 0.011866135888352562 0.00017343188868372607 0.067428086160020426 3.4048384204997112e-05 0.010735828016044523 0.0084341009508833928 0.00098400091999885646 0.0081327286979724876 0.99999906876033162 7.1831915626144088e-05 0.00058693092635927157 0.0003178208838951839 0.99534950539423483 0.00055626438219156648 0.00052450003523361237 0.99656824473722583 0.99826175410012796 0.0027089958439500401 6.4358831391238858e-06 0.0048566308967771324 0.01274026623256224 0.0012649504574703595 0.0026910166079514436 0.005155232455863426 0.00087590184068621552 0.99998219341190897 0.0055551903143133277 0.037290967030023818 0.0025918342592727581 0.0064654962672298566 0.99492893276499139 4.1629194827814638e-05 0.99995939465609307 0.9947105398095849 0.99880276434074544 0.99873876159366815 0.00015150827295654364 0.012819854945229126 0.99688913480404684 0.99689574193000918 6.5965849664236981e-06 0.9980187973594612 0.0072062498978234246 0.00048832965362697873 0.0033287950687967854 0.00064252732821952821 8.0481915147599564e-05 0.0065975297238032582 0.0079379112516891961 0.0036711904502234609 0.00046591998782133273 0.0038378738085713131 0.99493314442218217 0.9973726162152412 9.8781648440917242e-05 0.0060568312409959787 0.00085175616785435353 0.99488699624144816 0.0019931636718643663 0.99613897323573708 0.99999953533671826 0.99691715757623145 0.9999657215923875 0.99266590914636044 0.9993649411320521 0.00083525381628062425 0.99861760492688534 0.0040166678077722525 0.00024815943383183777 0.99982836996263069 0.99771454294979511 0.0014156930561317147 0.00025033428656823139 0.011153583989156843 0.0029845808761634709 0.00029315281239537864 0.0010606527666787691 0.00061527355530365891 0.99831501413555179 8.4549182910241308e-05 0.00011806067933945179 0.010771910750056677 0.0075811955676904717 0.011492913524141045 0.0012719993410916389 3.9624441444494226e-05 0.0020517875292423316 0.99999903825891245 0.99882044403381698 0.99630688802579481 0.00547252977025819 0.0051793703139178969 0.99999946408900076 1.6526662938391483e-05 0.99897334729001563 0.0032919699471366825 0.9949302178455921 0.00044326957243747301 0.0014945827826219852 0.00027554420974117806 0.0037726167688009161 0.0072091033216088261 0.99730054673966195 0.0037974918851243311 0.00071749859890717462 0.98707300615850757 0.00084682970622069499 0.9987333646100951 0.0027185780500560476 0.0025326249398014487;0.45707054589612039 0.70993686977271087 0.0021165179653304333 0.0054566773789779194 0.14367610609782253 0.005106916323642176 0.69365300904817495 0.0046813264980103426 0.078461489826128772 0.83031499269704545 0.14639062431367544 0.54974544570408235 0.0057002836223943101 0.011713343242764591 0.43448228416581525 0.00027916325965981781 0.14370313210410396 0.6932398932261592 0.75360164905379978 0.0030773878105840023 0.0053348306689996183 0.0023781142358012836 0.40764815624522049 0.0025672927421871504 0.0038891811097166371 0.0033227972590334559 0.0058036256114227212 0.15915104420657422 0.30217287649214791 0.002988051605758252 0.011449255088523676 0.14836227776735705 0.39161786293803869 0.43116908610283161 0.56259052909964657 0.010412193669058344 0.84999119321342986 0.0099668276762757413 0.28206984060728496 0.14472254257253631 0.0026397368471421248 0.14541129511537143 0.0082803090394438159 0.0019260132091307768 0.0053017718300002944 0.43226334371825914 0.0028827292288226228 0.010127176975746114 0.0044482953082936524 0.0099167848072503999 0.0015182429375141908 0.14427915803292732 0.30711441455546473 0.010088665536997467 0.14330331000269636 0.0097875893186460394 0.0063924505894697569 0.84554845922437916 0.57218657439728882 0.0048586895488274004 0.56341043674458735 0.14354069386965995 0.14071218804644389 0.0033929055936628718 0.81391323643413882 0.99425312813736977 0.98957375035955608 0.001911275951382588 0.70338408156256216 0.0043737153615037013 0.13817698926399094 0.15204886058233219 0.0068931964573864316 0.0022787512666294918 0.0023733223302820111 0.0042796249365079321 0.0081276878982222793 0.010663484137237444 0.71480119607788639 0.0022250339614548159 0.97414212656244237 0.0040614818001546305 0.013181939996893219 0.83389670868298227 0.0034890429957568337 0.13546184679250048 0.00061489309152394905 0.033210388000477431 0.13946213407412056 0.0036734249751412011 0.0039553343594646538 0.13738919823892357 0.0016997798284064465 0.42415531606795132 0.011673523577051814 0.02300891915717608 0.85928943892800913 0.43195767119157685 0.023612002037125435 0.24209593267213025 0.83970589221637404 0.44135544179678826 0.019968694969522804 0.014556117911502034 0.71209505050954758 0.012841108647488872 0.0072153024738614716 0.1401479560450988 0.84631206229466505 0.1446689701864658 0.0015187983664967941 0.14761077391695335 0.13877001312788936 0.0021104129209082926 0.020866800276894665 0.15178779854461705 0.15757880420368325 0.14028101746746055 0.0018362317168923946 0.0017333119733778674 0.0046454784472019957 0.0035111634694219933 0.42425026396615939 0.003038728701068747 0.0048936212452529177 0.0012294597796027728 0.0024036759009253127 0.0018486355491818501 0.0018667932830217556 0.0041645865126143898 0.0027251362007149685 0.0061660809724649358 0.14542656109561827 0.7073615803611718 0.0080793277667553995 0.0066907438283841571 0.14395940316406988 0.32107395269074529 0.56213610996060148 0.42175360175318566 0.82571987051840046 0.00084125016996560722 0.0043953843208448719 0.1361070053735792 0.41126403764096742 0.0021059547013782568 0.15049899486133819 0.0025453295732385302 0.43576266485768878 0.14288847895216139 0.14380217942064988 0.01145347493311985 0.0085552510064748292 0.82543159416618272 0.0027005554332158355 0.97434898328193598 0.51238752725242165 0.0098781825814627088 0.55530029000372583 0.0024735156332969803 0.01387550403817703 0.28130166371841203 0.56770178551865458 0.28476936608465236 0.0027471520029059707 0.010583062484897432 0.28429286190414393 0.9879429198071481 0.000673965692619789 0.012009336312799646 0.0029710771215632256 0.0011944315892220168 0.13685751340885069 0.0051428560498286927 0.0050005530343007138 0.43327801436565871 0.0046927525872451116 0.0020206323780697687 0.0008718738761132463 0.0059028560757457826 0.011269296781530047 0.14386806659041962 0.31327949129535987 0.00069014375701699146 0.14437126436557182 0.94343584268984804 0.98044549966353389 0.84620187433398764 0.70973589671419546 0.0055698371051336563 0.0025887626013250437 0.0046359666963928948 0.55307314417504272 0.11232842704180426 0.0029261283855552983 0.0069789939978359677 0.9783501897938145 0.56130852594212688 0.86034593200502407 0.0023466549480298626 0.19214016340548196 0.011100323205721354 0.0033958420841413298 0.14813120267855057 0.014942574740315587 0.28584989398943877 0.1505601430778496 0.42657399740280771 0.41563859978231249 0.011050854895943603 0.0034233752064341386 0.0018267993769853551 0.0020656780573650988 0.84386117556943097 0.70392897324045922 0.00099140269722562332 0.0033166637570612475 0.59918457300780692 0.56661356909536431 0.15429959275755087 0.0049706761870703942 0.82028196154130084 0.0032819852187677178 0.0079440844892950842 0.37123594866533627 0.14430023238828002 0.020406652045334261 0.1543520139099564 0.0066979832083536809 0.0056449201863964594 0.85027218564573404 0.0036632149899425781 0.013055769785761562 0.004172626904134751 0.23060592133912139 0.0046158530206531689 0.3030175349087596 0.0015551572616612501 0.0042309447198855561 0.41891639527782965 0.0015184529238680159 0.14625879973163183 0.13547634216708704 0.0038084810718328204 0.67868415219667677 0.001400002882784788 0.14263173191225909 0.42830218579697882 0.0042332143614884042 0.68684678092246099 0.30190382007983646 0.0044529776738536243 0.30064291149811512 0.034724173252282955 0.0032842406136922827 0.0018429864276580316 0.13701703605605195 0.45115049014700831 0.0062718808552044859 0.57075073633938811 0.0044157594973809897 0.13761981657060013 0.40267936717917857 0.42915744229170005 0.012457493364312903 0.74171080549785062 0.57430917758652955 0.0051963683854083223 0.0010264927562484392 0.0079049858924084664 0.56517836899991569 0.43602652092852184 0.0013607413565682402 0.0023873093671055094 0.00267648129073993 0.001581255899531847 0.0025987907911029515 0.6714939355305638 0.0037045311496483211 0.0051856266165564774 0.031335931244972554 0.8568275683346479 0.0042691662393801013 0.82959613563570678 0.16379702807647517 0.14051970894604324 0.0052254765995371844 0.557152967465812 0.0039548123776524235 0.0017835701668435667 0.28374186663581147 0.00079494264400161818 0.14547847758409962 0.19393658353290558 0.4259441373706524 0.97929868268086839 0.0010590077510692691 0.00354873090933553 0.0056175830256175244 0.00072437437064406401 0.14711501522874162 0.0056552940769184403 0.0031470791807924198 0.42725960807135155 0.0079052711076398937 0.0053261636835895592 0.28695461110295273 0.004091657544377349 0.0013888703923890088 0.0013983482909067299 0.0029824612176399539 0.13963332442394685 0.0019915340431636798 0.0066708254198906206 0.0032106685202192191 0.18893054810561394 0.56821904974368331 0.0053918708579488179 0.0020791135458208968 0.0081521554314251312 0.42918528912637316 0.0029865529817584835 0.14333631497781069 0.41311294985394564 0.99740242119368894 0.0076892688253103842 0.42625911894043567 0.0042679685846787035 0.0019784125470127937 0.15629779317943443 0.0045619477367669359 0.15048082450820882 0.013278839827962092 0.0061031957484177753 0.0026427096489963888 0.005061831083315876 0.0042833449774645222 0.0087714751921172032 0.0062464885135794478 0.02498698980484701 0.005244901476323568 0.0027159502442543034 0.71488298292774599 0.0026894306234979517 0.0026730440039499622 0.0019759870839738845 0.0049401397199465725 0.14159626432248029 0.70647518147025812 0.0018600358082572562 0.0096313716141447347 0.16782178043808094 0.0062763979936690728 0.43150398992412264 0.0016559277298681613 0.0047765084182849263 0.0097262218118738322 0.20817253704180588 0.0066124039307295084 0.0066541361936151358 0.71050678500002129 0.0045844251460991359 0.0042643491174973206 0.57179203209801144 0.0052333399005574828 0.0017894693016380324 0.42165611871219311 0.30266745196226796 0.0066324150239823066 0.010246082300392248 0.0010032081934681755 0.00913704073087954 0.56175149012959913 0.14606491230629692 0.03284151094240359 0.14326921947917212 0.16812349974613022 0.99339827687494053 0.0033377595463617974 0.86033754332317369 0.0031344319304981477 0.56183116463362914 0.0040703008646957983 0.82276605430164851 0.0019119813236513658 0.0013542265632521223 0.0017104676513622166 0.38460770691548463 0.0042419053797553459 0.0030854285134275156 0.001340490871582663 0.0044981054117832963 0.73720193615730534 0.14613153030144421 0.0033797313214255676 0.72884628144445029 0.13338522198869937 0.0021627529490235763 0.56435210182984119 0.42330434481684992;0.0014927726331103422 0.0010767014269018852 0.0008924162094571434 0.0014822235837754058 0.0091424870908920312 0.985606973439343 0.0032670455472473305 0.0066404584247840952 0.31367863452281314 0.0058191277621397527 0.631590525234349 0.64224743063148271 0.65650120121744659 0.98203817855339937 0.0041342969317795849 0.32446825306334426 0.013922166506713485 0.0027654536069340162 0.95582871179807138 0.00091351661960406257 0.33407563794570322 0.32943004758711997 0.31036286792687401 0.32834416222014634 0.33383191845120525 0.0072249682220287643 0.0023920910292528387 0.0038018372653071892 0.33505109076386974 0.012200253484551653 0.65989663328204284 0.97634108970892441 0.0021026188001928496 0.001948546217377993 0.0002561218366079833 0.99596772722304439 0.0095643935295606133 0.00064741212771174449 0.0028013991538689029 0.33192154972901639 0.011745541230665619 0.33736718795920712 0.0028698666115575481 0.68453537903989492 0.33742530815753569 0.32359668145492765 0.0080585694423597476 0.32118278199266642 0.65185108119959823 0.98204860982847386 8.5957671399593816e-05 0.00029049480899481144 0.0019817945225652734 0.012623700950038959 0.0083976884791621357 0.36939174164693511 0.35141298445297364 0.67227045524022011 0.0065802661174324071 0.99983827269907 0.62424626113083737 0.9893799663595465 0.0083579139989027797 0.0044843099069519282 0.65538867249328003 0.98739187504614678 0.97806931324383983 0.32902943543048974 0.0077246812184546786 0.0017603674390286772 0.32436716547403799 0.0020971176375199699 0.0088439741293631618 0.029429136305536407 0.0020037418030001671 0.0015454078806684827 0.0011299327497762369 0.010239305362793185 0.016351330140571795 0.32572781698351755 0.99132083284122374 0.019371251725197994 0.0034146300338518754 0.00089871243019989705 0.98838748312347846 0.66640906686076362 0.00041118683073664312 0.0065368400755725174 0.00034895755023027443 0.33765607877630932 0.61628835206813537 0.33592759917889126 0.00027294424009629349 0.01303573021861004 0.33344145108062284 0.01523658043030908 0.003012096246563842 0.31796365714758806 0.3399461527142717 0.0057699952445852921 0.0050027644723596191 0.0024538722354604564 0.35270211878570579 0.9989937477363896 0.019834853675631776 0.02272155284191494 0.98929071410210367 0.67068697564184321 0.66018639259309886 0.0036610209412230844 0.35251385867822976 0.0056184544147760869 0.022246594154335289 0.33247232756487993 0.69366703923313522 0.99655760558494955 0.34282405772182878 0.66402730370278651 0.0054032132613657802 0.0078068480095108382 0.0048250094633985911 0.018399325886902334 0.0014918029962170051 0.00050569143678404422 0.33100568751217807 0.024254790604622985 0.0031734678604158606 0.0206089909910207 0.0036619662555198657 0.66387116644761779 0.33373942770127879 0.68774018088832056 0.3325394517719914 0.6169868546016567 0.009839877770229306 0.96950855747930453 0.0036218714080428652 0.64067971695774451 0.00045233704798400032 0.0056827846509010281 0.99776976642603932 0.021250385060976405 0.021082894281282981 0.33045449702596347 0.0041172367983291474 0.32299031508861614 0.34210454447362004 0.0065524447684766219 0.0058522561686914247 0.0057581499958427778 0.015366630224958319 0.98435452803324575 0.00033961875586301424 0.34729788472370571 0.0026278630557844624 0.012446169071959143 0.0033045697814013428 0.0039567809482749551 0.62333739549826295 0.35654301307476333 0.3314689996748838 0.99587957325698706 0.0056459670516497452 0.97817304456152443 0.001178141707770769 0.34050580352682019 0.34195438027907582 0.0066175694631206766 8.0372343413394668e-05 0.33521726506817873 0.3419215723101402 0.00040237186097012283 0.010526825310804653 0.0021773172247802498 0.65209930968134866 0.0045860354251836127 0.0052592975753008708 0.00033053420543062049 0.35418424367624418 0.01156718097646767 0.013563129228294049 0.00024031489298481187 0.99963848261482968 0.021009097688803411 0.64929927491442851 0.015940572402729978 0.012593713648348348 0.32603460323720218 0.33136149014474675 0.0015417539636030807 0.32706402389775802 0.29708168907408999 0.65637551342161071 0.017340743792167674 0.0047012368345185733 0.35608143449046659 0.0071528889970942922 0.0013563576416678838 0.32384480479724864 0.0020607344925930998 0.0069907015678687947 0.3518403331328806 0.0032673064489017341 0.022964547756799455 0.040862127021505462 0.0095079640641498805 0.0021316171819191756 0.001424429449282182 0.009141741304833504 0.95946818646940479 0.28913707886338674 0.0058865029584074134 0.010564661522872351 0.66787868865866562 0.0085316982788539372 0.0051074529138863392 0.31474247019856866 0.99609558571163792 0.66014304294079351 0.0064201784302344682 0.67148081811901594 0.60223398659338745 0.0021882143442212435 0.0038424937402187853 0.34738705657273711 0.0059637768570925311 0.99611318171617591 0.33056018496150197 0.038115748829947935 0.998656462812337 0.0015747089246021537 0.019709522535475896 0.999885313577761 0.00040287412487740015 0.3167747576320728 0.0046853245694288732 0.0029654899900253581 0.0032900591579396636 0.0010571846858483079 0.99064195271400879 0.0090784650591327516 0.32068189716366008 0.047514830643285155 0.0027493856107527201 0.33968126074102417 0.00020882651452965655 0.68712720919869918 0.038771804007280891 0.015957789834452736 0.32644175711757267 0.0079168208492062277 0.001945250359197325 0.0042839740618262944 0.033009830853374736 0.0078173871500588684 0.32940970812674253 0.006914086833527378 0.64255822158180187 0.3379765267153409 0.0017123043622399186 0.0020485384328251051 0.33559355160517251 0.014645409710322344 0.0087040322666781435 0.0061951785387756751 0.026795756053378354 0.66607999862570999 0.37428495969895537 0.0011491649148937166 0.00055721222898579253 0.31946259146984807 0.9863135979796257 0.0016008486372144815 0.015238085070178674 0.009884750882434741 0.019254032935261154 0.34334752450279937 0.0040227887680564763 0.00061082239051442593 0.3044971900062598 0.99869450439024909 0.0012083489825199583 0.65482969298913596 0.33125658851287709 0.034714678341994099 0.0040002547149132631 0.97424089085399379 0.014207252394524361 0.0017160178572488637 0.0015116423688477224 0.007465348768749251 0.00041671022919041267 0.0013745709121420714 0.0030430717533100355 0.99976758397565513 0.00014390948880782653 0.001716504657924986 0.0011270810762963601 0.63221393042695051 0.002129777957441399 0.34449746914953555 0.001221974749907729 0.0052808204406294135 0.012372210103702168 0.33386166944730156 0.00068690961111058518 0.99747105236322997 0.99919109909142523 0.33789120291028879 0.0014746855865752093 0.0066403907928340965 0.011649846909321877 0.012834964258709995 0.031429141346818137 0.33468550301972333 0.65512212316127383 0.33556004242199011 0.015191099410302934 0.0019331921319917539 0.014613642826049204 0.32534791834360927 0.0103486577133631 0.0052889655354859677 0.00039795386538162041 0.66244912230150033 0.0029743707816207838 0.0035215055279045771 0.003839764174876842 0.00054543429811785898 0.99968920231255387 0.97489291617443596 0.9982425787123772 0.99944054826726747 0.35813382145818529 0.3392922143259493 0.59030796413680986 0.00062231115728282756 0.0093304508948691151 0.0061951181081419705 0.27255124008751219 0.99263300990532199 0.30808240221501082 0.66185799321639172 0.00028925331108142381 0.33248326316667559 0.0022365573921937121 0.010109686344883887 0.66907129527084386 0.99531107061080404 0.00072124570917997323 0.0066378188148977346 0.33555519082576757 0.002456675628572819 0.0012653151570089802 0.33219319323506347 0.0013011270979512803 0.99842751042486444 0.33955167821320065 0.015241355027918055 0.00054921359472937296 0.98124289270458398 0.3361232852269756 0.33537048125777741 0.0038613208446673791 0.33116571386088234 0.0052659718212642939 0.0054419180629772905 0.66916900794990719 0.0020456449180698425 0.32735707246830897 0.0019071241892020725 0.0056137076849019207 0.33860184839843499 0.66799884953893152 0.035290176588215948 0.6601545713305037 0.0098076271914287489 0.0029682751707245741 0.31401449611353488 0.0055425156770161172 0.012017433084097069 0.29323353489127885 0.0089070006291434127 0.99534440371398836 0.0053296214076455134 0.0028191890590429265 0.020221366503688335 0.99641305900966604 0.0026997314676419932 0.003955514481320894 0.97111185195298211 0.012035276923537435 0.0017336845016433732 0.67104027651301679 0.3245429823033304 0.0098681102339632717 0.32777074709260462 0.0013265615740661969 0.001732645070682617 0.0019311405363328792;0.0043823011643153104 0.016614598644683336 0.0070210841347729484 0.014520479517503897 0.0050657959823132859 0.012095845675917599 0.41801795464656055 0.92606546531787437 0.21124522825324843 0.0081481719327169862 0.0069614648358272396 0.0087535892673913703 0.0083505552127227187 0.40368571891634236 0.0085522315918565399 0.0048198023122328643 0.0059243084165183741 0.0059461103164607986 0.65907748567058866 0.4018757805730393 0.44336547785504915 0.0095660233283867344 0.97831817265299281 0.0090510508792849918 0.011854759793544785 0.0041043264330791873 0.014015519332430313 0.0047851922723028077 0.019609707665688599 0.0066217669836657906 0.0081921717493557769 0.0099021092711719279 0.0018106703011228908 0.0069952596839567569 0.012051430951690079 0.21104117782011142 0.20235833865240543 0.016931821296828381 0.011554077108476881 0.011351778277445695 0.95413330352847492 0.0088087800261589105 0.0094440931322496563 0.20100743512339944 0.0075586642199446438 0.95519162687064096 0.96438632254981038 0.19352867712774835 0.39382718978424142 0.0099340987634945199 0.0061778065629071142 0.0059455588469158717 0.37835022956927833 0.0068816808925556607 0.015305529670974764 0.018788935567906579 0.59731685365175069 0.9557758218575928 0.020841830625483119 0.59060859630285156 0.016529806794285652 0.9784756639709149 0.0036482910608881319 0.012882374939485354 0.23669187133840036 0.96629698628747618 0.74000262479228063 0.018801919449722738 0.77839999026805051 0.0058155956372045771 0.23715701924206506 0.0064618150544787029 0.0075812590534336376 0.60355872321907245 0.011532078731074905 0.0054095049384370415 0.012831061691138734 0.20896979131370916 0.007848043203057195 0.19661652255417392 0.87367495073462842 0.39493812119044536 0.01142271627335633 0.21310050960944193 0.0072372798660488976 0.37332689149941944 0.0083852552307326911 0.46922947830920092 0.023422244534469172 0.38552523486257617 0.20125422031844831 0.00784816122894633 0.02339094617919785 0.013054026077040967 0.0062995142028135801 0.072885236672994208 0.011422793655665642 0.029838439169413478 0.013465976532229494 0.025253132115150078 0.010304217249941475 0.0076387069139974432 0.75918048922140124 0.35091520172542362 0.009642040733094456 0.150308443122985 0.0099384080132406682 0.92546486861131916 0.041822010418610278 0.38824344105756708 0.014932469963749129 0.01826910519345714 0.20469673218208995 0.009130975905635658 0.92270357934594294 0.033801847573148143 0.77475801388941179 0.0098653851794836614 0.012464442713799406 0.21932500564446397 0.015174160626767953 0.0062152604202954541 0.0069831438404205567 0.0090019883500403654 0.012971609417900525 0.013510120965968318 0.0066464784177462386 0.88163666925333262 0.010298682912734444 0.41427077630504983 0.010018904593114298 0.004907426676335821 0.0098829735232578656 0.39643012042430847 0.0090841595340068922 0.0092201219715401187 0.016532624543106705 0.014298380731149323 0.0072677871821381097 0.0048365352435278891 0.94864492977934201 0.03041029626994312 0.026999894952459292 0.012111783192392516 0.031383949530021459 0.0030045302539273779 0.93025275152437048 0.36761445748353772 0.0099280041912151035 0.57589163889948303 0.012128719951485694 0.37634905627334142 0.011126939011505506 0.049876479040105288 0.0036811618681779237 0.022367562242881563 0.013400157061630785 0.55256393417630312 0.010447263471279172 0.20608266505560874 0.0089735252854196163 0.011171710729822069 0.71464194939819548 0.021595653816255805 0.0076538293086033998 0.0079115792496894898 0.048274433952196091 0.02940093621094915 0.011452649223738783 0.0088849056496947392 0.0041717243701337621 0.0044557858659401749 0.0069942568581416609 0.0039233403022914471 0.031990805417475093 0.045617106619133985 0.0038383838810401348 0.0044861390738609817 0.0088288298186104969 0.041832282972290906 0.3989147247341005 0.0047986989193794021 0.0076603831170768272 0.22486156727305165 0.0057423265409513851 0.012517947621239792 0.018184606133550933 0.72871444410643771 0.94464969779672692 0.004630519329851591 0.01054116480791331 0.01960878398518294 0.0059023564584731346 0.0064815927116877413 0.015641511433372061 0.010049792481174685 0.0067709178584273028 0.018114005140816514 0.038139777759090866 0.0043642385771687905 0.0042239174369178662 0.010966116369705568 0.0069913763011611816 0.17163819936313904 0.21289804390203215 0.0079278277334686783 0.008622498679701331 0.010523848181554501 0.0064894905391979238 0.010023808010444609 0.58461591467912355 0.0090255538529092835 0.011976467470542877 0.16235547152440816 0.014507944664505727 0.5901750454190211 0.36015633226121285 0.012790311062344937 0.39247092529253913 0.031649648602166597 0.0035561851116023007 0.42117503124963673 0.012734202583369275 0.0049672135443771743 0.21069199345727849 0.22147564705762104 0.015833625111369029 0.004787650656638413 0.0059905796085822118 0.004618538156055561 0.020185191718168544 0.0090298053517389645 0.012395594863427051 0.0054462305228068194 0.012717386776487271 0.027204368395925858 0.007867057460513539 0.007868903855807895 0.0048987273316137133 0.97681222006141732 0.00874237201874393 0.012692786206102778 0.0058117589748944293 0.16949996453506894 0.0029813485754428271 0.005357253750311191 0.021801485265533379 0.011877470619760522 0.058358572694543136 0.5230913370904815 0.37924006658142778 0.0072286618067539665 0.0052714082474108713 0.257734874931905 0.0099065473058103648 0.018625143053858349 0.0077399933188542838 0.39218651910356295 0.026621278180148231 0.0095063560364696854 0.014516441888548054 0.0087314265197608164 0.018374170754769967 0.0053720505907811061 0.030342641773069539 0.0069779387453081298 0.57391706401167064 0.014656245923121548 0.55226426238639514 0.20562097697060064 0.36058738419037023 0.01466470656500132 0.0036778968204072005 0.0078182782636986182 0.98091012395437727 0.0044311108107195308 0.92652317386521965 0.408262672088335 0.0060026372283386387 0.56818391239635702 0.41017874968107232 0.0076429176903925642 0.033401021095045821 0.22382719650117924 0.3661406010405559 0.017075464408527471 0.95193531427040723 0.010761945301226003 0.0047545291050489552 0.0082331925276576783 0.0020228548338694819 0.023280623187226908 0.56765470931888284 0.33665279324225611 0.013517244039572385 0.0071769309806435557 0.005620694407351693 0.21295524475038938 0.014388993322167061 0.0035393667793125858 0.90821709203335277 0.0053948521224489654 0.38170552397974067 0.0073888352860611737 0.010799990594222398 0.0035060316637933941 0.0044095740851507687 0.0062877047850626536 0.57821342336223636 0.007132600400133143 0.0093562209506443776 0.85617140294963745 0.0087819258131868524 0.0046794289393094594 0.0098608101389348647 0.025817549975882433 0.0090505925522762765 0.0030779550418145564 0.58323513318110853 0.031272770761076332 0.38999732989430341 0.0079103124569884498 0.011369163510531695 0.0052576072465523533 0.53418479893929915 0.004205287613492782 0.0048916833474667489 0.22734441992124957 0.0063883811407057364 0.0073030153915694725 0.0065753561618815638 0.75275696013464732 0.013885579130475646 0.89269088047140488 0.0075702478674599715 0.36346708776189562 0.0058660248823275765 0.016612032714798042 0.0026159184842666993 0.0087396754578982615 0.024298174827665931 0.58418176131730215 0.003563417705649555 0.20158125985236466 0.21034086769990393 0.21514654160345453 0.20280967004626771 0.39408504884375473 0.02482377784848297 0.0046296237341038734 0.0063947862232912643 0.017161168400576274 0.21159506588167803 0.013142208688389018 0.23043504508192691 0.0075811348313042518 0.0069592907677939681 0.0063071521418129519 0.016225048481357501 0.20348923469191887 0.22086263276235657 0.018643514466647755 0.017253644959499655 0.39462983919520167 0.0087660916595478158 0.017722186494457583 0.0062020833133631841 0.95515857349000954 0.0075988183008299679 0.014699151188703588 0.040066984142554239 0.021665464182574593 0.3660875659534979 0.047245437648698395 0.0095323871182914736 0.94153635979852279 0.0050567484500800407 0.0075394178975913047 0.0052907014572377417 0.21368301983595256 0.19766095361642361 0.0080720758369216845 0.016828497037535705 0.76836088351783549 0.014399694606481418 0.009300285739673033 0.0097626942192854133 0.0087156288003902398 0.0053872306152489731 0.012814869279074062 0.017879671950217578 0.024980748021641137 0.016378939035450357 0.019104366648861247 0.75796588072297677 0.0030622609869364655 0.0097211473663588645 0.36253650231424794 0.0081299756617515991 0.0056111924969558056;0.24975655770972399 0.49578075539879868 0.0032791281978840239 0.011888632855665642 0.24845793278888459 0.0075565016809547754 0.0062095365107555046 0.2397629781027821 0.0079280759143494084 0.0067290690341196089 0.0061453648577976154 0.0047070420530560108 0.0049580479822703026 0.024179372675619384 0.0042414271056506782 0.0084596617476257064 0.7450134978419245 0.25941786906332481 0.27262148149505511 0.23935690884767483 0.010818740018170521 0.24235495554192565 0.26942087756976046 0.25536790011589905 0.54179988645651245 0.010356625678722428 0.45046518897296528 0.7123262880934853 0.0064477408274070253 0.017452746523094864 0.0041881557487798687 0.25291702786232562 0.0065498497950941415 0.0057627663587845341 0.0050008255150744124 0.49842622944379072 0.0059823312522894042 0.012134757105622913 0.0102657895418667 0.022648650512935287 0.01926896578059822 0.0040961084197721175 0.0082689974960015525 0.0076703776042714644 0.24440185624910585 0.48894683800206279 0.012386578196362743 0.72996542661494912 0.25427397432286986 0.0063033999609185525 0.0058043813787791564 0.0042223510246645257 0.0069055144821854007 0.0061949636724401213 0.72996482793398398 0.25718633919800626 0.015105937678177764 0.012639575012926903 0.0071720527492446385 0.2537461201215816 0.0033672714041173253 0.25459965492638681 0.0063484570240937375 0.28066080775811525 0.48985570219851005 0.2337632177615617 0.0052691172309139687 0.253543063722731 0.0069580811905151328 0.24528211071537209 0.28478883354461138 0.0042173447402228349 0.008191011534042043 0.0047793268475773559 0.007620669112217357 0.0035565928523881218 0.0051165812257655064 0.52943262262244273 0.033767760722056235 0.012274173240433396 0.26899965683968186 0.0046705457217759202 0.46938587589502184 0.25208325554603384 0.0056760972820006465 0.0079661431896621213 0.0081185111263678156 0.0041641532241860416 0.015019387564653547 0.0097765152514280602 0.002687287562490058 0.0051149830899385393 0.0023592400685634959 0.65464025601437292 0.25225808888534729 0.01319958876327001 0.87140183978080299 0.96888005717972914 0.0057801884547241432 0.0040871011437918318 0.25286577404371791 0.25627938183430854 0.0097554157751728043 0.0044925038961585347 0.011220441151874851 0.0077776293123612544 0.0041183172746634611 0.27854318964421698 0.0052847047506575902 0.0085241106301119293 0.0049439032361136229 0.24342213032749982 0.010543890231647972 0.49647708081047454 0.036020333966913412 0.25392761921034168 0.006231016012145367 0.25567185514438845 0.25010490191995677 0.96122663257017815 0.0044597981691192039 0.0081650104612783839 0.94853471012000901 0.74125283429448074 0.0034148928928620041 0.22016347677881276 0.59522532537190342 0.0058436475354674217 0.013123896264151369 0.010572883103223293 0.72739134389922699 0.0057761232352694048 0.0044089012856744457 0.020506787787244331 0.0061397776761838146 0.25394874388773908 0.0048484278226927982 0.008208769370303003 0.0082945455115892228 0.0066212929260915897 0.24874496184658981 0.50445196765470024 0.01178143324607072 0.52583762381592547 0.0041193193719903038 0.016376240365790079 0.9602822450702504 0.43031212627467752 0.0058062981577255059 0.0047791143234000412 0.018014350416310627 0.014237126050239782 0.73177310476336144 0.25450614182978731 0.26622864813614056 0.0058049863081953892 0.0036350546298881408 0.21202466121366575 0.25755828329273206 0.019439797967478134 0.44077552008920762 0.0075235481102934139 0.0087114151883021292 0.010867831871263257 0.28877620252011077 0.0046777733101947966 0.19720975984182051 0.0076359018691808528 0.023710741596667379 0.0046018291799228717 0.0047626371328408218 0.0049661271794908092 0.091655562554980544 0.0043890878550784298 0.010298801834169306 0.016463771479135296 0.003317816124891319 0.017491311896158702 0.68633395710923528 0.014170275303514359 0.26085754562622188 0.015920799931218452 0.005284827179177512 0.013514784291174812 0.0048796797967814113 0.010859755267444923 0.25174715778081919 0.46577984004041156 0.49118807399963182 0.26254315090370578 0.51053206007544616 0.0028297897270198828 0.0039345509014246981 0.25399582324506209 0.48820185562776958 0.004836296332545776 0.011891881557025587 0.018946463135776078 0.006460675414273526 0.2746368129550768 0.0069160772356143367 0.005872329651491294 0.026783838566349239 0.028853407729145557 0.2523292024903781 0.0051673667364271342 0.010949355792370767 0.0078699470966211299 0.0087668002010537031 0.0069977621417147461 0.26839065895682696 0.0069433867490275789 0.0064730993097571769 0.25079322097076001 0.2501236785460883 0.015471049246603899 0.43040942795062298 0.71091463563314272 0.24233671520222327 0.0058888719199298731 0.25390282187011076 0.011104459268311006 0.0049138957391321519 0.0023408995705674397 0.0046219543716092756 0.044647761544248404 0.25084950351633378 0.25444123650118106 0.89791961717201418 0.0085105695978171976 0.24445718602946942 0.95683630917090468 0.25643698099469492 0.0051052882087752639 0.4843609122064641 0.0064717350622882355 0.0061269614549097386 0.012260949214423146 0.0059268034489800055 0.2539345600943278 0.0036749757598453967 0.0082366864780575866 0.022455367221179214 0.0061463551232159696 0.0049538684346329505 0.010095648530772364 0.2553572573512653 0.0045291873191782902 0.23671075630237909 0.25653887398957842 0.0037053234805570498 0.0057833421562819547 0.0054783016303485872 0.25829773378503917 0.006828101572466167 0.0045197955993261469 0.061965550559832966 0.0087865501056201053 0.25980105135166498 0.0032709928582827386 0.0045335293994083169 0.0044175526508886606 0.0080795032488409826 0.49798510426235504 0.0021845450545358146 0.0037064607028873598 0.0072762119611899812 0.0041339584734055006 0.69654754882713144 0.0048161332632243314 0.0060300894310946485 0.0034244982455959899 0.0060483521538905799 0.006604144203849271 0.87613444288195574 0.010835373181057414 0.2570718020777632 0.0029606213463712846 0.96446205151878739 0.64689118339668861 0.0065287821314428986 0.25720278536965296 0.72103444269880501 0.0078438648137314909 0.045740676774115446 0.016977079698992925 0.49626388823962608 0.0058447457646068242 0.72582149800342788 0.7201532371150029 0.005731338854655944 0.74136262843944523 0.003285753703945675 0.2475627366672388 0.25173943097782031 0.011751683821372856 0.96908399268144341 0.006581407209918155 0.0072045153387901859 0.6601514622869703 0.023893547040018396 0.0071743058068128506 0.24064779773073963 0.007546623123246882 0.0087456459948087682 0.011499196351046015 0.61407411883222851 0.0077858071540940566 0.00557148288674771 0.94141077468949996 0.0062377016891641632 0.25030871759703194 0.019074835348444657 0.010088756181602787 0.0060752290193597722 0.017848332551427915 0.0043785300235989356 0.0045441165796230127 0.73389928257500514 0.76804176615353015 0.010514043328290779 0.25445071484365595 0.0048044818084015169 0.0047876970047317328 0.0062721404270848317 0.0097801279204697 0.0033555116275381857 0.022100280375724247 0.0070407683623998915 0.25142277184059919 0.010303961026209356 0.25413288433747649 0.0047372047857766469 0.0033791931439611121 0.25561367887837289 0.0060635775676057286 0.25196269627076157 0.0068228895544791878 0.23040891372942718 0.013168721799120826 0.9182939023145732 0.017829290842268582 0.0050523238774216215 0.024522658359090031 0.25989992842217452 0.25998550034004647 0.0065319548108527317 0.25451374813420125 0.25274639551075784 0.28024364788589928 0.01275817114269725 0.24844877149609632 0.0089875814483748474 0.25001663896194098 0.0018165060390769993 0.0053059684843646277 0.25689229916779793 0.0059354512208447873 0.46114640747015567 0.80027902678034046 0.0081073205594228391 0.0033753567340811409 0.25325705234010809 0.9860712536136903 0.015424443860653359 0.01171835202001557 0.0079658000150114872 0.0057963352847444855 0.017624411926307364 0.012226469033559128 0.74298500475424367 0.51431768078782891 0.0033491813967367464 0.22840650338836699 0.03623429960610932 0.011633621156739046 0.25305856464104765 0.48799453717707897 0.74799129104391904 0.71341857129513342 0.011255333321209621 0.0056478305596847 0.0090399983879700559 0.71981142719727265 0.32208331929276235 0.013031000251915418 0.0041636394212226022 0.0075375402898742181 0.0067249652797999665 0.012319990475638011 0.011708790980953104 0.97378273670609794 0.49865224743367531 0.0049871424371482516 0.23232930808997865 0.0093030742258188998 0.0033362508152745187 0.0024232756139193415 0.25534192278923123 0.0043339312950680595;0.0088693869689621119 0.52317540305846288 0.66148480444299518 0.0044360870174785186 0.80717818313372036 0.0040455704334601481 0.004335222503732211 0.0063480668295397063 0.48935169573461673 0.0073463347589631418 0.0027246562606251363 0.016023631389684337 0.011181832074468614 0.001519241381189381 0.0040703051226568332 0.0029752535339800401 0.015934356420738573 0.0050195554492427101 0.0068510813353117317 0.14639971346241423 0.0060038318357953716 0.0027436692330935759 0.01256292067882327 0.0039214474368565551 0.35553535228055339 0.0089963229623103574 0.35306199897191065 0.0041402596891424682 0.0046608771606625101 0.0031743959386021652 0.0040190151025134534 0.0095517652106703339 0.0032234413745912136 0.0040876510487856468 0.0068676127511656544 0.0040456603901386865 0.0039014577220442262 0.0098625341103337639 0.0052010945268451706 0.62514241058229114 0.0043337153694132467 0.01020184616153358 0.32368398526639752 0.87556325715562155 0.0056248338016928155 0.35331386558478156 0.0038799456829263831 0.24730297558418549 0.3379360826126967 0.0030913906274428532 0.15797992096105976 0.0051880134409076732 0.004464547081854015 0.02068097959295493 0.0035181166291229611 0.0047065989290357314 0.0036942784938904277 0.0036981737261736055 0.0095219686380748538 0.35768267816721344 0.0035946828406440761 0.0044607390710951064 0.0018093105468997386 0.96064337652308895 0.012355465936337427 0.002935529685201917 0.0064518633047903028 0.0081298379954466461 0.0056862238243730514 0.0038174609040119529 0.17132534280296063 0.79653342966085383 0.0028693460670487754 0.0057359828401173608 0.0062930024255783649 0.0030841890466985515 0.36828360717142522 0.0038349795074505599 0.23066816876509977 0.31087796764800368 0.019071284667503907 0.02168355968337763 0.19690301186436346 0.0031988044431461343 0.0051452769283058773 0.0042315167322317972 0.17857880430288958 0.0020897685510134194 0.012446257306838817 0.0061062180871840777 0.16539588441859066 0.0049932148627840969 0.0050542140700318835 0.0068028205413180444 0.0029973142547494443 0.0031261006837510902 0.0027118729504225876 0.63289968052969814 0.0035095248152874231 0.0091860900076825638 0.0039601308846768414 0.0029293234738025885 0.0036185667535500246 0.0050310670230066931 0.0082173913822489262 0.0031868000377943979 0.0040554331606746175 0.003663914144965111 0.0055932425455622273 0.0054439973159179228 0.0065621678407698173 0.17419066319031964 0.0033922700136761953 0.30664204225451486 0.14677801396735221 0.0036154729801027188 0.0042653598706939013 0.0031827677892366886 0.94145747794552359 0.69044826948124149 0.0056296316190258327 0.82092918574325791 0.00327912803006298 0.82605377710318262 0.92240736860701766 0.022734133612663771 0.029641778863081194 0.002560466179489363 0.032651754838494286 0.0036707626756261802 0.039534627266223088 0.0038449397316503305 0.0099506945951039951 0.0071101860675034621 0.0041805415206212495 0.0036436162619667314 0.0033819251577978013 0.0035712368211556233 0.0036772035613462433 0.49767269942848846 0.013780775627710865 0.34496101946817953 0.002976982034034752 0.80923976311304391 0.0091097580502815141 0.0044123900087403726 0.04126080067612424 0.96475554212081205 0.0041899503060346243 0.0054031611599567753 0.0059983010732952632 0.0049447689555490327 0.083162657939863716 0.52958027730656854 0.032700391296263315 0.012189917262548757 0.15049760567333459 0.1644891141980114 0.0058246416785063659 0.0052025788452335613 0.6440214417666178 0.0040980914095893346 0.0032469663434840997 0.0074688739931440306 0.17138767418595929 0.003342587733255388 0.01308305295573662 0.0026048482047975863 0.02943616626631796 0.003138061989463 0.0025670344388259172 0.0029093942466578973 0.0079316210939169834 0.65908794538261173 0.0037567959800141799 0.02890822879470541 0.0034228415290795335 0.0044468079622098974 0.0051096650721642618 0.80177267203330982 0.049791282328726219 0.0055348810222010433 0.0030775353397349201 0.030669514717671983 0.0045286804933894129 0.0048312987658135336 0.0091693826331247646 0.0082309062421822669 0.6428561678096878 0.0053739078192586174 0.0046750090877335912 0.17632644383650867 0.0034938335099261629 0.0032978371271268495 0.36496423154267449 0.0018857877407851885 0.0041535710189660336 0.92991458527058946 0.94192415602768753 0.0056878016036277616 0.0056354862323960368 0.0035692601730905275 0.0061032293912837241 0.63003038499054176 0.63005586855028972 0.61946308533600047 0.17517008100968237 0.002936552600804678 0.81089901741063097 0.0037431957883406757 0.17319528505072099 0.0033232779022064991 0.64932806756289763 0.0036005936298392359 0.0072988016932523606 0.72958530782804654 0.27306788950437649 0.16428780775858884 0.017561459820410241 0.0053487170826591723 0.0038275709401034792 0.047365910488115247 0.0054763428440278497 0.068665758079749353 0.0065371642911862139 0.0050504386991548538 0.0040493901100853505 0.0048886561433966417 0.02160939842278526 0.0044789423223481617 0.0063340726682377573 0.0040118404523975422 0.0044325542024661931 0.64818343940057566 0.17058253879668278 0.20660193823556108 0.0093708434328887025 0.0064912959705117042 0.0033502081542448495 0.52030919673525988 0.0035056304526056578 0.0034698288961156031 0.010422228752852442 0.6309849079144173 0.0043317809265017238 0.0043550290779155749 0.0027945421161609985 0.004536309250287778 0.0053824437546830927 0.0046609576156121588 0.0048216706452334623 0.0040492880502817725 0.53543837478783018 0.32276521725432383 0.0058091811850174199 0.0066433869363329871 0.16876223378146268 0.0035659403885244106 0.003238202068033034 0.0042659053044652624 0.0028778594225753532 0.0057748674273583548 0.0048371300163558978 0.64036369655843273 0.46127551492766866 0.0020014661259436855 0.004125596086176889 0.0043516743053812583 0.0098411215278624946 0.0039942338982828993 0.64106234795414119 0.0062518354149462899 0.78266641731182851 0.0082538195832051377 0.65110951472592593 0.32113506776044154 0.0060574916656638503 0.0054879662033620619 0.17035245898708073 0.011972570482610157 0.0046211053615272182 0.32980920436514993 0.0034624410870127977 0.93717150247377012 0.009176703861937828 0.004511810527688221 0.0024097620804100443 0.0069408840740037663 0.0037785646934720908 0.62694702748641751 0.0052091703732882631 0.66842297448498633 0.0026017294735280008 0.0060150757176249941 0.0050155604722622047 0.0040898955510322733 0.81803173038475963 0.82585693070035593 0.0057374422284732461 0.67366563310452787 0.11986932191336941 0.0250773828347629 0.010718224387450632 0.0039178905925423939 0.0030755418387046997 0.32008603373151645 0.0043234151532527141 0.0053656587384349041 0.013925630391919228 0.0094904502745488343 0.16427054706577038 0.008744151926624354 0.1582033360230167 0.003343015822126602 0.011114066108216226 0.0024646330885231883 0.0036506818834317299 0.0034943208317926621 0.15484058104408752 0.49421673461332194 0.28748622267336582 0.0031427838174520229 0.0043386919438337373 0.0028719685024959094 0.0028519711706136756 0.0037619953522590463 0.0017816366901900198 0.0054022827442557035 0.99063628106779245 0.0031028161469540336 0.0036689968008485358 0.0053012722410322654 0.97778982371397261 0.0040492130322910824 0.0040332226892096801 0.0022808524312881362 0.0039767332541095872 0.16934736617356497 0.0037139979239383903 0.0027473760752412505 0.51608286118255686 0.7195887555288043 0.0042557895738170167 0.0069535666482600789 0.0043094437227581923 0.0019854822897765016 0.0049958886204884891 0.010432192911591101 0.0026587458542405682 0.0072646021308387116 0.0091441454298434796 0.0034650116602967683 0.0026600096803588288 0.46467563247862892 0.5019228127611286 0.0044735682221042992 0.0051700837358316827 0.006043240140184078 0.16830642552229985 0.33027526964092729 0.0057808197094330379 0.0077046043895684906 0.0051695814509379826 0.18503907309450343 0.0081016360026654258 0.34516922182493837 0.0015285172683508412 0.0047260951734865832 0.056999595782450674 0.45212120225681507 0.030790519141050153 0.0045326378646666898 0.0048907798840337495 0.0087154876744249352 0.0081172921722826846 0.0042588548081781358 0.003419475894177502 0.0094410756828989424 0.49972053250978088 0.7984854002630315 0.0085267840100535126 0.0038897937515754606 0.0081120841985168855 0.0027961384765147401 0.35055691307821557 0.01349168965705397 0.99487762013821524 0.0046005819704600832 0.047716662041138815 0.0037680901425375841 0.0028613173699068573 0.1704002564085095 0.0061572269838242148 0.50024173217766832 0.96097807706289395 0.0030422571190354625 0.0034660902303830614 0.63458167509053087 0.0042768343130556667 0.0026742594577151058;0.0047692024208009299 0.98294989165585656 0.35911490595096796 0.0025291578130839992 0.31374635691802061 0.0039972501542395976 0.0029479674824760826 0.09661869926116895 0.69132408452815275 0.0043958629643597842 0.0021613155232089376 0.0055871437297589201 0.0037770650650436168 0.0013300496508691676 0.002540810955919588 0.0021215834688564604 0.52106512026445073 0.0026435565660242145 0.0041282568858588952 0.18778191876380967 0.09339576174689479 0.001717519632783816 0.56694755740028158 0.0030633954159277827 0.6215290059261519 0.0050706353199502108 0.27398866589066129 0.0047096318309880108 0.0030602902146261756 0.0023718141025541959 0.0053893352673332166 0.0038982231606911008 0.0019999308711851575 0.0021998022145423503 0.0043694477528806617 0.002714221619141938 0.0018404848334987811 0.16969597799628078 0.0031715016664191427 0.82229821010299176 0.09390789412634043 0.0044327373970772903 0.27740871147543145 0.020947023445074913 0.0036521720915674667 0.8743636765173427 0.091222307715160045 0.11850142389684665 0.0098060532218601937 0.0022301479766514303 0.0064129833489662662 0.0024372563098124856 0.0042002566434857416 0.3804412482535216 0.0065954516647739282 0.0045839535576234249 0.0029977381782405571 0.0033047057411751944 0.0047757612196568221 0.72796720188522213 0.0023104884035785255 0.003829029299578908 0.0015229722443411908 0.96161278209124168 0.2640541092454084 0.0036907040335777373 0.094075804975725208 0.25747120121934008 0.0027308470663251578 0.0059214795230809452 0.45531565156563791 0.99075826187149652 0.0025390693007480872 0.0037242534158885765 0.0035639837253234816 0.0051134383740370597 0.0075623248147823428 0.0079122162025435198 0.36374844500538422 0.67338611896124223 0.0046605411877663604 0.0053429172177542538 0.18566144345097751 0.0023616311278208076 0.092556109891827221 0.094431022116178917 0.26044287718142339 0.0014888728318415054 0.098313989486219805 0.0036901705342727346 0.0062692704892196799 0.0026283712278807299 0.092624214824433601 0.0053109291417713748 0.0023834116424692117 0.093069981386668305 0.095362989980783242 0.71214862879464313 0.0028746560641876519 0.0026306319644178082 0.0061365219042174707 0.0023236159501042689 0.0053944596843271912 0.0024982699194872121 0.26914125886170531 0.0021611170518909956 0.0027454545595223092 0.0032725745642534776 0.0037920845167014657 0.0035035332797828376 0.0028901688838776224 0.26590030404957432 0.0030918915017415591 0.3606021600386986 0.33566392371421694 0.0040621571728899492 0.0025339079617167073 0.0025541311660624406 0.29931138078021841 0.88339619924764978 0.0059130482698516694 0.65924962635427731 0.0080931468769217096 0.45321827170776363 0.34076827838408208 0.027353231329081545 0.19804765127744089 0.001708348704474776 0.87611431443763377 0.0030987878707801251 0.54943721188944383 0.002905386148446259 0.46702971532392235 0.16782529955475936 0.0024362570947045457 0.0023751412592801645 0.0027090358672287526 0.004073411682315421 0.0026383320019291116 0.008897748456949281 0.18581088543165014 0.51735942071980867 0.0027613727382797904 0.19637497920393215 0.093622022148696762 0.0035055976156433306 0.28445776579032761 0.45167777422482758 0.0026406039854594524 0.001865651078399744 0.0029291109495282156 0.094273530385847376 0.76898177550438929 0.9772383038133422 0.7166799872629841 0.0043704480633756509 0.09705813818884218 0.28125632743726608 0.0034888335171380531 0.0058093210938444384 0.96547534931146917 0.002787705237502706 0.0028846913387212039 0.0060948467758578269 0.27805604497746045 0.0025550492316709643 0.058887189996542542 0.0016693545647113977 0.18036345256806274 0.0022578406540536 0.0016688185629924661 0.0022974934835642826 0.0058677661245282705 0.72984331050885731 0.092995153213261919 0.014266151222597532 0.0018105271132815058 0.0018293853316540081 0.0055884143841622843 0.62743534320958583 0.1786309263468796 0.0032440128317023603 0.0026492672731699032 0.0075561450788978572 0.0025357037617226548 0.0033792292488622078 0.0026689016618681592 0.096795800270873866 0.33199381385811022 0.38339266738378508 0.0027124412199062437 0.0060348489221919198 0.0024842586962090713 0.0019775370951681751 0.53661694021665141 0.0019235425488456004 0.0026224906879260051 0.72821138896432624 0.79215483580655532 0.0036813842418078331 0.092803421156072485 0.0036480569385940863 0.17037074141868838 0.95607269832291619 0.47050024468640106 0.20945464487487092 0.18796055050593091 0.0031657417274962804 0.98380833515205102 0.09226461079345416 0.28225370885541162 0.0021715478757671947 0.29182967390253267 0.001866003398101955 0.0075771298574794088 0.63012772880252643 0.61084101264929291 0.096908226428704641 0.2672668929475821 0.0033778688638165751 0.0043155085654642154 0.95497494389057824 0.0037509650329376545 0.016701483341377013 0.094000597071486822 0.0067364575900337679 0.0020495174770406967 0.0029451397282230962 0.0038515744182052222 0.0037943715668882745 0.16166467408716012 0.006123383347016207 0.0055855794387945305 0.28872446299927357 0.36887572892889964 0.81592948113149066 0.095378564373351196 0.0032852246129786381 0.0034865862969742627 0.28810911219941049 0.0018435628729750594 0.0037439259483071081 0.0073656965511846046 0.23392006362179663 0.092679529518799028 0.0022009376413253548 0.0015829250942749594 0.0028465924099858242 0.094433487219270307 0.0025185213401642814 0.0025082710740130187 0.092763676747839002 0.0067268743379458682 0.097123700339333915 0.0039490650135709272 0.0030636996614928826 0.36215809220153561 0.0026174573490703214 0.0024453786480423969 0.0021240480318665714 0.0028414763467632287 0.0031913175873841213 0.0030703697427119378 0.88169420014442867 0.27951415766938403 0.0015375022082367651 0.0030857659968875958 0.092065574965614197 0.0062068432867984497 0.0047007717382009503 0.10687592832562315 0.0028418689636905943 0.10748639734761056 0.0041788861604009769 0.9801702024246105 0.29293637765186131 0.0040297853887405199 0.0021367449693929326 0.29267548560455281 0.36071402613991921 0.0037372083841772127 0.006267467906514456 0.21937162554488771 0.036089758255108066 0.007879979870004248 0.0054321194984839139 0.0053204147461890314 0.0031754494068593256 0.0064373463159747412 0.63844633651838389 0.0023764791714245984 0.52097135638226955 0.091560193246237445 0.0043186586387183616 0.0038482459565230931 0.0028489157274501167 0.62989683267565355 0.45165393113947827 0.0029872934863157232 0.86908774753960538 0.006747570187606384 0.49264243165932187 0.0041809855672568352 0.021046681117261455 0.0040987285090330061 0.78789875923107344 0.0057758584917725776 0.0037616464751221794 0.35127612086997312 0.011603013375439345 0.0099679695731344393 0.0047662296233484773 0.10386362380826433 0.0026631021306503461 0.0055159477870192104 0.0027537205031452801 0.0034891698242919328 0.0032845956862588357 0.18211421811806891 0.45913072173620972 0.1030838418907524 0.0025296846251365167 0.0021241930096738853 0.0017441204118778925 0.00185934547322152 0.0032596162837601338 0.0010892995811094194 0.0056105185395968083 0.98865406281779156 0.0027855774375521295 0.0024962446318797758 0.0037832981217760134 0.53072295250381019 0.092759728331550328 0.0027664393247327935 0.0020643398218207947 0.0019641943544589759 0.0094482238067258861 0.0030689733747881641 0.0026912457573680928 0.11463955916218299 0.96837962557118629 0.0019178931641745699 0.0024810163545048343 0.0033302050948192091 0.092516176428238173 0.0029941047183994398 0.11800337527471946 0.0027119805030858778 0.012943322617167748 0.0037469875268463871 0.0031647058186715918 0.0020429074974068801 0.69822459678132487 0.82382283214461383 0.0025812530553215593 0.0039141420877311373 0.003789163859456695 0.18798301298817741 0.58533768470743985 0.18456119339321744 0.0029610601771471357 0.095378907851798617 0.43769248252284637 0.44592293078755768 0.05631631105853737 0.0025729608072711154 0.0028680222973712817 0.18269691215243916 0.36580429091298766 0.1791317437289123 0.0032685555503998761 0.094171767762790029 0.0071023649808028676 0.18280569418230236 0.0019691778333243248 0.0030232468001145721 0.0052316596892160484 0.98465220754359162 0.63716114039371852 0.005689039960732346 0.002536598576585585 0.0061523960506874378 0.09514539597210539 0.93867677427466389 0.0031328502644767339 0.86748682440739633 0.0034642353022120227 0.90393445873451417 0.0034646765560718299 0.0028893725422658063 0.62911293939921364 0.0048466653206596638 0.96415973289642665 0.35426479878160033 0.0025726789282926759 0.092316974165404839 0.098408706491386666 0.0028498876626341951 0.0019824793452443744;0.12951402817260077 0.0050558270912746759 0.75243866518679081 0.99458428678458588 0.24964232707828643 0.25407899747203427 0.72919529709717223 0.13022121282988183 0.73925304141985493 0.12562951469604855 0.015042969127349572 0.26067455539845619 0.25155432686611018 0.012523804620506911 0.0094186751412868933 0.98343506187625263 0.25733904257910117 0.75029479395218712 0.13718754475326006 0.49075234587706218 0.13369889318307132 0.12254197776399685 0.12493446222887838 0.014222414099863058 0.0014355607200538137 0.37656460605980241 0.49507608817975163 0.23737754384973131 0.87010819511814286 0.24557001202296996 0.011163233775049736 0.0016113432116082204 0.010670519666768848 0.40152043586802966 0.1306126519394154 0.35239083746077177 0.12600178828364184 0.0034558216339666426 0.0069746251532205586 0.0022087672647597744 0.12693727399725133 0.25603770241694512 0.0082369511541111953 0.0057138375858450732 0.8834960699417107 0.13215898771657469 0.0049694548017838198 0.0023200344574512508 0.0043836253828589159 0.49476277910226008 0.37634983333098398 0.0017227144431987917 0.74502086847620141 0.0057793941225215695 0.001363084482077431 0.99795272239845201 0.12484867124777019 0.0032564606600220471 0.0081120173948848896 0.12704552240669403 0.73634870702226229 0.12557054969320033 0.0034011692104792086 0.0016366329080699277 0.49324381362246117 0.0035448468939046213 0.12651573740960359 0.52398541385372477 0.002034265382514608 0.14070602967416826 0.12479152373430989 0.40473502006518419 0.0059761598133685062 0.36990539871689671 0.0066301146434367148 0.0068227483291907788 0.0043801588854984448 0.0054240959604097728 0.12512827013142247 0.25247210321226043 0.10099116897411375 0.00048403902121501062 0.37832157114256704 0.25541888484211039 0.62865252321219389 0.86698734273047107 0.0055119624957579594 0.0030547575734218829 0.73316421871754756 0.5169057207412775 0.003416665058406195 0.13474485054829877 0.0046363016825935926 0.0075683849454197451 0.87685183914167775 0.0062344490948455884 0.12791057216533053 0.0027925751052105458 0.87368057756614692 0.0073175735046093352 0.12723528585500651 0.13537294632229332 0.73627259957596203 0.125853151127649 0.0029522130630610438 0.12593537935498109 0.12587314586841136 0.36536142606631222 0.26313513270932504 0.5023494748395203 0.0103271559249206 0.25683999319822337 0.62618170718488098 0.0091579645552812613 0.0014521576862757224 0.0031375232585331802 0.0083278388708165341 0.9875263229565554 0.13382744916653239 0.0061543894617548233 0.12788692992311812 0.0019256428649468741 0.72726740613493501 0.37456260890497417 0.87133036313676049 0.0050894125384093238 0.01644875609080881 0.0058397030993157491 0.49722315878990919 0.0018852559482214928 0.27275802322955622 0.75257870860621312 0.62623216608031251 0.0080344430620658477 0.98302464231526965 0.87038696340865851 0.126866185701733 0.62324002344114726 0.0038577249138307115 0.13724383835942627 0.0051195895111526236 0.0094123277701681999 0.0077479485999230307 0.0035981049007919068 0.0041829380524978279 0.43195907603817674 0.0032326241040790812 0.63249513937999646 0.25091933014228257 0.0051154417132240762 0.0025491185144151849 0.0037940513342639465 0.0045573007225930308 0.13033392413434475 0.12415451593265452 0.15718003760661209 0.0088270148500589254 0.15108227655379008 0.0066362585396790063 0.00036934002551370731 0.87356236290091749 0.85391664179370097 0.37330121712005931 0.0021699179198678446 0.26535296175423795 0.12689643292654951 0.12522329507200264 0.0042850887871692511 0.38047773378950617 0.50275665310577955 0.48521185759183594 0.37177233425514111 0.39571562095274077 0.25472425063326576 0.23959653124716765 0.12997560108688705 0.49818135164163535 0.12967700369447813 0.23985234770075409 0.0027982441630584275 0.12613412402805754 0.0028484948927684482 0.12843707663328011 0.26140675585677781 0.38575665700235989 0.14931396771641556 0.34139476794860935 0.12562532010265257 0.12628063296762643 0.0046867031171810162 0.99455619404731732 0.12381230820905778 0.0018939271590724042 0.010823834765851165 0.0032776794589784958 0.37977756104899418 0.12583816994911959 0.0058642654729607509 0.002724736751823424 0.85226297958091868 0.0035261365519502017 0.12296073110555861 0.0027819119462846706 0.12844226243800294 0.0010261426080978452 0.0047955718560214137 0.97295747589905135 0.25097663801016845 0.0078706509449658658 0.0076371209597700003 0.36988787908073645 0.38051572562848301 0.0013476178916876982 0.73770883454535607 0.12659936931567384 0.49874401854671674 0.003518233168717065 0.0023221354124856111 0.61809511582507271 0.013734622885612169 0.14475325279019524 0.0037494805576700641 0.98674402965184937 0.98796800459326528 0.00088019084834050048 0.24988460190992098 0.59613005757642201 0.99077585360401788 0.001398613744214762 0.12769276322368242 0.13208176156570944 0.010096585572310869 0.1281689282931969 0.0048089293742996763 0.86353123710015112 0.0026261263449595283 0.25939227059365277 0.012649483029017455 0.0040325036895308359 0.0064506435691215258 0.48762606280801785 0.1355930472646244 0.0022920562973092144 0.0012513474581789369 0.12747557002973181 0.0088183468007033382 0.0023335842858015271 0.25372640538512886 0.0037930492635815591 0.12928943782119234 0.0026280608653038457 0.61841975012615891 0.0082782092370833598 0.0020218287821246873 0.0043176947715219509 0.72372570648122103 0.010353876061696143 0.013524001400651907 0.755703672921053 0.10912812709828955 0.63136472412327838 0.99353462551944849 0.0051885416007332978 0.0023900230092244513 0.12638430887227387 0.0058956609005179576 0.37347263015627763 0.011466490386168265 0.00109450737369752 0.0044062738861697197 0.0013038956173582251 0.0031862235103995475 0.15611753619428043 0.97960964899515079 0.12535225615845894 0.37057086700838621 0.0023154346268857893 0.016013670119916775 0.38584950658828815 0.0051083557052951914 0.0027526962800653587 0.25360253145166461 0.12500047398705008 0.00091005440073637723 0.0041058667398871174 0.013315364130194711 0.24039163566909785 0.13047858785186112 0.72973966156361703 0.98641730071441569 0.0071873232835455306 0.13270510238624608 0.0036108296612385503 0.3926201697233539 0.0030833044351573509 0.51527339483231238 0.0089333276582976347 0.0014184779021285555 0.0060258469805390099 0.50562064648343896 0.0037710122178392321 0.010273110727283843 0.0020938759317922638 0.0045025550731445521 0.98760240134175092 0.0033806266230094711 0.0048875178245274802 0.86591100351095707 0.62515205960028486 0.0052355760415635794 0.003347176460040768 0.0050154735211946338 0.5027089222208786 0.0050247065492974967 0.87632254427674094 0.0074601304931017067 0.87485986709119801 0.00079199174886489677 0.12443704758527119 0.12668872495393937 0.2347933322027243 0.87116487472208926 0.0025465204856352122 0.12732491426312881 0.12670383944393301 0.12483409699598065 0.25606514433532224 0.0020701292734589096 0.00083586072947632864 0.12881057307425456 0.13029781957143324 0.26582434539471017 0.001863782346686538 0.0016973697051821412 0.99605019988577059 0.0071903132836461554 0.36841169239385624 0.50325562908724775 0.0021780097562963188 0.0048798013187803446 0.38274995372553222 0.26989241492383198 0.13270293744385037 0.12558034667040782 0.99575993378709871 0.0049281823620243945 0.017477793664922095 0.62200300494472249 0.26079405306235803 0.0053137835746041029 0.13110889281485891 0.98758975624539502 0.0090208900139980147 0.25433800270840135 0.0041370082335449596 0.25030300400540595 0.0041005615863993969 0.0038200624822760775 0.47699925903395823 0.00081489025699079537 0.12783415714186749 0.63028811061210399 0.97632121114890846 0.3466079390751885 0.75642047249335642 0.0091176997540174734 0.0044504799283419339 0.50466394015775484 0.0016209323521082775 0.50031831561991091 0.01389497117855284 0.0082612342144677362 0.97356849947851853 0.0029291564722154014 0.66973109527140307 0.12501228410109125 0.13329267261143496 0.36313365003384168 0.0080847343199251746 0.12444192942397481 0.38253663996801213 0.0035707516844718174 0.2497246229935364 0.0045824876544117744 0.56983530248678305 0.50539739454338017 0.0018598020027774658 0.12664738537799045 0.0011928163016225761 0.0020601531548863094 0.12612335753431686 0.023571424741331486 0.22364534202726641 0.0021591304816365934 0.0016607796700318308 0.74320203614135061 0.25978231552816805 0.0029266448937111341 0.14163206688071517 0.38271725578596422;0.33998876511972898 0.94400753570549212 0.0025838947366150587 0.0087114175300775018 0.16637991668587104 0.014120348768876925 0.81558470924905524 0.00855188688944045 0.013582038433234755 0.0035597919806103638 0.16747375464081865 0.02509994280507194 0.042809348475251863 0.0080319898709360106 0.0094613316922979585 0.012103127486274103 0.77338051326624047 0.018890024812117163 0.35809895737894887 0.0032848122674747644 0.012545411699952902 0.0046542684159902878 0.0044373911129311746 0.0075593342943225577 0.0046726364860687096 0.0061971721425378018 0.0045125716692459216 0.96471019232139099 0.032535032762132786 0.0035348147379445877 0.019446968350742493 0.81667302400568853 0.80591885372578842 0.77572436125526156 0.80313432320899436 0.0041109070565918948 0.011853057122801358 0.021353032096101073 0.0032814418823398956 0.17831153484049209 0.0066151460217607361 0.0058735464840071732 0.0042800825174781551 0.027164651910029411 0.029338109527763133 0.012814494551826542 0.0065737294949270372 0.0060194398112425728 0.0048479881550480101 0.0036280538251976281 0.0053385793951438746 0.013912769003043137 0.007773147131169127 0.010054956159831164 0.010323711374759261 0.0056085325363429582 0.059231955309772003 0.0035547985843474503 0.005014115487247766 0.003281264265964646 0.013450198466996573 0.18168314313671463 0.0060409978189191246 0.031304278483489434 0.016130373293740098 0.0067378795022309821 0.1715441042056586 0.035119692542317879 0.62800172449401248 0.03241425795894403 0.0042230585643415943 0.0078790482159321468 0.012327798211935642 0.49757617894405892 0.056915278669306506 0.31208456552267227 0.0074624211549235613 0.002879315677113102 0.0067375820795282969 0.16940028501382998 0.0069773813520901187 0.34222553286239121 0.64004218975618865 0.17048631507029621 0.0095824746429805704 0.79058493646872552 0.97048132517479901 0.0044974202327352454 0.021344598008965085 0.0066452566594357391 0.0025132457679128686 0.38343064233730906 0.010329704350003882 0.16449919402900043 0.47866905186662406 0.7936611684149415 0.16884481580956293 0.16574642927349645 0.81375496062964581 0.01094540576189928 0.0015676485134044993 0.0061938710714302819 0.81183650907439819 0.0057958307907988501 0.18272166799571285 0.0054469404428494836 0.0066477604017919495 0.0042935224642948648 0.47947541359901563 0.015087176640337617 0.48681321351278678 0.79705200845516611 0.52035857302303501 0.0032880835847075508 0.0076433284387980947 0.34863577399702461 0.0047556636375586867 0.0095868415835627958 0.80362330514206848 0.0047402484657492524 0.016479657504106265 0.35964719684523666 0.043762998396080367 0.003232908462006601 0.0044301198162272071 0.0057989141037311951 0.012092932319816254 0.0041595209677942275 0.020367509880621783 0.0028223810754701762 0.0060792468513238569 0.016381445054703007 0.027825717655090051 0.00232900656971114 0.012762110919354122 0.83206152329561289 0.63724436776013371 0.6568938195350722 0.0069460434836542927 0.65632020334125585 0.0074488784838607647 0.0032599187576563028 0.29918708645078618 0.33179182995888606 0.76165749649280423 0.21560112950314064 0.0033852043948668651 0.47492032873613171 0.0096486472937699977 0.03105985316554458 0.76888673611403979 0.35367959755155987 0.0078206993300733094 0.19648682428109526 0.0022173570535563326 0.011279544212142925 0.0055790662292696264 0.010987051626506093 0.0055866314865547113 0.0066263608817286705 0.042616447628609964 0.0077371620985409312 0.0060282316883628999 0.14953050076590418 0.177267644056426 0.0051141424079719326 0.003872039109191764 0.0043457163382850331 0.0038347857160905318 0.81640763594597932 0.18109743660291844 0.0023693918198118449 0.0079335108955813586 0.0027498122119749783 0.0075870584698787633 0.39770385609122832 0.20737575999302929 0.0025790379571832313 0.0044665868607634343 0.003369074175242797 0.0026664458768685243 0.0043501017648641359 0.016861852469770414 0.0029037948014511063 0.0052561155310803555 0.46244139135836371 0.0056687330711378426 0.016083417677068963 0.0073160900175578093 0.0028292463270671708 0.011426124982862162 0.0096107563126959662 0.0069945255799667809 0.18971897363333382 0.0051463282908017103 0.16091480215643997 0.20055989785833606 0.01020095884834548 0.0032082109989037518 0.059411010672052372 0.1325224311647524 0.0031214306712293799 0.0042994894744029667 0.97454740109707494 0.0079542044827320916 0.0028997283750700283 0.01136534660598337 0.0037903112390060209 0.0048808473772406413 0.0041143151125355775 0.0038973421696986534 0.0047799731873302215 0.0027016165344125038 0.012247757792313393 0.029594735014979407 0.0051887780337543186 0.0065888478776107064 0.0063152869855797808 0.64537884916265198 0.0042370155886821814 0.0061863731778748002 0.010940995763273896 0.34931375991605107 0.0062645263620941371 0.013014600674643573 0.86064483201352471 0.2919444414496753 0.81743603308352286 0.18530161514794641 0.0047923388734656073 0.47682035732510092 0.025218292758848432 0.0060262502067196964 0.3313984927767788 0.020697222906450992 0.35681082209702875 0.80930658683460321 0.018654404083896441 0.38792215353775 0.0037661415072730723 0.007972781770942898 0.022713563254024269 0.65376346315979739 0.012723430834129877 0.30756554997027319 0.0047712699300425489 0.014438229669120988 0.0098526656486606322 0.0042004615270612444 0.0040226633824790737 0.01632353083332793 0.0042564427162366482 0.025018602344446597 0.0030386123433086593 0.003426171640958119 0.0044248911773175645 0.25193029757706453 0.95852985473309249 0.0069940126101595669 0.0040272724636180703 0.16103499354738587 0.91953569128341406 0.0043807501231007892 0.0040815382384317526 0.0036107208679801062 0.011983618166051679 0.0062877310032077643 0.66069311679116716 0.0046319346537733661 0.95206785533220428 0.32142033378211121 0.0036222351567618992 0.0040821449162823844 0.013549451928904123 0.01563225384577693 0.0086119862735572067 0.20223562095266007 0.16281032630150219 0.0094340020859362515 0.0051265905732144519 0.0041010207225085091 0.025177942062580016 0.0086625908279320974 0.002663180604379142 0.021902804198689941 0.34685344717253974 0.020513305054148737 0.0069452301573554379 0.48700766411238261 0.0093723004551355283 0.026528389217541908 0.0070049843586425303 0.93021603883991566 0.98304060130960536 0.003303196834157065 0.35362872453544153 0.0052356490250524126 0.15499154044670976 0.64382753054008413 0.0070428359517167244 0.0063921964516438692 0.48656282930671674 0.0029322223698441531 0.47957891888192644 0.15546320771714067 0.78913961658511633 0.021164016906450863 0.035930275386861714 0.0063078933583899828 0.0068443668718642728 0.0052467740935205672 0.023483344776246015 0.0035572078490899678 0.0034481002978611324 0.77865660436368322 0.0055540192361458697 0.22965903585753442 0.0027264258577855329 0.18111168887840029 0.007178767731084475 0.01282632930406752 0.51916189097021026 0.0022795248632918779 0.31340146517516804 0.78828653344679889 0.0044232396792706317 0.17094020315780117 0.010280691062846518 0.011692423330484984 0.17750086945617358 0.018793765264314779 0.003813083743747535 0.0052175436354653885 0.013017193886977045 0.80529853629406678 0.68568443985020866 0.0076706981334813823 0.003714042303113757 0.64737183071494386 0.66997077021767404 0.0025449992766366407 0.0079268247292137977 0.16366250231681717 0.0032163771168331004 0.0092267847388764809 0.004869729068402804 0.016743561948752247 0.0033371427856569553 0.80555122072208396 0.0034715181639017258 0.0037292551097919896 0.18684887572918094 0.0071076442963359503 0.017612520836773074 0.007833252221071195 0.0039501198607606938 0.18894576458888174 0.83062699920766825 0.75494425816958843 0.0031388652930543822 0.008984263307351234 0.015647496795816881 0.019093785521309154 0.0033729595121629718 0.14188896696204065 0.0035837911942735541 0.0030377558906249298 0.02645777113194098 0.0037057426317772986 0.19237315470711566 0.0083670437810034141 0.0067951856050686189 0.83184065951656216 0.0042394639062154765 0.31139645675676542 0.17354522532090275 0.0030030193150100233 0.32877287172940911 0.0029487241510892368 0.17211281553789715 0.48086034759043689 0.0079203451005608431 0.18407730348613729 0.012389802011431472 0.0073868447076125398 0.66020788502209449 0.013918851691043611 0.52275883751517305 0.0047965480574507051 0.014848356088295357 0.010915149229376536 0.0065234126596982987 0.013840201281016692 0.0015114502106984759 0.015978294349842641 0.50698849086068831 0.97315149211480967 0.0026502962162084295 0.30534038802037355 0.33784229579854186;0.3652543961593826 0.49192150605424867 0.0063378235491461342 0.014156838280547219 0.080088936921552029 0.01147567832516945 0.38887175070051383 0.014482932513096255 0.0081026220938062929 0.0057911865084930639 0.65477788104491574 0.019468881586700248 0.46180930534381448 0.0063034989134885429 0.0065937952508269351 0.010183526570562011 0.01339599937267202 0.0085305687299435939 0.21837941316077442 0.010974312224407628 0.013449906568775819 0.017229014271042568 0.009415673393548046 0.007092477290429158 0.0055130983838228027 0.0083286120428271871 0.0083147504780102729 0.092584452362257402 0.023641721612701387 0.0087034471254969752 0.011369147437130269 0.925287011451152 0.017499270543172012 0.019999841332186203 0.016859930826666415 0.010196128108687747 0.096977631479467724 0.016739386164695103 0.008451231576154114 0.011349005735521552 0.0057122881056238554 0.0062853558188467849 0.0071494980127663451 0.43195297202262595 0.6542270835391053 0.083630167279394083 0.016262173670970659 0.017774441111141733 0.0079683240315980858 0.003487241789655913 0.0072167286537752852 0.0099433401819120255 0.014275231044235011 0.0063825930304993398 0.035853531675746675 0.013382137692613576 0.86444177885519735 0.0088581605587183948 0.0077348015761700998 0.31644358368288744 0.0075279282623698157 0.87273123968426003 0.007897466922160137 0.01025561731478427 0.023955612411700359 0.0068959079838256075 0.034869607042517868 0.084174335397698405 0.25314109627111681 0.094554560918705913 0.071564091832455309 0.08883019821654288 0.011276403801387606 0.48894107665261383 0.19620632206065153 0.014759203737062652 0.0069136842454421239 0.004695294762950112 0.0059863988044442564 0.24628619410967684 0.0088176899098892786 0.084254991179394959 0.071020673461306402 0.30999144367387582 0.11590940494621597 0.18268478184440351 0.49840410717408723 0.24340113398855842 0.011129145071447849 0.012632870768499222 0.0043200716512559172 0.40228883096015883 0.1776823989922228 0.17763251098400004 0.1183839454249615 0.11053187585129766 0.24253275007640204 0.0094487569843668615 0.4541688329859932 0.013010721083307043 0.008329707643776647 0.0062002751401234761 0.094000177689973832 0.0074240984672682454 0.20952393821031376 0.0069644861309980334 0.42581477845966259 0.0088225482613623341 0.014627561447331374 0.014382300876132528 0.096892223045607434 0.42234601658223858 0.18671399128256128 0.0055016765992512429 0.016286016069082157 0.24892276481947687 0.010774694969577529 0.023148013865908125 0.2092633257318357 0.010594859252323481 0.015302690444965942 0.57328024031102642 0.47215854309668653 0.017128651852792515 0.0087324553287442732 0.093502289479030457 0.004850936797361545 0.0080124471775534535 0.0074575114512640539 0.0057075671768040499 0.0084211456049852629 0.062586893489745957 0.066806639431892759 0.010934144476603899 0.24547004828193603 0.45989209783368024 0.01221313337483872 0.20198326335867314 0.010913038690813949 0.65928693916583869 0.0086750758350101365 0.0042265898744420884 0.31739531973316493 0.0091257081373502889 0.078004741502371827 0.48687679988731669 0.0065884491866832944 0.48325613709236587 0.01564906857249455 0.030935658408135943 0.35912742375829826 0.081752261569637275 0.011784488466995691 0.66318990139766687 0.006534627232687577 0.019981810045299916 0.021003145006370617 0.25326018638043168 0.0083491276952805844 0.25834023967056596 0.087703881543702095 0.009367972455326912 0.0078158408567833952 0.012154542536259357 0.016948547583581858 0.0088955949428750382 0.0086078119051498578 0.07197220694163689 0.004635606478349397 0.092028149494318201 0.31576948938207122 0.0059294935141636536 0.0044694034800087752 0.0047710368410957462 0.012110628045035383 0.015061234492932975 0.1805361691392372 0.005337586333427638 0.0071627974178072986 0.015099960782093644 0.0096988207413207603 0.0061185672855644671 0.079102695941235396 0.010897360112748375 0.085086254398977393 0.51006675758377062 0.0089478617577111643 0.0097848671695498438 0.0097514882042019583 0.0048785518665142406 0.012006357284408489 0.015522351991693148 0.006950810406777184 0.014308337172750997 0.0076855520030438169 0.0073151994718126528 0.59602515957837299 0.013529269871012235 0.0067340191129331064 0.47788912943946671 0.014853833840591866 0.0094769095888968674 0.0074259274551391422 0.4821643307574458 0.0025076264381845826 0.015889352733129407 0.0092165746878908501 0.006275909214891187 0.0057883367351056489 0.083094918291351863 0.0080203177616983076 0.011773078833311575 0.0030085217072996972 0.093968492805189222 0.48541449023753735 0.0044582056859985269 0.094975486893092501 0.012296832140850651 0.08551257201695002 0.010976510708665852 0.014369879338321878 0.067086203784609291 0.22051231491041082 0.0062338808579680697 0.016340803370131406 0.028229519284442044 0.23575499684836676 0.92733658258374618 0.86375675556335174 0.26027541636480961 0.021081918668723519 0.3989778557905031 0.023534830259656452 0.17857426675081262 0.012027624959812458 0.217816928650828 0.5821153492340716 0.016046322427299285 0.089791536481525561 0.0086210496671555968 0.0067491297019727338 0.11953239565275353 0.0094648063042482595 0.016263653723121527 0.015614506426338066 0.0073814712315439486 0.010622111674118551 0.020351108880905119 0.0835526155006827 0.011055248064067274 0.020594413348953334 0.31095673772152871 0.32583364564722495 0.14262001081029141 0.060492920571587998 0.0077661503252948634 0.014783877217988121 0.092817377603433698 0.022187901417314429 0.0037939820569136374 0.50277088589171581 0.36695317833127966 0.0085893885205119078 0.0052344552014566142 0.007065312068735112 0.010653132123973053 0.0050123628950071147 0.27594671092387457 0.011659266138955819 0.017754445941545835 0.010136204100846816 0.00842192940421033 0.0088185094329948695 0.0089528211262021803 0.0089868711765029932 0.011299972486430186 0.62734032222037572 0.22500603683306625 0.015697816762732821 0.018048118739114799 0.0044743985417977769 0.025157299444972112 0.011349144710097441 0.0062948505359858948 0.31745409710357841 0.22690243893866549 0.50996811624091154 0.0075774389965128234 0.094297481042215817 0.0083799942882265173 0.0067154273723674263 0.0092480798608756635 0.010029079016864556 0.079384867645928434 0.53678263008751537 0.7869274361962515 0.011194173614324805 0.32874762822265002 0.013893861754451429 0.008955523451816964 0.013215674397746999 0.023792833705482904 0.006902630889181062 0.50878521019131373 0.3223633980211173 0.63033091851478174 0.81890012954616975 0.55660796804149559 0.092221961159969792 0.011887632667074271 0.011072889624564455 0.0098741386549362313 0.0062823250713442249 0.0044235044959783539 0.039471650364651958 0.01485155377168686 0.11622806811306714 0.052182531840248132 0.61560361439164246 0.0127664468581498 0.0082226945446620715 0.095752314844465364 0.0059236974755841705 0.050664977177947011 0.93103382340555207 0.014383582166792627 0.59849833282274134 0.013900173412411846 0.0095888748251384201 0.01256749023351636 0.20594992591121666 0.0060919406781430978 0.014844082123949982 0.0034902022676168037 0.14491423577406171 0.10043637642482468 0.0086184129623100361 0.14569797121342234 0.60984841562918046 0.24511000844266392 0.0095774667363535404 0.0057197225566014177 0.26122928555298019 0.005786859621740352 0.011047911426304558 0.020259207316256692 0.018013455479581837 0.0083784098103485936 0.11581265445065651 0.0076489746880033602 0.01092033972182827 0.019138282460179398 0.010314075064034645 0.013381399175419311 0.010186396460027775 0.0074561979455401734 0.87537971743924958 0.74393122913846987 0.34914864983468041 0.0062789513400649845 0.0076981826506420494 0.39152659224363046 0.010510155837638093 0.010627101976614987 0.47242543107971446 0.0090259818614906537 0.0091013458128349628 0.080417181450037734 0.0077618454087685571 0.23119793136324962 0.015060515895926063 0.0064779483608580178 0.48463609561221982 0.012219928714611215 0.49745560125338517 0.15607954644701011 0.016506384452737596 0.16699857160803111 0.010244110733428079 0.47575391306548848 0.11786185129549856 0.012550362602158058 0.34443316148232855 0.015057585144012613 0.0090002069106600927 0.66304229648584856 0.0078049326890415188 0.19391161496321707 0.0095578648660448288 0.02102667467411002 0.015437450401294158 0.0067511577173995007 0.078558524728934556 0.0073142955355901471 0.048627719262910693 0.84049092284072979 0.42203570093721293 0.0086832211653365236 0.2879785257168071 0.26235973669848489;0.11448684883903881 0.66093412438334365 0.86434901178503631 0.00470158116406863 0.0032447328097862547 0.10906196555202491 0.85916888880731068 0.0036005644501846852 0.97042440181633405 0.21806121425786001 0.5472170986220054 0.33628720020415298 0.013030444459851851 0.76870219727575606 0.0038040688824088945 0.0033673938009270909 0.0026828232851676885 0.0047002291248729091 0.86221770239376283 0.005387535744256257 0.0050326388847473707 0.22754451545412005 0.024574078606169451 0.0049200544669341382 0.00127752917007533 0.0024373395663019356 0.0030089481184072163 0.0035871430457652381 0.10340594506544767 0.0040176081598767531 0.97322246419110714 0.22635697462701018 0.018903996401695957 0.0019471258571988619 0.019054843756334823 0.41771160871386348 0.19939441163343599 0.0052240949136984124 0.12403204494498997 0.0044733735435585299 0.011715855188401915 0.75413682167829255 0.0019614249097297722 0.012702191548874329 0.0073894347789343296 0.018937030326881935 0.0026210398054815733 0.85848995612239309 0.0037888340850028941 0.0048791280548998988 0.0009829295530715031 0.003860273668052396 0.015930867359542498 0.0031407171842245526 0.64802594012014869 0.011321084982233795 0.029114316292226303 0.20128894068683933 0.030943271491953996 0.21405837352715304 0.0085602677946798149 0.10370493852185993 0.0081814732367018229 0.0018321528093064425 0.0042695044768147183 0.23571744686969209 0.93626993534418546 0.0062852378310849898 0.003635488583532253 0.01552945814221497 0.76524734367178482 0.0068135814423188517 0.00364817434352596 0.0094178277145083675 0.75357316811362485 0.0010022040275178201 0.0034680908757928411 0.0040053478769768742 0.19782298901512521 0.0057359755626720452 0.010376958464897786 0.75702235938327445 0.0023033861132779497 0.3130831607018979 0.21777713194118978 0.10648634989893871 0.0087728475555088684 0.22340926401298561 0.0025655460308706616 0.0088933961053336372 0.0038463068225626949 0.0033021440417542701 0.77260776740544435 0.64102501029093328 0.0021400051396895286 0.11992092116862162 0.14645978170663798 0.018309657912955298 0.024359705267006881 0.0093463865016388502 0.21304911417135999 0.009307591074522472 0.0056218905053952535 0.22842202185100391 0.015435551015214512 0.0023959622374319979 0.012418879107057149 0.85052591856224358 0.75197643621189858 0.11242642537921552 0.0031466870163722477 0.2157355612135779 0.015139975931453303 0.0024303828345322129 0.0053359331106928518 0.12166141106888018 0.10249193478201593 0.010605651995598939 0.0049022648622885938 0.010165485209736343 0.0054839201520727274 0.067890320830063342 0.003650139281638945 0.0025934218938177839 0.0064728070053652036 0.76854695133791684 0.0017614289186054042 0.015227733676795596 0.54663565931031277 0.0019031785114706214 0.0028101818870037748 0.0066233753888940376 0.01979070820283604 0.7866795342983588 0.11733459855417008 0.0057481024654319956 0.0032377691804072986 0.96646486312740876 0.0076959342894885509 0.010275098952742239 0.10771899051821146 0.0041166910356388673 0.0026971630921016764 0.002466890173273774 0.75891919304512856 0.238265259491443 0.0069984308059272632 0.0096722999364135115 0.0024528486020512557 0.0022378836924112472 0.10078388382896815 0.0060387673989596219 0.0064826200969981063 0.41184152759975512 0.0036031347403610811 0.11592050828266105 0.97890245428378986 0.73580651006643649 0.0048130036413362937 0.75393530187069191 0.0022940191300507649 0.0036753399185766133 0.0017298889421285971 0.0070038426143608969 0.65646434520167118 0.0073295811201922658 0.0066752407372214582 0.46592380331181149 0.0014874477597674577 0.011439886633335323 0.62572309555250416 0.0026557957175323541 0.0081931071297935611 0.13552399567221088 0.0032518064195706576 0.012013077388031514 0.32154665399829108 0.0016709979873219356 0.0018581781354965069 0.003601022071760523 0.0073078304351881056 0.0012374494316960754 0.76428509436756276 0.0020648769546682171 0.31404269619996261 0.0063403666704217989 0.0029303906467563882 0.010247661676838403 0.0022251783183773227 0.0022265709401919779 0.0027283234565974356 0.014805779534087205 0.0018730387189926172 0.0046104647872301039 0.0086752419171078655 0.0020545077655883181 0.11256279344808913 0.0050700121762325256 0.75674690002824629 0.0028947901812523867 0.44517427011762845 0.010852732052688149 0.0017637319341357548 0.0052038811093855619 0.0085685876202998765 0.4341728742286593 0.0019601183811871303 0.0056421733949137028 0.0046031801381365587 0.0053781124951024599 0.11945479090615083 0.42702748845473654 0.0037164166143992335 0.0044660411304779735 0.0061340856838047342 0.012129302714433403 0.20700868788389812 0.0092905783171105417 0.003593644198083014 0.098605839253347566 0.010031499144712113 0.007736212912934584 0.0059707963881184128 0.0023907633907333937 0.82905026230320944 0.0033593224712338693 0.22153256515470882 0.0064300659914043202 0.95395255851821037 0.86820764632333081 0.011281260268053567 0.013965986647198093 0.0034035233178832821 0.85454233049904904 0.0082714953914816702 0.0039391543869165685 0.14720961570639335 0.0026672934666906248 0.65125156637980675 0.010551931455385341 0.075021911460037116 0.0065468915833145356 0.0023278440051027393 0.23042690998416082 0.22185506949715195 0.76288311488247706 0.014159180220310439 0.26069288917081668 0.34345220660328729 0.0033056856950323429 0.32355441873417579 0.54848791364763949 0.0034189922155280343 0.094886562970337637 0.0029291249739091191 0.4199196509284725 0.0057565031909505918 0.35259141129188343 0.0079438856162990269 0.0051648899229566631 0.53406448275746277 0.0047175940210466803 0.86069494481239495 0.0075777332938316531 0.0035280667024416715 0.010959580964754249 0.00478250257023978 0.66627899095776077 0.0016143874498999729 0.011257541843940348 0.77910520697264019 0.0047863565320712441 0.0051904242132733173 0.0054740777138832849 0.0041181075176671845 0.003750253067893851 0.74885118027196562 0.0037011600683339268 0.75607096898743409 0.012493438191875291 0.10579372626362371 0.74992468514571253 0.0069906215341449191 0.12920262774148661 0.11508942013038624 0.74975752290292763 0.11135729625099394 0.0019914751579085039 0.0022879954478527286 0.0012687878107255945 0.0030706287955122244 0.003349927713985297 0.0029282971058499437 0.0050647525533913489 0.1187950898798709 0.11506321963072243 0.0086728171121999605 0.0056490855044305857 0.22644005219220845 0.0026391872687515014 0.0034209579950417704 0.0011421930531101709 0.0098875674048929385 0.013076715703689871 0.0061334761030468208 0.012785125575197658 0.96671171335618322 0.21895874569996923 0.0044525801000347698 0.0023939921129698025 0.0024522462646252704 0.0032487312750822846 0.0016189529183095251 0.011696900364411563 0.0073451559475036033 0.99597714875251753 0.21742056428181938 0.0047876450360546446 0.11272937987991352 0.031704928597157192 0.0037852315766904216 0.0034684324390213514 0.0023843844310071412 0.75755564783479001 0.97607927663631155 0.0076426505002333877 0.0023739281318248123 0.11419995202116991 0.0037249504412425736 0.83929603093123573 0.0020318836931977279 0.0059788258128231249 0.0041750784819838248 0.0034970354187435597 0.23736320728736326 0.11601782438352547 0.0036832154113726821 0.017838659922472876 0.8619781610386027 0.11315222171091657 0.0093558502783303368 0.0023102761205606912 0.0024599827751098096 0.0022172375700894825 0.43204642353435257 0.22899458667880651 0.0037208950874230489 0.016858139716073799 0.014536445881374906 0.0047888564511454571 0.0049550966805816951 0.0063467746164149871 0.0031398784436964099 0.004824440512535064 0.0026625332137281115 0.001553817239587555 0.25523027991219227 0.32964280853982153 0.0022416023752842109 0.007559708269513246 0.0038656424511293967 0.0080844769259226356 0.004576536968174217 0.096920667860361701 0.010205145853232522 0.00091215368951596165 0.0063479958306709525 0.0028123071998626052 0.0024136878175614971 0.65676800689077808 0.0028748406366246298 0.0030288506958420875 0.76223643943857311 0.92379466294180601 0.55838707463631931 0.0035005277600610235 0.20141332237260925 0.87903069859787208 0.0019964010669323642 0.86430537213780867 0.0015398563663083118 0.10586134692080693 0.012301380867482205 0.42408133980707485 0.0053060361456911424 0.026907244166949777 0.0024520039323303743 0.035018577737342987 0.005359944916030623 0.12654451925304697 0.0016058759402371643 0.011718466952636238 0.022460338815272388 0.094654887438487975 0.002938078726781891 0.99067820746189339 0.17709224638497578 0.0027184223995571689 0.0057467904704786186 0.012875134966719744;0.52422997777775837 0.13138814785316638 0.0058915328512013001 0.0031202855246626319 0.25096774611554418 0.0038541464152850938 0.78556168834972162 0.0052168984441377936 0.65538019128287561 0.25499416038464173 0.0033471107207987956 0.76736065956258859 0.0034037072131918433 0.72311772998150092 0.36921204004075148 0.0067847968407422857 0.0056477347736217636 0.74460318914462587 0.021308824749538366 0.0035380702839294151 0.0068492704855283807 0.80492855768809124 0.83972578623281291 0.14875021061451968 0.0096535669200370454 0.0022737135231460149 0.0063896435358123992 0.37467321905464052 0.0099686191844715888 0.0016471680274792021 0.5608946209167267 0.4935607470238047 0.47372250260092152 0.25573676313634697 0.13179447547293208 0.039776358195106692 0.14471469515106078 0.004447615019000685 0.77273268453713428 0.12865600672604896 0.0065802681620279659 0.1374433464162762 0.12781819224901864 0.0054246395932341703 0.0062116688204157337 0.0023327256051095409 0.0037063913605725066 0.624181033291767 0.0050735738363609888 0.13983180773703913 0.0021906489963880518 0.13018210269495706 0.48382945579824099 0.0049332695059230297 0.42603095352442405 0.0038448468726351168 0.24931315492258413 0.23094239206946945 0.74300547066710354 0.0094615323839201144 0.94609187268733808 0.0082906147296923759 0.25453563930749523 0.34646946407249368 0.13996630798359236 0.4824315392946486 0.14276118437038354 0.004470095192095928 0.0086284515620246808 0.50083400581714121 0.01584536325896508 0.021325761555082673 0.25091325229287442 0.0064710064098103936 0.62773514112994977 0.23951632540295892 0.0035246241311289966 0.35947383164381791 0.36087861976944385 0.0024689413749924109 0.01357153761241937 0.11606908575836083 0.13448353857751277 0.26555689177080072 0.013514296014131356 0.13518678573404047 0.13810220867760098 0.01770795088567707 0.13007447389313778 0.0044243500418562707 0.11840175344327529 0.0081385827223719679 0.007362630348535416 0.0069640625369015684 0.0061373014480059929 0.46137848103932333 0.63041681916353554 0.58267152908761333 0.61210408319660781 0.12413017076826423 0.64774152647585692 0.38732197255411527 0.23957002367268576 0.13115165507210327 0.0096898016421644584 0.1313931636164469 0.23244820408985933 0.13456674862145523 0.022646211500796987 0.13163453994387725 0.0067107102695333444 0.25659825287686694 0.0027230993828679037 0.12340357957121172 0.0035609686910643736 0.017939274857584914 0.0051257097840978509 0.020336645008524262 0.0062068413660947988 0.12840088102947719 0.34399850398062798 0.61194770635305362 0.37302804825495395 0.004697813290156734 0.0047613266169819419 0.0079920618614508967 0.0082671948529832572 0.0027271669481955035 0.00320346972097592 0.0063912466268183964 0.12688466502031048 0.13583457569957008 0.12352178302918952 0.84423423599990177 0.0066699603239881722 0.12333266565680827 0.0096468831041979751 0.98848101115657439 0.2532918018884463 0.0087487049911772214 0.024993289011503574 0.012727018195015202 0.0039354228047754191 0.0063024283498755111 0.12914287352402226 0.4973730220346273 0.0030379265228170291 0.0086668591193026726 0.004927575033017541 0.13032067466390768 0.13048172101126931 0.13321976856459272 0.24228991461171315 0.0056798703034788862 0.14774335534270469 0.22544289092360809 0.61377588833906149 0.1142279027093665 0.37490829387043306 0.25649685059806532 0.23344360915329704 0.12233320848821141 0.14378980258390883 0.004749911778745103 0.14542554381047557 0.01338572260935598 0.48557379653599136 0.36077490836615533 0.0026440107791361918 0.26265144432231813 0.12429166645640395 0.24286285048858908 0.004787081912849829 0.010767424512527901 0.3818922421246066 0.014430337422616188 0.42733092583920851 0.0025435393603459055 0.0027942041276997447 0.0038631472128945192 0.12897409008423807 0.0027519814605728408 0.0086214461659718123 0.0023416736930704056 0.57709410919162341 0.37524927636035216 0.40333018153268552 0.47339030227682966 0.13140977310782434 0.010592822685055342 0.0029887918115061728 0.60643276384367772 0.43989224719335279 0.50605899375001706 0.0036173530278798762 0.12647620335122073 0.15184014265718013 0.36252047414452204 0.85959090275672356 0.0046497595023214794 0.85348229239630202 0.0024308121466283502 0.13036237493180891 0.34744896349120591 0.013079511025906357 0.0052844974444115692 0.018101086179654492 0.25059140397631413 0.0063480826572141266 0.38229572589275357 0.016038278152728798 0.0046169461450952685 0.0035475071295205055 0.25271646213052645 0.61067983421975924 0.13322521048539676 0.70328811498309474 0.0040946784893324643 0.13541027105228759 0.14092173492810769 0.0083769099271149318 0.015987534143676842 0.24167319603062831 0.0069298448295939102 0.010506606357031649 0.12955421416315843 0.012072277837404876 0.12216474420569189 0.0071506904402470562 0.12438220345294308 0.0060747586526088866 0.12240376674196837 0.12765648119386969 0.13508493402152169 0.34245299611251789 0.0059837108852530563 0.010334185319198387 0.25172788029648946 0.25378515703804433 0.0033058846707497394 0.0056088405706932456 0.13879602348561632 0.12135668854210908 0.014035760433551436 0.97400758937049969 0.1330829817513651 0.012775998036853697 0.36624368066413349 0.013232583812492892 0.50186980429580463 0.84742163838750861 0.49677396728853662 0.13745620303597655 0.2571649708762877 0.0048166474448059033 0.007425753726852299 0.25096686877726471 0.74473873661049417 0.34143046357954104 0.0077682102064136052 0.0096037924107088609 0.11760341968343305 0.43245374342841741 0.24686309258322994 0.0039874236545118374 0.014758269933079562 0.12882864087399998 0.35705272776464264 0.0024226145957065197 0.26018774366517822 0.38608265258601471 0.12395203835688526 0.0033515247488325435 0.24731878668432464 0.0037623263404659244 0.35109402099511644 0.70073444312859057 0.0091041543638634495 0.13035922337677291 0.0042432851588722021 0.16479065733462425 0.83674814861884961 0.45279786028859476 0.60899739488752791 0.0035408374753801153 0.46612853053012054 0.2569477732552306 0.0059679936615702912 0.13071849592931184 0.0030745447515222657 0.25449206701386834 0.0014160547480452166 0.12918396850949199 0.48251466784369107 0.13920743372080049 0.11234925955325759 0.12842007539361569 0.0053466255497370205 0.010589165982831305 0.0015373575399079981 0.12683859837610773 0.004903573927153783 0.0064107392057766834 0.0026725614935297131 0.0084575639730567614 0.37494636189306318 0.23976726477804267 0.0085319481048551932 0.0029511590869779696 0.12964093492158771 0.12206051214794361 0.13903301104249383 0.0012984784123459096 0.0031323773130920202 0.12080467378401935 0.74599208031417263 0.009021650304479616 0.12891991304990102 0.0046886379908553802 0.021265431373889428 0.0055542444452467855 0.12417493367715762 0.003490673953398798 0.94430141015494806 0.94589702296111822 0.0039334933962285315 0.23489346081675391 0.014008064610781201 0.010596541382139489 0.13469592215990878 0.0085474723689931802 0.12255382485013538 0.014507402610009629 0.23925445741466991 0.51537079603692193 0.28649669556670621 0.48956356917262112 0.0075455109773944649 0.23261440365385813 0.84642455087767055 0.0052445146521981545 0.0018925466765878653 0.13283513618537285 0.12738130237428283 0.0042900723100956816 0.13287820519442878 0.0052419306282038896 0.0072164121239735729 0.37323190002970574 0.25457684446889295 0.12920407262791356 0.49108333200740933 0.0048954373541552892 0.51932846230544072 0.0051412469525780108 0.019743681349272683 0.71476430954403614 0.98742590260595431 0.23086353373196558 0.49756636250778175 0.12852510019141283 0.010496955891016017 0.007229681248421084 0.11886252949180204 0.0077686200082013974 0.0018964260380279455 0.0090347586252882989 0.12731445042402403 0.24018795480971539 0.7344457774216695 0.001771839764262532 0.0080156544607834761 0.72393028695698125 0.0028060039796277097 0.0065993257024660164 0.0059931301492875122 0.14950983873764645 0.25732213541682381 0.0066519462832898193 0.64500138032052556 0.0039086854584570877 0.61008974887200484 0.26542874074037298 0.13047436844600935 0.0048383660505070449 0.012014183064055132 0.1275090024388609 0.95762236325875583 0.0024730001506732616 0.3902406072492397 0.12634364385730443 0.4433128146036302 0.37956146230980647 0.0039074148462668297 0.0034072163091625383 0.87520383972656057 0.0095538783712800814 0.011293922850891612 0.13612987009279653 0.017834446968085275;0.004860707240810079 0.01334926324190806 0.050515544659837305 0.005748575084735608 0.018149569045003616 0.010859674339994352 0.005733363977683148 0.16000074520895011 0.19236297693408752 0.32796502955176787 0.0081768097213461184 0.32692343482337521 0.0046038121756832202 0.33838669780531228 0.0045422484647416822 0.0075160500272942639 0.15995529668517217 0.0082273206795706495 0.92409747834032152 0.010827784356775188 0.91678119573610717 0.013349230394112815 0.4286158678439283 0.0085615901950943443 0.33944577500094908 0.32410555680573983 0.010571864936777418 0.46779875117578867 0.019660477954041387 0.0043066851100232147 0.018512443136753029 0.016606146464578666 0.0037958532640114816 0.0064674511097442032 0.0079769126315249322 0.81082218338710543 0.0063528957447784523 0.64707612117364399 0.0078218010870155195 0.0065495724011465353 0.017483436038426253 0.17749981661664235 0.35335891762451493 0.0040291983019255188 0.17337058439558098 0.96244642537502867 0.012938661150884913 0.97458017910904005 0.012235401187466624 0.015184760461582715 0.0058434941979264559 0.0089024098206075437 0.0097007007088410913 0.35314222551225727 0.35108678612865429 0.0058133958233668858 0.1706952021403472 0.7814985741397007 0.0093225061175840132 0.040943223807740084 0.66706517880835037 0.9689280195842771 0.0018029052370095585 0.0068994665613464215 0.020112186011592533 0.83000312111825758 0.0095947228179839878 0.010627377996680655 0.80481714967291496 0.020756321407333505 0.0068183073460687067 0.32860770286606733 0.0045767404705279926 0.0068931880792226976 0.16281860399059803 0.0076845153918852806 0.50957749695916488 0.0042549047605780436 0.0081731081116830466 0.018062380573162999 0.58423503492729079 0.0069460758126617707 0.0053573577793262044 0.011786534063364638 0.016028387841925073 0.023022332030932176 0.00579041456328708 0.0073234172928817185 0.51475470433711679 0.31734344245995039 0.0072422669875537929 0.0022245761372683506 0.1505673970609567 0.0032612398407509723 0.0053647861400510227 0.33735436794019108 0.0095334215200299291 0.036655529392230754 0.013879014708172868 0.013158314080295297 0.0049048796959838582 0.0033741563065760464 0.0072128557879605135 0.64252943590360656 0.0065949626616195276 0.011561630878912195 0.0071321047724222575 0.23870213083046871 0.65221371131648287 0.00829267776373112 0.01086818485888688 0.5856739560295311 0.0093114128110954406 0.029495000286726455 0.018778163452448961 0.007427957349777782 0.7876509094721672 0.009590286189895398 0.0049146474923728034 0.019723888904133634 0.14296689720866002 0.011300130525501939 0.0096556030779258971 0.0075849909214021211 0.74357887084121488 0.50119528797287638 0.0077694042278526349 0.15733764880059994 0.005117272688370149 0.00547486929479017 0.0073237746267063811 0.16578725439786701 0.19582186384073172 0.18815599852601192 0.0064569782262456459 0.0078527181148923368 0.17156882030825155 0.0048102501903455174 0.0044518101100964758 0.0084678318341638841 0.80838127678812266 0.48802466305066039 0.0077886172076351394 0.49571070754428948 0.015429541760257055 0.029981898401101742 0.32556132998049736 0.0054572503857061106 0.048190831065379656 0.013420793840079225 0.0048186063338862177 0.0075997438785318531 0.50318153378224895 0.18407247560412773 0.0077074326592101216 0.79793090544969214 0.026355206370930098 0.016885229883664053 0.0045245144826626697 0.0063967475144405088 0.0077017450544049383 0.0071420349547915239 0.015426361457301602 0.0052351927313975116 0.0085907696716190085 0.0091125238007323198 0.015724747094201599 0.15159159748948628 0.0050640891061520706 0.18766270396318255 0.0071207296031492165 0.0032877407161962142 0.0049881749850667935 0.022789202872866766 0.020921743622372958 0.64814760885667688 0.0018864082480404458 0.020771601084982969 0.004900544208054301 0.81291199941027026 0.93326462460908877 0.0094361280393493157 0.0055258734736306535 0.0039769321805989358 0.29796656606779903 0.015238394173259532 0.15811919795439364 0.31004768212895545 0.20147463189112536 0.0093946275411829483 0.012671100356682195 0.46804234511700182 0.0039339464484769663 0.0069558873672200781 0.012253983606629399 0.0014453608648939329 0.0041471963891635795 0.68260397292822206 0.81980002062604662 0.0051791749013070567 0.012758985061796837 0.016409505219300943 0.0081089129504177161 0.0088188614179027045 0.34989498972620148 0.0071555166054417668 0.0053748270327322774 0.002131903815354439 0.34697559125153321 0.0044506315613250889 0.32654605832939643 0.0052790972237935063 0.33807617422585418 0.0060831873397176805 0.30597611913488937 0.52277172812454231 0.31498489590792872 0.0095955320733003332 0.012107611420305116 0.010007163766932316 0.0080587202569607011 0.012865607812339567 0.0078851964636181045 0.0081873974872850967 0.82861247006331884 0.010138585023010542 0.0043060760144260756 0.0045023674348746399 0.0085840930301973005 0.0035598274763194854 0.20138178618804312 0.01047333128838716 0.0072415109352503212 0.0047015579126669467 0.010274198083281394 0.33320555772090915 0.32258101235133219 0.16763429955931464 0.0085895991276949205 0.50402782694236592 0.0087099215059511289 0.015084317558942854 0.005211914765212879 0.80592123274018479 0.0084768710124362052 0.008244184933504305 0.16293175109181021 0.33569224301790312 0.0066542282451331307 0.010970149967885923 0.77280756605346235 0.0084455553374110873 0.0093710824237985945 0.49367386793073664 0.16150243788714319 0.003952035214822857 0.15815786500474399 0.015153820941938024 0.008056264738473904 0.1809460572850233 0.003932300855352254 0.3075499631091767 0.0057467229180553957 0.0064543912021235777 0.49293170181708046 0.15503510101340373 0.0083107639183205035 0.025054614172552475 0.013218210905149325 0.17884031837183953 0.035279466011961774 0.0058393652123098676 0.0053827216614643547 0.0054600609645848782 0.65541240422514546 0.16153294960476033 0.61709540283321251 0.0030617039205802234 0.0060875599048423601 0.0037744012541658808 0.80376638299023484 0.009573989956291086 0.65213616527027218 0.44619535990585624 0.33694851280538535 0.32483187417027792 0.44635665671421554 0.0066748351953937832 0.0040979781093232462 0.012122853922534343 0.0035933366118897836 0.3442569941523711 0.0041461656691171396 0.34406601669348968 0.2862875515188481 0.0036032099035553326 0.027318338325731384 0.0065718623109481192 0.16564811941184046 0.0082956283924346622 0.23076278876089493 0.0065236501217042497 0.91417302451900739 0.0065139462050078749 0.16815406737475688 0.16036754487093971 0.0069798727492811578 0.0040250814212274607 0.030177577875621562 0.0071029437032387481 0.45760087028026553 0.0077638887416026092 0.012327394167564086 0.0269607334178424 0.01631110841993037 0.6420382877622387 0.19611139759094734 0.0083041853537774296 0.0047900463828097284 0.0086566773639162216 0.0076527994851202652 0.0029805000182944134 0.0039580256388129049 0.012162859874886188 0.005733697983338293 0.0066065134161998988 0.004140725130914266 0.76768554746310258 0.0061238598718939604 0.0066661378383905045 0.0080587278678649985 0.088213292202221169 0.74646996193953896 0.0043667470682480416 0.16774250556122555 0.0095851008016088202 0.0045485795526878803 0.33948038477497899 0.0056397706491591922 0.011282815161201262 0.79731234808951701 0.0064870357987299402 0.010380045548835313 0.0090381085910492265 0.0054793991627347651 0.16138966159003784 0.0056685587522631517 0.92922030480414342 0.16003997677764398 0.0066315027351175736 0.0059703902016833982 0.0069238380533230733 0.17967861434699103 0.15419504419466151 0.62215746540180028 0.0049146589514062295 0.0078084581630333194 0.33430686492235961 0.13917018735286851 0.005876142905623309 0.0040869449119000723 0.0092493292205554217 0.0028720657149588331 0.0080560747224680436 0.023089251836775598 0.0077766605089682819 0.0049128419617699296 0.18731917390244102 0.17312365165333699 0.90717625191560702 0.13508273792823888 0.56799821259876637 0.13581812457843187 0.18119398403469558 0.20639240610637385 0.16337759812289615 0.0084270327029101252 0.0068336163960859269 0.35080047142876547 0.22887634619944403 0.36161814306684248 0.0089686144477549388 0.0062338828602822166 0.35183189154589856 0.34361496200551955 0.39261554523220504 0.003952455661331818 0.0039806738252153176 0.0092200332535270057 0.0063775520358782837 0.0069436168965460367 0.72371419519929647 0.016979906753925404 0.0067924922607814032 0.0080372484717133961 0.0037585158841227009 0.0032482892839384818 0.16636775154313357 0.0040180587339132545 0.004643653111297036;0.0050413481052455598 0.016267609991920062 0.16267886843610083 0.0047861996716698513 0.011532735788788545 0.0051732095927430003 0.67051417023149451 0.20286248536020154 0.030786270442740866 0.45849849475672566 0.20532880617401669 0.25290084181121697 0.20157286178479561 0.021169425435250813 0.0047080371187462472 0.0041736448487361263 0.011239604195290779 0.0094342262468318731 0.61351373722973912 0.10170974580887752 0.20988776689472238 0.77643194598759002 0.30335974722605158 0.0080767832926840304 0.012330127532770404 0.002701946773143271 0.11320939146372871 0.0039049010422655302 0.11660442817630814 0.10607722879630958 0.10027666844157898 0.20714028663770045 0.0055270381556528289 0.0043343824408067092 0.012777674653233775 0.29546508813888095 0.11063203478483634 0.10673757633717657 0.18583176862777362 0.11840534376413667 0.10990957295966572 0.22037851989648208 0.015259496565572971 0.010416216253782036 0.009603805336185994 0.40905143532751542 0.19868154598024176 0.30353582050781253 0.021818965035748223 0.099936920183742062 0.0040424207161617737 0.0058583457193388897 0.3358238293924935 0.099306759860219515 0.10645969978904335 0.098724203544202277 0.63091430873724019 0.39930102451391525 0.85777751485134635 0.82815050943486423 0.54469933498864498 0.60175884914381061 0.096498618150561266 0.091663750016744178 0.86132565680866313 0.96341789273244305 0.011826962726969802 0.0071882723324608513 0.94990090246893377 0.39326830584123373 0.45118776796135629 0.11573587330053201 0.012325170214268794 0.27132871183161605 0.095505522983069621 0.0066971206929759709 0.30083873383934773 0.10636534039939589 0.02957458718453192 0.0060723372168481025 0.69223055252959675 0.28558536170238169 0.10781776639352933 0.83336779912700032 0.099672813895964954 0.21183357872709344 0.0068386154627336094 0.009287047219929177 0.012550952746834753 0.022996068044837038 0.013187270347341504 0.10050487495603316 0.012457948166582026 0.0058147562894255832 0.097095456552475867 0.11187418831913193 0.10567220924418669 0.2951586024360533 0.007704215682651035 0.10433837723660327 0.0053978982909620461 0.091903931739494071 0.71371265063680511 0.11609724910688365 0.48469844412822094 0.0075322858547524473 0.20541598777058293 0.67070693313999519 0.081988075446980349 0.15281348491249869 0.10109501106691471 0.077540478735873414 0.20684680524904764 0.0097321599023460249 0.22178557735255572 0.48166975864855605 0.20486925036263226 0.20337447403361131 0.0096741765853430115 0.2788765557805517 0.0025478586013726809 0.1050017806900511 0.0099924435656658459 0.0045097146039194905 0.10121041805759033 0.10108503893599799 0.004846436312550181 0.012330088832578769 0.10889510539582263 0.10471007531252895 0.10316050156264558 0.2058700670832819 0.10351749636157188 0.84054362795822768 0.10723556979479754 0.0040176535865422284 0.0047418612236771497 0.10977196041287218 0.010117571023778919 0.10698534210971231 0.86042576360999501 0.11594934279405482 0.29817834744148308 0.10457341010051331 0.11430919166394148 0.025556241944078621 0.41138256263676543 0.012399064557925447 0.007639763651187844 0.21219476316223013 0.10620664503099371 0.21133857086095742 0.10591075384776254 0.49870061720561248 0.0041994174975999053 0.47785933549023024 0.12472053307422161 0.32136958424001666 0.0093101718080012916 0.18671364158067866 0.0045117703067217218 0.0081709488301433819 0.0092515642172740185 0.10416564328097679 0.0061615711435609281 0.10813291898517557 0.95725556021755986 0.87675347347511545 0.0098877036610977125 0.0075820377497257656 0.0050504267995143352 0.008227691233919289 0.015318905937752082 0.007660715752484417 0.49920257034362997 0.33759599470449086 0.0095175639661597353 0.0055996115197712937 0.0060447392654672596 0.20375232684505359 0.30523876757439844 0.0042600856647861387 0.011714573599209015 0.0049246721640952527 0.34374428087178938 0.39384382647223143 0.37342242022848032 0.98408356046435308 0.84941772844406449 0.10320683171091637 0.010542202891380461 0.394206355228781 0.0096088540841895373 0.10223512884730789 0.11020161229151623 0.20964509979796708 0.10767587804046538 0.10279045567435166 0.4890517604149987 0.0041683059737042246 0.10031567595077898 0.11020022692666233 0.10441778723380103 0.0065386028235101396 0.30181669418398926 0.010945868325528723 0.0040025388288092469 0.10445640447370307 0.099780102109073371 0.10262941688639794 0.66440050367298853 0.0033291507782277395 0.10063866727186911 0.012256447529477719 0.10785691570364719 0.11021378946355405 0.22203111807613779 0.30171748450518954 0.87117211539752026 0.65803579945426693 0.0043256771376045415 0.58403404510113732 0.30770882874032501 0.0058337505577076062 0.20638825312114162 0.010106503195382723 0.20118182666636739 0.10351181871648628 0.0036617008939663124 0.011251529970197734 0.11640812089980433 0.0062562617224530305 0.10802116553829109 0.0074395313775727813 0.19709517155374023 0.10518551787816617 0.10063361681401814 0.0062218576395018186 0.0050743920552008496 0.69670111707252413 0.0047726574120575821 0.11452042946583593 0.0064437950232071519 0.19739465861905234 0.19720435787115292 0.14115576982259548 0.6520557708457807 0.0096287175384318427 0.35582295136788344 0.015020958032047366 0.012595277869774083 0.10773968789619284 0.0033487711314006408 0.015840561090031992 0.39311361730267258 0.0035980482539682383 0.011810899953396852 0.51241208770788649 0.10729331751017251 0.0053415750945024314 0.099785340228925129 0.01105851991139804 0.55950979614163066 0.10978986086943296 0.10026005415518914 0.30114051974906664 0.32837972592041587 0.21079143638742592 0.0088622435305351546 0.0089825500946411237 0.10800283962088733 0.015169636984875331 0.0057357913606968288 0.0077439451357195297 0.31293897515242719 0.003679369706562562 0.014940038635523494 0.11548640073268136 0.11969374465217181 0.12545876213182217 0.3941326202559049 0.0033291153225981328 0.63074616823128637 0.98298837375283221 0.50410871959875425 0.11378824481753262 0.36364467101736186 0.012576374104378285 0.094637653748104844 0.096915959824689271 0.0049777397134636312 0.10331279890337774 0.004402760021424256 0.10579637750168952 0.3035528656745714 0.014295893553137581 0.015535011822251829 0.19582636592091715 0.024790223105415281 0.0052641593607573919 0.41767103368656855 0.009550493109790191 0.018270927934348605 0.40106055994940948 0.015792440542785814 0.0070593446833322124 0.10165939567625693 0.13206155133239841 0.011423902050295863 0.011666692302080001 0.0088433384597463201 0.10168023328037316 0.10413535324782643 0.11278602790541355 0.012188149522039565 0.87352837576008113 0.0082681483527630613 0.34100063914759349 0.11766755796080323 0.49625576092401175 0.27844948075501141 0.0049574360782983305 0.004084365822736493 0.0068668231767534732 0.21813365718008654 0.0059527424367316825 0.10834046726018347 0.10784689523351064 0.0030966299935584608 0.0038456014462828927 0.29826546301790618 0.31488822645342968 0.3056239023152254 0.012178574512299423 0.10739655274599873 0.11060640321335949 0.006131325904426433 0.47443715585794771 0.20125575677176008 0.10403301054308767 0.11991267214277189 0.011126465872908305 0.27817147600013342 0.014260077377040742 0.0099143053685796529 0.10873535319663474 0.0044518661640852216 0.11897944984917663 0.3974807654780726 0.0081934448757088885 0.0086181695805894205 0.66445772464490593 0.0052707374640086702 0.0050797634626089817 0.1014557238974009 0.0040394097823701824 0.21560150615180823 0.29436796904665413 0.10971343322346107 0.093367675866845495 0.31083182511313789 0.57990263937201225 0.10303939097956832 0.1023856689909473 0.10078905517852735 0.10810407544380034 0.005347976833109537 0.499172342346556 0.0061972170844884402 0.099343186608576078 0.11635203094846373 0.10354802724814333 0.12424462107977408 0.01900027099302698 0.21829173257096685 0.30264645281969932 0.1011614153905676 0.010471233250042055 0.48771992923830487 0.57174648677361217 0.15177225571894826 0.1061484261056775 0.089238763713996042 0.53552835594470827 0.024079807400978329 0.10697101819892874 0.0034127935140945407 0.0054741170723479841 0.0059461399592579747 0.0097711258802016115 0.10475850024348195 0.22271621871539707 0.21178256957153788 0.30274891527478948 0.018160882838170949 0.10940647547808389 0.10552782521354671 0.0063486349009347701 0.0052608192258814229 0.008190189401199522;0.0020904636306204824 0.0072561789388470863 0.19653769073692354 0.0022945401243584908 0.011378702013133022 0.0023530765661060778 0.9903095751942822 0.098793601108942156 0.012991805398818779 0.60922745388467758 0.37047508573183985 0.003148081752210252 0.0018426458511942951 0.71115014065215898 0.0028793772217070197 0.0038868272739193879 0.98607753910313267 0.0028129635698552129 0.26981688234651319 0.99089103653485333 0.088602844361749519 0.99727007519859534 0.62913694533351028 0.0021773159149961418 0.71295873995010584 0.1857113354914362 0.095824298750570164 0.28851460910551696 0.0026041059398369602 0.28008763063395631 0.0017813509339472526 0.0029061711742628324 0.0018549064545134285 0.0018524630159191457 0.00612293212996307 0.10365164677880667 0.0037029874878044362 0.096794501095562105 0.0069961269832601158 0.98292723900258916 0.098727611544038446 0.3393195859492571 0.0034268721802268153 0.0076141283337744538 0.090251131845226526 0.80087960787922507 0.092877055148811213 0.45834127008329562 0.71294527447907852 0.003183472377280702 0.0017179866991560179 0.0037255189429180676 0.37560125258786703 0.0034742959280213434 0.27092161806524506 0.0022610764869000423 0.18301118835967126 0.0080335539565042306 0.80079561633052543 0.1013581100177206 0.010400860803512109 0.091950271535277059 0.093287344546821332 0.52727926276589043 0.82375509533354063 0.096358100959442625 0.0033096607849126595 0.0040736520457236016 0.10077185470655781 0.53535993225697243 0.9992149894182748 0.0018399697383119154 0.0032091690833721837 0.0046149224807579955 0.0051555730922139449 0.0021804397589737469 0.17924069222032682 0.62726047604528035 0.43742006794810395 0.0018832178753449243 0.0095314664808861822 0.30185236912464175 0.46022674460190804 0.10941130756529371 0.0027755761734405129 0.0014769279233006779 0.0027186666659048185 0.0041118607972026279 0.53900997629061098 0.0005803555002342509 0.0035396561413255298 0.18780319658007794 0.006752588263348 0.71372760117150924 0.0019381505324329652 0.0073598286875536595 0.007626803291381443 0.64060624439494185 0.0023260171793039065 0.0013385235564626948 0.00099011396545728566 0.0027067906733110872 0.45577084544638391 0.0022852824888813664 0.0025182948067106786 0.0016921552367846124 0.0027558954929686511 0.99103294004105402 0.0023332303171678249 0.10013192087079405 0.0023709936813601437 0.015852267684590689 0.54421592629081594 0.0037401527115673429 0.093240763683520966 0.0017536355451847651 0.0042587276157154469 0.00525198480206851 0.083253874321364885 0.91169282564509246 0.001941293044178677 0.26868704493090817 0.89257627077614865 0.0037495828102004744 0.0044859436954026929 0.0042288575107431673 0.54996633542101558 0.0073898860888046087 0.51480955666467909 0.094864463943386906 0.0035216086879891195 0.0061055591300472403 0.095425976216354541 0.99211663711980336 0.0015118600677379798 0.0028156488558895142 0.0028339937361811121 0.45141684691835732 0.0024884617620959618 0.0032428860765917641 0.54509129249033861 0.18634244816362897 0.0045856982316368426 0.0049788101484408006 0.09692015170748608 0.41423566323368183 0.36850911473994002 0.0047816037538090956 0.0013139963927389245 0.099125929170023747 0.29078290218714753 0.5404262804473825 0.45397517473287036 0.0072034838054440987 0.0024992291116811066 0.0035225286079626087 0.0030029477238752529 0.99619859301042446 0.43586839695793272 0.18706017937551278 0.0048566974960339553 0.0029140938515867776 0.27776256231087354 0.46002987692334213 0.0083390420058863327 0.0015884614266839364 0.99161453162504221 0.10329225940121084 0.63024240754638716 0.0014626956105151761 0.0052762794531808072 0.091987025852751023 0.99133377562995062 0.0027517947751433784 0.090418535233262931 0.18833220408868326 0.0024296006545961668 0.0051663463211274255 0.0078351053282201231 0.17996050411603393 0.70684383377050031 0.0051328051959087621 0.0020670351070091963 0.098309040753596519 0.18709222698424685 0.0021048301013417642 0.0041415776038746617 0.90673124736241539 0.20083597105678819 0.88185296948435232 0.0078240964774082388 0.0043589251667608443 0.094993440231864318 0.0017163725970211646 0.0071643423807187662 0.45441283883717298 0.0023207639177366432 0.0032802240604827225 0.0013009603746784524 0.0046338002836395316 0.0021660543776998815 0.0037043296754268036 0.094643841585360974 0.094285764194793231 0.18539330919890554 0.098330335278400335 0.27669855576442814 0.091501761811870461 0.0041266880677785544 0.0032485709038709335 0.98760644128894781 0.0068104710664452645 0.0073496647401525735 0.0027379138673569326 0.0012297620466822849 0.45671938252761707 0.64046327498807842 0.0072455259760613767 0.99910788040608844 0.18476354925285385 0.0036706285727660078 0.38907132416874723 0.003154897448257042 0.0053333640998798988 0.0063767741322136966 0.0078911207614312615 0.0021330234180807401 0.0015313895976122541 0.10029925134449823 0.3847806963093312 0.0038078719322433407 0.0043494779441562255 0.62096746439307693 0.0044489245496184427 0.10996460153624639 0.0042523408959345855 0.0019010617132858652 0.0024795428543132815 0.092233799298106836 0.093052473735163801 0.0014958661432780936 0.0048577231103965881 0.008084676884525242 0.094906089248795386 0.18477476442843732 0.81899817834341571 0.28169111382712653 0.0028603966400190775 0.012298669769003538 0.0037955014363657679 0.0025435242422264066 0.80697682698919926 0.0052408595623990653 0.0028769825966283137 0.092178874414062847 0.0022599736469521834 0.37625691308263293 0.99353337476232118 0.0060596578029034343 0.0027773717710931319 0.63303876634283407 0.0023570229356801287 0.015223360544031592 0.36436196545680155 0.0026647725589909179 0.0033617887887051178 0.18589649934690303 0.00078906052225828139 0.27180815476869413 0.091215042478086469 0.0025629630973424181 0.0021874279194525458 0.0025776602943041512 0.0029597692046801614 0.63322013662642296 0.0024904822493910339 0.095693810025780868 0.0041908993007271338 0.9943713638309033 0.9981952168321846 0.0034809888500862106 0.0013953515650791696 0.26687403214379185 0.52896432471987298 0.27074925872338251 0.094308577466633667 0.012177444743189714 0.0016700197561186094 0.80744908768610268 0.55432634477891751 0.0050659471676102992 0.46702852690166874 0.54269806019257572 0.0024919705398069101 0.0011408846862690418 0.0013323366330613917 0.57237314518973159 0.092734278662061395 0.0055780699444328528 0.096629938244648605 0.73068716922828014 0.0026599105000548384 0.094074266359499642 0.0022777515602797507 0.44671118230478846 0.0019630256863014495 0.0074396059546426941 0.25581731084317005 0.0054061052006779218 0.63367748781778266 0.0036116875750577381 0.0057152711493391756 0.0085593221502760948 0.095474654758538238 0.0014489686129633048 0.55178323838727317 0.0025037289231897605 0.093287493209959133 0.19214054926519977 0.98511195729797885 0.98976923652229853 0.0013259003294430476 0.0025774760358054766 0.0011299589470657716 0.087086622719011075 0.09266572127299319 0.0029111825026032585 0.093284778277228128 0.0016034669150442982 0.0016455403082588534 0.0037847293625908542 0.0031214218685852954 0.0025215807481593273 0.0053916294741307956 0.0017865779969774983 0.0014092318185153648 0.0027180966684709263 0.093440161148946377 0.0052088654030257725 0.0019852511006081116 0.0044237039947066931 0.45105786112492763 0.09234122103680277 0.0086336927840374254 0.63684908319972833 0.0042511181150634457 0.0012792699670854226 0.0055359590019279899 0.18292646966167003 0.45297608039118509 0.0051912839837096264 0.027115519027284544 0.091076930744065365 0.0039824087076722765 0.0027416380670046716 0.0016358631919390356 0.0084809391044641733 0.0015467501636959417 0.012223771414570067 0.55036299847957082 0.80552123976359902 0.10927883794056124 0.0037750905776365749 0.99201501960033711 0.0033130147892854634 0.0023334815030662775 0.0022069620390728854 0.097363058511149278 0.0065843617705380816 0.62412282927343365 0.016570808382624359 0.0071429423636785398 0.0018081572531383396 0.0086878445071956814 0.80622207891114872 0.097756805544854192 0.0036387932888338522 0.0024752527747463806 0.014945397234982741 0.9913502893537729 0.0051065486030191986 0.0026923736491115181 0.1695288214861643 0.36185627756572919 0.72428166772917524 0.0052664614747928024 0.001199645405042554 0.0019418850656870313 0.0022670477996643212 0.0017150266495740104 0.096393745677683482 0.64065386727009366 0.011469940294704354 0.0020012807697836845 0.094867134527111707 0.27103315620554036 0.0039106172779243544 0.0011348224378843197 0.0021613670370527571 0.0028897648419753874;0.0083296191303435813 0.010813985564842952 0.0079676298722619991 0.0065529071179264865 0.60468607592676782 0.0070900668799564947 0.0069210818112054179 0.0073470249750271404 0.0061532814789052905 0.95771897572788722 0.48448266158329684 0.011100455145517451 0.0091919247313749525 0.018715160987401586 0.0065059090137010158 0.0066329147708446869 0.14207336934147949 0.47428138139659692 0.13110502096430829 0.01308188843987931 0.0067307127732485839 0.95011701249427405 0.0041934959857283325 0.0093476461400741114 0.61165394539993845 0.97198988832057953 0.012066404507825665 0.62872331445892571 0.0092980534569823223 0.72125561967085594 0.0081990734372909442 0.0073702306664106543 0.0048811189301890502 0.0080978651672730627 0.012612203750499935 0.0072326234863391804 0.0061930528528588063 0.0087134067149234763 0.0068794523491622784 0.0057148027187667455 0.0055741558090847965 0.020008248905133228 0.032706146983231696 0.0064056584474470575 0.0081192935809460808 0.0089511505619167698 0.0050535934306073114 0.7500317441491432 0.94637980741063443 0.0050992445272120771 0.0086853604954899976 0.0056820766280567692 0.0069003239018316032 0.7465839758015882 0.022488800525715114 0.0082080088269297549 0.0070378527643395966 0.0049540379545861607 0.0088699918038113446 0.0076679873808700623 0.0059011252917548227 0.0093589563021764296 0.0061847272661374672 0.0062394349251349533 0.0058831061138027753 0.48141386958354448 0.0051408823310057855 0.94723127355675107 0.0094457533222866551 0.0071725019085285835 0.0068884551037137077 0.0094094036405578049 0.0061402094797407183 0.0076243045834816772 0.0062119048561341357 0.0097321221279830714 0.0093302297519220981 0.11029089499760715 0.0053942246546580253 0.0055853761493124422 0.0053832178835662636 0.0023702735217303729 0.0067144214090727808 0.005775125438046062 0.0062676103816785029 0.0094184896182906586 0.0048778200116194204 0.0051712231913068479 0.23367573591934024 0.010717825199668523 0.0059615757382843202 0.0072063969464799173 0.0075674139180504788 0.0093562067952626428 0.0055314607473978053 0.0063814721669355166 0.53729621832492169 0.017733557670257253 0.0056898840355528195 0.0060411746944730492 0.008156190253604716 0.0062537270857340229 0.0055199106166934908 0.0084348362113588257 0.0065646822609737865 0.0058552529752158447 0.0075213789098566861 0.61158763806226213 0.0057570393807344069 0.0095450781710244795 0.0091286234041204947 0.0094742468475700337 0.0063853998326081031 0.007039829374484434 0.0057728079540008788 0.0072905326366328842 0.004828957121668506 0.0063337613724257788 0.0054229538210954558 0.60996131810817433 0.010023034307661653 0.13400124798259491 0.73205922570573578 0.59455362628516628 0.69707170581824984 0.019857573028468072 0.72946617765636312 0.0058518986684035603 0.0038072955739909 0.0043873890056535282 0.0081559513998821186 0.0098759506843475661 0.011518733577068797 0.0099159608939007309 0.0074313497595846247 0.0075655577659881111 0.0074278352742251277 0.0064211871540679503 0.0093643236793567643 0.0079316973427182025 0.3647621979601991 0.72019567594309086 0.0066904377867972719 0.83635897430156336 0.0064788731612342582 0.0072738450907383397 0.81942336881567723 0.013296161633150888 0.0085404644751327693 0.0065268042204501987 0.51564108325869518 0.74055115151274731 0.95336454528222248 0.0056506333120125429 0.0061308114872343092 0.0074794519304160331 0.0064806767704839964 0.010295079895288804 0.0068834341777610358 0.21953433961690319 0.24435108933459587 0.0073586922465322556 0.0063249011889517301 0.0072298962983236154 0.0068131317915255726 0.0057919885107718828 0.0093738273553657207 0.0076011167986573761 0.0044163023518693691 0.0061790551004657166 0.005184518931093382 0.0056852395567083755 0.031352166689404493 0.0070694928977341372 0.007032079461828258 0.011340621863131719 0.0057187230887122253 0.69027162215102345 0.010963571009136008 0.0063050341747130714 0.010512860438895853 0.024988008445661986 0.0065399528175857534 0.007894146001226017 0.011879035152403178 0.48778048867004814 0.0059208413232369863 0.023725450463893114 0.0079783158588115303 0.15736565362297844 0.92443832585702645 0.4789532578300959 0.005374589854053805 0.0056910015060879981 0.13212492676800391 0.004347831523945688 0.48772480512732214 0.014900794441531154 0.0077504137817284617 0.0180162056410509 0.0078855620496558355 0.0069706126519010706 0.0071053247089668311 0.0052824147529921955 0.8580935540401351 0.0085297375860009517 0.0066496941052660158 0.005888296519886857 0.38092870294706338 0.006470318852402397 0.0080308752668615171 0.008082398075837046 0.0039738762686811558 0.005600997695656606 0.014737599864045239 0.59380521250184004 0.0061993325662912605 0.0083221116608855374 0.0078888754000660186 0.0083686580124289547 0.0073555070030013664 0.38008497238836902 0.0092507928326681123 0.13431892510595053 0.009746520231945572 0.0067325842722505188 0.0051494208025445395 0.0065701764526374046 0.83324600621129619 0.0069170777731015634 0.85342094185389983 0.9424969809985978 0.95427302390062108 0.0059235789390452796 0.0045705580378385992 0.0073785919940819429 0.62332234385180674 0.92800799319067673 0.0068816583969871009 0.004522425971774117 0.0075258342221845576 0.0083325484775970959 0.0062148438048897836 0.0079090577526780663 0.0074638184265833161 0.021850610043613963 0.0064560895680082385 0.0079426762830591933 0.015393258935052818 0.0040738624332327276 0.0085360883103160166 0.006547447527741764 0.0077083327792643336 0.008481612658657588 0.0054815029099128084 0.0066736607353701117 0.74723500311608348 0.0075023867127177084 0.0076545696969864564 0.0068634173423751206 0.0067815488034605543 0.0071335701772918883 0.007908259298307534 0.22685965782881815 0.0099249200810908999 0.0076661497655567843 0.0088931909009476832 0.0082411848326154145 0.21069212790194178 0.0080365145926893783 0.0060078285216812657 0.0060582685907235468 0.0061246357827135327 0.0086245936461999666 0.005114284300018348 0.0096384561321620193 0.76537488426607025 0.0066094277804593336 0.0077790673266299225 0.0075504654285079654 0.0070071709708569617 0.0059799237531855736 0.12749280803978902 0.73377123979265291 0.24945010786116417 0.010401115900203425 0.0093743003860361305 0.0098526293844806937 0.0097705118814694521 0.15995810629608942 0.0064016825881345234 0.16255341401124621 0.015226859447710708 0.0098933322297551259 0.0078567409185551444 0.0088575418511812349 0.72827865133546765 0.0077672964014585295 0.50269193162596937 0.0057085353653603026 0.0027775014375225207 0.0070659619245242071 0.74835458113043973 0.0054832569475306127 0.010989917853388872 0.01134205834282322 0.49142908316659917 0.0067622504175915213 0.0072887952875272301 0.957868868884859 0.0070985224165200107 0.0060980921607019546 0.0054815876249286249 0.0073860029845680443 0.0089432884691836058 0.47973175668549894 0.0093019422932939713 0.006872132507488235 0.005930114029901669 0.59606065048766432 0.0081741092607950615 0.0085725552055531309 0.0068103198640376093 0.0067884729322179168 0.0044862020598642168 0.0045698202830087844 0.005907436683572148 0.39248648674086406 0.0065691105657241225 0.0068267788369788494 0.0061669307073086051 0.0089323580203481724 0.0071303291347372148 0.0049069599571301119 0.0070961241803871302 0.005940173895017737 0.0063002185083782247 0.0061635169131244909 0.8298386106333685 0.0091642333396543402 0.95963684525222359 0.0067818543785289082 0.0069241084238624564 0.24817999385702463 0.0075181096084739373 0.005322163798012051 0.006278743979611397 0.59857350507188523 0.0041651438912637334 0.13348819914252205 0.83337494381906074 0.006269751728399252 0.82378133581071067 0.0077235720342161644 0.0094845296104902194 0.0057978994420925375 0.0082952596969408238 0.0068991137465141648 0.0056184333033897828 0.0069458107509742864 0.0046991699408381847 0.0072802106708325428 0.0058368211716457253 0.16670213755944291 0.0053552948892337197 0.12328571879667952 0.0054278928733194915 0.0071655568827077125 0.81530184705024022 0.23467705535331979 0.011913045004136546 0.60276147291948023 0.0050152218800056467 0.72512514174729592 0.0070256519019438399 0.0078100263481247281 0.0060881973447133256 0.8448948410246534 0.59437042600568635 0.0075717674912037956 0.84464627453222441 0.0085944896495512083 0.01038048988865818 0.0086182179997132298 0.71567226551721264 0.84112457682925679 0.0070488928213517637 0.0058139683223488413 0.0051398897471422039 0.0093273395435387353 0.0062119285050389684 0.0060699809996618958 0.96528308693212872 0.0043548848139401044 0.012425867627042444 0.0079527126884865306 0.004656405773293527 0.0090748125920830751 0.0064674173286842565 0.0049874903652099281;0.0042818273473167554 0.97242111917880092 0.46212813873283909 0.0049259210640797187 0.60356860533049794 0.0029405212953528942 0.0040596448801095168 0.0054510212230650416 0.35326703235998097 0.0073262977722401796 0.0025655128353587468 0.0088215809470630728 0.0053976672054410271 0.0020624997151474024 0.003360126474835337 0.096451757548736389 0.61748332849984866 0.0034938162435234959 0.0077892561993789574 0.01626009286736187 0.0089462263546363236 0.002868165691202277 0.59724798865839257 0.0047806888737617799 0.30369237637492047 0.0067204753914968047 0.0057923788158233975 0.1001128365369805 0.0048120031161395082 0.0031919663475330744 0.0042829428547251167 0.11793482267343465 0.0025738309501202156 0.0040225053218804546 0.0061406967633835467 0.0034960417439091579 0.0035087993334881706 0.10992549869567829 0.005414736835158431 0.19449851692241935 0.0025903310836907657 0.0069425528441289649 0.97608280103115175 0.0054770233425966153 0.0046136984491651906 0.52651720121549916 0.0049390014895919106 0.0073723817862166707 0.0079404703214265016 0.0029000933426252783 0.004522813099330435 0.0034000923365277076 0.0034076839897609411 0.43346517593198181 0.010032726922253606 0.0047195855772858919 0.003715438567674428 0.0038383785240845569 0.0046958736719300851 0.72699739721061429 0.0030177478666781493 0.0064402972618021505 0.0018091637437718136 0.057740566432867103 0.0030403356412791716 0.0039731020989565774 0.0054516390504485146 0.03987005983161767 0.0040765927028503443 0.0044227628355112169 0.016568567085197713 0.99224109257436621 0.0028070093671529049 0.0051544521844441686 0.0038781926163165394 0.0092835510223902278 0.0066374147662970565 0.26405201242526977 0.96296780322520414 0.98459955451175007 0.0018081585363381781 0.0023789132188351339 0.0029331292959914354 0.0030765625282441434 0.0049205368214259009 0.0046379218382018896 0.0039254742721643943 0.0015826126238269542 0.027383719878575963 0.0055636493997364015 0.0032195603715337922 0.0028682686616999108 0.0044897170054800841 0.10290303097195347 0.0035842076482893613 0.027544518809264444 0.0030616213025907385 0.0076377009331882765 0.0032809555540557075 0.0038889673753365853 0.003561308482332931 0.0029249190654359178 0.0027984642998581471 0.0044154120723435154 0.025967201684427323 0.0033547874638156995 0.0039304544896588169 0.004444779808721269 0.0035468018880538037 0.0053033357723915476 0.0052113262069052469 0.017299195741427433 0.0024479003528038654 0.94691452441795509 0.96213396527824779 0.0042039506048856933 0.0037260958927257662 0.0037762814214711438 0.011736907039027973 0.29638179904576634 0.0038327218218029958 0.016659059223749009 0.11510527617154309 0.69978892211635302 0.030825840209984877 0.67647902659182535 0.71330675089951034 0.0025348056125209634 0.96243928780257204 0.0033863528892146893 0.85854069552674617 0.0046581504236080495 0.36924395727246795 0.026863458522922663 0.0034609820106482744 0.0036442170514235359 0.0037991973952402726 0.0032842934717192264 0.00357389017917348 0.0083485856314029373 0.10885455695074554 0.73459981645768324 0.0020636671756177703 0.43027508424961952 0.005755645210160627 0.0057627238109455008 0.011772006682402003 0.43577570036299479 0.0043602541573804724 0.0037960555607761503 0.0026008408190168219 0.0064055148709227794 0.31620118715507106 0.65917596925859179 0.49784033678595307 0.005745904892695595 0.0047953093702338204 0.006239215543641429 0.0031272921275518192 0.0060551782710171406 0.048803846801693612 0.0036388581849085694 0.0033850220649551286 0.003677796405540272 0.016237615978768646 0.0027631722704863368 0.0041651498741010831 0.0030793457595094903 0.1092088078346779 0.003337325989959073 0.0029566149044072208 0.0024593289629240593 0.10282161782766196 0.79931188368900186 0.0045363554947327623 0.0029410569945916521 0.0031771403038478329 0.0039371805918846361 0.0048790941119354579 0.94455199583494975 0.013035872917990188 0.11350756129471268 0.0029379016371107948 0.0024042381534405393 0.0043868751475028694 0.0051392277310602945 0.0041117537592188164 0.7867507090047795 0.44057395487821249 0.7044932740901555 0.0045924041956225811 0.0050686424737245448 0.0029956127698457348 0.0038377216377640305 0.89600361453541999 0.0022684417733690341 0.0036219911617302201 0.40902131235090339 0.032622248680818658 0.0050233195900144635 0.004719255669890586 0.0033825403680775826 0.035030813921847898 0.044789317770580504 0.36688682676751522 0.0073259283170073386 0.0072336175996492481 0.0038531267518395569 0.60976499705657372 0.0035395259109336514 0.0056327880121089793 0.00359267378742878 0.11001369067174357 0.0029694033358560155 0.0088304037774650894 0.80225898423015363 0.011166476259045785 0.0020444945602928664 0.005283132986046362 0.0058507108251605036 0.002650928892359683 0.72543451669101733 0.005965047998187002 0.36391830261952146 0.0075378121431348526 0.014838864136905388 0.0032732374174136137 0.005512963246423524 0.0066649617471175888 0.0039399870845111444 0.0049829135166265118 0.0041712388541197028 0.0064454283323002624 0.0045333998918885765 0.019303042635488821 0.99233907123964349 0.0077464435225184829 0.0071778761591437109 0.0038796136782251744 0.0046436239345438324 0.0036717664310626824 0.0043159310025423581 0.012716676953716363 0.011034485840630225 0.0041331359784659884 0.0031279648159687934 0.0025067516189944961 0.004345673569158214 0.0075007129652838577 0.0017556350242707301 0.0038107795825704301 0.0036979463138344625 0.0062054076912329203 0.0068073695978060752 0.0033174951980201508 0.0036741582171298994 0.010966697178769531 0.0033778670905526046 0.0055123005204659797 0.0035996416642663188 0.0020427914429238989 0.0049218223255199306 0.0060332175268860092 0.075695112898109859 0.61796463457943429 0.0026960488841363205 0.0042045296021920881 0.0047508398222505799 0.0046199436940116264 0.0036107148684849503 0.0096568128480363051 0.004643306985704072 0.0066873724162096939 0.0041675438696108574 0.036275305127055534 0.97226370115349769 0.0044911328500302043 0.0037005305791242412 0.10913281115813911 0.59523269175384219 0.0045084690147019482 0.0067938525882954206 0.77092916573350423 0.010440071122256842 0.0088274754487575342 0.0061495186666903415 0.003880343457577548 0.005267445681268244 0.0055112828211456143 0.31069120739688588 0.0032915821933196055 0.012570508290460441 0.0014734349033551219 0.0069293366564563523 0.0052580670485532343 0.0049729646192620235 0.13147915488719775 0.45128720166255021 0.0054604533319896212 0.018801963423204039 0.0037389618209759091 0.87959047364693865 0.0079627280622023948 0.80145560803691707 0.0037078778797808459 0.98364458376554131 0.0047399957700676966 0.0051680210267605678 0.061453976151979804 0.010020832724024875 0.0044819396932109946 0.0046985480237520093 0.034666982042518758 0.0031515359913177419 0.0049037526324201934 0.0022018299051962502 0.0042997475443463081 0.0033820130803569365 0.016450213777425976 0.60931386995287062 0.0073496846816714905 0.0037908476862479439 0.0036548289203325196 0.0029243030228627877 0.0029067787510386237 0.0022242834098619548 0.0019575416717440616 0.0071751813456591776 0.98207584235999867 0.0028473598283561227 0.0038022579979679321 0.0047838995972566542 0.44623485938830604 0.0041427996648092614 0.003369078514390477 0.0029851203677133246 0.0028834882366460708 0.003191838744722847 0.0031172975198623552 0.0029381924872116326 0.040144565278570875 0.22890375487741638 0.003741892535623573 0.0036302579595084566 0.0039351962585393663 0.0034579468926344984 0.0050546922919217857 0.87435687707127097 0.0023818285575539569 0.51515003286803851 0.0051185971116933723 0.0035911612391506227 0.0038866910247154483 0.69730554891746388 0.99090140655498693 0.0040583750703181536 0.0049848540035412042 0.005094547090658489 0.0084648080231710422 0.014013105408254895 0.0047377359304883338 0.004750662980870784 0.0041016721009947254 0.011094399622220363 0.33832788015390464 0.51773044437247695 0.0013953037318415475 0.0041680467331593378 0.12240216993983487 0.75772784548168193 0.0074507114261369483 0.0056773519262331394 0.0057302529026167235 0.0068514465309293827 0.004492513361850266 0.0034581017070815291 0.0038688251869739504 0.0051547623212841662 0.95948415599656833 0.12051347255267367 0.007655273949783591 0.0043705901347937245 0.0046564634001956982 0.0035211334594446465 0.06186739380052627 0.0034234965774064935 0.79571994881679653 0.0047201752230201111 0.97749780958212551 0.0038668775739495623 0.0029048893751008153 0.76821048111893164 0.0068775629117515591 0.79931824474661883 0.03395986298343423 0.0026238068072194855 0.0036887104265141304 0.0083710012915537754 0.004146663652784717 0.00227634097444974;0.0065361644549920151 0.9814088578616682 0.0075012816118353882 0.00048569196455577706 0.99198008643285762 0.00031164562953096722 0.49263921561508761 0.0047627083920013351 0.98586805038101311 0.98067429790663052 0.0015454516193374426 0.004833720962533471 0.00019891192010321852 0.99196756130875618 0.00071633846348607543 0.0064744662111525918 0.48629994800351439 0.49997021431063959 0.49183454321112735 0.98436474546436559 0.0084469401620351978 0.0052638815184048726 0.0073497279993308094 0.47876590767032134 0.50292416824887787 0.97924106885671169 0.0013873248794494069 0.4906126275853398 0.012602731620193779 0.0089683820794546412 0.00044475257554811229 0.99343385129132811 0.00053926868099575119 0.00050239175101180009 0.0013917925246676333 0.0033109650501725327 0.018242536292225761 0.0061823226408367531 0.0041000931682128594 0.0044190747711122472 0.00065889003191969332 0.0078195752279503726 0.49703713995899135 0.0011428446697791562 0.0041713817908588368 0.98271571358398691 0.0038382164144833181 0.0012669049055538018 0.0018594474985297372 0.002703574297742658 0.49152516216036929 0.00074861376596632896 0.98305529034522232 0.98981233544687719 0.52573834905989114 0.00094462458044358981 0.0041250172832504369 0.000366595636793508 0.001048377272287352 0.0016898481884097703 0.0016379825464930935 0.0053850500222564256 0.0076230252683251072 0.0016755552994053894 0.99062455288962359 0.4916116437541872 0.0058415799803173884 0.50912322762874584 0.0035580685436082194 0.014888819432477746 0.0051788615217940297 0.99651843562419962 0.0011136030903216888 0.98600005655900103 0.0077878848727363122 0.97102893262108037 0.0047810643941877951 0.0055673874178966175 0.0004049189245396151 0.0022548750025711247 0.00044233186285947914 0.0022963905615440636 0.028930614925392117 0.0038735012477306508 0.043975018742492843 0.99269129103957909 0.99694724578299465 0.0074249126850604707 0.49742310704258913 0.0015454985624397829 0.0078542346533435441 0.0098104432246700086 0.99157539387209859 0.010961068409513025 0.0092778930463059302 0.0040122521477706273 0.9848462916534515 0.0014042694985862247 0.019667377261816318 0.036949645109897879 0.50596207170439145 0.006298031864357039 0.0054086935835200422 0.0098123398880676088 0.99767698631647117 0.0014495960545708863 0.00086418096107198738 0.486613916094292 0.0014068227509889458 0.0012138140835487323 0.50956081932566255 0.0065457413206838934 0.99695395176244239 0.0010251527750111894 0.0066982587368901621 0.48972076238669482 0.00029184097664612359 0.0043288663783674249 0.98586402755741498 0.003434805637047132 0.99010866999751679 0.015571583242787014 0.9945612347068683 0.010848505729207519 0.98593640638017477 0.0072960884067057325 0.0056518585130324907 0.0016708947049766151 0.99918215853671621 0.0017486421363672774 0.00076312707493975942 0.98676375100230906 0.99623392060727822 0.0025633786134891911 0.0024792429854220027 0.013214272962690852 0.0010918405839695825 0.99722998092371973 0.0084956751454583045 0.99205637921742917 0.001736543016898733 0.0011125162218852385 0.00099783114386614016 0.0027491756771612962 0.0066231057665768825 0.98798136753400423 0.0025507838266199414 0.99881550157990995 0.00058484172443699445 0.0038206069597943688 0.0047238889265603622 0.4952573310869226 0.0027999002894992043 0.011285823738594495 0.50200857158481249 0.00078592169745724558 0.51104811731933708 0.51173141064698302 0.0034473758964214197 0.0084992460979582754 0.98811218505636089 0.0012586912103308377 0.98115449942612043 0.015392509658780178 0.0058180911321763749 0.0047711609200711113 0.00040588361341820426 0.0032692081573684473 0.00028667341149653529 0.0026085291430891474 0.018012923856871386 0.0010916807907018391 0.0081322171426911911 0.0041993568344085228 0.95295995697503177 0.0067283630629867896 0.0070148520948340965 0.0093835157654820461 0.0011179965256521544 0.50098872002520434 0.0028977619281564566 0.014465205226338098 0.0056969355891955085 0.0020513628245367654 0.99614675767740501 0.49058391220911746 0.0063729165654775764 0.98937385459757787 0.0020880373468186936 0.011924005394422151 0.0097669810884777105 0.0054504484647968114 0.0014835386532531152 0.50146627398752319 0.0015658266575445182 0.0054059710178840908 0.0045933503611676882 0.0015932862863978201 0.0058506956123467076 0.99460987293780168 0.0023001333803849438 0.0013871047359864212 0.0055326489014869782 0.49291132986333691 0.98979170933696148 0.0087635880120793732 0.0039095098062365604 0.0003919509052027074 0.0033033728991043376 0.98989257074721304 0.50089236752781785 0.011920544821067771 0.0054353619357984211 0.020054990537545201 0.50129966318164232 0.99706336207072521 0.015486747111059837 0.010831953988876111 0.99224854000970664 0.00054215788377316167 0.00086829961000860786 0.98215751275743313 0.00083899812121413669 0.010466910276648943 0.0018815176546944313 0.0011894925192396635 0.0039755481660438503 0.98754729720302936 0.0014133326281117276 0.0065797433928819222 0.0032825154299447375 0.0076340314915825675 0.50251975946949434 0.012914058942191137 0.0060879835140410458 0.0053332031793008284 0.99844549250217951 0.0061199942063926305 0.0034598097491319118 0.0024193704104264429 0.0024026103239922635 0.012258329391789847 0.0018345448763150403 0.00086708520928766518 0.0056974315392144285 0.5073804756343907 0.0033997479008864898 0.0034665465829698291 0.0054186815150066066 0.50014491549243967 0.010781973952792016 0.99964844493822824 0.98695991311441378 0.50187759149392452 0.0019514295745637852 0.00042364733178928493 0.49123156180206901 0.0003672429709825107 0.49397451614272675 0.0027671032515669204 0.51036085871074088 0.0036286376744529372 0.00033457834899325886 0.0067940040754537693 0.98359541194650857 0.010485427030488598 0.0004368779805630779 0.99721675865570913 0.0011825276102367254 0.50392208865351529 0.0089668116067064332 0.0057318142711780843 0.98991798031387201 0.0012403690291140782 0.00045103962278006637 0.98850904747152624 0.49867744519783724 0.010467898067309845 0.0029052966875273878 0.0051196709424259036 0.0025576545274933098 0.012864008487023681 0.0043901302027282551 0.022946576011311177 0.0048772391029703859 0.0032238721936942074 0.00022019645186021995 0.0024434774530852255 0.99356700130106612 0.002795884545362668 0.00056554256615423204 0.51242373759573989 0.0070118604497382379 0.020727837596641149 0.015259314703045502 0.003819159960410518 0.99546953588167542 0.0052641983057605552 0.033787800589589384 0.0050349182005115806 0.0075183112541723097 0.016599417022507619 0.002120486356745159 0.0020677787249686712 0.99779584757799888 0.9946811903643783 0.001617422946817261 0.99132069544049739 0.048602183031279583 0.00092884995248935045 0.48809136348966931 0.0073693778296160589 0.0038927523362870912 0.035555830729218557 0.013393840069114538 0.024106628994234051 0.99212639096315491 0.0043621173733042126 0.0042740321527181546 0.49536565895510398 0.0013386778643138504 0.0011475940194248264 0.001859408917029245 0.0054808275511942133 0.49475783237867754 0.00026664511758626335 0.010754418542385751 0.017702129500296617 0.50729492136427734 0.49207940824357449 0.0011253086393169915 0.00073987855140857832 0.49242448389509941 0.0022897225028940525 0.0066758344010901562 0.0022494191738580971 0.49257974317921466 0.014828255633440498 0.00086375968419612691 0.006050300238855227 0.98897431812673764 0.0033399435980802764 0.015849425936471869 0.49105232483692995 0.015163574658910724 0.0056443250099747254 0.0048353428184951027 0.99930281052171499 0.49854284570798019 0.0021516155817548296 0.0067186312539766471 0.0013435773353010524 0.50817732791940673 0.50861201721408933 0.98691218114007895 0.00027911441204523925 0.00085096404278180171 0.010469265703165406 0.022544368977494553 0.010199474747619777 0.01080555960286814 0.020276455155258923 0.0055523583024153058 0.002815622435025816 0.99985397553354172 0.0028530895839256514 0.0075150489451673366 0.00024141933522476081 0.0068939482300526492 0.50449653014495832 0.00041698223808518588 0.98241110413637522 0.0072769310285555559 0.50919024038805338 0.9968780830907733 0.00098165072320617022 0.0012242201845788624 0.0037801495103297776 0.97301308212987547 0.0012153671811398128 0.99426355182908088 0.00016962365793984194 0.0039099250056909961 0.014313369262299914 0.99555314610311241 0.99921620872302608 0.50286148553997001 0.0068920553803594889 0.0034742838493841757 0.0097185853615793724 0.0021611560308195527 0.00089450332827626885 0.053538706447246856 0.009047492796232362 0.0023818963680282581 0.013195169913780593 0.020656068495639085 0.4963122763178921 0.00066972789606507192 0.013072376856085505;0.61710914220908919 0.086136245522910493 0.0044061294511121684 0.16493804329059314 0.08777085866581627 0.0029002271447133472 0.24724371360720382 0.47337558468639251 0.093496954855412345 0.0024479421880954869 0.0038427086713476691 0.73929569791703253 0.0082034673469601194 0.0046057276143993808 0.0026244851824577305 0.004269551928638861 0.092865316374369761 0.006772808022864946 0.3281806972509228 0.0022353507116753164 0.56812464551506625 0.0021205321692721879 0.50021573184455215 0.0030198416175701123 0.080873029541470368 0.0068628148253107972 0.0016683963981186556 0.83516972863494154 0.0033120649284055772 0.0019090216077682935 0.23574046416709724 0.25461848627864664 0.011662792948025726 0.7168627297398602 0.66492996529224779 0.0045229028118489445 0.12614005321433081 0.55276986036997733 0.17476001144265582 0.65100598783256691 0.41597749562184066 0.077060087941107414 0.0056489362741807166 0.0091598614023534961 0.0061524824693358817 0.57778885603939023 0.8842965747638617 0.0033897399348012027 0.004624639108268323 0.0023911238399085756 0.0025092656253231337 0.65794630604978011 0.41841739121743515 0.086912432326127678 0.0015155769736674364 0.0074774672777398396 0.087362820941202249 0.0041171853663752242 0.0018957725701397106 0.0036519723972395315 0.0048100228880223472 0.0063578278062944808 0.0044932713893459115 0.084404102055174804 0.0073405882823855883 0.091299976311489034 0.73778570899642626 0.0052494150178008731 0.083644607793718795 0.0069762955489810607 0.0052448239135638288 0.19062547087608683 0.018848652021044469 0.83118458104258686 0.39851739020601923 0.089627436796605564 0.0041603828533404016 0.0013250994602359352 0.005657763618290049 0.076572818259456943 0.0054965667577710903 0.56923547699385346 0.25752416793547089 0.0034913931867975251 0.0060274106808846668 0.99340189590026606 0.099086810104808923 0.65143109376383945 0.17660645293742921 0.0050391294013816187 0.0022436416466920881 0.89863580035962087 0.40755902329078325 0.0022442664891429058 0.0030940282412640781 0.72160689686940493 0.89094135789316153 0.40632429207362664 0.9934472975360048 0.73908475392675688 0.0048993263485343922 0.0037284431743206323 0.89178425265263161 0.004162442438474195 0.79827601924414626 0.0074455745546221138 0.004522002928725918 0.0075799790650244404 0.49065614474702757 0.0058431095909745843 0.0050086386874193568 0.67545708585723296 0.42239688303857514 0.0023801205529356208 0.002553912402303936 0.19182072512979392 0.0067278931236814015 0.0045773696922890086 0.19057383399180727 0.0035094412597445586 0.9883868355481904 0.012325823263340517 0.33174242037451351 0.0017469294604908077 0.0056559706863247034 0.0044688980098315052 0.0064143540067859162 0.0040948906141634435 0.66217662108618147 0.005831622762215354 0.0020248615428610783 0.0035224643864052614 0.16513021416120799 0.16867704920345111 0.0036317079682333555 0.81864344571567227 0.74960933198153723 0.07513448955325816 0.0013651232965007777 0.0084185219625000068 0.0048669920116269239 0.0058264417763429898 0.0048079443804033648 0.5766313901652641 0.97676826780997761 0.50865701910502947 0.0073811297909824134 0.44310807128156005 0.077032982188956795 0.08075967146843871 0.1028835597976641 0.64799340698325025 0.075889956022989091 0.26819256380883322 0.0035929251138293872 0.0051274205518147629 0.0043730420508172087 0.015276776543136472 0.0049007890181949941 0.007420169260847531 0.0032139568213592909 0.0038022964736119536 0.0056531091907518335 0.0027353598355640716 0.58729571213364629 0.001677290547272809 0.002317356505127678 0.0035493701984138462 0.0047118890821819109 0.1125535659378277 0.0045136927651573564 0.0036557464539422203 0.0057704293125993063 0.0056693979857020361 0.58603394767874017 0.088132023059772621 0.57078109212640671 0.0011286467812370595 0.001853709073179816 0.0027022298169220374 0.0027517302622169196 0.0018955674659323989 0.66661070301478875 0.079292284974910393 0.0031999070325082739 0.57221274190492555 0.0027820207062534282 0.0051830546241595542 0.0029449783378587453 0.003017854665861608 0.0030299911882766973 0.0064703462085165505 0.0030097677579498847 0.40717196936177569 0.0037738786298743879 0.092340984387695696 0.0027452590937954774 0.64079233779494149 0.0022921259611996645 0.98919860361726764 0.1531315550699715 0.0033802606778864206 0.0025747047833364779 0.26564884450674386 0.088960054073970868 0.0036082275352754909 0.0056160967052978489 0.0034397075014507886 0.0029843924678864511 0.004823571824047055 0.25897102637557595 0.0053419688230202499 0.16061412527305569 0.078459103198199348 0.0026839595388806581 0.0026591469194552179 0.17808295053127601 0.34113206445046751 0.01393206513488574 0.0017691678477179077 0.0041034084391825465 0.0032377890337626047 0.085023604485558762 0.0035218161827859137 0.74115047598768924 0.33287573340050308 0.49505819528427453 0.0050894609125404725 0.089558387685595237 0.001947968039377984 0.17652202314118995 0.51640760618674619 0.0012255415476610312 0.98514120706201902 0.0075802595260225742 0.74728891741719028 0.99777138805047882 0.0034025177499311878 0.73620900604095452 0.48665056260935152 0.0027149184246224854 0.89938723646529928 0.56514009707293922 0.40799174742640643 0.82073787877366944 0.0039968079144235219 0.56337196002605516 0.004372619418256821 0.081107133982827637 0.0036103496409934316 0.16568716554610197 0.10912372426566559 0.18140103051971943 0.0075279443769903859 0.001107976516544446 0.0072234404705904419 0.091506616077201786 0.66810241065499165 0.0039099591561000471 0.0019120124378548997 0.57267737216805226 0.25161847029703577 0.0058013465810642702 0.0013553716911099739 0.32059879687353759 0.001899558655806453 0.0036882214019760963 0.076535397204295558 0.0039692700770546678 0.50508124460980075 0.89926960600815087 0.0036215170639102489 0.081025384858133098 0.006874704193383676 0.34172109555692648 0.0063727671945681798 0.66365792142243074 0.0035968650269220625 0.080941387813465326 0.0012260504311909202 0.0019623985200105834 0.49561867507775703 0.0054281145595923546 0.17436870498563042 0.085721351206986887 0.17077481125546817 0.0081441211474536975 0.003390699936183436 0.0034738990429500323 0.0028347759149906213 0.0089956092530075072 0.0052795778390713026 0.49209223542191299 0.24898245803670199 0.17824500533566656 0.57094767606418884 0.0037004311977334001 0.0035204358522838656 0.088295078261679011 0.0018317518344786602 0.0036825168348361892 0.1732246311457426 0.0034033207749701033 0.0078284373634742287 0.57732747275070362 0.17540844809387132 0.0071911488647139173 0.0026475204237634059 0.0083925576093769327 0.0025127450401896466 0.24851222450441038 0.66114936503680732 0.0024967905380974503 0.0023987263524627819 0.011865344790459552 0.0061315780691305333 0.56471595675945829 0.004999484504588465 0.018470024213135868 0.66567727901649154 0.012773756119391525 0.0887624478665512 0.0021150596884594638 0.098541604065532709 0.65084305931408593 0.0087063099021613567 0.08221100847652929 0.58333870779729147 0.083352308777402143 0.66532151153684504 0.0028291183152873364 0.0043040306679487999 0.0014390688391227554 0.56490006166303552 0.072928778526872864 0.0068329729984448334 0.0053914504394180158 0.0011526431411351908 0.0054478352779056853 0.48231980099579508 0.0023888041413117999 0.24278147566848018 0.08888325536875262 0.0023440778354104513 0.002221292946412926 0.085646762078237168 0.075761536509586822 0.010004417751900852 0.6587223886735285 0.0031099796736049003 0.0024127742015598156 0.15933793809172181 0.0012917819534565443 0.0038708188869522472 0.006784332761199675 0.0023067486081814288 0.0070308267555233101 0.33314777344344204 0.0088182527847137683 0.0027553237978750183 0.0047899141598535212 0.64975317675001942 0.3175003556074471 0.0088577976678995453 0.90422543334447614 0.0044506294850541672 0.0014406326961800731 0.74461609571520448 0.0022381933383550457 0.18479697839954246 0.0025486808539991529 0.0053263227749095164 0.41369703331418067 0.0060303775186933894 0.0073706780418938437 0.30771510815657294 0.0042899031446922767 0.026839976595080719 0.0042109064663674754 0.0056764071013588879 0.084237220415608327 0.0036601391808132114 0.35519944524229607 0.31407851578240181 0.0052964591574498612 0.25445467847466574 0.16478875322928949 0.32411548311904659 0.0069928438803759062 0.086772776932563578 0.0084897652583205887 0.23008137882591662 0.0041249254970779246 0.0079490983272135964 0.099440347723244213 0.0095762441286302586 0.75841633948120901 0.079725903950935761 0.0016927315204879885 0.012339299120832625;0.0078701988569983769 0.0045662132414742091 0.0032609401720434779 0.17695556468743356 0.63344608674261338 0.0086890504338197078 0.0057440979657761891 0.096427338516148778 0.037189128416294182 0.0029283161656733924 0.0057540296529438907 0.083916192835499462 0.095588675565181594 0.0085018118499246773 0.0034045173662313145 0.0034446456171433764 0.004466840375460546 0.1002351101102836 0.013737451996172467 0.01188555401948739 0.10369881555717914 0.0061632621454665486 0.76645795375604719 0.0042201759208866747 0.1025032033586686 0.004747805980742285 0.004187911000104772 0.41928238920981209 0.15907936370918141 0.0044078908615676777 0.89439178582288903 0.01469351887738763 0.0067684191031916474 0.016659788946566608 0.023690704666821549 0.0055455771085944836 0.30060233976588546 0.37525329806477825 0.39758636059399804 0.09470405823009713 0.28772725848478475 0.17662035095159614 0.0082465210444097135 0.084811254845314224 0.20261252397960583 0.018699119177611655 0.21795433806701095 0.013999009165316673 0.013845810716000955 0.0083833919194595402 0.003159592314265209 0.45928180303765703 0.0050796507073884497 0.0057768172966971634 0.0021577272612115679 0.84873899381679663 0.092308867926527094 0.0066124630948190951 0.0047973188679530203 0.003663261922754867 0.0071460121951837114 0.17651935144805109 0.20150977890257082 0.0028881248160946846 0.52348974964425621 0.45312057965527291 0.10765987949334811 0.0086743204856280683 0.2454035304501449 0.10907947863652236 0.013971958980612762 0.98241823901213921 0.77598396469740072 0.004848931734327452 0.51150078536875743 0.0060245496253561867 0.10024987456765369 0.0025238173328556929 0.0085655203169348257 0.0083319369888889914 0.012985723779580398 0.084197746159724141 0.086953299158572875 0.0091042064637007585 0.65439499830868253 0.85447995316865866 0.70409625960485878 0.27779961824216265 0.71464458774940609 0.00414631361198467 0.0050807443558389606 0.016201179477717882 0.91957994805330201 0.0026730051316401454 0.092666174940025534 0.0033201665405066709 0.74424812800475137 0.0058658003151070906 0.286600435842429 0.018240138302164737 0.93883342815176707 0.16313814436998725 0.2681314925979329 0.42675977474027066 0.56024309250722326 0.0047482510739926924 0.0071155755281234008 0.013089782716932234 0.010164478632348255 0.0079639903213611467 0.0037115277977168466 0.46092292326901246 0.0050686023713025453 0.0023108775087941689 0.016188356836633486 0.69229189776910149 0.0065588995236583285 0.0083975868460810232 0.097175179348899896 0.0069442568703428076 0.26958786434440257 0.78561867827489151 0.11870768401362408 0.002789571893192008 0.007747191401545804 0.0084283971845236193 0.0023136599092646874 0.011460368314637436 0.11990480245793565 0.020337528266761343 0.0032088259986621679 0.0036161282572505804 0.52528988683548006 0.63170310710573374 0.0074767198973666165 0.0077248475846534844 0.29087462523833812 0.48671300193330819 0.0066584126043935767 0.0062673208549914273 0.0091792922656475529 0.0075207522597465701 0.0064792974195951297 0.0026572934980263639 0.56640446930066302 0.0086661716980755699 0.0091942622613052135 0.017171950380213449 0.016340851982991979 0.12540522762708003 0.0048246027482364119 0.01077758601957878 0.0029658475628258482 0.79272760336839354 0.0018105088066579832 0.010158949189841527 0.53135961517305863 0.81514097105068473 0.0056835846994755463 0.0082644095783474952 0.0055805534559293987 0.0076525292054630987 0.0084324882787353266 0.0063114588964658302 0.018345365210018828 0.0038726528418423153 0.027116176249136537 0.025971795727460844 0.0027334949876341242 0.0039893446600257447 0.0060901706573851487 0.0026069365446046676 0.0039070365757850273 0.0073531472267005281 0.54011857976735844 0.011604689347615191 0.0041952791911485142 0.0033143880602219504 0.00193177117749488 0.018329342371146862 0.095522771902229089 0.0031015152594938348 0.22351603776254514 0.0030433118207668581 0.015199623480428373 0.43371166381910908 0.0060144434264791753 0.0062996799577857941 0.10032048825727116 0.0048973083576192566 0.0038004144874409971 0.0044233923994865332 0.0043141754301611957 0.0049274101170324195 0.0064268916284611092 0.092440045172428112 0.0043052250200248882 0.006275189400391506 0.018337821221760465 0.26423287226218789 0.73131700815250467 0.18094253917443667 0.0036346103813575318 0.89580853663584137 0.0062930805065960441 0.0076041159594135276 0.0030569164647275635 0.19380276028789006 0.004306817884288377 0.83633666437325305 0.044145068832084536 0.0062755770683808557 0.0025617459732717174 0.0032564447523974484 0.0057304908550828574 0.0054762499013598503 0.71938369107161548 0.86102158847374022 0.17030847720610717 0.006974297433695759 0.0036697411586787427 0.64532396273488779 0.0069598131741433391 0.010257971553775259 0.88611723963041 0.25558884099099072 0.099584835000484526 0.0062436537632986726 0.0072604906534561144 0.0028619207720069796 0.0020548639331564914 0.70044425510036312 0.0030691979629886186 0.79970942544369727 0.019689382050071765 0.18619217277821687 0.65720573912210956 0.0086631546959041721 0.3681383308569588 0.57007251209161236 0.010554049443625759 0.70169077759305121 0.011198946992270978 0.029605104907832552 0.90371654979355598 0.012022116695918504 0.18507492448703572 0.0078180622660125008 0.28761380138061882 0.0057836690246261448 0.27359901366059619 0.76539946601491371 0.44822017598511921 0.6929506052294212 0.0069243689410656388 0.0062229146049331968 0.012382795858888185 0.10051697238033042 0.030174975598849532 0.0028955515698160118 0.0063202460692242841 0.10132022406750642 0.0079693423966953926 0.0031328415648738273 0.008354717723792076 0.0039565795164656333 0.0028839991450013021 0.25450313738762542 0.004376591563287938 0.017911405538828525 0.55509815714155841 0.0079131235022610377 0.0033863802902982911 0.0054158418619754912 0.012582285617054007 0.012292438977476623 0.095755833966327142 0.091332827806554329 0.014539994112677337 0.0028731033558529765 0.0078536264887774949 0.28773237039651206 0.017614531474082162 0.28590945414177393 0.17744861473040316 0.095402901932976056 0.41796152266549208 0.0065484016817001726 0.0091002092766623681 0.0038383794244995634 0.013830102591589503 0.0086984019730460896 0.096362830558427315 0.092197047375571384 0.8031717790823022 0.008967513432958046 0.0083764611384927867 0.088137513822789948 0.0040431904897829211 0.002030808744066841 0.010104044440476915 0.0038334955295175263 0.0034680780949700963 0.0039365435316483137 0.15024368691414197 0.010182642200851827 0.62455117511340885 0.0034280071252650833 0.63321515785832283 0.0026242279263000859 0.011380846289824338 0.18929701756287232 0.0050044302563561896 0.0037120128708265756 0.61632826866484869 0.36036721836123919 0.10447049143865579 0.52463733515828193 0.08973541154719207 0.86226184461863553 0.012215408513500534 0.0023207640230518433 0.0041455559046682609 0.10865556044388938 0.012702128233146301 0.0048014198062669294 0.0064451707531655491 0.017663807745652321 0.0092131570098996831 0.11416984621349134 0.0083965656619809717 0.037091332431107203 0.0043219961300499082 0.098280023607820025 0.18669911489724134 0.0079298806891256336 0.0069465256410185345 0.0029510615869609838 0.003722156523344412 0.0069562526966691829 0.0093116043050035027 0.0051894885156275024 0.10277563020676395 0.0035539820835492819 0.0036585208610085814 0.51209779066836536 0.0047427257206776059 0.88490499095345343 0.28840399048793974 0.0038407867890238221 0.0081605104308785786 0.0060295413065561574 0.44856584708920205 0.0067589921033463151 0.0086324851999597298 0.0030654127232962319 0.012793678681114171 0.086147088003881725 0.0042625639223135853 0.0039770396960827886 0.0078552039321300102 0.61903899640321702 0.012051593076847326 0.53371010567998534 0.26858463252112519 0.0053555426073439577 0.74336935345844835 0.17873243315326881 0.0038622584709706326 0.09092478111180563 0.0040835816345655262 0.097409366471375075 0.89882411159219611 0.45839027274733962 0.0085140788226549472 0.4684941711537941 0.0043200770537940528 0.18690975703618348 0.0048989496673854044 0.004659606131949154 0.0076254860676063328 0.0076610044578074958 0.06731337032053894 0.89670805951161636 0.0073879187389137985 0.11690844811931421 0.010314708572628823 0.0020392696849762621 0.005036367044583376 0.51851727612918952 0.019412876130238794 0.0051905437366181776 0.33013868200922447 0.79971880211323354 0.090912430140750206 0.46369631299533581 0.40998708684997143 0.0065024614946260478 0.0024378850768350365 0.59910280591590948;0.20434922106862585 0.0069132777655956214 0.013038460945122787 0.0029152713512191363 0.78326033880731738 0.0097161435096420872 0.0067828149065232652 0.0041826026056759544 0.045148610671582795 0.0079892244723546012 0.0092462292927235849 0.0024311893881077602 0.0040282193918986589 0.04252622000785402 0.0028032315312221398 0.0042405829274055912 0.0042797747685030026 0.0069996641581090641 0.98190720440455137 0.0095459242033619773 0.391743699023829 0.0074761804342024906 0.4050278755192645 0.0039018332270860634 0.01871414609029794 0.39045707176959421 0.002202421135691321 0.40289261740710453 0.58487112701094612 0.001530165281888155 0.96071939669767359 0.18972841633906418 0.0020706517209429214 0.1903758840536493 0.011184497490243007 0.5795150942412628 0.020031466455152955 0.4205623913206547 0.0031244266664045284 0.3942582672361597 0.20181856474828061 0.39473654170979894 0.39984607170806891 0.0028546151064159377 0.2185729025563278 0.59661910020130415 0.010933596487988593 0.59769032575290038 0.0031794236900813781 0.57794675794653161 0.0018323545865540926 0.40726905018585335 0.20374674906609422 0.40117559007782594 0.41510721447018339 0.022735720667993509 0.0058984076125104777 0.59519401796092408 0.0060391579341378017 0.0061954700113668031 0.018193753072455528 0.44135473911788448 0.20753796560452403 0.0020242138141758495 0.17789724284021008 0.81306742600586057 0.0057083837717046247 0.0070722014040097494 0.61594823426250711 0.77323522152414947 0.21689788080808603 0.58089185058254345 0.0070159719043954624 0.0034297595875663555 0.41014073844848897 0.0080462669716636903 0.21898493847760922 0.0024379814133640332 0.0044031978420164767 0.0029954234066336028 0.55625307333716312 0.0089227531668800951 0.0027062474508403687 0.0061339056089969209 0.94659350064069858 0.21046546148588899 0.03489239881230613 0.0021606024909710856 0.77203923764361193 0.0019078530112199765 0.0043794271302321566 0.0029285398062431902 0.011728018411149448 0.0025105261124598716 0.0027568007016647634 0.00240827883479889 0.59562248961571795 0.0070393547529769259 0.0081484468574643393 0.0082559709065100489 0.010877021881880583 0.39488492074134901 0.0082945970927982872 0.98568958479717106 0.61642680437470188 0.0038885235750378152 0.0033858550223802948 0.020616195184529063 0.028731820330654533 0.0048472514548762342 0.006070006029641084 0.42722593345120019 0.0044954946395622392 0.0037544525882442083 0.0022054443002156349 0.015191981097007506 0.19628518386919006 0.0074742661105929049 0.0029386272005299807 0.0077089734956113454 0.011134844146519076 0.40515704430676547 0.0034230730768239487 0.0021841767811142795 0.49262539365702546 0.62575811057799857 0.0018969730895548789 0.0048710068731345618 0.0083437242545777428 0.010495996946032746 0.0022076116959806572 0.0065920780983317901 0.98598217343681815 0.39981006408100245 0.0043605007282146507 0.0066916902157263675 0.39006245560524078 0.39277878544748884 0.0043078567795901959 0.0055113060780985802 0.22152300597235414 0.39588819310797257 0.0061661691903247152 0.20992832351143789 0.95844599094036198 0.024124786928301611 0.004053633005464484 0.0073713873533367419 0.19368902786130401 0.0149349924084171 0.0041906481589665118 0.0011636900122611448 0.025669567452018899 0.017177470083725659 0.0030972582641317164 0.23410929755679141 0.7935670024159085 0.20177353264420891 0.0032243994832950049 0.0047942894862104133 0.015329790123227743 0.0046208755628350164 0.003423906467783352 0.0054116995281379898 0.55629097089506918 0.0032618374864760396 0.0058106589389690889 0.57502441446672803 0.0028897578592259861 0.017283995876368776 0.0073649162224649137 0.0018689241238987269 0.002417731548520285 0.94898649372350152 0.96637560072900641 0.97768790278343887 0.0013047528176250826 0.0040516917489789583 0.001700050681283007 0.59151253714027119 0.78841016379544371 0.0027735061417292033 0.0061800811124141227 0.0015256554349899489 0.39470261465555545 0.0060316909299473268 0.0039699173066889953 0.0025567805741518088 0.02450725163187592 0.0028769449888909338 0.0036726491518346074 0.41667391689818228 0.0031917440409072045 0.0047227225674855936 0.0027990905020522155 0.0012072052806041018 0.0033059077422146078 0.78213049537749857 0.650991799589835 0.0039490941727375077 0.036249355309153047 0.79370741265342548 0.003371046991945981 0.023754412751238296 0.3941830299826648 0.0057873882638896862 0.0029140962157586194 0.16112759924972508 0.0093515129994749969 0.022533097151339991 0.58837859361021638 0.0041714242033308079 0.57198688408557019 0.0024495319704335968 0.42126674886637144 0.0094170431311327851 0.40521340249103499 0.010330643412569595 0.016991145703787985 0.0075750629289621048 0.0025592381257349929 0.61360459035349157 0.0027826744390952755 0.0054932687224467976 0.23473916527817482 0.0048508221978728911 0.0023138216835438502 0.0075759725567320496 0.0036463930387306627 0.0027251367437383244 0.010399456991009332 0.22652273273004572 0.0020196264930051754 0.007127471082815218 0.010272918394094447 0.0038058740444631783 0.40066252555773479 0.0059795465176863986 0.58485196102845549 0.94764125088155327 0.0074860504787626625 0.20262991695754373 0.0064405002435077253 0.75651325643205625 0.016675421965944549 0.011269914338656902 0.40337653620069314 0.036194642894180812 0.58943948096762844 0.0043710540538839807 0.38837890150602317 0.97298317106267129 0.0039612023780077662 0.7843379536510573 0.2046312019775586 0.0061433253402641188 0.0053613537775235838 0.21007272203947314 0.010570570418548808 0.013351466057241764 0.0027851000881577437 0.76407296631214228 0.010025351429930985 0.0030506608573079449 0.39056524612956817 0.0040573473538788761 0.0018297043000308824 0.20038753372717485 0.0071820472749838616 0.21779835563753425 0.80123731719443125 0.00585419459256507 0.0026677264632835283 0.003307766005802285 0.19902335837692398 0.017884522412354595 0.77223327765092653 0.0021051108597553688 0.01276756590110326 0.001623730014180495 0.035458762696844601 0.0036434706558575794 0.031650945208417325 0.0068011123652458932 0.99384148388349114 0.20825262749343726 0.20726323437969968 0.0051522518403673634 0.0015936008866058457 0.0043712791823914566 0.003218366879016971 0.0043680356076559301 0.0027387086032786595 0.37428699788656561 0.0029021751391629588 0.0027965680609833153 0.0042462772219773208 0.0047896491719745145 0.0035148721570357894 0.0032407606185978575 0.38530103529595061 0.0057330789320865893 0.37141080311237873 0.0039080901044262241 0.0056314896332475307 0.0088886919009737112 0.0049698624054789441 0.001498205621080672 0.96257604479290437 0.0032909296151888523 0.42400713439396059 0.20427328352559512 0.0050524879768079553 0.033124652153630925 0.75948597754788028 0.99275958516265983 0.38794472791314377 0.0067215700709073109 0.0027748988166678857 0.017840323939801971 0.0047147551858518965 0.0013527333379718389 0.0033008897685615265 0.57257752521167404 0.0036756001773121756 0.0035264380455500041 0.0046811549638879121 0.79082934554406559 0.0072528887587178697 0.0039504235968367456 0.0038649973695571243 0.96167971901518168 0.20893684749734398 0.0045617980541239767 0.97521174930700083 0.0083949135870751736 0.0065085105659104551 0.6370304157123543 0.0034493866915800038 0.0019363616655564506 0.81304073375900188 0.011213866246211795 0.20215106796412513 0.005820089770569155 0.0027320208751879928 0.13775005120449943 0.0011453878658640516 0.98676657974699289 0.02204195110445431 0.0035562607461674519 0.0038505484897347303 0.0038802849358589779 0.21627687648156102 0.001988626452078774 0.40808133517666312 0.002689989318736812 0.0071490327185509189 0.98232804370688198 0.0067448925062407461 0.0046878390136306678 0.0035561827175840327 0.3919935646474928 0.0023096858157781916 0.0035826508121478795 0.1723121146966293 0.0059234720303654063 0.015934330435896676 0.0029118045124423507 0.0023855238367187989 0.77750036576044002 0.005477123010178735 0.60588137389375218 0.11541566568269973 0.79090750696922596 0.38640767276218652 0.40591164212193526 0.003819502932564508 0.0048144994551816232 0.40194386522089898 0.0077901060052523981 0.39595620517573749 0.0068212292404573396 0.0066866619392071487 0.99255685216716305 0.172734570491475 0.9896944688991639 0.0028964921790914032 0.0016453485345409215 0.0062253878901717841 0.064701531699742382 0.014117047256964471 0.36170065364308523 0.60115988040025259 0.57594551494981772 0.002108241426844213 0.41479719085934136 0.021344250875545395 0.38846164223338153 0.0013603932870145299 0.043795365739238035;0.004097026576220672 0.0093057899302615016 0.7902433614185651 0.0065891400209906401 0.019649591539495456 0.015705364485099939 0.025616592672935853 0.01358093671870462 0.98037520895081487 0.012881960907831891 0.0071114714424765253 0.0082634451171312833 0.0056517722853641709 0.74837713785015669 0.0062199274915591962 0.007502370373752126 0.0031590949685025766 0.010706877962949373 0.14863006195952921 0.0061583500727867618 0.022400122647566925 0.011582075442776028 0.0049093984436708767 0.010195999839291708 0.46858095688329726 0.0050771274872726405 0.01025291022463252 0.31749313127741141 0.67660800340315275 0.0035328216918900828 0.67032931636836446 0.0045508699383139811 0.016348173738848205 0.0077189004954425974 0.031866844805111511 0.97253694990314621 0.016221767506408476 0.032829661374774249 0.0066423505172826369 0.0039600404379283661 0.006178524626828337 0.15110039975183831 0.012153303659617525 0.0029323383210620641 0.48794663361908713 0.67740626427154338 0.0040478887296873127 0.13525572965972454 0.0052410025037057384 0.60926871508328806 0.0037570735499021686 0.0067021486423331448 0.017170374527679513 0.010811895808896365 0.68369694646367685 0.0047031480361006362 0.0093180003039750464 0.54447409068344876 0.016363517679347649 0.0065295493273236568 0.23122056969625349 0.015918031313563532 0.015659308509304182 0.0035807192324346549 0.021049616873323053 0.71372577062564724 0.0088773920982802811 0.0065609373295744998 0.13647701264725831 0.60207273962027286 0.024779692185903111 0.018085812540709654 0.0066647168955092312 0.0047116185458032705 0.25575562815229635 0.0088654397634830989 0.45943217189809366 0.0041216347484084037 0.0052708818240160063 0.0039464574964730593 0.95092006893035541 0.0064117224729076695 0.0096069917819461004 0.0060567272431078147 0.069515725636585785 0.22072566398769286 0.011493821817638337 0.0031810017033933103 0.47922568003819283 0.27007393747786429 0.0052859571033984677 0.0029612611983061937 0.11072790604623349 0.0057193891716296949 0.0035452414074745066 0.0051040578603797505 0.011187966405835342 0.0094696882325009286 0.0087556823025408785 0.008864297058875651 0.0037454849281662516 0.013415439801930426 0.00917524202835787 0.96112428160476193 0.013790566039675677 0.0055324848551006776 0.0066115611508080051 0.18355854705606589 0.63957523638507274 0.10536219048677803 0.0074455074298144077 0.017249935348505194 0.0084246804103333926 0.0050913302562079141 0.0072408264821920976 0.0066275432515194403 0.40369300982876177 0.016212354795705937 0.0041046565942660668 0.0086415863904719739 0.0062374916365145359 0.0035996055768618769 0.005294813219642697 0.0044798406657856997 0.94457618412666944 0.90259618019154109 0.003692937443962035 0.01763543887308551 0.015567059553127713 0.0018634960776849592 0.0043613596631422082 0.46552782235305767 0.74367381887424022 0.022169777155402158 0.0089253781812786495 0.0081825720423000566 0.02803347992622459 0.029311322356495993 0.010839199395731162 0.0063424631214155308 0.61066343597456041 0.0061359173653699681 0.0074803707400970115 0.0050440717912159146 0.14390620801412957 0.94867164017760319 0.010156318818812323 0.12919471490998971 0.1632081896521454 0.014984403451128163 0.013999532025901117 0.0065072133453401067 0.010828239282866243 0.01555894942103064 0.0048179276426287025 0.84127742995575538 0.11146844375859918 0.0057675809501056465 0.0079122522209501174 0.0080210312923293722 0.0049669529109829802 0.01411210740542417 0.0095163266729927157 0.0089895582769329296 0.49689910850754454 0.0046935260091589878 0.0045396519412965507 0.72139182702761606 0.0044192745584946454 0.89412133770882862 0.02475753575847614 0.0045212106996699829 0.0043614095824254656 0.1969234618032088 0.043376119149782226 0.48499890970465021 0.0033417312602349058 0.0057176957931370162 0.0045674209389973078 0.013622359524707054 0.020842825782125905 0.0047860655417037729 0.005463916712646383 0.0055224767732870508 0.97314036512604152 0.011141496063317479 0.0087322665515911623 0.21190044967489441 0.010726842940764522 0.0049921088684204921 0.0087994799053412263 0.0057020473843017484 0.0057670230962075684 0.0062817276759075946 0.0082198800394466046 0.0027014243796109247 0.0060992591568631745 0.030526329362326743 0.77240685812824705 0.0052702652882001795 0.017872470557530967 0.012377999373669724 0.0094938204105863601 0.0066359758268543971 0.0042023025639680803 0.014663783709353409 0.0052420368049563276 0.008634575220143114 0.0054389081633239994 0.017119255250843891 0.010275236908778951 0.01308116232820641 0.0064005517929714645 0.0046551597494007887 0.010019685365028654 0.13198763992712748 0.01676189097499195 0.004372446898363953 0.029632240797116932 0.0090446267831126477 0.0046005364386605459 0.027759434053127585 0.0067546815036983012 0.011416874194652748 0.029165968483124406 0.01384590928953993 0.003945226821991183 0.0092254088115717465 0.0062776430600402829 0.006400382324751314 0.017051375743349109 0.0076940915270044975 0.0081664894211709946 0.015407599026667183 0.011217447990292624 0.0035414338141009278 0.0070180257105433488 0.0052422893478084754 0.022652349688230655 0.22878162460043816 0.020121816591332675 0.028966206352252968 0.0051805461352757761 0.033056680015026409 0.01331358779855572 0.01660679462160633 0.0095946187528118312 0.93224387915377149 0.036745562524636399 0.005632631439889688 0.55086935393516923 0.62685979543825443 0.0047876707101884887 0.12243895150577157 0.012180502547707554 0.011408486536818601 0.010000111546278006 0.006451013907530511 0.0082147951572586544 0.61754659126941258 0.005072364434077283 0.021488702211145433 0.016403989098470274 0.0038554575207389971 0.0041488754154580844 0.13814538011764566 0.0045684904525684156 0.67039454663249753 0.0035328635092485932 0.60716890125023226 0.25051591540646823 0.0079190903358719415 0.009922036096673751 0.0074093508994845757 0.018128330937135298 0.004961068839945083 0.029774681059781753 0.0040730965128368641 0.011518562975948408 0.0048580035824471761 0.70371721392205855 0.0078317391375876105 0.06529831515283599 0.012115778526427527 0.34542694974906651 0.73121337176052714 0.37400613784267667 0.007739726706057549 0.010270754714006266 0.0074380685301431758 0.014192047161990911 0.0089445493828201154 0.002554883121065033 0.368938189528278 0.2017282202375911 0.0041720378457585638 0.2520914881855153 0.0042319100441284459 0.26748685844270803 0.0046859218615611462 0.14205831013450029 0.0037196561946378059 0.038107260910067151 0.0057928726414955278 0.53918597501204202 0.0033805658384418779 0.0054403245853683578 0.0083121751670887194 0.019444464818560686 0.0028132035536602195 0.0042638615572794594 0.0067641517456199507 0.0041318314334275168 0.95128470246909314 0.026053556644017983 0.98174711699839445 0.016924268819318668 0.016835030141221539 0.0048596144805741212 0.0044997339898037369 0.0067724453821896308 0.0036263174545219275 0.0045697379497881153 0.64558137764691326 0.0059060998458685988 0.0040107838123012432 0.0051108721505661887 0.81953184145358282 0.0042950669595694189 0.0054061514428670734 0.0058573646654906464 0.14400946801717662 0.0377444635944304 0.0039993942852192283 0.24980569653885459 0.012352803237133522 0.0090665732310199511 0.80099634654602769 0.012290495304732963 0.018590990853978299 0.96893961676009077 0.0023165748324571979 0.0078015392373645262 0.0042423985707548927 0.0092440806329011499 0.010816556285397808 0.0026043175422786639 0.88722924857597518 0.0036105323511852502 0.0047467358105799905 0.0077629486355484268 0.012019061322136875 0.2422366831588198 0.0031146587557504862 0.0064261281176034545 0.004248529135329397 0.016023720026047655 0.72025505914495902 0.010201140765959477 0.00636949342230053 0.0049516307082857003 0.011585173077308029 0.0061597007076267599 0.0064803516174016954 0.96029469874064588 0.0043381956300706436 0.0040739697544032458 0.12240242734439356 0.011521754791972821 0.92358815347468781 0.0062915957188985237 0.019789737271390953 0.14731065588040865 0.30687194928695888 0.95973486023321319 0.015370051718285977 0.0044008253160588732 0.012957265648381767 0.016984396457195454 0.4376277308750271 0.0051750848769937623 0.0096822902040015948 0.004434666725445853 0.37216702405184887 0.8245437150253232 0.7165751905322908 0.0025124055582569967 0.0044136021652779476 0.005997799482334136 0.0087093509665349574 0.016723228812192271 0.02560505464690796 0.20308399521431203 0.010994833366556926 0.004546482796904042 0.22241778169540574 0.016078737777926691 0.0053890329003181518 0.004990919893692632 0.014432815689321215;0.002894661003987423 0.77285356128053373 0.50066108937151288 0.0066187375193384052 0.015647156832607607 0.0090485176551132508 0.011604141660516966 0.62289847904916429 0.21355001542089941 0.014813519894608218 0.007253781006935911 0.59483219895347161 0.0038894529820815015 0.58613547978505343 0.0041116820696560467 0.0071590136974216175 0.0059335151413454374 0.012239524932378943 0.78267708665560776 0.18975190854263635 0.19779675456839513 0.025252024701796914 0.20459936992262312 0.0074908291665554509 0.6886423549670847 0.0043667698884360152 0.77211417283407213 0.008234044283606445 0.0046194199961872504 0.0039889257875456901 0.0036260743947508205 0.0059594280866753814 0.0032022238155320851 0.004421831830486625 0.0064827125127502909 0.58488607893032718 0.010337378468761109 0.35481420036945543 0.021468428451949302 0.0047951200344034731 0.21096300542197968 0.39517478803666517 0.5745664016515265 0.006549730599272878 0.0050356733532478165 0.036109796246325467 0.20725137777359254 0.95991009085911871 0.56827754926479446 0.004695350089620986 0.0058368939120464246 0.0028451734373478115 0.0080189165895637425 0.22855073989875413 0.0090930295768687341 0.0063657879596611729 0.94212481057322139 0.21454597586678906 0.013337755392183712 0.57672420436497307 0.013395547623448259 0.56032068626050735 0.0033264756203727299 0.20029016998153129 0.9686381746258812 0.97786829754449922 0.0093190132474876355 0.74993261195554384 0.19947735207891992 0.0074434537533599465 0.020926439980475962 0.0084139691980194258 0.0050076751652358862 0.035777648279952501 0.0081370726176094397 0.0048888524327715364 0.38560513398315632 0.017374113098073643 0.0090855675332285925 0.0208959610928162 0.96319856882663646 0.01801556192383974 0.01845773872075214 0.019000674800661182 0.0048909900451294432 0.040738061433461897 0.0053791235965631084 0.005286942870098784 0.0072487747111522026 0.75793354393284262 0.0052008120503592922 0.0034322810421728561 0.00542795967556578 0.0023837496497166365 0.0036786865780458321 0.58721811329383999 0.20343130538744958 0.79514578582351503 0.1141328870603093 0.012885245009271074 0.004682447583679643 0.0040228626903145541 0.0086855087026187876 0.0047831191754055796 0.0048205808529823268 0.18512223404987688 0.0061867833707578736 0.94372139343063965 0.38327762531650561 0.17564239280805904 0.0034387459144374897 0.19869764662824538 0.0062320112240956951 0.77342429442232685 0.87333209745055562 0.0070372773671588135 0.016711210288945871 0.010744982224421572 0.0037965761838057209 0.19457360812267457 0.0068112236202832622 0.0047068703690413159 0.016024262190621856 0.18610474370288543 0.23040104673284739 0.60184289732802088 0.011298161547426423 0.026926317751401467 0.0053018909833752285 0.19117606712820234 0.38286409554577827 0.032824653608152204 0.041264111704916701 0.012301385662785757 0.0072203971375914087 0.0048609885536650046 0.006737375398420363 0.0045005296807051022 0.004995998377593399 0.0061328030074610899 0.42754557078319566 0.77497904644231963 0.0086811888435561948 0.94076583261366653 0.010139649851207133 0.0045159537169501751 0.98533499431551119 0.57764677182470459 0.0042679645881106782 0.18865115067268196 0.010207728611681479 0.22163196501881366 0.030141449823086013 0.23897422528194204 0.0054590513549866836 0.032344792076060981 0.3850393542175316 0.02172441240158994 0.0029641989300008783 0.58523249364034036 0.021937508544858597 0.0092368844208424537 0.0072858628313793843 0.0094790369556396643 0.16640850930857531 0.0063280594156489766 0.24026380387855406 0.010157227690210494 0.0064694641696918121 0.009080169402121023 0.0039823582299071229 0.0035454655108195471 0.0053102521913350239 0.0037618077208742022 0.0089140751032409822 0.79150213120332569 0.0025148636111765512 0.009728337894509869 0.0060790722032934719 0.045975603931908339 0.10154685322043169 0.015004446548671958 0.003583577672527585 0.0057742542937251826 0.38107634118423594 0.0091973668326636275 0.38060887588087938 0.95993956671478919 0.97286465400209732 0.0040767610755031583 0.63563404269594537 0.0074658460459443594 0.0039090100436803381 0.0037556805553272117 0.75789502126455277 0.001859679650238738 0.0056472040808233466 0.014221000411072498 0.45485856760151533 0.010098614182568612 0.0045493496370618411 0.0081203716121183347 0.0093608132206482696 0.19128855350414686 0.76573203830175851 0.0073265228152794562 0.0066190525707676877 0.0040404127787720704 0.42608808673814336 0.0057003371599412241 0.014198410924627872 0.0062498641918177587 0.0093414210868424524 0.011782429933379517 0.0026710811091943849 0.75748814609426285 0.010883390005167123 0.007957229368674856 0.051142745876370979 0.02381573625228851 0.0068426617076497703 0.0077634917609319676 0.006349522912506571 0.39103362406142594 0.20811806039880626 0.015404362803941984 0.0026122990238406389 0.0026302280059273546 0.014530789926296261 0.0027395779221207573 0.79031155869843239 0.3796631757729646 0.37102439351767774 0.010497212807572841 0.013307144667343302 0.7362088792899083 0.010134885825695109 0.0091634340577925431 0.0066919386406181867 0.20894737297561436 0.0046712913829438677 0.010796468323303755 0.0044794240570647653 0.22599865252825563 0.01347445852318393 0.01033299379415191 0.009811319988269571 0.013823208264041584 0.60498675474723351 0.018240204576408105 0.009460006551392456 0.001300447109500575 0.0047243996580908342 0.0083981215896383136 0.0036092935928513795 0.0047076410891184386 0.006277106079264883 0.019724757479192043 0.20264509471639339 0.006212338721969279 0.0045603548411418393 0.0025502913655079708 0.40958119724951109 0.18779546815782039 0.22348164702543272 0.38915581339005351 0.029196770788806104 0.40224232099143076 0.19523568074986736 0.011287118114307765 0.012099322605847704 0.0048377874980769326 0.0056192798753839923 0.006970614812052525 0.56829956739153054 0.0056014769436605293 0.014321284869429894 0.0030009092287834136 0.013207920819251418 0.0094540321444314852 0.38164849099965387 0.0083906368021738984 0.98616236803590507 0.76579311067120437 0.19750244308570611 0.20627699861726159 0.97914297280720597 0.0050040139620053754 0.0068356394811416726 0.0086130026311662909 0.0026773590271888751 0.59564786916129975 0.018398913365515104 0.24657488559903998 0.57229815587971533 0.0050334393121424237 0.013285772065981485 0.0046975373825857217 0.3838549223595451 0.0085802909304108776 0.55783857916254653 0.0095646003093149586 0.22087018432158889 0.0089947413100980103 0.03033702238843583 0.0077898296444005961 0.0055345327961012327 0.0021099059436766061 0.15155051715553181 0.0088142840903401021 0.00301093121198104 0.01255950609491116 0.011044691201661221 0.1938981517727533 0.0046783034520257918 0.41198200856609007 0.0040817265913854787 0.0037531296522041492 0.015852867861050807 0.0076187651646299776 0.014057471325790674 0.0027059886994749991 0.0041170895253571605 0.0021096011165901768 0.0055530914576623147 0.015735762306854646 0.0038225169532679158 0.016187318827763687 0.004103811533213716 0.0038816685926943246 0.012207121385121904 0.011892018611015409 0.21761367658896763 0.0056541401564747162 0.0050614525577314107 0.0078590941198878692 0.0035683384414230681 0.0037097459603074728 0.012566944777995425 0.3862652713231392 0.58478625275589102 0.19823708189634132 0.003936596687622293 0.023009254139573457 0.0054260372501099725 0.21354470949446402 0.0090866513379998272 0.5801046473331718 0.0047368474204104519 0.011969713971356832 0.0057434806268764436 0.0091961502507808789 0.0078151054410833653 0.0116937091811839 0.017427369514045193 0.0033866497508591069 0.0060178804923353511 0.0018392345856620531 0.32050364458404074 0.0080266713272395835 0.0060443022171847317 0.0086999412991153324 0.0038868239527301788 0.58844018722308034 0.19740790674473066 0.0094003834144405756 0.0035995798852329272 0.4096993238891613 0.42034525672204259 0.014160077962667376 0.97138000603333197 0.9616174551803488 0.35274641153394914 0.21636566993607637 0.21991643356153207 0.017099092675748051 0.0039464381500889881 0.38927080906001488 0.41611043487229438 0.2119036709454088 0.20071209293577397 0.0042543221490618293 0.0089165323458606019 0.013742111474634715 0.56153253054257501 0.22436126951798149 0.0031745095492617592 0.0054549802798446335 0.0072653990110684505 0.0086299713711681381 0.0078688213441837455 0.56309089521660183 0.58946134577867948 0.004391506843327635 0.77129523560214364 0.0028483188817734055 0.0047294136730562982 0.0055889347379469885 0.0037605709283613032 0.0035708224891949237;0.016176863536380849 0.35210501320662391 0.62924527767398852 0.0075658962385984942 0.50351588629899269 0.0089181646026106325 0.38936109973380645 0.14812422804236702 0.5520806514997757 0.59489158617230864 0.17386521997556773 0.012891461916065215 0.0081697637240515861 0.61580868096183772 0.0091014380136002476 0.0081716116224678486 0.0093876519466346078 0.022518608849307079 0.23611492680236415 0.28126773144176581 0.0037386131962435665 0.25132160388969804 0.0058084870118112848 0.015160501409152434 0.23908728329762888 0.1468420787661312 0.011839008284860696 0.28306294530801801 0.14167488056146721 0.32100783837736918 0.099696533104351198 0.0069129139613107824 0.0053267327141898017 0.013693861397722426 0.019834417323551571 0.15711911492351988 0.050679234062501792 0.36619814434575737 0.17573131976674275 0.056688491801734422 0.0036725765880477519 0.25568745429508227 0.0084700597728242961 0.0051445561258180589 0.24094566117821123 0.012824402322421491 0.0048716759606213115 0.066883263618959798 0.0083331065199920215 0.011419401641876237 0.0096394616129899628 0.10757086676373201 0.30889535086013742 0.0096933884560965623 0.18776454054124245 0.011858501570675025 0.20160007571936142 0.012524654717624414 0.15516240549535343 0.0079744263837939824 0.049877773789913198 0.0052897983248406544 0.0093016911212382737 0.0093486452941431777 0.47759959987758316 0.29924327058466677 0.0072073012019005398 0.051086455988547039 0.058300646927753157 0.13377552784036889 0.38195426003841954 0.052219187482798746 0.049810622650055023 0.054684874735256003 0.43416609072437434 0.022859288007520524 0.14738138304508136 0.0090710633148248024 0.016811148601988034 0.0059581884496556353 0.10037252503430799 0.2340940343694487 0.54714506449843392 0.011971229750657801 0.06222254800225957 0.10032212075859941 0.10215267664277339 0.0040742704873683606 0.24162500330011646 0.020417272845273948 0.0038015435273135072 0.14302056142152197 0.34419687623441014 0.047449296806835232 0.049381708927732068 0.0051497243621499225 0.009577413048600535 0.0062507200605367019 0.0073391632268145629 0.0078647950824898803 0.050908402893764859 0.010458777276697723 0.19607820740215298 0.31397399121708397 0.072353996809337365 0.007960678074790872 0.0063499746247587946 0.6211710034696809 0.056912277919749343 0.59738539922675082 0.053260186560015806 0.14401430369951793 0.3793867297542205 0.0052615223420897639 0.098111428204419759 0.0087966780140088779 0.0075311010175092719 0.42401192222917328 0.024711822359725466 0.27014737032409158 0.011336496065833077 0.047766221912474566 0.06887943698701196 0.0090786306165489619 0.19220459570321805 0.5969393766212856 0.14680333164174855 0.54954411413216797 0.90299446185546595 0.0035170911187967857 0.0076764626257988591 0.5474984562687143 0.61002084433615034 0.058557658531058876 0.0071088066331921251 0.10063036646183889 0.10724310372079927 0.37383956505309396 0.011856394376371111 0.062885560020105744 0.14873059653626697 0.0057043881687555142 0.0053837918850242064 0.007204824248775589 0.68329061963192284 0.23607799093105039 0.13776692772766641 0.38721808154839521 0.059122326431912911 0.49803566898520302 0.27740604086531634 0.053425736537990494 0.010860239209876983 0.0079970777282947422 0.006122661347273922 0.0090657446327895366 0.046704476264532648 0.24075054803375781 0.2120974729223592 0.32089549572308251 0.0076576565933416611 0.0087907829726106765 0.14897805593382576 0.014315191710052771 0.096461589680614135 0.0061387873230273129 0.19542809317540141 0.36471708205701436 0.0065814439725114613 0.014822796777131589 0.7462602510087073 0.0076434505299682737 0.258558582912781 0.0098841334968027827 0.24698290476085599 0.01469156571899119 0.0098910515412233592 0.0049226145750773118 0.006313366449961999 0.0060408038283559472 0.13470104618260176 0.0061261686115664828 0.0064632252297695137 0.0081267506487619594 0.61614251438935019 0.012317744459860119 0.0066279671703561504 0.19615582816634103 0.19135508932297274 0.15200988829445927 0.011982376987898231 0.0059662373852259407 0.0075222079919073804 0.0072113805132680096 0.0083727377946386239 0.010714528449480449 0.0074971858692362437 0.0060977248738794034 0.011874850179440739 0.04923228238068951 0.0070981470620071138 0.0077967275140611164 0.0079150067839851169 0.1446079605067887 0.15159970608941797 0.33712322877036394 0.0063529217804806516 0.0072548560972019614 0.0043798054019486415 0.14080775792865793 0.18421325548655829 0.27797217992039031 0.0034912197510508849 0.14426081481017974 0.0070799574033662289 0.82376544030755416 0.29431887309631288 0.0040302522493060634 0.81961698413598039 0.40885476055277414 0.0067033980386183734 0.013773112939716838 0.016558256039595959 0.14317590851640308 0.10863839427108105 0.0071537297950693395 0.004768529621733535 0.055606219438901462 0.015953242363983194 0.032664954738043442 0.0050484020758923475 0.14133945488993935 0.0096550733265944148 0.07810416546832212 0.0063284388234469144 0.0048007650178721788 0.10662399514607597 0.0067799435335505779 0.19346303196699516 0.004692672631049527 0.008812131596276352 0.48413820625515191 0.0087219692491036019 0.09789827313172704 0.41353263032725801 0.77401220023070416 0.15669414347424859 0.020982040034752351 0.33140773300311849 0.0047533869767577746 0.14339402746776186 0.39014930527851827 0.23227645082313511 0.089577517521775257 0.0054604446198073184 0.018300541815741637 0.37080394264985178 0.48119337382991889 0.23153604415993573 0.13735194155021224 0.28416247368330649 0.056791335120894557 0.45937032819301815 0.33290897192767921 0.0038437780046281329 0.016533127049301679 0.19664422998008113 0.1501510208398622 0.0083973480779027318 0.22005008945249027 0.1463957446171455 0.0082731745846411162 0.5390991310043729 0.0083531761804470171 0.0071798755244760482 0.011233431385456046 0.0075086755938904076 0.005709022089786844 0.7914332367699759 0.24732702198676224 0.011873111050662901 0.01341690124351143 0.014617007816476374 0.19012203157695073 0.0068420467585129843 0.17098475987731987 0.3250273555077946 0.008590368566899112 0.58033119737230698 0.0093478685141966285 0.052466431725435948 0.015954778153575377 0.14541634477095652 0.056595927963707576 0.11157412725058068 0.053759131099866325 0.83547162562962041 0.0062166136345655452 0.29493120298298375 0.0074726560661144258 0.42614716246598994 0.0061885907278372704 0.0056756454368413947 0.0049582550455130273 0.70094691064937109 0.0068493247100228768 0.010193155908507286 0.45509068365059702 0.10006718048173541 0.007859240374862634 0.0053918461945617032 0.0087099710511058318 0.0061113712288521638 0.3639649123941654 0.099442240843196722 0.7078490029204153 0.052718357057267178 0.067659807962458088 0.0095803279542984853 0.0086857608835833496 0.0092242701917078541 0.0061488192601660448 0.0047395044326816538 0.13704380689274689 0.18147096920374955 0.0042423680964037407 0.046002940586451782 0.01039276306205803 0.0039078703768691296 0.0080978934457303364 0.0074095406655261299 0.006596935697890118 0.0062454087679874089 0.0042970987566523762 0.013854343427733663 0.0070780684077476792 0.010862346297923129 0.051417302366620968 0.0079249719079396951 0.01022759573695018 0.077743536160299734 0.0037946965520241271 0.1841183388031056 0.0049978376306547478 0.2784133955499436 0.32419605653888839 0.0082695138630056245 0.4249897688048504 0.062582889216029336 0.0069811677287832559 0.0095233270121604999 0.062639603782162989 0.19107566105322291 0.0050410705700869515 0.0043327553889808239 0.0049457809385244581 0.011975708197823294 0.08024017213035825 0.010445488772582914 0.005753899616047357 0.0064489519078628358 0.4747226533783504 0.0091013899762534961 0.0095998751202820004 0.4281045193963236 0.0047658772061534857 0.013673514529713739 0.10747078210187309 0.0071885599205837704 0.30575830791468889 0.010328171710494168 0.24050731292622984 0.12814036989654484 0.82700837528521542 0.5383057912531477 0.06071090910275171 0.0052775438450499094 0.007605651607993741 0.011566163203889847 0.011485539561189924 0.0083330644158145402 0.0074869816508991507 0.0085404073091172386 0.08901737686360274 0.21717394537125129 0.31326777360732733 0.0044292645157971216 0.0068122773889916135 0.0088513094469967815 0.0221311646867761 0.051540717756452373 0.0068715331358070106 0.0074127997521200714 0.0055162793741427556 0.0081190107224936442 0.060853860628275219 0.097944415609210411 0.0046462359021115802 0.0066032209545405091 0.13821834378883066;0.0049473429102999166 0.85857540571006752 0.0059150320477621603 0.0049905425805003983 0.0074628250181845678 0.0056546757028467821 0.0042349005076278293 0.0081579193817109125 0.0036817136979831956 0.037592803566746151 0.0032129737675937573 0.0083846098078110953 0.0036502283451084997 0.067395111486845155 0.0068978032060196251 0.039087312356315101 0.053558024556049633 0.0035053916773529893 0.87250935291086162 0.0072952237266632972 0.77490026712699411 0.89359561229795814 0.037359822965732259 0.006280233739110865 0.78925088027478163 0.038483711445058494 0.01409021809365271 0.96124188663502663 0.016730709436932757 0.010130058160001214 0.0030218173740191212 0.015473127522173051 0.002486840782591958 0.0065362876940630657 0.0033984955690918601 0.02086013556454018 0.0039018663635113546 0.80842186596616405 0.0056117148196256333 0.0081031465036280337 0.0068441260852459378 0.012122529968098126 0.10819269409248392 0.0046557113710562455 0.0085247027356197998 0.91225470604181635 0.023435298287832106 0.94716798874418462 0.028421565240096789 0.018438642995007762 0.0050461893190871486 0.0031999664530769508 0.0039469944058208037 0.012923415519002689 0.87176323917988496 0.0050534051491043144 0.010289451061950146 0.04935152874151269 0.0056380504315294531 0.023035958706275551 0.0090070231735647158 0.83828962049454103 0.0039923687331002052 0.010756654425609831 0.002138244337373502 0.010240295494143467 0.0026112480364463651 0.030695982162092929 0.029031688217096341 0.013034589645961507 0.007044453381617335 0.012527684684804256 0.0046584145222323117 0.0051128348275226391 0.0046654978403849155 0.0064436957997524363 0.017342097444262423 0.94642298270813885 0.025479864244769061 0.041530435180040216 0.010999195443157809 0.0019756142689066995 0.015683940326087411 0.003419135214965268 0.0079269152932635572 0.0015930048288780524 0.0033723053007056725 0.0054422401773443199 0.88886949218840716 0.009595377138489028 0.0025122567395103766 0.0031787740929992772 0.0047117872010196422 0.03816762946450112 0.0044521309768286348 0.051180178237087509 0.020386326822018477 0.74999725491540026 0.0046771412751738604 0.0061630145001889498 0.0038169386023472209 0.0052299645021795065 0.0026431617236880099 0.014329670875045058 0.0053661450984774798 0.0063108558623148755 0.0037364148178960933 0.91718404442273516 0.0080308862631106766 0.0094312381890615145 0.0040510300853913083 0.0077940694474708319 0.0034471876795594842 0.94518456762879322 0.023237193410631005 0.0034607297966795028 0.035537470715864335 0.0043800070604703119 0.0040933046576273604 0.86642391242122885 0.0064210178918900291 0.016304530697155123 0.97253380285750057 0.93225656762536369 0.0080146262996571016 0.060500802263841406 0.94116676759376416 0.0074714690163919118 0.01777452424391221 0.0081386214156084456 0.043083338679843375 0.0041875397403237846 0.014305183625626336 0.010127156279079248 0.0033565562991949927 0.0034862744591710798 0.0091543386995237338 0.0032939633440007385 0.00703855772142089 0.0078926413366864432 0.97135173996936064 0.96465268906003321 0.0049813616536706932 0.91494074720875429 0.0093701114439298412 0.0045786961291260815 0.029916613163431534 0.034843797528512771 0.027760672217818916 0.0057663543966283608 0.019216530292240065 0.011401332126450866 0.91622541920568723 0.021040945074633468 0.0046267778900682833 0.016011252915663361 0.0035202646612882758 0.032584571626711481 0.0051967519925426586 0.011748069850157385 0.018367567967907124 0.0040265470037583167 0.0039218641579256853 0.0074099134206338964 0.0043040110436558055 0.0027878639670858092 0.0066312970536766339 0.0089579558313983877 0.12972521743992188 0.0044160293976565285 0.0067080434773067708 0.003762030433980699 0.95109194355714999 0.017189147879406442 0.0058028107993449837 0.01840639226018741 0.005235071002514094 0.88875970806904081 0.019950147216094019 0.89237500593825336 0.87616178861050464 0.89460717326057082 0.0047382071159395465 0.0049881782170707817 0.0083114988740154282 0.01208027169531666 0.012044202777051153 0.92201928993526283 0.81103003619669767 0.95161713138992765 0.010429113033417731 0.0037325105995192264 0.0028358130837151264 0.0048098528264794516 0.94381718949985671 0.0076910769509003704 0.0035802039307849852 0.84675654640251841 0.016311930299039924 0.0063689762220212704 0.0043894412768931603 0.00698738225739798 0.0096975590377604073 0.0043798163421260791 0.67535538380467552 0.0049002146728044588 0.0043124629855685976 0.0056150187949767375 0.044200379119326498 0.0024699185892434619 0.011684951411113653 0.0055150451963842289 0.87166669960352716 0.0029763331255422362 0.0075437234131263704 0.93873853360168946 0.0058175199548910518 0.024934660926960065 0.006675190144176996 0.0061174880575829531 0.0074985324558359814 0.0012937422781547653 0.0053581161166191557 0.029173446195876831 0.041516833607622552 0.0051826932042988187 0.0023618472658119261 0.0043663656732706412 0.8545195785717139 0.004082053210141318 0.064550620364709224 0.068958140139831536 0.031852076299282259 0.02043007056657065 0.0036012015401053628 0.82300350288715962 0.0090281412875417178 0.010964950142408683 0.0029071637237763066 0.026926439899124785 0.0049591410849849325 0.0034045544662823679 0.0039207351663975484 0.82433667994345328 0.0030548743506147455 0.033831233293132194 0.0033858313087236427 0.0081036984413960199 0.0071397321606920588 0.0057847934589366811 0.037387286525111522 0.0065106906391996875 0.0046362756284129003 0.83993682323467023 0.014519165839591987 0.0025211740271495623 0.012020065144884439 0.0067174821783384962 0.00856543611059149 0.0053876549492187682 0.0034317619808770039 0.010396298478783858 0.0030160809930899857 0.020937767492220635 0.022491523915593455 0.0034221018136339331 0.0081726367703711198 0.0010030133863916182 0.84930901246639845 0.0048058028361982153 0.003944303757737311 0.0077454871189850455 0.0058656775563580435 0.0065297686477678134 0.87267120518113461 0.036957989729109388 0.017771960730489596 0.0033503600365712518 0.030614089448639817 0.039462510156972594 0.012019758339273007 0.010972140102555679 0.94275674982413993 0.022151720595096777 0.12203838918627519 0.025954566982058034 0.018029189230475393 0.0056466975517417747 0.013967756656194305 0.68029405508810581 0.0056038345069592136 0.97243091822190808 0.020896592932660205 0.023984535258317053 0.0075627838414181331 0.0052010011181043017 0.023493676489768738 0.013086925606197999 0.0022670917704419101 0.015023943383154097 0.87888554628973736 0.036096377196827928 0.93802791529918372 0.035386203448302539 0.0061096966805970522 0.019819963774462889 0.7981862334774833 0.0033403675900135353 0.80226072555848194 0.046370626059465528 0.0092510920515916657 0.0016327939404649026 0.0064941613287023423 0.0060793823247226701 0.012459893996501164 0.0058896993648640079 0.0053812815612497454 0.001833544301126323 0.012537534928384435 0.13554769901644642 0.0063436463193319538 0.0051074299991524458 0.0029646167291078242 0.0073041034885354354 0.0030454837194565732 0.0027795267420232658 0.0028370361972170463 0.74106071211500435 0.0096810578999124586 0.0048268838979160502 0.0046860986919438205 0.011175763900200643 0.86770084922675961 0.0035145334610971585 0.0077087852635690773 0.0039633858469617731 0.0037680108905200497 0.0088043323156483284 0.0071489235771547447 0.0028850632588638707 0.92315053043859463 0.0016979167396340296 0.0050634471329424422 0.0070593543987755771 0.0062688918106821589 0.012919053821689055 0.0097414754726340702 0.065291968263986214 0.003969448502020973 0.88483632006083612 0.0090844409893418906 0.0022807292682402443 0.0051044847469939999 0.0059945951042732655 0.04796718522631864 0.012858583161829522 0.0037660014030537741 0.0072361863089348815 0.01713675794410854 0.012502540731945932 0.0038708256154879241 0.0028107734900194585 0.0032013167003711331 0.97234354794351108 0.019924664178608074 0.90242580812582751 0.0040756010884153036 0.0077425487000414737 0.073559216490927046 0.95753682244858773 0.76368214127760115 0.057638345140965927 0.0045845914275243387 0.023682203406570457 0.0095357988297342829 0.010775084278424345 0.0067509357171896831 0.0067413306010400426 0.010778853680422387 0.014517363322613195 0.070071120072767348 0.0058240919221698197 0.0098885140787445484 0.051129960603588279 0.013819368766170025 0.91904365397799304 0.0039330340525240565 0.0041978769357462588 0.035362466286181442 0.0051352368245051521 0.0043182862837618735 0.95682197742531705 0.057642045485499394 0.0071259561281631374 0.0057371671450751772 0.0030122912350877438 0.0028707037786765087 0.0037952790979721542 0.0049037594188971944 0.0054007304926474509;0.0050276636309078849 0.70663961870115743 0.0064560311152838728 0.0042448485212383553 0.18995241941693275 0.0037300214566250165 0.0043494378575895292 0.0044687131808429066 0.0047772673680371702 0.020505855170227051 0.004770376393039108 0.0062626024122567087 0.0053217379292865886 0.9577527384870268 0.0039856469873268043 0.64622533799398529 0.77390262891984118 0.0065559355500817195 0.57882860160063832 0.012718612998479028 0.0064677780979055651 0.84643764845135006 0.0098271015367037244 0.0054329924467132178 0.04666900241084132 0.61639459922763018 0.0086043978966761515 0.74244925273931328 0.0049791353776920139 0.0047688990082760951 0.005122690168403366 0.51802992070178733 0.0033056500474453049 0.0045284321268887718 0.0065435148206716932 0.0029325152495648411 0.0039704919882117638 0.016438915149101757 0.0046099675866110674 0.0033564748445532614 0.0043330915944135451 0.0069283580212264146 0.97205787193776305 0.0033228131999979201 0.0052942321921972853 0.01207045787135467 0.025546890970891301 0.40531282342619529 0.2862045756710313 0.0030615294504876488 0.0043087287939471541 0.0041064471387331648 0.0038092636347416787 0.076503937607565492 0.30670597436961144 0.0058146290638616963 0.0060546743040781545 0.0039516445636433055 0.0042007911262051051 0.0051680108086397201 0.0029748129588209366 0.0095225738578571043 0.003244540544441329 0.0059620853761330099 0.0029864575844430817 0.008714974924535851 0.0029850584720532407 0.98091492386796508 0.0041441435878667729 0.00732818331144578 0.0053673905344380829 0.0086932307618808706 0.003737350068483138 0.0044602396605582899 0.0041281168911581198 0.0063781782917233512 0.0057794986045487133 0.97243135488310206 0.0041845672185634513 0.0023290866314634091 0.0026571273655657261 0.001762066789842953 0.0053944493522603033 0.0030413754273923401 0.003840791357001978 0.004761171025013884 0.0028726901147620473 0.0028071211739708985 0.14024293766505505 0.0061329952323607743 0.003549522058635908 0.0040088769003063726 0.0044562627620938541 0.68484829212253706 0.0039369336227857397 0.59849937161507005 0.75109809766106383 0.96248519570544155 0.0047424453730600209 0.0035289953873869949 0.0049088335997579634 0.0036746802672594971 0.0037599373012239755 0.004633453037031077 0.11543309605179775 0.004589937995264786 0.004757077286264403 0.60541531029069839 0.0040395199405417071 0.006363175286450428 0.0057222945410085905 0.0085793191904673383 0.003951852740130898 0.34430525158097941 0.0039257761507937574 0.0057186334833607367 0.003048689384224766 0.0042392122382555152 0.0033804909210177038 0.0078654983859952395 0.004778758505704298 0.67498913314560527 0.67248023421165093 0.032553451248913248 0.56019603126990414 0.62371408940951656 0.29346115045282595 0.0040036889971257206 0.0036210558034257372 0.0036390142353398694 0.017797218841063611 0.0051625525328506134 0.0066535856340444888 0.043132428989925115 0.0044842538528826357 0.0044976390247237945 0.004313634601523687 0.0045483250443661104 0.0058127573390142212 0.0048386685693557543 0.87281647696125675 0.98856048969080401 0.0038208856805944311 0.49019678248444393 0.004438184394346522 0.0057519044719280656 0.01576862469386154 0.020033801512729807 0.0048906138242755101 0.0049242691489873652 0.0022444396055552158 0.0083922428602439172 0.23223272474730491 0.0026491686427977997 0.0028927446798915337 0.0048143253692918501 0.003434105242696152 0.49490554602186904 0.0049466005372902373 0.0055062543297176416 0.9790851554304113 0.0042208838249769192 0.0039892577217351738 0.0052284875275974444 0.003712243947601022 0.0033206163932391632 0.0055274331395074698 0.0049468924934559051 0.46163270756200797 0.0034302524835463978 0.0033202682100155019 0.003464177576979565 0.96712609030714525 0.0042098571154852056 0.0048556604841600024 0.006337843685415746 0.0033195673768999612 0.85761357118337933 0.43254499360398813 0.0066951709880102 0.010535543426513971 0.95840194286174585 0.0040367188668789817 0.0052533881421771931 0.0051784102664718503 0.32023780975839239 0.0041275807066500645 0.40021416772287816 0.0067866102705185505 0.0349071286859991 0.015140319317051414 0.0062968815983915861 0.0036624582191163487 0.0036776458737078294 0.74057066933825388 0.0043665221653511142 0.0066871247522596712 0.0087056046881087215 0.0041920097020056819 0.66167460090658836 0.003726091782413446 0.0041930598402424935 0.11093688592466139 0.0035077154009313222 0.98980267754089057 0.0046268213399974943 0.0039164537532819415 0.004163230630952002 0.30203565515382824 0.0033029802716526883 0.0052496649911734977 0.0042983161779308818 0.41685325661678158 0.0032165336925280784 0.0080858317293981373 0.031247379653200014 0.0028496066661519428 0.4014464420055846 0.0050601623746977954 0.0063350401937759641 0.0036206467388342953 0.0023491532361590889 0.006233604043967435 0.97382231688630028 0.0060029268078854413 0.0070796345650266821 0.0029906157367198803 0.004558104474529423 0.020008809361225226 0.0052683553262786124 0.96377253581208355 0.3167867388642821 0.42682626189416961 0.46997618430824384 0.0029906675693696485 0.0046690485458269248 0.39360559054893984 0.015432232295760327 0.0056786651511641917 0.0045169965911136273 0.0043932412679689378 0.0058149582584610593 0.0077279526140298354 0.0076774895600748962 0.0038388919197015915 0.94682843553941298 0.0033604884921512707 0.0047226235621081036 0.0075926544580704122 0.0022293322868999557 0.004075253675767789 0.0037929623557419485 0.0045201218390438815 0.0059946492582179873 0.0037896639305873251 0.0042406845582289403 0.0069144476603028781 0.0044146241016844723 0.0056873919223700007 0.0043876017127248996 0.0030985140172739667 0.0048144843477770137 0.0042029488268455536 0.0043569841273619538 0.13131144538127362 0.0041843973032440777 0.0055439790374445606 0.0038651798954915588 0.76163844161991312 0.0050646316149757266 0.0042002898538653754 0.0040263690790735334 0.0023901650368207965 0.0044779245286370208 0.007424319539059825 0.22309902151557306 0.010310689052672408 0.0035231980654529729 0.10754444684913451 0.12124214551112497 0.0050319080769855732 0.0037611223555506727 0.25474677151237662 0.56539954739236886 0.97825906114864947 0.59066356065554937 0.0052152351828853348 0.0054712391688648528 0.39500137137610714 0.0054386880764269981 0.0039194863104059074 0.68332775555585057 0.82987926707554782 0.0058125091926028499 0.0050450503651526101 0.0053413880552132288 0.007894589349195116 0.0060278022920637591 0.0095456631565483153 0.0041646442177221427 0.0032229525837297181 0.062528263084278085 0.98319132308375667 0.0044076217017049541 0.005622314340676832 0.5845339525780785 0.012433139069305358 0.0054307032552649986 0.51375654084916733 0.23949267752724254 0.004273317442507571 0.0051690764126853337 0.02758733330144595 0.0042497974477636287 0.0048609105329056454 0.0052570426798415632 0.006241789099527187 0.0040107448910024551 0.20425312376994079 0.20978947378023 0.0046767823684317044 0.0049454708515486619 0.0042468467340520928 0.0034151312336341377 0.0030557028340035559 0.0029402349704307548 0.0038409768117517351 0.28858697026296432 0.005243770250640158 0.0040832878596625648 0.0042412315968767943 0.0053370759550083737 0.007707623019956796 0.0031807881537426292 0.00391162255401318 0.0038902501384235665 0.0035210177213067777 0.0042222956457803346 0.017759776262761925 0.0048996137847383296 0.064487869023323735 0.0056118333769639836 0.0047050595007721678 0.78866206455228216 0.005510615743953607 0.0036290466944553989 0.005136081395607825 0.02210270956323496 0.0034198860573144527 0.97897154756808102 0.0069316018914475884 0.0036603216192672228 0.012479601359852705 0.004272640028237522 0.0079857360502276018 0.004133990548622072 0.0045291477014147985 0.0050020481506660554 0.0058847638884402973 0.58168472170844021 0.0033859301886999659 0.0045680497054978522 0.0035414363940314119 0.32750384444273661 0.010715392902583457 0.89667676688463005 0.0030759733721579569 0.0035988891221120024 0.88108585315537791 0.014364622766846096 0.023909010176932262 0.98185841875023461 0.0043106265095838722 0.58668411461811587 0.0034056922736211497 0.0039759489268102223 0.0047467646997219138 0.0091034547031850453 0.36548211027147742 0.0061933870295381348 0.86628252651682869 0.0052473568237304848 0.0067614805073958045 0.39788013610760975 0.005103856212502306 0.85401030169545855 0.0055031027676206729 0.0045615743258149745 0.0048318202751595121 0.0051858173622685031 0.0035937058814018248 0.201788240637884 0.88126295615878802 0.0033788332378188418 0.0096858131463998486 0.0035817461605353301 0.0028805798948797899 0.0049386495591227019 0.0043058470238206345 0.0029108453025585559;0.0035301983492375846 0.99357509610048866 0.0064579851070949677 0.0045196114997240119 0.19391067170311554 0.0022556934097136133 0.0038342852494581362 0.0037430415378946966 0.18344986058452123 0.0047295975743469696 0.0024321767235616202 0.0074853368808993426 0.0041300684017370271 0.25732418583312583 0.0027472428547036551 0.73178409228989894 0.56197701504799935 0.0031004045367976118 0.20077283605736579 0.43192597214698636 0.0064038119926035572 0.015305253214579449 0.14887093212576055 0.0054527542674454206 0.38208109266633583 0.0066170719744534628 0.0074755796084051314 0.26090173969372654 0.0037626881257225809 0.0029680557647727896 0.0036637848815490228 0.86793933207978935 0.0022341356159500439 0.0032232145611306813 0.0053372567294562336 0.0030302218213699634 0.0045548038116638417 0.66409121554882822 0.0050537882350155583 0.065055462315535148 0.0045184146513517487 0.005455791277983655 0.99051029157674852 0.0025782826407952696 0.0039066927339301803 0.12832482073860477 0.34632108925797533 0.085235730869268653 0.0041995646036262898 0.0024997781796483255 0.003537667367622514 0.0034574020321132839 0.0026038174627158513 0.9045659434337785 0.31939280271398973 0.0063961025252956549 0.0042988594515246678 0.0028288791698547616 0.0038275026248618662 0.010269484488451327 0.0026159242890642039 0.0077221079296730865 0.0025074742826010641 0.007638230486180779 0.0030446603743739778 0.0047681064363098878 0.0042489989949061023 0.37350517771695252 0.002964334649493118 0.0063186082990828972 0.23458519727651461 0.59852556489956243 0.0036325926656936777 0.0040540019812008096 0.0033029879866741723 0.0062043409505394527 0.0051990066261818632 0.38722547863914741 0.55036165693895622 0.63372898227887164 0.001815279731872523 0.0020452277757742059 0.0049930209053400711 0.0027180546292832866 0.0039948071772025785 0.0039978953688815568 0.0034580693050730604 0.001934928218209891 0.90488696512077016 0.0049342231128917495 0.0028884345286188076 0.0038007634132519587 0.0032936197248741284 0.59980243624011775 0.0042379880965868113 0.90587701933831444 0.011564077013295964 0.56639618180752438 0.003115404517677103 0.0026251174693284495 0.0040053777417784157 0.0028989665117310193 0.0031295839790663684 0.0045101192304211977 0.62152652008965137 0.0030901480988240319 0.0036979788867273931 0.0077948152262617915 0.0032317396911278043 0.0048801114810378887 0.0044793020623051369 0.1894275824798661 0.0041803445846391122 0.98292425178419485 0.61531180648982631 0.0053996407627711334 0.0027618107479353707 0.0032312118280881348 0.0033165419062912323 0.071133501376311983 0.0039813517450272128 0.01259527159150137 0.33135028585817039 0.012939096467973888 0.067445169954083381 0.52905301543366379 0.87314053872849773 0.0024367397204400573 0.23200080264105633 0.0030383225299288933 0.020169085004097167 0.0045538033960761557 0.18869095668195401 0.82315582858869152 0.0027596519822092884 0.0034559684069689978 0.0031937549343233514 0.0041629556533860834 0.0037994038784071242 0.0051022107691154304 0.20864617684539871 0.98623803644506958 0.0026719411890144839 0.069409695962590251 0.0042785589798021561 0.0057421426700545409 0.43352459356647016 0.0086986339699105172 0.0037567060378181517 0.0033035638114017646 0.0018195260322851519 0.0073688681764240973 0.12726585683797495 0.074725252575636752 0.018451965717109515 0.0047361820411590426 0.0037631426808016396 0.50185159953325342 0.0043246961241371435 0.0052951923752095689 0.3016057478382429 0.0031900846650809796 0.0034380318330294469 0.0034550945763897074 0.29460460892919044 0.0030044266404329312 0.0045108732048210797 0.00284989071863479 0.4524115279800271 0.0027738509681405157 0.0024104840095355269 0.002739596130985498 0.3677761883942734 0.010025686394903914 0.004218037909169684 0.0052377916928799369 0.0029429000816547802 0.015336839810970573 0.13583039228140148 0.43237464465659819 0.01122442869025589 0.53970548673298413 0.0029710462861342103 0.0048264404697113319 0.004271290064390189 0.0040944890757529983 0.0033756717386302366 0.56894985767201078 0.0054773619777577602 0.65543088816270534 0.0034909540991524312 0.004721122167709548 0.0027131401237598931 0.003658010143739687 0.38734789035405648 0.0024137567747897545 0.0031836013958575814 0.23828050058535472 0.0057715379171814751 0.3630389892521948 0.0033404523705618241 0.0031720533745866874 0.6529732680694369 0.0045838128369523126 0.98987573202771817 0.0041657717796862526 0.009676031799243404 0.0030588694897489182 0.066941087995572995 0.0026734406196498341 0.0071007595253827077 0.0031284614892257813 0.95171045544336985 0.0026128541516077931 0.0068173763593011834 0.064480187416318627 0.065324278180819456 0.17709105850292436 0.0058830031977894813 0.0060071782035324341 0.0024222368275222898 0.022941826802934967 0.0053008603620331501 0.4975627337178728 0.0070210135540485583 0.43685709712741505 0.0021742093217331834 0.0053090005383917551 0.0055873677358563197 0.0042822976397340453 0.1776537843886456 0.0089354389071088242 0.0066221119843703794 0.1263719748452147 0.31011991480834356 0.55890390958962988 0.0041021019341642602 0.0057109505656928721 0.0040433464811393321 0.0037264832973278959 0.003275778863207646 0.0039783470396223533 0.42299440685996076 0.006129936013642338 0.0035784636228322671 0.02826120245008526 0.0026463412232561488 0.003818015164474465 0.0071468430894091849 0.0021540735727617181 0.0029139816305722706 0.0032960910520710269 0.0042887897369350229 0.0052115196291106156 0.004915156030439816 0.0029002320724279963 0.0081727751205665777 0.0032877758564839425 0.0039811117648029231 0.0032790070962217485 0.0021947354459955514 0.0044918012457234712 0.0044018249033973746 0.0078942907840015095 0.96824154803673734 0.0024033788774603256 0.0040166144686472009 0.0043552850952359003 0.011122640370039684 0.003886306667807368 0.0050716051249257311 0.002908870828654762 0.0023691687493667102 0.0031155535043331014 0.010653639945748064 0.97516746947510313 0.0037104734452139939 0.0027042526313269177 0.66638868480612556 0.73057245739435439 0.0041908393448316563 0.0033814210087192136 0.49203762860310163 0.0070821200001869641 0.60589944394538287 0.49060734822103319 0.0047929020251751449 0.0042590756871934447 0.48884246617032806 0.43441929903270127 0.0032013577633996813 0.76042324733535682 0.01776869333343218 0.0051936190890512716 0.0039639557917086274 0.0041253400720190478 0.2333116271336784 0.0050561447202883605 0.0053865159209109626 0.0054455619175529588 0.0031351909683220015 0.91997454654503374 0.23675231171080791 0.49351421428258779 0.0043144977851573068 0.99054164610809792 0.0052003584854599704 0.0057561495850094371 0.39280615042520789 0.42884670628777888 0.0039356921621649752 0.0050002870900259415 0.90566691974847424 0.0028521064975250612 0.0030793880357663883 0.0025659618217257845 0.0068427764204991191 0.0030318473970846038 0.5717229033440665 0.3912263497080638 0.0046810205001485018 0.0034120111120348974 0.0027165427522983401 0.0023285844819571294 0.0027507098843530956 0.0030118993569119984 0.0026745612064321776 0.0062160697330982577 0.51641109335312607 0.0031153944407362991 0.0048476518117710459 0.0041942693565401269 0.0084586104098554153 0.0037528340451680508 0.0029043817943584542 0.0036237609760038994 0.0024884289262431837 0.0033571436871993651 0.0032232304577212408 0.0033517604082332949 0.90765799677971604 0.13755220769501253 0.0033146716361462727 0.067538502840324893 0.0052393120891527428 0.0030948780679671923 0.0049791359960964727 0.78726467082819618 0.0031834101509731635 0.87884068036782093 0.0031623146548697195 0.0032821015176518684 0.0039413877709007887 0.012108623110771632 0.58083735952249194 0.0037034818592410284 0.0034911131956232144 0.0051542609773960841 0.12535675376033018 0.66242415393531762 0.0034073285195728993 0.004170695475926892 0.0042851015154399333 0.55038553234397236 0.70083995832158796 0.031192447050999602 0.0018470932034749406 0.0030207105005236557 0.53502724619630737 0.3744433762618925 0.0084903000081457906 0.3245068867888018 0.0046420262342272917 0.0069062663430460676 0.0036468156010235273 0.0026145176684455838 0.0051308195890211183 0.0042227815661250506 0.29854613472626207 0.3771885155224321 0.031884324219851656 0.003645090234655196 0.0042493782961550994 0.3145714296815314 0.0067633096224449935 0.015507798141888084 0.01259754851382414 0.0060279647885965477 0.37658731672385903 0.0037377453789527995 0.0031367842245163592 0.86829554367741435 0.29448034691586317 0.01365626621179785 0.0070631321008166967 0.0029862752166248761 0.0029947980094728469 0.0050041919539295576 0.0045606061097177627 0.0021727488630241109];
% ===== SIMULATION ========
% Format Input Arguments
isCellX = iscell(X);
if ~isCellX, X = {X}; end;
% Dimensions
TS = size(X,2); % timesteps
% Allocate Outputs
Y = cell(1,TS);
% Time loop
for ts=1:TS
% Input 1
% no processing
% Layer 1
z1 = negdist_apply(IW1_1,X{1,ts});
a1 = compet_apply(z1);
% Output 1
Y{1,ts} = a1;
end
% Final Delay States
Xf = cell(1,0);
Af = cell(1,0);
% Format Output Arguments
if ~isCellX, Y = cell2mat(Y); end
end
% ===== MODULE FUNCTIONS ========
% Negative Distance Weight Function
function z = negdist_apply(w,p,~)
[S,R] = size(w);
Q = size(p,2);
if isa(w,'gpuArray')
z = iNegDistApplyGPU(w,p,R,S,Q);
else
z = iNegDistApplyCPU(w,p,S,Q);
end
end
function z = iNegDistApplyCPU(w,p,S,Q)
z = zeros(S,Q);
if (Q<S)
pt = p';
for q=1:Q
z(:,q) = sum(bsxfun(@minus,w,pt(q,:)).^2,2);
end
else
wt = w';
for i=1:S
z(i,:) = sum(bsxfun(@minus,wt(:,i),p).^2,1);
end
end
z = -sqrt(z);
end
function z = iNegDistApplyGPU(w,p,R,S,Q)
p = reshape(p,1,R,Q);
sd = arrayfun(@iNegDistApplyGPUHelper,w,p);
z = -sqrt(reshape(sum(sd,2),S,Q));
end
function sd = iNegDistApplyGPUHelper(w,p)
sd = (w-p) .^ 2;
end
% Competitive Transfer Function
function a = compet_apply(n,~)
if isempty(n)
a = n;
else
[S,Q] = size(n);
nanInd = any(isnan(n),1);
a = zeros(S,Q,'like',n);
[~,maxRows] = max(n,[],1);
onesInd = maxRows + S*(0:(Q-1));
a(onesInd) = 1;
a(:,nanInd) = NaN;
end
end
|
github
|
zhangchn/otx-master
|
PPCProcessor.m
|
.m
|
otx-master/src/source/Processors/PPCProcessor.m
| 62,175 |
utf_8
|
713d85183996bcd7d3f41e667af270b8
|
/*
PPCProcessor.m
A subclass of ExeProcessor that handles PPC-specific issues.
This file is in the public domain.
*/
#import <Cocoa/Cocoa.h>
#import "PPCProcessor.h"
#import "ArchSpecifics.h"
#import "ListUtils.h"
#import "ObjcAccessors.h"
#import "ObjectLoader.h"
#import "Searchers.h"
#import "SyscallStrings.h"
#import "UserDefaultKeys.h"
extern BOOL gCancel;
@implementation PPCProcessor
// initWithURL:controller:options:
// ----------------------------------------------------------------------------
- (id)initWithURL: (NSURL*)inURL
controller: (id)inController
options: (ProcOptions*)inOptions
{
if ((self = [super initWithURL: inURL
controller: inController options: inOptions]))
{
strncpy(iArchString, "ppc", 4);
iArchSelector = CPU_TYPE_POWERPC;
iFieldWidths.offset = 8;
iFieldWidths.address = 10;
iFieldWidths.instruction = 10;
iFieldWidths.mnemonic = 9;
iFieldWidths.operands = 17;
}
return self;
}
// dealloc
// ----------------------------------------------------------------------------
- (void)dealloc
{
if (iLocalSelves)
{
free(iLocalSelves);
iLocalSelves = NULL;
}
if (iLocalVars)
{
free(iLocalVars);
iLocalVars = NULL;
}
}
// loadDyldDataSection:
// ----------------------------------------------------------------------------
- (void)loadDyldDataSection: (section*)inSect
{
[super loadDyldDataSection: inSect];
if (!iAddrDyldStubBindingHelper)
return;
iAddrDyldFuncLookupPointer = iAddrDyldStubBindingHelper + 24;
}
// codeFromLine:
// ----------------------------------------------------------------------------
- (void)codeFromLine: (Line*)inLine
{
uint32_t theInstruction = (iMachHeader.filetype == MH_OBJECT) ?
*(uint32_t*)((char*)iMachHeaderPtr + (inLine->info.address + iTextOffset)) :
*(uint32_t*)((char*)iMachHeaderPtr + (inLine->info.address - iTextOffset));
inLine->info.codeLength = 4;
uint32_t* intPtr = (uint32_t*)&inLine->info.code[0];
*intPtr = theInstruction;
}
#pragma mark -
// commentForLine:
// ----------------------------------------------------------------------------
- (void)commentForLine: (Line*)inLine;
{
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
char* theDummyPtr = NULL;
char* theSymPtr = NULL;
UInt8 opcode = PO(theCode);
uint32_t localAddy;
iLineCommentCString[0] = 0;
// Examine the primary opcode to see if we need to look for comments.
switch (opcode)
{
case 0x0a: // cmpli | cmplwi UIMM
case 0x0b: // cmpi | cmpwi SIMM
{
SInt16 imm = SIMM(theCode);
// Check for a single printable 7-bit char.
if (imm >= 0x20 && imm < 0x7f)
snprintf(iLineCommentCString, 4, "'%c'", imm);
break;
}
case 0x11: // sc
[self commentForSystemCall];
break;
case 0x10: // bc, bca, bcl, bcla
case 0x12: // b, ba, bl, bla
{
// Check for absolute branches to the ObjC runtime page. Similar to
// the comm page behavior described at
// http://www.opensource.apple.com/darwinsource/10.4.7.ppc/xnu-792.6.76/osfmk/ppc/cpu_capabilities.h
// However, the ObjC runtime page is not really a comm page, and it
// cannot be accessed by bca and bcla instructions, due to their
// 16-bit limitation.
// Deal with absolute branches.
if (AA(theCode))
{
uint32_t target = LI(theCode);
switch (target)
{
case kRTAddress_objc_msgSend:
{
char tempComment[MAX_COMMENT_LENGTH];
strncpy(tempComment, kRTName_objc_msgSend,
strlen(kRTName_objc_msgSend) + 1);
if (iOpts.verboseMsgSends)
[self commentForMsgSend:tempComment fromLine:inLine];
strncpy(iLineCommentCString, tempComment,
strlen(tempComment) + 1);
break;
}
case kRTAddress_objc_assign_ivar:
{
char tempComment[MAX_COMMENT_LENGTH];
strncpy(tempComment, kRTName_objc_assign_ivar,
strlen(kRTName_objc_assign_ivar) + 1);
// Bail if we don't know about the class.
if (!iCurrentClass)
{
strncpy(iLineCommentCString, tempComment,
strlen(tempComment) + 1);
break;
}
if (iRegInfos[5].isValid)
{
objc1_32_ivar theIvar = {0};
objc1_32_class swappedClass = *(objc1_32_class *)iCurrentClass;
#if __LITTLE_ENDIAN__
swap_objc1_32_class(&swappedClass);
#endif
if (!iIsInstanceMethod)
{
if (![self getObjc1MetaClass:&swappedClass fromClass:&swappedClass])
break;
#if __LITTLE_ENDIAN__
swap_objc1_32_class(&swappedClass);
#endif
}
if (![self findIvar:&theIvar inClass:&swappedClass withOffset:iRegInfos[5].value])
{
strncpy(iLineCommentCString, tempComment,
strlen(tempComment) + 1);
break;
}
theSymPtr = [self getPointer:theIvar.ivar_name type:NULL];
if (!theSymPtr)
{
strncpy(iLineCommentCString, tempComment,
strlen(tempComment) + 1);
break;
}
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription: theTypeCString
forType: [self getPointer:theIvar.ivar_type type:NULL]];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s (%s)%s", tempComment, theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s %s", tempComment, theSymPtr);
}
else // !mReginfos[5].isValid
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", tempComment);
break;
}
case kRTAddress_objc_assign_global:
strncpy(iLineCommentCString, kRTName_objc_assign_global,
strlen(kRTName_objc_assign_global) + 1);
break;
case kRTAddress_objc_assign_strongCast:
strncpy(iLineCommentCString, kRTName_objc_assign_strongCast,
strlen(kRTName_objc_assign_strongCast) + 1);
break;
default:
break;
}
}
else // not an absolute branch
{
// Insert anonymous label or 'return' if there's not a comment yet.
if (iLineCommentCString[0])
break;
uint32_t absoluteAddy;
if (opcode == 0x12)
absoluteAddy =
inLine->info.address + LI(theCode);
else
absoluteAddy =
inLine->info.address + BD(theCode);
FunctionInfo searchKey = {absoluteAddy, NULL, 0, 0};
FunctionInfo* funcInfo = bsearch(&searchKey,
iFuncInfos, iNumFuncInfos, sizeof(FunctionInfo),
(COMPARISON_FUNC_TYPE)Function_Info_Compare);
if (funcInfo && funcInfo->genericFuncNum != 0)
{
snprintf(iLineCommentCString,
ANON_FUNC_BASE_LENGTH + 11, "%s%d",
ANON_FUNC_BASE, funcInfo->genericFuncNum);
break;
}
// FIXME: mCurrentFuncInfoIndex is -1 here when it should not be
funcInfo = &iFuncInfos[iCurrentFuncInfoIndex];
if (!funcInfo->blocks)
break;
uint32_t i;
for (i = 0; i < funcInfo->numBlocks; i++)
{
if (funcInfo->blocks[i].beginAddress != absoluteAddy)
continue;
if (funcInfo->blocks[i].isEpilog)
snprintf(iLineCommentCString, 8, "return;");
break;
}
}
break;
}
case 0x13: // bcctr, bclr, isync
if (SO(theCode) != 528) // bcctr
break;
// Print value of ctr, ignoring the low 2 bits.
if (iCTR.isValid)
snprintf(iLineCommentCString, 10, "0x%x",
iCTR.value & ~3);
break;
case 0x30: // lfs SIMM
case 0x34: // stfs SIMM
case 0x32: // lfd SIMM
case 0x36: // stfd SIMM
{
if (!iRegInfos[RA(theCode)].isValid || RA(theCode) == 0)
break;
if (iRegInfos[RA(theCode)].classPtr)
{ // search instance vars
objc_32_class_ptr classPtr = iRegInfos[RA(theCode)].classPtr;
uint32_t offset = UIMM(theCode);
char *typePtr = NULL;
if (![self getIvarName:&theSymPtr type:&typePtr withOffset:offset inClass:classPtr])
break;
if (theSymPtr)
{
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:typePtr];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "(%s)%s", theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
}
else
{
localAddy = iRegInfos[RA(theCode)].value + SIMM(theCode);
theDummyPtr = [self getPointer:localAddy type:NULL];
if (!theDummyPtr)
break;
if (opcode == 0x32 || opcode == 0x36) // lfd | stfd
{
UInt64 theInt64 = *(UInt64*)theDummyPtr;
theInt64 = OSSwapBigToHostInt64(theInt64);
// dance around printf's type coersion
snprintf(iLineCommentCString,
30, "%lG", *(double*)&theInt64);
}
else // lfs | stfs
{
uint32_t theInt32 = *(uint32_t*)theDummyPtr;
theInt32 = OSSwapBigToHostInt32(theInt32);
// dance around printf's type coersion
snprintf(iLineCommentCString,
30, "%G", *(float*)&theInt32);
}
}
break;
}
case 0x0e: // li | addi SIMM
case 0x18: // ori UIMM
case 0x20: // lwz SIMM
case 0x22: // lbz SIMM
case 0x24: // stw SIMM
case 0x26: // stb SIMM
case 0x28: // lhz SIMM
case 0x2c: // sth SIMM
{
if (!iRegInfos[RA(theCode)].isValid || RA(theCode) == 0)
break;
if (iRegInfos[RA(theCode)].classPtr) // relative to a class
{ // search instance vars
objc_32_class_ptr classPtr = iRegInfos[RA(theCode)].classPtr;
uint32_t offset = UIMM(theCode);
char *typePtr = NULL;
if (![self getIvarName:&theSymPtr type:&typePtr withOffset:offset inClass:classPtr])
break;
if (theSymPtr)
{
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:typePtr];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "(%s)%s", theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
}
else // absolute address
{
if (opcode == 0x18) // ori UIMM
localAddy = iRegInfos[RA(theCode)].value |
UIMM(theCode);
else
localAddy = iRegInfos[RA(theCode)].value +
SIMM(theCode);
UInt8 theType = PointerType;
uint32_t theValue;
theSymPtr = [self getPointer:localAddy type:&theType];
if (theSymPtr)
{
switch (theType)
{
case DataGenericType:
theValue = *(uint32_t*)theSymPtr;
theValue = OSSwapBigToHostInt32(theValue);
theDummyPtr = [self getPointer:theValue type:&theType];
switch (theType)
{
case PointerType:
theSymPtr = theDummyPtr;
break;
default:
theSymPtr = NULL;
break;
}
break;
case DataConstType:
theSymPtr = NULL;
break;
// See http://www.opensource.apple.com/darwinsource/10.4.7.ppc/Csu-58/dyld.s
// They hardcoded the values, we may as well...
case DYLDType:
{
char* dyldComment = NULL;
theValue = *(uint32_t*)theSymPtr;
theValue = OSSwapBigToHostInt32(theValue);
switch(theValue)
{
case kDyldAddress_LaSymBindingEntry:
dyldComment = kDyldName_LaSymBindingEntry;
break;
case kDyldAddress_FuncLookupPointer:
dyldComment = kDyldName_FuncLookupPointer;
break;
default:
break;
}
if (dyldComment)
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", dyldComment);
break;
}
case PointerType:
break;
case CFStringType:
{
cfstring_object theCFString = *(cfstring_object*)theSymPtr;
if (theCFString.oc_string.length == 0)
{
theSymPtr = NULL;
break;
}
theCFString.oc_string.chars = OSSwapBigToHostInt32(theCFString.oc_string.chars);
theSymPtr = [self getPointer:theCFString.oc_string.chars type:NULL];
break;
}
case ImpPtrType:
case NLSymType:
{
theValue = *(uint32_t*)theSymPtr;
theValue = OSSwapBigToHostInt32(theValue);
theDummyPtr = [self getPointer:theValue type:NULL];
if (!theDummyPtr)
{
theSymPtr = NULL;
break;
}
theValue = *(uint32_t*)(theDummyPtr + 4);
theValue = OSSwapBigToHostInt32(theValue);
if (theValue != typeid_NSString)
{
theValue = *(uint32_t*)theDummyPtr;
theValue = OSSwapBigToHostInt32(theValue);
theDummyPtr = [self getPointer:theValue type:NULL];
if (!theDummyPtr)
{
theSymPtr = NULL;
break;
}
}
cfstring_object theCFString = *(cfstring_object*)theDummyPtr;
if (theCFString.oc_string.length == 0)
{
theSymPtr = NULL;
break;
}
theCFString.oc_string.chars = OSSwapBigToHostInt32(theCFString.oc_string.chars);
theSymPtr = [self getPointer:theCFString.oc_string.chars type:NULL];
break;
}
case OCGenericType:
case OCStrObjectType:
case OCClassType:
case OCModType:
if (![self getObjc1Description:&theDummyPtr fromObject:theSymPtr type:theType])
break;
if (theDummyPtr)
{
switch (theType)
{
case OCClassType:
iRegInfos[RT(theCode)].classPtr =
(objc_32_class_ptr)theSymPtr;
break;
default:
break;
}
}
theSymPtr = theDummyPtr;
break;
default:
break;
}
if (theSymPtr && !iLineCommentCString[0])
{
if (theType == PStringType)
snprintf(iLineCommentCString, 255,
"%*s", theSymPtr[0], theSymPtr + 1);
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
} // if (theSymPtr)
else
{ // Maybe it's a four-char code...
if ((opcode == 0x0e || opcode == 0x18) && // li | addi | ori
localAddy >= 0x20202020 && localAddy < 0x7f7f7f7f)
{
localAddy = OSSwapBigToHostInt32(localAddy);
char* fcc = (char*)&localAddy;
if (fcc[0] >= 0x20 && fcc[0] < 0x7f &&
fcc[1] >= 0x20 && fcc[1] < 0x7f &&
fcc[2] >= 0x20 && fcc[2] < 0x7f &&
fcc[3] >= 0x20 && fcc[3] < 0x7f)
snprintf(iLineCommentCString,
7, "'%.4s'", fcc);
}
}
} // if !(.classPtr)
break;
} // case 0x0e...
default:
break;
}
}
// commentForSystemCall
// ----------------------------------------------------------------------------
// System call number is stored in r0, possible values defined in
// <sys/syscall.h>. Call numbers are indices into a lookup table of handler
// routines. Args being passed to the looked-up handler start at r3 or r4,
// depending on whether it's an indirect SYS_syscall.
- (void)commentForSystemCall
{
if (!iRegInfos[0].isValid ||
iRegInfos[0].value > SYS_MAXSYSCALL)
{
snprintf(iLineCommentCString, 11, "syscall(?)");
return;
}
BOOL isIndirect = (iRegInfos[0].value == SYS_syscall);
uint32_t syscallNumReg = isIndirect ? 3 : 0;
uint32_t syscallArg1Reg = isIndirect ? 4 : 3;
if (!iRegInfos[syscallNumReg].isValid ||
iRegInfos[syscallNumReg].value > SYS_MAXSYSCALL)
{
snprintf(iLineCommentCString, 11, "syscall(?)");
return;
}
const char* theSysString = gSysCalls[iRegInfos[syscallNumReg].value];
if (!theSysString)
return;
char theTempComment[50];
theTempComment[0] = 0;
strncpy(theTempComment, theSysString, strlen(theSysString) + 1);
// Handle various system calls.
switch (iRegInfos[syscallNumReg].value)
{
case SYS_ptrace:
if (iRegInfos[syscallArg1Reg].isValid &&
iRegInfos[syscallArg1Reg].value == PT_DENY_ATTACH)
snprintf(iLineCommentCString, 40, "%s(%s)",
theTempComment, "PT_DENY_ATTACH");
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theTempComment);
break;
default:
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theTempComment);
break;
}
}
// selectorForMsgSend:fromLine:
// ----------------------------------------------------------------------------
- (char*)selectorForMsgSend: (char*)outComment
fromLine: (Line*)inLine
{
char* selString = NULL;
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
// Bail if this is not an eligible branch.
if (PO(theCode) != 0x12) // b, bl, ba, bla
return NULL;
// Bail if this is not an objc_msgSend variant.
if (memcmp(outComment, "_objc_msgSend", 13))
return NULL;
UInt8 sendType = [self sendTypeFromMsgSend:outComment];
uint32_t selectorRegNum =
(sendType == sendSuper_stret || sendType == send_stret) ? 5 : 4;
if (!iRegInfos[selectorRegNum].isValid ||
!iRegInfos[selectorRegNum].value)
return NULL;
// Get at the selector.
UInt8 selType = PointerType;
char* selPtr = [self getPointer:iRegInfos[selectorRegNum].value type:&selType];
switch (selType)
{
case PointerType:
selString = selPtr;
break;
case OCGenericType:
if (selPtr)
{
uint32_t selPtrValue = *(uint32_t*)selPtr;
selPtrValue = OSSwapBigToHostInt32(selPtrValue);
selString = [self getPointer:selPtrValue type:NULL];
}
break;
default:
fprintf(stderr, "otx: [PPCProcessor selectorForMsgSend:fromLine:]: "
"unsupported selector type: %d at address: 0x%x\n",
selType, inLine->info.address);
break;
}
return selString;
}
// commentForMsgSend:fromLine:
// ----------------------------------------------------------------------------
- (void)commentForMsgSend: (char*)ioComment
fromLine: (Line*)inLine
{
char* selString = [self selectorForMsgSend:ioComment fromLine:inLine];
// Bail if we couldn't find the selector.
if (!selString)
{
iMissedSelectorCount++;
return;
}
iMatchedSelectorCount++;
UInt8 sendType = [self sendTypeFromMsgSend:ioComment];
// Get the address of the class name string, if this a class method.
uint32_t classNameAddy = 0;
// If *.classPtr is non-NULL, it's not a name string.
if (sendType == sendSuper_stret || sendType == send_stret)
{
if (iRegInfos[4].isValid && !iRegInfos[4].classPtr)
classNameAddy = iRegInfos[4].value;
}
else
{
if (iRegInfos[3].isValid && !iRegInfos[3].classPtr)
classNameAddy = iRegInfos[3].value;
}
char* className = NULL;
char* returnTypeString =
(sendType == sendSuper_stret || sendType == send_stret) ?
"(struct)" : "";
char tempComment[MAX_COMMENT_LENGTH];
tempComment[0] = 0;
if (classNameAddy)
{
// Get at the class name
UInt8 classNameType = PointerType;
char* classNamePtr = [self getPointer:classNameAddy type:&classNameType];
switch (classNameType)
{
// Receiver can be various things in these sections, but we
// only want to display class names as receivers.
case DataGenericType:
case DataConstType:
case CFStringType:
case ImpPtrType:
case OCStrObjectType:
case OCModType:
case PStringType:
case DoubleType:
break;
case NLSymType:
if (classNamePtr)
{
uint32_t namePtrValue = *(uint32_t*)classNamePtr;
namePtrValue = OSSwapBigToHostInt32(namePtrValue);
classNamePtr = [self getPointer:namePtrValue type:&classNameType];
switch (classNameType)
{
case CFStringType:
if (classNamePtr != NULL)
{
cfstring_object classNameCFString = *(cfstring_object*)classNamePtr;
namePtrValue = classNameCFString.oc_string.chars;
namePtrValue = OSSwapBigToHostInt32(namePtrValue);
classNamePtr = [self getPointer:namePtrValue type:NULL];
className = classNamePtr;
}
break;
// Not sure what these are for, but they're out there.
case NLSymType:
case FloatType:
break;
default:
printf("otx: [PPCProcessor commentForMsgSend:fromLine:]: "
"non-lazy symbol pointer points to unrecognized section: %d\n", classNameType);
break;
}
}
break;
case PointerType:
className = classNamePtr;
break;
case OCGenericType:
if (classNamePtr)
{
uint32_t namePtrValue = *(uint32_t*)classNamePtr;
namePtrValue = OSSwapBigToHostInt32(namePtrValue);
className = [self getPointer:namePtrValue type:NULL];
}
break;
case OCClassType:
if (classNamePtr)
[self getObjc1Description:&className fromObject:classNamePtr type:OCClassType];
break;
default:
fprintf(stderr, "otx: [PPCProcessor commentForMsgSend]: "
"unsupported class name type: %d at address: 0x%x\n",
classNameType, inLine->info.address);
break;
}
}
if (className)
{
snprintf(tempComment, MAX_COMMENT_LENGTH,
((sendType == sendSuper || sendType == sendSuper_stret) ?
"+%s[[%s super] %s]" : "+%s[%s %s]"),
returnTypeString, className, selString);
}
else
{
switch (sendType)
{
case send:
case send_rtp:
case send_variadic:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[r3 %s]", returnTypeString, selString);
break;
case sendSuper:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[[r3 super] %s]", returnTypeString, selString);
break;
case send_stret:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[r4 %s]", returnTypeString, selString);
break;
case sendSuper_stret:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[[r4 super] %s]", returnTypeString, selString);
break;
default:
break;
}
}
if (tempComment[0])
strncpy(ioComment, tempComment, strlen(tempComment) + 1);
}
// chooseLine:
// ----------------------------------------------------------------------------
- (void)chooseLine: (Line**)ioLine
{
if (!(*ioLine) || !(*ioLine)->info.isCode ||
!(*ioLine)->alt || !(*ioLine)->alt->chars)
return;
uint32_t theCode = *(uint32_t*)(*ioLine)->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (PO(theCode) == 18) // b, ba, bl, bla
{
Line* theNewLine = malloc(sizeof(Line));
memcpy(theNewLine, (*ioLine)->alt, sizeof(Line));
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, (*ioLine)->alt->chars,
theNewLine->length + 1);
// Swap in the verbose line and free the previous verbose lines.
[self deleteLinesBefore:(*ioLine)->alt fromList:&iVerboseLineListHead];
[self replaceLine:*ioLine withLine:theNewLine inList:&iPlainLineListHead];
*ioLine = theNewLine;
}
}
#pragma mark -
// resetRegisters:
// ----------------------------------------------------------------------------
- (void)resetRegisters: (Line*)inLine
{
if (!inLine)
{
fprintf(stderr, "otx: [PPCProcessor resetRegisters]: "
"tried to reset with NULL inLine\n");
return;
}
// Setup the registers with default info. r3 is 'self' at the beginning
// of any Obj-C method, and r12 holds the address of the 1st instruction
// if the function was called indirectly. In the case of direct calls,
// r12 will be overwritten before it is used, if it is used at all.
[self getObjcClassPtr:&iCurrentClass fromMethod:inLine->info.address];
[self getObjc1CatPtr:&iCurrentCat fromMethod:inLine->info.address];
memset(iRegInfos, 0, sizeof(GPRegisterInfo) * 32);
// If we didn't get the class from the method, try to get it from the
// category.
if (!iCurrentClass && iCurrentCat)
{
objc1_32_category swappedCat = *iCurrentCat;
#if __LITTLE_ENDIAN__
swap_objc1_32_category(&swappedCat);
#endif
[self getObjcClassPtr:&iCurrentClass fromName:[self getPointer:swappedCat.class_name type:NULL]];
}
iRegInfos[3].classPtr = iCurrentClass;
iRegInfos[3].catPtr = iCurrentCat;
iRegInfos[3].isValid = YES;
iRegInfos[12].value = iCurrentFuncPtr;
iRegInfos[12].isValid = YES;
iLR = (GPRegisterInfo){0};
iCTR = (GPRegisterInfo){0};
// Try to find out whether this is a class or instance method.
MethodInfo* thisMethod = NULL;
if ([self getObjcMethod:&thisMethod fromAddress:inLine->info.address])
iIsInstanceMethod = thisMethod->inst;
if (iLocalSelves)
{
free(iLocalSelves);
iLocalSelves = NULL;
iNumLocalSelves = 0;
}
if (iLocalVars)
{
free(iLocalVars);
iLocalVars = NULL;
iNumLocalVars = 0;
}
iCurrentFuncInfoIndex++;
if (iCurrentFuncInfoIndex >= iNumFuncInfos)
iCurrentFuncInfoIndex = -1;
}
// updateRegisters:
// ----------------------------------------------------------------------------
// Keep our local copy of the GPRs in sync as much as possible with the
// values that the exe will use at runtime. Assign classPtr and catPtr fields
// in a register's info if its new value points to a class or category.
// http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/Articles/32bitPowerPC.html
// http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/dynamic_code.html
- (void)updateRegisters: (Line*)inLine;
{
if (!inLine)
{
fprintf(stderr, "otx: [PPCProcessor updateRegisters]: "
"tried to update with NULL inLine\n");
return;
}
uint32_t theNewValue;
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (IS_BRANCH_LINK(theCode))
{
iLR.value = inLine->info.address + 4;
iLR.isValid = YES;
}
switch (PO(theCode))
{
case 0x07: // mulli SIMM
{
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
}
UInt64 theProduct =
(SInt32)iRegInfos[RA(theCode)].value * SIMM(theCode);
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = (uint32_t)(theProduct & 0xffffffff);
iRegInfos[RT(theCode)].isValid = YES;
break;
}
case 0x08: // subfic SIMM
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
}
theNewValue = iRegInfos[RA(theCode)].value - SIMM(theCode);
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
break;
case 0x0c: // addic SIMM
case 0x0d: // addic. SIMM
case 0x0e: // addi | li SIMM
if (RA(theCode) == 1 && // current reg is stack pointer (r1)
SIMM(theCode) >= 0) // we're accessing local vars, not args
{
BOOL found = NO;
uint32_t i;
// Check for copied self pointer. This happens mostly in "init"
// methods, as in: "self = [super init]"
if (iLocalSelves) // self was copied to a local variable
{
// If we're accessing a local var copy of self,
// copy that info back to the reg in question.
for (i = 0; i < iNumLocalSelves; i++)
{
if (iLocalSelves[i].offset != UIMM(theCode))
continue;
iRegInfos[RT(theCode)] = iLocalSelves[i].regInfo;
found = YES;
break;
}
}
if (found)
break;
// Check for other local variables.
if (iLocalVars)
{
for (i = 0; i < iNumLocalVars; i++)
{
if (iLocalVars[i].offset != UIMM(theCode))
continue;
iRegInfos[RT(theCode)] = iLocalVars[i].regInfo;
found = YES;
break;
}
}
if (found)
break;
}
// We didn't find any local variables, try immediates.
if (RA(theCode) == 0) // li
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = UIMM(theCode);
iRegInfos[RT(theCode)].isValid = YES;
}
else // addi
{
// Update rD if we know what rA is.
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
}
iRegInfos[RT(theCode)].classPtr = NULL;
iRegInfos[RT(theCode)].catPtr = NULL;
theNewValue = iRegInfos[RA(theCode)].value + SIMM(theCode);
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
}
break;
case 0x0f: // addis | lis
iRegInfos[RT(theCode)].classPtr = NULL;
iRegInfos[RT(theCode)].catPtr = NULL;
if (RA(theCode) == 0) // lis
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = UIMM(theCode) << 16;
iRegInfos[RT(theCode)].isValid = YES;
break;
}
// addis
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
}
theNewValue = iRegInfos[RA(theCode)].value +
(SIMM(theCode) << 16);
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
break;
case 0x10: // bcl, bcla
case 0x13: // bclrl, bcctrl
if (!IS_BRANCH_LINK(theCode)) // fall thru if link
break;
case 0x12: // b, ba, bl, bla
{
if (!LK(theCode)) // bl, bla
break;
iRegInfos[3] = (GPRegisterInfo){0};
break;
}
case 0x15: // rlwinm
{
if (!iRegInfos[RT(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
break;
}
uint32_t rotatedRT =
rotl(iRegInfos[RT(theCode)].value, RB(theCode));
uint32_t theMask = 0x0;
UInt8 i;
for (i = MB(theCode); i <= ME(theCode); i++)
theMask |= 1 << (31 - i);
theNewValue = rotatedRT & theMask;
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
}
case 0x18: // ori
if (!iRegInfos[RT(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
break;
}
theNewValue =
iRegInfos[RT(theCode)].value | (uint32_t)UIMM(theCode);
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
case 0x1f: // multiple instructions
switch (SO(theCode))
{
case 23: // lwzx
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
case 8: // subfc
case 40: // subf
if (!iRegInfos[RA(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
}
// 2's complement subtraction
theNewValue =
(iRegInfos[RA(theCode)].value ^= 0xffffffff) +
iRegInfos[RB(theCode)].value + 1;
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
break;
case 339: // mfspr
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
if (SPR(theCode) == LR && // from LR
iLR.isValid)
{ // Copy LR into rD.
iRegInfos[RT(theCode)].value = iLR.value;
iRegInfos[RT(theCode)].isValid = YES;
}
break;
case 444: // or | or.
if (!iRegInfos[RT(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
break;
}
theNewValue =
(iRegInfos[RT(theCode)].value |
iRegInfos[RB(theCode)].value);
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
// If we just copied a register, copy the
// remaining fields.
if (RT(theCode) == RB(theCode))
{
iRegInfos[RA(theCode)].classPtr =
iRegInfos[RB(theCode)].classPtr;
iRegInfos[RA(theCode)].catPtr =
iRegInfos[RB(theCode)].catPtr;
}
break;
case 467: // mtspr
if (SPR(theCode) == CTR) // to CTR
{
if (!iRegInfos[RS(theCode)].isValid)
{
iCTR = (GPRegisterInfo){0};
break;
}
iCTR.value = iRegInfos[RS(theCode)].value;
iCTR.isValid = YES;
}
break;
case 24: // slw
if (!iRegInfos[RS(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
break;
}
if (SB(iRegInfos[RB(theCode)].value))
{
theNewValue =
iRegInfos[RS(theCode)].value <<
SV(iRegInfos[RB(theCode)].value);
}
else // If RB.5 == 0, RA = 0.
theNewValue = 0;
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
case 536: // srw
if (!iRegInfos[RS(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
break;
}
theNewValue =
iRegInfos[RS(theCode)].value >>
SV(iRegInfos[RB(theCode)].value);
iRegInfos[RA(theCode)] = (GPRegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
default:
break;
}
break;
case 0x20: // lwz
case 0x22: // lbz
if (RA(theCode) == 0)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = SIMM(theCode);
iRegInfos[RT(theCode)].isValid = YES;
}
else if (iRegInfos[RA(theCode)].isValid)
{
void *tempPtr = [self getPointer:iRegInfos[RA(theCode)].value + SIMM(theCode) type:NULL];
if (tempPtr)
{
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
iRegInfos[RT(theCode)].value = *(uint32_t*)tempPtr;
iRegInfos[RT(theCode)].value =
OSSwapBigToHostInt32(iRegInfos[RT(theCode)].value);
iRegInfos[RT(theCode)].isValid = YES;
}
else
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
}
else if (iLocalVars)
{
uint32_t i;
for (i = 0; i < iNumLocalVars; i++)
{
if (iLocalVars[i].offset == SIMM(theCode))
{
iRegInfos[RT(theCode)] = iLocalVars[i].regInfo;
break;
}
}
}
else
iRegInfos[RT(theCode)] = (GPRegisterInfo){0};
break;
/* case 0x22: // lbz
mRegInfos[RT(theCode)] = (GPRegisterInfo){0};
if (RA(theCode) == 0)
{
mRegInfos[RT(theCode)].value = SIMM(theCode);
mRegInfos[RT(theCode)].isValid = YES;
}
break;*/
case 0x24: // stw
if (!iRegInfos[RT(theCode)].isValid ||
RA(theCode) != 1 ||
SIMM(theCode) < 0)
break;
if (iRegInfos[RT(theCode)].classPtr) // if it's a class
{
iNumLocalSelves++;
iLocalSelves = realloc(iLocalSelves,
iNumLocalSelves * sizeof(VarInfo));
iLocalSelves[iNumLocalSelves - 1] = (VarInfo)
{iRegInfos[RT(theCode)], UIMM(theCode)};
}
else
{
iNumLocalVars++;
iLocalVars = realloc(iLocalVars,
iNumLocalVars * sizeof(VarInfo));
iLocalVars[iNumLocalVars - 1] = (VarInfo)
{iRegInfos[RT(theCode)], UIMM(theCode)};
}
break;
/* case 0x21:
case 0x23:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
break;*/
default:
break;
}
}
// restoreRegisters:
// ----------------------------------------------------------------------------
- (BOOL)restoreRegisters: (Line*)inLine
{
if (!inLine)
{
fprintf(stderr, "otx: [PPCProcessor restoreRegisters]: "
"tried to restore with NULL inLine\n");
return NO;
}
BOOL needNewLine = NO;
if (iCurrentFuncInfoIndex < 0)
return NO;
// Search current FunctionInfo for blocks that start at this address.
FunctionInfo* funcInfo =
&iFuncInfos[iCurrentFuncInfoIndex];
if (!funcInfo->blocks)
return NO;
uint32_t i;
for (i = 0; i < funcInfo->numBlocks; i++)
{
if (funcInfo->blocks[i].beginAddress !=
inLine->info.address)
continue;
// Update machine state.
MachineState machState =
funcInfo->blocks[i].state;
memcpy(iRegInfos, machState.regInfos,
sizeof(GPRegisterInfo) * 32);
iLR = machState.regInfos[LRIndex];
iCTR = machState.regInfos[CTRIndex];
if (machState.localSelves)
{
if (iLocalSelves)
free(iLocalSelves);
iNumLocalSelves = machState.numLocalSelves;
iLocalSelves = malloc(
sizeof(VarInfo) * iNumLocalSelves);
memcpy(iLocalSelves, machState.localSelves,
sizeof(VarInfo) * iNumLocalSelves);
}
if (machState.localVars)
{
if (iLocalVars)
free(iLocalVars);
iNumLocalVars = machState.numLocalVars;
iLocalVars = malloc(
sizeof(VarInfo) * iNumLocalVars);
memcpy(iLocalVars, machState.localVars,
sizeof(VarInfo) * iNumLocalVars);
}
// Optionally add a blank line before this block.
if (iOpts.separateLogicalBlocks && inLine->chars[0] != '\n' &&
!inLine->info.isFunction)
needNewLine = YES;
break;
} // for (i = 0...)
return needNewLine;
}
// lineIsFunction:
// ----------------------------------------------------------------------------
- (BOOL)lineIsFunction: (Line*)inLine
{
if (!inLine)
return NO;
uint32_t theAddy = inLine->info.address;
if (theAddy == iAddrDyldStubBindingHelper ||
theAddy == iAddrDyldFuncLookupPointer)
return YES;
MethodInfo* theDummyInfo = NULL;
// In Obj-C apps, the majority of funcs will have Obj-C symbols, so check
// those first.
if ([self findClassMethod:&theDummyInfo byAddress:theAddy])
return YES;
if ([self findCatMethod:&theDummyInfo byAddress:theAddy])
return YES;
// If it's not an Obj-C method, maybe there's an nlist.
if ([self findSymbolByAddress:theAddy])
return YES;
// If otool gave us a function name...
if (inLine->prev && !inLine->prev->info.isCode)
return YES;
BOOL isFunction = NO;
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if ((theCode & 0xfc1fffff) == 0x7c0802a6) // mflr to any reg
{ // Allow for late mflr
BOOL foundUB = NO;
Line* thePrevLine = inLine->prev;
// Walk back to the most recent unconditional branch, looking
// for existing symbols.
while (!foundUB && thePrevLine)
{
// Allow for multiple mflr's
if (thePrevLine->info.isFunction)
return NO;
theCode = *(uint32_t*)thePrevLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if ((theCode & 0xfc0007ff) == 0x7c000008) // trap
{
foundUB = YES;
continue;
}
UInt8 opcode = PO(theCode);
if (opcode == 16 || opcode == 18 || opcode == 19)
// bc, bca, bcl, bcla, b, ba, bl, bla, bclr, bclrl and more
{
if (!IS_BRANCH_CONDITIONAL(theCode) &&
theCode != 0x429f0005 && // bcl w/ "always branch"
(theCode & 0x48000001) != 0x48000001) // bl
foundUB = YES;
}
if (!foundUB)
thePrevLine = thePrevLine->prev;
}
if (!thePrevLine)
return YES;
thePrevLine = thePrevLine->next;
// If the code line following the most recent unconditional
// branch is not already recognized, flag it now.
if (thePrevLine == inLine)
isFunction = YES;
else
{
BOOL foundStart = NO;
for (; thePrevLine != inLine;
thePrevLine = thePrevLine->next)
{
if (!thePrevLine->info.isCode)
continue; // not code, keep looking
else if (!thePrevLine->info.isFunction)
{ // not yet recognized, try it
theCode = *(uint32_t*)thePrevLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (theCode == 0x7fe00008 || // ignore traps
theCode == 0x60000000 || // ignore nops
theCode == 0x00000000) // ignore .longs
continue;
else
{
thePrevLine->info.isFunction = YES;
foundStart = YES;
break;
}
}
else // already recognized, bail
{
foundStart = YES;
break;
}
}
if (!foundStart)
isFunction = YES;
}
} // if (theCode == 0x7c0802a6)
return isFunction;
}
// codeIsBlockJump:
// ----------------------------------------------------------------------------
- (BOOL)codeIsBlockJump: (UInt8*)inCode
{
uint32_t theCode = *(uint32_t*)inCode;
theCode = OSSwapBigToHostInt32(theCode);
return IS_BLOCK_BRANCH(theCode);
}
// gatherFuncInfos
// ----------------------------------------------------------------------------
- (void)gatherFuncInfos
{
Line* theLine = iPlainLineListHead;
uint32_t theCode;
uint32_t progCounter = 0;
// Loop thru lines.
while (theLine)
{
if (!(progCounter % (PROGRESS_FREQ * 5)))
{
if (gCancel == YES)
return;
// [NSThread sleepForTimeInterval: 0.0];
}
if (!theLine->info.isCode)
{
theLine = theLine->next;
continue;
}
theCode = *(uint32_t*)theLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (theLine->info.isFunction)
{
iCurrentFuncPtr = theLine->info.address;
[self resetRegisters:theLine];
}
else
[self restoreRegisters:theLine];
[self updateRegisters:theLine];
// Check if we need to save the machine state.
if (IS_BLOCK_BRANCH(theCode) && iCurrentFuncInfoIndex >= 0 &&
PO(theCode) != 0x13) // no new blocks for blr, bctr
{
uint32_t branchTarget = 0;
// Retrieve the branch target.
if (PO(theCode) == 0x12) // b
branchTarget = theLine->info.address + LI(theCode);
else if (PO(theCode) == 0x10) // bc
branchTarget = theLine->info.address + BD(theCode);
// Retrieve current FunctionInfo.
FunctionInfo* funcInfo =
&iFuncInfos[iCurrentFuncInfoIndex];
// 'currentBlock' will point to either an existing block which
// we will update, or a newly allocated block.
BlockInfo* currentBlock = NULL;
Line* endLine = NULL;
BOOL isEpilog = NO;
uint32_t i;
if (funcInfo->blocks)
{ // Blocks exist, find 1st one matching this address.
// This is an exhaustive search, but the speed hit should
// only be an issue with extremely long functions.
for (i = 0; i < funcInfo->numBlocks; i++)
{
if (funcInfo->blocks[i].beginAddress == branchTarget)
{
currentBlock = &funcInfo->blocks[i];
break;
}
}
if (currentBlock)
{ // Determine if the target block is an epilog.
if (currentBlock->endLine == NULL &&
iOpts.returnStatements)
{
// Find the first line of the target block.
Line searchKey = {NULL, 0, NULL, NULL, NULL, {branchTarget, {0}, YES, NO}};
Line* searchKeyPtr = &searchKey;
Line** beginLine = bsearch(&searchKeyPtr, iLineArray, iNumCodeLines, sizeof(Line*),
(COMPARISON_FUNC_TYPE)Line_Address_Compare);
if (beginLine != NULL)
{
// Walk through the block. It's an epilog if it ends
// with 'blr' and contains no 'bl's.
Line* nextLine = *beginLine;
BOOL canBeEpliog = YES;
uint32_t tempCode;
while (nextLine)
{
tempCode = *(uint32_t*)nextLine->info.code;
tempCode = OSSwapBigToHostInt32(tempCode);
if (IS_BRANCH_LINK(tempCode))
canBeEpliog = NO;
if (IS_BLOCK_BRANCH(tempCode))
{
endLine = nextLine;
if (canBeEpliog && IS_BLR(tempCode))
isEpilog = YES;
break;
}
nextLine = nextLine->next;
}
}
// currentBlock->endLine = endLine;
}
}
else
{ // No matching blocks found, so allocate a new one.
funcInfo->numBlocks++;
funcInfo->blocks = realloc(funcInfo->blocks,
sizeof(BlockInfo) * funcInfo->numBlocks);
currentBlock =
&funcInfo->blocks[funcInfo->numBlocks - 1];
*currentBlock = (BlockInfo){0};
}
}
else
{ // No existing blocks, allocate one.
funcInfo->numBlocks++;
funcInfo->blocks = calloc(1, sizeof(BlockInfo));
currentBlock = funcInfo->blocks;
}
// sanity check
if (!currentBlock)
{
fprintf(stderr, "otx: [PPCProcessor gatherFuncInfos] "
"currentBlock is NULL. Flame the dev.\n");
return;
}
// Create a new MachineState.
GPRegisterInfo* savedRegs = malloc(
sizeof(GPRegisterInfo) * 34);
memcpy(savedRegs, iRegInfos, sizeof(GPRegisterInfo) * 32);
savedRegs[LRIndex] = iLR;
savedRegs[CTRIndex] = iCTR;
VarInfo* savedSelves = NULL;
if (iLocalSelves)
{
savedSelves = malloc(
sizeof(VarInfo) * iNumLocalSelves);
memcpy(savedSelves, iLocalSelves,
sizeof(VarInfo) * iNumLocalSelves);
}
VarInfo* savedVars = NULL;
if (iLocalVars)
{
savedVars = malloc(
sizeof(VarInfo) * iNumLocalVars);
memcpy(savedVars, iLocalVars,
sizeof(VarInfo) * iNumLocalVars);
}
MachineState machState =
{savedRegs, savedSelves, iNumLocalSelves,
savedVars, iNumLocalVars};
// Store the new BlockInfo.
BlockInfo blockInfo =
{branchTarget, endLine, isEpilog, machState};
memcpy(currentBlock, &blockInfo, sizeof(BlockInfo));
}
theLine = theLine->next;
progCounter++;
}
iCurrentFuncInfoIndex = -1;
}
#ifdef OTX_DEBUG
// printBlocks:
// ----------------------------------------------------------------------------
- (void)printBlocks: (uint32_t)inFuncIndex;
{
if (!iFuncInfos)
return;
FunctionInfo* funcInfo = &iFuncInfos[inFuncIndex];
if (!funcInfo || !funcInfo->blocks)
return;
uint32_t i, j;
fprintf(stderr, "\nfunction at 0x%x:\n\n", funcInfo->address);
fprintf(stderr, "%d blocks\n", funcInfo->numBlocks);
for (i = 0; i < funcInfo->numBlocks; i++)
{
fprintf(stderr, "\nblock %d at 0x%x:\n\n", i + 1,
funcInfo->blocks[i].beginAddress);
for (j = 0; j < 32; j++)
{
if (!funcInfo->blocks[i].state.regInfos[j].isValid)
continue;
fprintf(stderr, "\t\tr%d: 0x%x\n", j,
funcInfo->blocks[i].state.regInfos[j].value);
}
}
}
#endif // OTX_DEBUG
@end
|
github
|
zhangchn/otx-master
|
Exe32Processor.m
|
.m
|
otx-master/src/source/Processors/Exe32Processor.m
| 71,832 |
utf_8
|
fb7d3166b5926cb8213fe98a8dd69574
|
/*
Exe32Processor.m
This file relies upon, and steals code from, the cctools source code
available from: http://www.opensource.apple.com/darwinsource/
This file is in the public domain.
*/
#import <Cocoa/Cocoa.h>
#import <mach/mach_time.h>
#import "Exe32Processor.h"
#import "ArchSpecifics.h"
#import "ListUtils.h"
#import "ObjcAccessors.h"
#import "ObjectLoader.h"
#import "Searchers.h"
#import "SysUtils.h"
#import "UserDefaultKeys.h"
#import "X86Processor.h"
@implementation Exe32Processor
// Exe32Processor is a base class that handles processor-independent issues.
// PPCProcessor and X86Processor are subclasses that add functionality
// specific to those CPUs. The AppController class creates a new instance of
// one of those subclasses for each processing, and deletes the instance as
// soon as possible. Member variables may or may not be re-initialized before
// destruction. Do not reuse a single instance of those subclasses for
// multiple processings.
// initWithURL:controller:options:
// ----------------------------------------------------------------------------
- (id)initWithURL: (NSURL*)inURL
controller: (id)inController
options: (ProcOptions*)inOptions
{
if (!inURL || !inController || !inOptions)
return nil;
if ((self = [super initWithURL: inURL controller: inController
options: inOptions]) == nil)
return nil;
return self;
}
// dealloc
// ----------------------------------------------------------------------------
- (void)dealloc
{
if (iFuncSyms)
{
free(iFuncSyms);
iFuncSyms = NULL;
}
if (iObjcSects)
{
free(iObjcSects);
iObjcSects = NULL;
}
if (iClassMethodInfos)
{
free(iClassMethodInfos);
iClassMethodInfos = NULL;
}
if (iCatMethodInfos)
{
free(iCatMethodInfos);
iCatMethodInfos = NULL;
}
if (iClassIvars)
{
free(iClassIvars);
iClassIvars = NULL;
}
if (iLineArray)
{
free(iLineArray);
iLineArray = NULL;
}
[self deleteFuncInfos];
[self deleteLinesFromList: iPlainLineListHead];
[self deleteLinesFromList: iVerboseLineListHead];
}
// deleteFuncInfos
// ----------------------------------------------------------------------------
- (void)deleteFuncInfos
{
if (!iFuncInfos)
return;
uint32_t i;
uint32_t j;
FunctionInfo* funcInfo;
BlockInfo* blockInfo;
for (i = 0; i < iNumFuncInfos; i++)
{
funcInfo = &iFuncInfos[i];
if (funcInfo->blocks)
{
for (j = 0; j < funcInfo->numBlocks; j++)
{
blockInfo = &funcInfo->blocks[j];
if (blockInfo->state.regInfos)
{
free(blockInfo->state.regInfos);
blockInfo->state.regInfos = NULL;
}
if (blockInfo->state.localSelves)
{
free(blockInfo->state.localSelves);
blockInfo->state.localSelves = NULL;
}
}
free(funcInfo->blocks);
funcInfo->blocks = NULL;
}
}
free(iFuncInfos);
iFuncInfos = NULL;
}
#pragma mark -
// processExe:
// ----------------------------------------------------------------------------
// The master processing method, designed to be executed in a separate thread.
- (BOOL)processExe: (NSString*)inOutputFilePath
{
if (!iFileArchMagic)
{
fprintf(stderr, "otx: tried to process non-machO file\n");
return NO;
}
iOutputFilePath = inOutputFilePath;
iMachHeaderPtr = NULL;
if (![self loadMachHeader])
{
fprintf(stderr, "otx: failed to load mach header\n");
return NO;
}
[self loadLCommands];
NSMutableDictionary* progDict =
[[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool: YES], PRNewLineKey,
@"Calling otool", PRDescriptionKey,
nil];
#ifdef OTX_CLI
[iController reportProgress: progDict];
#else
[iController performSelectorOnMainThread: @selector(reportProgress:)
withObject: progDict waitUntilDone: NO];
#endif
[self populateLineLists];
if (gCancel == YES)
return NO;
progDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool: YES], PRNewLineKey,
@"Gathering info", PRDescriptionKey,
nil];
#ifdef OTX_CLI
[iController reportProgress: progDict];
#else
[iController performSelectorOnMainThread: @selector(reportProgress:)
withObject: progDict waitUntilDone: NO];
#endif
// Gather info about lines while they're virgin.
[self gatherLineInfos];
if (gCancel == YES)
return NO;
// Find functions and allocate funcInfo's.
[self findFunctions];
if (gCancel == YES)
return NO;
// Gather info about logical blocks. The second pass applies info
// for backward branches.
[self gatherFuncInfos];
if (gCancel == YES)
return NO;
[self gatherFuncInfos];
if (gCancel == YES)
return NO;
uint32_t progCounter = 0;
double progValue = 0.0;
progDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool: NO], PRIndeterminateKey,
[NSNumber numberWithDouble: progValue], PRValueKey,
[NSNumber numberWithBool: YES], PRNewLineKey,
@"Generating file", PRDescriptionKey,
nil];
#ifdef OTX_CLI
[iController reportProgress: progDict];
#else
[iController performSelectorOnMainThread: @selector(reportProgress:)
withObject: progDict waitUntilDone: NO];
#endif
Line* theLine = iPlainLineListHead;
// Loop thru lines.
while (theLine)
{
if (!(progCounter % PROGRESS_FREQ))
{
if (gCancel == YES)
return NO;
progValue = (double)progCounter / iNumLines * 100;
progDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithDouble: progValue], PRValueKey,
nil];
#ifdef OTX_CLI
[iController reportProgress: progDict];
#else
[iController performSelectorOnMainThread: @selector(reportProgress:)
withObject: progDict waitUntilDone: NO];
#endif
}
if (theLine->info.isCode)
{
[self processCodeLine:&theLine];
if (iOpts.entabOutput)
[self entabLine:theLine];
}
else
[self processLine:theLine];
theLine = theLine->next;
progCounter++;
}
if (gCancel == YES)
return NO;
progDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool: YES], PRIndeterminateKey,
[NSNumber numberWithBool: YES], PRNewLineKey,
@"Writing file", PRDescriptionKey,
nil];
#ifdef OTX_CLI
[iController reportProgress: progDict];
#else
[iController performSelectorOnMainThread: @selector(reportProgress:)
withObject: progDict waitUntilDone: NO];
#endif
// Create output file.
if (![self printLinesFromList: iPlainLineListHead])
{
return NO;
}
if (iOpts.dataSections)
{
if (![self printDataSections])
{
return NO;
}
}
progDict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool: YES], PRCompleteKey,
nil];
#ifdef OTX_CLI
[iController reportProgress: progDict];
#else
[iController performSelectorOnMainThread: @selector(reportProgress:)
withObject: progDict waitUntilDone: NO];
#endif
return YES;
}
// populateLineLists
// ----------------------------------------------------------------------------
- (BOOL)populateLineLists
{
Line* thePrevVerboseLine = NULL;
Line* thePrevPlainLine = NULL;
// Read __text lines.
[self populateLineList: &iVerboseLineListHead verbosely: YES
fromSection: "__text" afterLine: &thePrevVerboseLine
includingPath: YES];
[self populateLineList: &iPlainLineListHead verbosely: NO
fromSection: "__text" afterLine: &thePrevPlainLine
includingPath: YES];
// Read __coalesced_text lines.
if (iCoalTextSect.size)
{
[self populateLineList: &iVerboseLineListHead verbosely: YES
fromSection: "__coalesced_text" afterLine: &thePrevVerboseLine
includingPath: NO];
[self populateLineList: &iPlainLineListHead verbosely: NO
fromSection: "__coalesced_text" afterLine: &thePrevPlainLine
includingPath: NO];
}
// Read __textcoal_nt lines.
if (iCoalTextNTSect.size)
{
[self populateLineList: &iVerboseLineListHead verbosely: YES
fromSection: "__textcoal_nt" afterLine: &thePrevVerboseLine
includingPath: NO];
[self populateLineList: &iPlainLineListHead verbosely: NO
fromSection: "__textcoal_nt" afterLine: &thePrevPlainLine
includingPath: NO];
}
// Connect the 2 lists.
Line* verboseLine = iVerboseLineListHead;
Line* plainLine = iPlainLineListHead;
while (verboseLine && plainLine)
{
verboseLine->alt = plainLine;
plainLine->alt = verboseLine;
verboseLine = verboseLine->next;
plainLine = plainLine->next;
}
// Optionally insert md5.
if (iOpts.checksum)
[self insertMD5];
return YES;
}
// populateLineList:verbosely:fromSection:afterLine:includingPath:
// ----------------------------------------------------------------------------
- (BOOL)populateLineList: (Line**)inList
verbosely: (BOOL)inVerbose
fromSection: (char*)inSectionName
afterLine: (Line**)inLine
includingPath: (BOOL)inIncludePath
{
char cmdString[MAX_UNIBIN_OTOOL_CMD_SIZE] = "";
NSString* otoolPath = [self pathForTool: @"otool"];
NSUInteger otoolPathLength = [otoolPath length];
size_t archStringLength = strlen(iArchString);
// otool freaks out when somebody says -arch and it's not a unibin.
if (iExeIsFat)
{
// Bail if it won't fit.
if ((otoolPathLength + archStringLength + 7 /* strlen(" -arch ") */) >= MAX_UNIBIN_OTOOL_CMD_SIZE)
return NO;
snprintf(cmdString, MAX_UNIBIN_OTOOL_CMD_SIZE,
"%s -arch %s", [otoolPath UTF8String], iArchString);
}
else
{
// Bail if it won't fit.
if (otoolPathLength >= MAX_UNIBIN_OTOOL_CMD_SIZE)
return NO;
strncpy(cmdString, [otoolPath UTF8String], otoolPathLength);
}
NSString* oPath = [iOFile path];
NSString* otoolString = [NSString stringWithFormat:
@"%s %s -s __TEXT %s \"%@\"%s", cmdString,
(inVerbose) ? "-VQ" : "-vQ", inSectionName, oPath,
(inIncludePath) ? "" : " | sed '1 d'"];
FILE* otoolPipe = popen(UTF8STRING(otoolString), "r");
if (!otoolPipe)
{
fprintf(stderr, "otx: unable to open %s otool pipe\n",
(inVerbose) ? "verbose" : "plain");
return NO;
}
char theCLine[MAX_LINE_LENGTH];
while (fgets(theCLine, MAX_LINE_LENGTH, otoolPipe))
{
// Many thanx to Peter Hosey for the calloc speed test.
// http://boredzo.org/blog/archives/2006-11-26/calloc-vs-malloc
Line* theNewLine = calloc(1, sizeof(Line));
theNewLine->length = strlen(theCLine);
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, theCLine,
theNewLine->length + 1);
// Add the line to the list.
[self insertLine:theNewLine after:*inLine inList:inList];
*inLine = theNewLine;
}
if (pclose(otoolPipe) == -1)
{
perror((inVerbose) ? "otx: unable to close verbose otool pipe" :
"otx: unable to close plain otool pipe");
return NO;
}
return YES;
}
#pragma mark -
// gatherLineInfos
// ----------------------------------------------------------------------------
// To make life easier as we make changes to the lines, whatever info we need
// is harvested early here.
- (void)gatherLineInfos
{
Line* theLine = iPlainLineListHead;
uint32_t progCounter = 0;
while (theLine)
{
if (!(progCounter % (PROGRESS_FREQ * 5)))
{
if (gCancel == YES)
return;
// [NSThread sleepForTimeInterval: 0.0];
}
if ([self lineIsCode:theLine->chars])
{
theLine->info.isCode = YES;
theLine->info.address = [self addressFromLine:theLine->chars];
[self codeFromLine:theLine]; // FIXME: return a value like the cool kids do.
if (theLine->alt)
{
theLine->alt->info.isCode = theLine->info.isCode;
theLine->alt->info.address = theLine->info.address;
theLine->alt->info.codeLength = theLine->info.codeLength;
memcpy(theLine->alt->info.code, theLine->info.code,
sizeof(theLine->info.code));
}
[self checkThunk:theLine];
}
else // not code...
{
if (strstr(theLine->chars, "(__TEXT,__coalesced_text)"))
iEndOfText = iCoalTextSect.s.addr + iCoalTextSect.s.size;
else if (strstr(theLine->chars, "(__TEXT,__textcoal_nt)"))
iEndOfText = iCoalTextNTSect.s.addr + iCoalTextNTSect.s.size;
}
theLine = theLine->next;
progCounter++;
iNumLines++;
}
iEndOfText = iTextSect.s.addr + iTextSect.s.size;
}
// findFunctions
// ----------------------------------------------------------------------------
- (void)findFunctions
{
// Loop once to flag all funcs.
Line* theLine = iPlainLineListHead;
while (theLine)
{
theLine->info.isFunction = [self lineIsFunction:theLine];
if (theLine->alt)
theLine->alt->info.isFunction = theLine->info.isFunction;
theLine = theLine->next;
}
// Loop again to allocate funcInfo's.
theLine = iPlainLineListHead;
iLineArray = calloc(iNumLines, sizeof(Line*));
iNumCodeLines = 0;
while (theLine)
{
if (theLine->info.isFunction)
{
iNumFuncInfos++;
iFuncInfos = realloc(iFuncInfos,
sizeof(FunctionInfo) * iNumFuncInfos);
uint32_t genericFuncNum = 0;
if (theLine->prev && theLine->prev->info.isCode)
genericFuncNum = ++iCurrentGenericFuncNum;
iFuncInfos[iNumFuncInfos - 1] = (FunctionInfo)
{theLine->info.address, NULL, 0, genericFuncNum};
}
if (theLine->info.isCode)
iLineArray[iNumCodeLines++] = theLine;
theLine = theLine->next;
}
}
// processLine:
// ----------------------------------------------------------------------------
- (void)processLine: (Line*)ioLine;
{
if (!strlen(ioLine->chars))
return;
// otool is inconsistent in printing section headers. Sometimes it
// prints "Contents of (x)" and sometimes just "(x)". We'll take this
// opportunity to use the shorter version in all cases.
char* theContentsString = "Contents of ";
UInt8 theContentsStringLength = strlen(theContentsString);
char* theTextSegString = "(__TEXT,__";
// Kill the "Contents of" if it exists.
if (strstr(ioLine->chars, theContentsString))
{
char theTempLine[MAX_LINE_LENGTH];
theTempLine[0] = '\n';
theTempLine[1] = 0;
strncat(theTempLine, &ioLine->chars[theContentsStringLength],
strlen(&ioLine->chars[theContentsStringLength]));
ioLine->length = strlen(theTempLine);
strncpy(ioLine->chars, theTempLine, ioLine->length + 1);
return;
}
else if (strstr(ioLine->chars, theTextSegString))
{
if (strstr(ioLine->chars, "__coalesced_text)"))
{
iEndOfText = iCoalTextSect.s.addr + iCoalTextSect.s.size;
iCurrentFunctionStart = ioLine->info.address;
}
else if (strstr(ioLine->chars, "__textcoal_nt)"))
{
iEndOfText = iCoalTextNTSect.s.addr + iCoalTextNTSect.s.size;
iCurrentFunctionStart = ioLine->info.address;
}
char theTempLine[MAX_LINE_LENGTH];
theTempLine[0] = '\n';
theTempLine[1] = 0;
strncat(theTempLine, ioLine->chars, strlen(ioLine->chars));
ioLine->length++;
ioLine->chars = (char*)realloc(ioLine->chars, ioLine->length + 1);
strncpy(ioLine->chars, theTempLine, ioLine->length + 1);
return;
}
// If we got here, we have a symbol name.
if (iOpts.demangleCppNames)
{
if (strstr(ioLine->chars, "__Z") == ioLine->chars)
{
char demangledName[MAX_LINE_LENGTH];
// Line should end with ":\n". Terminate over the colon if it exists.
if (ioLine->chars[ioLine->length - 2] == ':')
ioLine->chars[ioLine->length - 2] = 0;
else
ioLine->chars[ioLine->length - 1] = 0;
NSFileHandle* filtWrite = [iCPFiltInputPipe fileHandleForWriting];
NSFileHandle* filtRead = [iCPFiltOutputPipe fileHandleForReading];
NSMutableData* dataToWrite = [NSMutableData dataWithBytes: ioLine->chars
length: strlen(ioLine->chars)];
[dataToWrite appendBytes: "\n"
length: 1];
@try {
[filtWrite writeData: dataToWrite];
}
@catch (NSException* e) {
NSLog(@"otx: [Exe32Processor processLine:] failed to write to c++filt: %@", [e reason]);
}
NSData* readData = nil;
@try {
readData = [filtRead availableData];
}
@catch (NSException* e) {
NSLog(@"otx: [Exe32Processor processLine:] failed to read from c++filt: %@", [e reason]);
}
if (readData != nil)
{
NSUInteger demangledDataLength = [readData length];
NSUInteger demangledStringLength = MIN(demangledDataLength, MAX_LINE_LENGTH - 1);
if (demangledStringLength < demangledDataLength)
NSLog(@"otx: demangled C++ name is too large. Increase MAX_LINE_LENGTH to %lu.\n"
"Name demangling will now go off the rails.", (unsigned long)demangledDataLength);
// Get the string and terminate it.
[readData getBytes: demangledName
length: demangledStringLength];
demangledName[demangledStringLength] = 0;
free(ioLine->chars);
ioLine->length = demangledStringLength;
ioLine->chars = malloc(ioLine->length + 1);
strncpy(ioLine->chars, demangledName, ioLine->length + 1);
}
else
{
NSLog(@"otx: [Exe32Processor processLine:] got nil data from c++filt");
}
}
}
}
// processCodeLine:
// ----------------------------------------------------------------------------
- (void)processCodeLine: (Line**)ioLine;
{
if (!ioLine || !(*ioLine) || !((*ioLine)->chars))
{
fprintf(stderr, "otx: tried to process NULL code line\n");
return;
}
[self chooseLine:ioLine];
size_t theOrigLength = (*ioLine)->length;
char localOffsetString[9] = {0};
char theAddressCString[9] = {0};
char theMnemonicCString[20] = {0};
char addrSpaces[MAX_FIELD_SPACING];
char instSpaces[MAX_FIELD_SPACING];
char mnemSpaces[MAX_FIELD_SPACING];
char opSpaces[MAX_FIELD_SPACING];
char commentSpaces[MAX_FIELD_SPACING];
char theOrigCommentCString[MAX_COMMENT_LENGTH];
char theCommentCString[MAX_COMMENT_LENGTH];
theOrigCommentCString[0] = 0;
theCommentCString[0] = 0;
// Swap in saved registers if necessary
BOOL needNewLine = [self restoreRegisters:*ioLine];
iLineOperandsCString[0] = 0;
char* origFormatString = "%s\t%s\t%s%n";
uint32_t consumedAfterOp = 0;
// The address and mnemonic always exist, separated by a tab.
sscanf((*ioLine)->chars, origFormatString, theAddressCString,
theMnemonicCString, iLineOperandsCString, &consumedAfterOp);
// If we didn't grab everything up to the newline, there's a comment
// remaining. Copy it, starting after the preceding tab.
if (consumedAfterOp && consumedAfterOp < theOrigLength - 1)
{
size_t origCommentLength = theOrigLength - consumedAfterOp - 1;
strncpy(theOrigCommentCString, (*ioLine)->chars + consumedAfterOp + 1,
origCommentLength);
// Add the null terminator.
theOrigCommentCString[origCommentLength - 1] = 0;
}
char theCodeCString[32] = {0};
UInt8* inBuffer = (*ioLine)->info.code;
SInt16 i;
char codeFormatString[61] = "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x";
if ((*ioLine)->info.codeLength > 15)
{
fprintf(stderr, "otx: surprisingly long instruction of %u bytes at 0x%08x\n", (*ioLine)->info.codeLength, (*ioLine)->info.address);
return;
}
codeFormatString[(*ioLine)->info.codeLength * 4] = 0;
snprintf(theCodeCString, 31, codeFormatString,
inBuffer[0], inBuffer[1], inBuffer[2], inBuffer[3],
inBuffer[4], inBuffer[5], inBuffer[6], inBuffer[7],
inBuffer[8], inBuffer[9], inBuffer[10], inBuffer[11],
inBuffer[12], inBuffer[13], inBuffer[14]);
i = iFieldWidths.instruction - strlen(theCodeCString);
mnemSpaces[i - 1] = 0;
for (; i > 1; i--)
mnemSpaces[i - 2] = 0x20;
i = iFieldWidths.mnemonic - strlen(theMnemonicCString);
opSpaces[i - 1] = 0;
for (; i > 1; i--)
opSpaces[i - 2] = 0x20;
// Fill up commentSpaces based on operands field width.
if (iLineOperandsCString[0] && theOrigCommentCString[0])
{
i = iFieldWidths.operands - strlen(iLineOperandsCString);
commentSpaces[i - 1] = 0;
for (; i > 1; i--)
commentSpaces[i - 2] = 0x20;
}
// Remove "; symbol stub for: "
if (theOrigCommentCString[0])
{
char* theSubstring =
strstr(theOrigCommentCString, "; symbol stub for: ");
if (theSubstring)
snprintf(theCommentCString, MAX_COMMENT_LENGTH, "%s", &theOrigCommentCString[19]);
else
snprintf(theCommentCString, MAX_COMMENT_LENGTH, "%s", theOrigCommentCString);
}
BOOL needFuncName = NO;
char theMethCName[1000];
theMethCName[0] = 0;
// Check if this is the beginning of a function.
if ((*ioLine)->info.isFunction)
{
// Squash the new block flag, just in case.
iEnteringNewBlock = NO;
// New function, new local offset count and current func.
iCurrentFunctionStart = iCurrentFuncPtr = (*ioLine)->info.address;
// Try to build the method name.
MethodInfo* theSwappedInfoPtr = NULL;
MethodInfo theSwappedInfo;
if ([self getObjcMethod:&theSwappedInfoPtr fromAddress:iCurrentFuncPtr])
{
theSwappedInfo = *theSwappedInfoPtr;
char* className = NULL;
char* catName = NULL;
if (iObjcVersion < 2)
{
if (iSwapped)
{
swap_objc1_32_method(&theSwappedInfo.m);
swap_objc1_32_class(&theSwappedInfo.oc_class);
swap_objc1_32_category(&theSwappedInfo.oc_cat);
}
if (theSwappedInfo.oc_cat.category_name)
{
className = [self getPointer:theSwappedInfo.oc_cat.class_name type:NULL];
catName = [self getPointer:theSwappedInfo.oc_cat.category_name type:NULL];
}
else if (theSwappedInfo.oc_class.name)
{
className = [self getPointer:theSwappedInfo.oc_class.name type:NULL];
}
}
else if (iObjcVersion == 2)
{
if (iSwapped)
{
swap_objc2_32_method(&theSwappedInfo.m2);
swap_objc2_32_class(&theSwappedInfo.oc_class2);
}
if (theSwappedInfo.oc_class2.data)
{
objc2_32_class_ro_t* roData = (objc2_32_class_ro_t*)(iObjcConstSect.contents +
(uintptr_t)(theSwappedInfo.oc_class2.data - iObjcConstSect.s.addr));
UInt32 name = roData->name;
if (iSwapped)
name = OSSwapInt32(name);
className = [self getPointer:name type:NULL];
}
}
if (className)
{
char* selName = [self getPointer:theSwappedInfo.m.method_name type:NULL];
if (selName)
{
if (!theSwappedInfo.m.method_types)
return;
char* methTypes = [self getPointer:theSwappedInfo.m.method_types type:NULL];
char returnCType[MAX_TYPE_STRING_LENGTH];
returnCType[0] = 0;
if (methTypes)
{
[self decodeMethodReturnType: methTypes
output: returnCType];
}
else
{
strncpy(returnCType, "???", 4);
}
if (catName)
{
char* methNameFormat = iOpts.returnTypes ?
"\n%1$c(%5$s)[%2$s(%3$s) %4$s]:\n" :
"\n%c[%s(%s) %s]:\n";
snprintf(theMethCName, 1000,
methNameFormat,
(theSwappedInfo.inst) ? '-' : '+',
className, catName, selName, returnCType);
}
else
{
char* methNameFormat = iOpts.returnTypes ?
"\n%1$c(%4$s)[%2$s %3$s]:\n" : "\n%c[%s %s]:\n";
snprintf(theMethCName, 1000,
methNameFormat,
(theSwappedInfo.inst) ? '-' : '+',
className, selName, returnCType);
}
}
}
} // if ([self getObjcMethod:&theSwappedInfoPtr fromAddress:mCurrentFuncPtr])
// Add or replace the method name if possible, else add '\n'.
if ((*ioLine)->prev && (*ioLine)->prev->info.isCode) // prev line is code
{
if (theMethCName[0])
{
Line* theNewLine = malloc(sizeof(Line));
theNewLine->length = strlen(theMethCName);
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, theMethCName,
theNewLine->length + 1);
[self insertLine:theNewLine before:*ioLine inList:&iPlainLineListHead];
}
else if ((*ioLine)->info.address == iAddrDyldStubBindingHelper)
{
Line* theNewLine = malloc(sizeof(Line));
char* theDyldName = "\ndyld_stub_binding_helper:\n";
theNewLine->length = strlen(theDyldName);
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, theDyldName, theNewLine->length + 1);
[self insertLine:theNewLine before:*ioLine inList:&iPlainLineListHead];
}
else if ((*ioLine)->info.address == iAddrDyldFuncLookupPointer)
{
Line* theNewLine = malloc(sizeof(Line));
char* theDyldName = "\n__dyld_func_lookup:\n";
theNewLine->length = strlen(theDyldName);
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, theDyldName, theNewLine->length + 1);
[self insertLine:theNewLine before:*ioLine inList:&iPlainLineListHead];
}
else
needFuncName = YES;
}
else // prev line is not code
{
if (theMethCName[0])
{
Line* theNewLine = malloc(sizeof(Line));
theNewLine->length = strlen(theMethCName);
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, theMethCName,
theNewLine->length + 1);
[self replaceLine:(*ioLine)->prev withLine:theNewLine inList:&iPlainLineListHead];
}
else
{ // theMethName sux, add '\n' to otool's method name.
char theNewLine[MAX_LINE_LENGTH];
if ((*ioLine)->prev->chars[0] != '\n')
{
theNewLine[0] = '\n';
theNewLine[1] = 0;
}
else
theNewLine[0] = 0;
strncat(theNewLine, (*ioLine)->prev->chars,
(*ioLine)->prev->length);
free((*ioLine)->prev->chars);
(*ioLine)->prev->length = strlen(theNewLine);
(*ioLine)->prev->chars = malloc((*ioLine)->prev->length + 1);
strncpy((*ioLine)->prev->chars, theNewLine,
(*ioLine)->prev->length + 1);
}
}
[self resetRegisters:*ioLine];
} // if ((*ioLine)->info.isFunction)
// Find a comment if necessary.
if (!theCommentCString[0])
{
[self commentForLine:*ioLine];
size_t origCommentLength = strlen(iLineCommentCString);
if (origCommentLength)
{
char tempComment[MAX_COMMENT_LENGTH];
uint32_t i, j = 0;
// Escape newlines, carriage returns and tabs.
for (i = 0; i < origCommentLength; i++)
{
if (iLineCommentCString[i] == '\n')
{
tempComment[j++] = '\\';
tempComment[j++] = 'n';
}
else if (iLineCommentCString[i] == '\r')
{
tempComment[j++] = '\\';
tempComment[j++] = 'r';
}
else if (iLineCommentCString[i] == '\t')
{
tempComment[j++] = '\\';
tempComment[j++] = 't';
}
else
tempComment[j++] = iLineCommentCString[i];
}
// Add the null terminator.
tempComment[j] = 0;
if (iLineOperandsCString[0])
snprintf(theCommentCString, MAX_COMMENT_LENGTH, "%s", tempComment);
else
snprintf(iLineOperandsCString, MAX_COMMENT_LENGTH, "%s", tempComment);
// Fill up commentSpaces based on operands field width.
SInt32 k = (SInt32)(iFieldWidths.operands - strlen(iLineOperandsCString));
commentSpaces[k - 1] = 0;
for (; k > 1; k--)
commentSpaces[k - 2] = 0x20;
}
} // if (!theCommentCString[0])
else // otool gave us a comment.
{
// Optionally modify otool's comment.
if (iOpts.verboseMsgSends)
[self commentForMsgSend:theCommentCString fromLine:*ioLine];
}
// Demangle operands if necessary.
if (iLineOperandsCString[0] && iOpts.demangleCppNames)
{
if (strstr(iLineOperandsCString, "__Z") == iLineOperandsCString)
{
char demangledName[MAX_OPERANDS_LENGTH];
NSFileHandle* filtWrite = [iCPFiltInputPipe fileHandleForWriting];
NSFileHandle* filtRead = [iCPFiltOutputPipe fileHandleForReading];
NSMutableData* dataToWrite = [NSMutableData dataWithBytes: iLineOperandsCString
length: strlen(iLineOperandsCString)];
[dataToWrite appendBytes: "\n"
length: 1];
@try {
[filtWrite writeData: dataToWrite];
}
@catch (NSException* e) {
NSLog(@"otx: [Exe32Processor processCodeLine:] failed to write operands to c++filt: %@", [e reason]);
}
NSData* readData = nil;
@try {
readData = [filtRead availableData];
}
@catch (NSException* e) {
NSLog(@"otx: [Exe32Processor processCodeLine:] failed to read operands from c++filt: %@", [e reason]);
}
if (readData != nil)
{
NSUInteger demangledDataLength = [readData length];
NSUInteger demangledStringLength = MIN(demangledDataLength, MAX_OPERANDS_LENGTH - 1);
if (demangledStringLength < demangledDataLength)
NSLog(@"otx: demangled C++ name is too large. Increase MAX_OPERANDS_LENGTH to %lu.\n"
"Name demangling will now go off the rails.", (unsigned long)demangledDataLength);
[readData getBytes: demangledName
length: demangledStringLength];
// Remove the trailing newline and terminate.
demangledStringLength--;
demangledName[demangledStringLength] = 0;
strncpy(iLineOperandsCString, demangledName, demangledStringLength + 1);
}
else
{
NSLog(@"otx: [Exe32Processor processCodeLine:] got nil operands data from c++filt");
}
}
}
// Demangle comment if necessary.
if (theCommentCString[0] && iOpts.demangleCppNames)
{
if (strstr(theCommentCString, "__Z") == theCommentCString)
{
char demangledName[MAX_COMMENT_LENGTH];
NSFileHandle* filtWrite = [iCPFiltInputPipe fileHandleForWriting];
NSFileHandle* filtRead = [iCPFiltOutputPipe fileHandleForReading];
NSMutableData* dataToWrite = [NSMutableData dataWithBytes: theCommentCString
length: strlen(theCommentCString)];
[dataToWrite appendBytes: "\n"
length: 1];
@try {
[filtWrite writeData: dataToWrite];
}
@catch (NSException* e) {
NSLog(@"otx: [Exe32Processor processCodeLine:] failed to write comment to c++filt: %@", [e reason]);
}
NSData* readData = nil;
@try {
readData = [filtRead availableData];
}
@catch (NSException* e) {
NSLog(@"otx: [Exe32Processor processCodeLine:] failed to read comment from c++filt: %@", [e reason]);
}
if (readData != nil)
{
NSUInteger demangledDataLength = [readData length];
NSUInteger demangledStringLength = MIN(demangledDataLength, MAX_COMMENT_LENGTH - 1);
if (demangledStringLength < demangledDataLength)
NSLog(@"otx: demangled C++ name is too large. Increase MAX_COMMENT_LENGTH to %lu.\n"
"Name demangling will now go off the rails.", (unsigned long)demangledDataLength);
[readData getBytes: demangledName
length: demangledStringLength];
// Remove the trailing newline and terminate.
demangledStringLength--;
demangledName[demangledStringLength] = 0;
strncpy(theCommentCString, demangledName, demangledStringLength + 1);
}
else
{
NSLog(@"otx: [Exe32Processor processCodeLine:] got nil comment data from c++filt");
}
}
}
// Optionally add local offset.
if (iOpts.localOffsets)
{
// Build a right-aligned string with a '+' in it.
snprintf((char*)&localOffsetString, iFieldWidths.offset,
"%6u", ((*ioLine)->info.address - iCurrentFunctionStart));
// Find the space that's followed by a nonspace.
// *Reverse count to optimize for short functions.
for (i = 0; i < 5; i++)
{
if (localOffsetString[i] == 0x20 &&
localOffsetString[i + 1] != 0x20)
{
localOffsetString[i] = '+';
break;
}
}
// Fill up addrSpaces based on offset field width.
i = iFieldWidths.offset - 6;
addrSpaces[i - 1] = 0;
for (; i > 1; i--)
addrSpaces[i - 2] = 0x20;
}
// Fill up instSpaces based on address field width.
i = iFieldWidths.address - 8;
instSpaces[i - 1] = 0;
for (; i > 1; i--)
instSpaces[i - 2] = 0x20;
// Insert a generic function name if needed.
if (needFuncName)
{
FunctionInfo searchKey = {(*ioLine)->info.address, NULL, 0, 0};
FunctionInfo* funcInfo = bsearch(&searchKey,
iFuncInfos, iNumFuncInfos, sizeof(FunctionInfo),
(COMPARISON_FUNC_TYPE)Function_Info_Compare);
// sizeof(UINT32_MAX) + '\n' * 2 + ':' + null term
UInt8 maxlength = ANON_FUNC_BASE_LENGTH + 14;
Line* funcName = calloc(1, sizeof(Line));
funcName->chars = malloc(maxlength);
// Hack Alert: In the case that we have too few funcInfo's, print
// \nAnon???. Of course, we'll still intermittently crash later, but
// when we don't, the output will look pretty.
// Replace "if (funcInfo)" from rev 319 around this...
if (funcInfo)
funcName->length = snprintf(funcName->chars, maxlength,
"\n%s%d:\n", ANON_FUNC_BASE, funcInfo->genericFuncNum);
else
funcName->length = snprintf(funcName->chars, maxlength,
"\n%s???:\n", ANON_FUNC_BASE);
[self insertLine:funcName before:*ioLine inList:&iPlainLineListHead];
}
// Finally, assemble the new string.
char finalFormatCString[MAX_FORMAT_LENGTH];
uint32_t formatMarker = 0;
if (needNewLine)
{
formatMarker++;
finalFormatCString[0] = '\n';
finalFormatCString[1] = 0;
}
else
finalFormatCString[0] = 0;
if (iOpts.localOffsets)
formatMarker += snprintf(&finalFormatCString[formatMarker],
10, "%s", "%s %s");
if (iOpts.showCode)
formatMarker += snprintf(&finalFormatCString[formatMarker],
10, "%s", "%s %s");
if (iLineOperandsCString[0])
{
if (theCommentCString[0])
snprintf(&finalFormatCString[formatMarker],
30, "%s", "%s %s%s %s%s %s%s\n");
else
snprintf(&finalFormatCString[formatMarker],
30, "%s", "%s %s%s %s%s\n");
}
else
snprintf(&finalFormatCString[formatMarker],
30, "%s", "%s %s%s\n");
char theFinalCString[MAX_LINE_LENGTH] = "";
if (iOpts.localOffsets && iOpts.showCode)
snprintf(theFinalCString, MAX_LINE_LENGTH,
finalFormatCString, localOffsetString,
addrSpaces, theAddressCString,
instSpaces, theCodeCString,
mnemSpaces, theMnemonicCString,
opSpaces, iLineOperandsCString,
commentSpaces, theCommentCString);
else if (iOpts.localOffsets)
snprintf(theFinalCString, MAX_LINE_LENGTH,
finalFormatCString, localOffsetString,
addrSpaces, theAddressCString,
instSpaces, theMnemonicCString,
opSpaces, iLineOperandsCString,
commentSpaces, theCommentCString);
else if (iOpts.showCode)
snprintf(theFinalCString, MAX_LINE_LENGTH,
addrSpaces, theAddressCString,
instSpaces, theCodeCString,
mnemSpaces, theMnemonicCString,
opSpaces, iLineOperandsCString,
commentSpaces, theCommentCString);
else
snprintf(theFinalCString, MAX_LINE_LENGTH,
finalFormatCString, theAddressCString,
instSpaces, theMnemonicCString,
opSpaces, iLineOperandsCString,
commentSpaces, theCommentCString);
free((*ioLine)->chars);
if (iOpts.separateLogicalBlocks && iEnteringNewBlock &&
theFinalCString[0] != '\n')
{
(*ioLine)->length = strlen(theFinalCString) + 1;
(*ioLine)->chars = malloc((*ioLine)->length + 1);
(*ioLine)->chars[0] = '\n';
strncpy(&(*ioLine)->chars[1], theFinalCString, (*ioLine)->length);
}
else
{
(*ioLine)->length = strlen(theFinalCString);
(*ioLine)->chars = malloc((*ioLine)->length + 1);
strncpy((*ioLine)->chars, theFinalCString, (*ioLine)->length + 1);
}
// The test above can fail even if mEnteringNewBlock was YES, so we
// should reset it here instead.
iEnteringNewBlock = NO;
[self updateRegisters:*ioLine];
[self postProcessCodeLine:ioLine];
// Possibly prepend a \n to the following line.
if ([self codeIsBlockJump:(*ioLine)->info.code])
iEnteringNewBlock = YES;
}
// addressFromLine:
// ----------------------------------------------------------------------------
- (uint32_t)addressFromLine: (const char*)inLine
{
// sanity check
if ((inLine[0] < '0' || inLine[0] > '9') &&
(inLine[0] < 'a' || inLine[0] > 'f'))
return 0;
uint32_t theAddress = 0;
sscanf(inLine, "%08x", &theAddress);
return theAddress;
}
// lineIsCode:
// ----------------------------------------------------------------------------
// Line is code if first 8 chars are hex numbers and 9th is tab.
- (BOOL)lineIsCode: (const char*)inLine
{
if (strlen(inLine) < 10)
return NO;
UInt16 i;
for (i = 0 ; i < 8; i++)
{
if ((inLine[i] < '0' || inLine[i] > '9') &&
(inLine[i] < 'a' || inLine[i] > 'f'))
return NO;
}
return (inLine[8] == '\t');
}
// chooseLine:
// ----------------------------------------------------------------------------
// Subclasses may override.
- (void)chooseLine: (Line**)ioLine
{}
#pragma mark -
// printDataSections
// ----------------------------------------------------------------------------
// Append data sections to output file.
- (BOOL)printDataSections
{
FILE* outFile = NULL;
if (iOutputFilePath)
outFile = fopen(UTF8STRING(iOutputFilePath), "a");
else
outFile = stdout;
if (!outFile)
{
perror("otx: unable to open output file");
return NO;
}
if (iDataSect.size)
{
if (fprintf(outFile, "\n(__DATA,__data) section\n") < 0)
{
perror("otx: unable to write to output file");
return NO;
}
[self printDataSection: &iDataSect toFile: outFile];
}
if (iCoalDataSect.size)
{
if (fprintf(outFile, "\n(__DATA,__coalesced_data) section\n") < 0)
{
perror("otx: unable to write to output file");
return NO;
}
[self printDataSection: &iCoalDataSect toFile: outFile];
}
if (iCoalDataNTSect.size)
{
if (fprintf(outFile, "\n(__DATA,__datacoal_nt) section\n") < 0)
{
perror("otx: unable to write to output file");
return NO;
}
[self printDataSection: &iCoalDataNTSect toFile: outFile];
}
if (iOutputFilePath)
{
if (fclose(outFile) != 0)
{
perror("otx: unable to close output file");
return NO;
}
}
return YES;
}
// printDataSection:toFile:
// ----------------------------------------------------------------------------
- (void)printDataSection: (section_info*)inSect
toFile: (FILE*)outFile;
{
uint32_t i, j, k, bytesLeft;
uint32_t theDataSize = inSect->size;
char theLineCString[70];
char* theMachPtr = (char*)iMachHeaderPtr;
theLineCString[0] = 0;
for (i = 0; i < theDataSize; i += 16)
{
bytesLeft = theDataSize - i;
if (bytesLeft < 16) // last line
{
theLineCString[0] = 0;
snprintf(theLineCString,
20 ,"%08x |", inSect->s.addr + i);
unsigned char theHexData[17] = {0};
unsigned char theASCIIData[17] = {0};
memcpy(theHexData,
(const void*)(theMachPtr + inSect->s.offset + i), bytesLeft);
memcpy(theASCIIData,
(const void*)(theMachPtr + inSect->s.offset + i), bytesLeft);
j = 10;
for (k = 0; k < bytesLeft; k++)
{
if (!(k % 4))
theLineCString[j++] = 0x20;
snprintf(&theLineCString[j], 4, "%02x", theHexData[k]);
j += 2;
if (theASCIIData[k] < 0x20 || theASCIIData[k] == 0x7f)
theASCIIData[k] = '.';
}
// Append spaces.
for (; j < 48; j++)
theLineCString[j] = 0x20;
// Append ASCII chars.
snprintf(&theLineCString[j], 70, "%s\n", theASCIIData);
}
else // first lines
{
uint32_t* theHexPtr = (uint32_t*)
(theMachPtr + inSect->s.offset + i);
unsigned char theASCIIData[17] = {0};
UInt8 j;
memcpy(theASCIIData,
(const void*)(theMachPtr + inSect->s.offset + i), 16);
for (j = 0; j < 16; j++)
if (theASCIIData[j] < 0x20 || theASCIIData[j] == 0x7f)
theASCIIData[j] = '.';
#if TARGET_RT_LITTLE_ENDIAN
theHexPtr[0] = OSSwapInt32(theHexPtr[0]);
theHexPtr[1] = OSSwapInt32(theHexPtr[1]);
theHexPtr[2] = OSSwapInt32(theHexPtr[2]);
theHexPtr[3] = OSSwapInt32(theHexPtr[3]);
#endif
snprintf(theLineCString, sizeof(theLineCString),
"%08x | %08x %08x %08x %08x %s\n",
inSect->s.addr + i,
theHexPtr[0], theHexPtr[1], theHexPtr[2], theHexPtr[3],
theASCIIData);
}
if (fprintf(outFile, "%s", theLineCString) < 0)
{
perror("otx: [ExeProcessor printDataSection:toFile:]: "
"unable to write to output file");
return;
}
}
}
#pragma mark -
// selectorForMsgSend:fromLine:
// ----------------------------------------------------------------------------
// Subclasses may override.
- (char*)selectorForMsgSend: (char*)outComment
fromLine: (Line*)inLine
{
return NULL;
}
#pragma mark -
// insertMD5
// ----------------------------------------------------------------------------
- (void)insertMD5
{
NSString* md5String = [self generateMD5String];
Line* newLine = calloc(1, sizeof(Line));
const char* utf8String = [md5String UTF8String];
newLine->length = [md5String length];
newLine->chars = malloc(newLine->length + 1);
strncpy(newLine->chars, utf8String, newLine->length + 1);
[self insertLine:newLine after:iPlainLineListHead inList:&iPlainLineListHead];
}
#pragma mark -
// entabLine:
// ----------------------------------------------------------------------------
// A cheap and fast way to entab a line, assuming it contains no tabs already.
// If tabs get added in the future, this WILL break. Single spaces are not
// replaced with tabs, even when possible, since it would save no additional
// bytes. Comments are not entabbed, as that would remove the user's ability
// to search for them in the source code or a hex editor.
- (void)entabLine: (Line*)ioLine;
{
if (!ioLine || !ioLine->chars)
return;
// only need to do this math once...
static uint32_t startOfComment = 0;
if (startOfComment == 0)
{
startOfComment = iFieldWidths.address + iFieldWidths.instruction +
iFieldWidths.mnemonic + iFieldWidths.operands;
if (iOpts.localOffsets)
startOfComment += iFieldWidths.offset;
}
char entabbedLine[MAX_LINE_LENGTH];
size_t theOrigLength = ioLine->length;
// If 1st char is '\n', skip it.
uint32_t firstChar = (ioLine->chars[0] == '\n');
uint32_t i; // old line marker
uint32_t j = 0; // new line marker
if (firstChar)
{
j++;
entabbedLine[0] = '\n';
entabbedLine[1] = 0;
}
else
entabbedLine[0] = 0;
// Inspect 4 bytes at a time.
for (i = firstChar; i < theOrigLength; i += 4)
{
// Don't entab comments.
if (i >= (startOfComment + firstChar) - 4)
{
strncpy(&entabbedLine[j], &ioLine->chars[i],
(theOrigLength - i) + 1);
break;
}
// If fewer than 4 bytes remain, adding any tabs is pointless.
if (i > theOrigLength - 4)
{ // Copy the remainder and split.
while (i < theOrigLength)
entabbedLine[j++] = ioLine->chars[i++];
// Add the null terminator.
entabbedLine[j] = 0;
break;
}
// If the 4th char is not a space, the first 3 chars don't matter.
if (ioLine->chars[i + 3] == 0x20) // 4th char is a space...
{
if (ioLine->chars[i + 2] == 0x20) // 3rd char is a space...
{
if (ioLine->chars[i + 1] == 0x20) // 2nd char is a space...
{
if (ioLine->chars[i] == 0x20) // all 4 chars are spaces!
entabbedLine[j++] = '\t'; // write a tab and split
else // only the 1st char is not a space
{ // copy 1st char and tab
entabbedLine[j++] = ioLine->chars[i];
entabbedLine[j++] = '\t';
}
}
else // 2nd char is not a space
{ // copy 1st 2 chars and tab
entabbedLine[j++] = ioLine->chars[i];
entabbedLine[j++] = ioLine->chars[i + 1];
entabbedLine[j++] = '\t';
}
}
else // 3rd char is not a space
{ // copy 1st 3 chars and tab
entabbedLine[j++] = ioLine->chars[i];
entabbedLine[j++] = ioLine->chars[i + 1];
entabbedLine[j++] = ioLine->chars[i + 2];
entabbedLine[j++] = '\t';
}
}
else // 4th char is not a space
{ // copy all 4 chars
memcpy(&entabbedLine[j], &ioLine->chars[i], 4);
j += 4;
}
// Add the null terminator.
entabbedLine[j] = 0;
}
// Replace the old C string with the new one.
free(ioLine->chars);
ioLine->length = strlen(entabbedLine);
ioLine->chars = malloc(ioLine->length + 1);
strncpy(ioLine->chars, entabbedLine, ioLine->length + 1);
}
- (BOOL)getIvarName:(char **)outName type:(char **)outType withOffset:(uint32_t)offset inClass:(objc_32_class_ptr)classPtr
{
if (iObjcVersion == 1) {
objc1_32_ivar ivar = {0};
objc1_32_class cls = *(objc1_32_class *)classPtr;
#if __BIG_ENDIAN__
swap_objc1_32_class(&cls);
#endif
if (!iIsInstanceMethod)
{
if (![self getObjc1MetaClass:&cls fromClass:&cls])
return NO;
#if __BIG_ENDIAN__
swap_objc1_32_class(&cls);
#endif
}
if (![self findIvar:&ivar inClass:&cls withOffset:offset])
return NO;
char *name = [self getPointer:ivar.ivar_name type:NULL];
char *type = [self getPointer:ivar.ivar_type type:NULL];
if (outName) *outName = name;
if (outType) *outType = type;
return YES;
} else if (iObjcVersion == 2) {
objc2_32_ivar_t* ivar;
if ([self findIvar:&ivar inClass2:(objc2_32_class_t *)classPtr withOffset:offset])
{
char *name = [self getPointer:ivar->name type:NULL];
char *type = [self getPointer:ivar->type type:NULL];
if (outName) *outName = name;
if (outType) *outType = type;
}
return YES;
}
return NO;
}
// getPointer:type: (was get_pointer)
// ----------------------------------------------------------------------------
// Convert a relative ptr to an absolute ptr. Return which data type is being
// referenced in outType.
- (char*)getPointer: (uint32_t)inAddr
type: (UInt8*)outType
{
if (inAddr == 0)
return NULL;
if (outType)
*outType = PointerType;
char* thePtr = NULL;
uint32_t i;
// (__TEXT,__cstring) (char*)
if (inAddr >= iCStringSect.s.addr &&
inAddr < iCStringSect.s.addr + iCStringSect.size)
{
thePtr = (iCStringSect.contents + (inAddr - iCStringSect.s.addr));
// Make sure we're pointing to the beginning of a string,
// not somewhere in the middle.
if (*(thePtr - 1) != 0 && inAddr != iCStringSect.s.addr)
thePtr = NULL;
// Check if this may be a Pascal string. Thanks, Metrowerks.
else if (outType && strlen(thePtr) == thePtr[0] + 1)
*outType = PStringType;
}
else // (__TEXT,__const) (Str255* sometimes)
if (inAddr >= iConstTextSect.s.addr &&
inAddr < iConstTextSect.s.addr + iConstTextSect.size)
{
thePtr = (iConstTextSect.contents + (inAddr - iConstTextSect.s.addr));
if (outType && strlen(thePtr) == thePtr[0] + 1)
*outType = PStringType;
else
thePtr = NULL;
}
else // (__TEXT,__objc_methname) (char*)
if (inAddr >= iObjcMethnameSect.s.addr &&
inAddr < iObjcMethnameSect.s.addr + iObjcMethnameSect.size)
{
thePtr = (iObjcMethnameSect.contents + (inAddr - iObjcMethnameSect.s.addr));
}
else // (__TEXT,__objc_methtype) (char*)
if (inAddr >= iObjcMethtypeSect.s.addr &&
inAddr < iObjcMethtypeSect.s.addr + iObjcMethtypeSect.size)
{
thePtr = (iObjcMethtypeSect.contents + (inAddr - iObjcMethtypeSect.s.addr));
}
else // (__TEXT,__objc_classname) (char*)
if (inAddr >= iObjcClassnameSect.s.addr &&
inAddr < iObjcClassnameSect.s.addr + iObjcClassnameSect.size)
{
thePtr = (iObjcClassnameSect.contents + (inAddr - iObjcClassnameSect.s.addr));
}
else // (__TEXT,__literal4) (float)
if (inAddr >= iLit4Sect.s.addr &&
inAddr < iLit4Sect.s.addr + iLit4Sect.size)
{
thePtr = (char*)(iLit4Sect.contents + (inAddr - iLit4Sect.s.addr));
if (outType)
*outType = FloatType;
}
else // (__TEXT,__literal8) (double)
if (inAddr >= iLit8Sect.s.addr &&
inAddr < iLit8Sect.s.addr + iLit8Sect.size)
{
thePtr = (char*)(iLit8Sect.contents + (inAddr - iLit8Sect.s.addr));
if (outType)
*outType = DoubleType;
}
if (thePtr)
return thePtr;
// (__OBJC,__cstring_object) (objc_string_object)
if (inAddr >= iNSStringSect.s.addr &&
inAddr < iNSStringSect.s.addr + iNSStringSect.size)
{
thePtr = (char*)(iNSStringSect.contents + (inAddr - iNSStringSect.s.addr));
if (outType)
*outType = OCStrObjectType;
}
else // (__OBJC,__class) (objc_class)
if (inAddr >= iClassSect.s.addr &&
inAddr < iClassSect.s.addr + iClassSect.size)
{
thePtr = (char*)(iClassSect.contents + (inAddr - iClassSect.s.addr));
if (outType)
*outType = OCClassType;
}
else // (__OBJC,__meta_class) (objc_class)
if (inAddr >= iMetaClassSect.s.addr &&
inAddr < iMetaClassSect.s.addr + iMetaClassSect.size)
{
thePtr = (char*)(iMetaClassSect.contents + (inAddr - iMetaClassSect.s.addr));
if (outType)
*outType = OCClassType;
}
else // (__OBJC,__module_info) (objc_module)
if (inAddr >= iObjcModSect.s.addr &&
inAddr < iObjcModSect.s.addr + iObjcModSect.size)
{
thePtr = (char*)(iObjcModSect.contents + (inAddr - iObjcModSect.s.addr));
if (outType)
*outType = OCModType;
}
// (__OBJC, ??) (char*)
// __message_refs, __class_refs, __instance_vars, __symbols
for (i = 0; !thePtr && i < iNumObjcSects; i++)
{
if (inAddr >= iObjcSects[i].s.addr &&
inAddr < iObjcSects[i].s.addr + iObjcSects[i].size)
{
thePtr = (char*)(iObjcSects[i].contents + (inAddr - iObjcSects[i].s.addr));
if (outType)
*outType = OCGenericType;
}
}
if (thePtr)
return thePtr;
// (__IMPORT,__pointers) (cf_string_object*)
if (inAddr >= iImpPtrSect.s.addr &&
inAddr < iImpPtrSect.s.addr + iImpPtrSect.size)
{
thePtr = (char*)(iImpPtrSect.contents + (inAddr - iImpPtrSect.s.addr));
if (outType)
*outType = ImpPtrType;
}
if (thePtr)
return thePtr;
// (__DATA,__data) (char**)
if (inAddr >= iDataSect.s.addr &&
inAddr < iDataSect.s.addr + iDataSect.size)
{
thePtr = (char*)(iDataSect.contents + (inAddr - iDataSect.s.addr));
UInt8 theType = DataGenericType;
uint32_t theValue = *(uint32_t*)thePtr;
if (iSwapped)
theValue = OSSwapInt32(theValue);
if (theValue != 0)
{
theType = PointerType;
static uint32_t recurseCount = 0;
while (theType == PointerType)
{
recurseCount++;
if (recurseCount > 5)
{
theType = DataGenericType;
break;
}
thePtr = [self getPointer:theValue type:&theType];
if (!thePtr)
{
theType = DataGenericType;
break;
}
theValue = *(uint32_t*)thePtr;
}
recurseCount = 0;
}
if (outType)
*outType = theType;
}
else // (__DATA,__const) (void*)
if (inAddr >= iConstDataSect.s.addr &&
inAddr < iConstDataSect.s.addr + iConstDataSect.size)
{
thePtr = (char*)(iConstDataSect.contents + (inAddr - iConstDataSect.s.addr));
if (outType)
{
uint32_t theID = *(uint32_t*)thePtr;
if (iSwapped)
theID = OSSwapInt32(theID);
if (theID == typeid_NSString)
*outType = OCStrObjectType;
else
{
theID = *(uint32_t*)(thePtr + 4);
if (iSwapped)
theID = OSSwapInt32(theID);
if (theID == typeid_NSString)
*outType = CFStringType;
else
*outType = DataConstType;
}
}
}
else // (__DATA,__cfstring) (cf_string_object*)
if (inAddr >= iCFStringSect.s.addr &&
inAddr < iCFStringSect.s.addr + iCFStringSect.size)
{
thePtr = (char*)(iCFStringSect.contents + (inAddr - iCFStringSect.s.addr));
if (outType)
*outType = CFStringType;
}
else // (__DATA,__objc_classrefs)
if (inAddr >= iObjcClassRefsSect.s.addr &&
inAddr < iObjcClassRefsSect.s.addr + iObjcClassRefsSect.size)
{
if (inAddr % 4 == 0)
{
UInt32 classRef = *(UInt32*)(iObjcClassRefsSect.contents +
(inAddr - iObjcClassRefsSect.s.addr));
if (classRef &&
classRef >= iObjcDataSect.s.addr &&
classRef < iObjcDataSect.s.addr + iObjcDataSect.s.size)
{
if (iSwapped)
classRef = OSSwapInt32(classRef);
objc2_32_class_t swappedClass = *(objc2_32_class_t*)(iObjcDataSect.contents +
(classRef - iObjcDataSect.s.addr));
if (iSwapped)
swap_objc2_32_class(&swappedClass);
if (swappedClass.data &&
swappedClass.data >= iObjcConstSect.s.addr &&
swappedClass.data < iObjcConstSect.s.addr + iObjcConstSect.s.size)
{
objc2_32_class_ro_t roData = *(objc2_32_class_ro_t*)(iObjcConstSect.contents +
(swappedClass.data - iObjcConstSect.s.addr));
if (iSwapped)
roData.name = OSSwapInt32(roData.name);
thePtr = [self getPointer:roData.name type:NULL];
if (outType)
*outType = OCClassRefType;
}
}
}
}
else // (__DATA,__objc_msgrefs)
if (inAddr >= iObjcMsgRefsSect.s.addr &&
inAddr < iObjcMsgRefsSect.s.addr + iObjcMsgRefsSect.size)
{
objc2_32_message_ref_t ref = *(objc2_32_message_ref_t*)(iObjcMsgRefsSect.contents +
(inAddr - iObjcMsgRefsSect.s.addr));
if (iSwapped)
ref.sel = OSSwapInt32(ref.sel);
thePtr = [self getPointer:ref.sel type:NULL];
if (outType)
*outType = OCMsgRefType;
}
else // (__DATA,__objc_catlist)
if (inAddr >= iObjcCatListSect.s.addr &&
inAddr < iObjcCatListSect.s.addr + iObjcCatListSect.size)
{
}
else // (__DATA,__objc_superrefs)
if (inAddr >= iObjcSuperRefsSect.s.addr &&
inAddr < iObjcSuperRefsSect.s.addr + iObjcSuperRefsSect.size)
{
UInt32 superAddy = *(UInt32*)(iObjcSuperRefsSect.contents +
(inAddr - iObjcSuperRefsSect.s.addr));
if (iSwapped)
superAddy = OSSwapInt32(superAddy);
if (superAddy &&
superAddy >= iObjcDataSect.s.addr &&
superAddy < iObjcDataSect.s.addr + iObjcDataSect.s.size)
{
objc2_32_class_t swappedClass = *(objc2_32_class_t*)(iObjcDataSect.contents +
(superAddy - iObjcDataSect.s.addr));
if (iSwapped)
swap_objc2_32_class(&swappedClass);
if (swappedClass.data &&
swappedClass.data >= iObjcConstSect.s.addr &&
swappedClass.data < iObjcConstSect.s.addr + iObjcConstSect.s.size)
{
objc2_32_class_ro_t* roPtr = (objc2_32_class_ro_t*)(iObjcConstSect.contents +
(swappedClass.data - iObjcConstSect.s.addr));
UInt32 namePtr = roPtr->name;
if (iSwapped)
namePtr = OSSwapInt32(namePtr);
if (namePtr != 0)
{
thePtr = [self getPointer:namePtr type:NULL];
if (outType)
*outType = OCSuperRefType;
}
}
}
}
else // (__DATA,__objc_selrefs)
if (inAddr >= iObjcSelRefsSect.s.addr &&
inAddr < iObjcSelRefsSect.s.addr + iObjcSelRefsSect.size)
{
UInt32 selAddy = *(UInt32*)(iObjcSelRefsSect.contents +
(inAddr - iObjcSelRefsSect.s.addr));
if (iSwapped)
selAddy = OSSwapInt32(selAddy);
if (selAddy != 0)
{
thePtr = [self getPointer:selAddy type:NULL];
if (outType)
*outType = OCSelRefType;
}
}
else
if ((inAddr >= iObjcProtoRefsSect.s.addr && // (__DATA,__objc_protorefs)
inAddr < iObjcProtoRefsSect.s.addr + iObjcProtoRefsSect.size) ||
(inAddr >= iObjcProtoListSect.s.addr && // (__DATA,__objc_protolist)
inAddr < iObjcProtoListSect.s.addr + iObjcProtoListSect.size))
{
UInt32 protoAddy;
UInt8 tempType;
if (inAddr >= iObjcProtoRefsSect.s.addr &&
inAddr < iObjcProtoRefsSect.s.addr + iObjcProtoRefsSect.size)
{
protoAddy = *(UInt32*)(iObjcProtoRefsSect.contents +
(inAddr - iObjcProtoRefsSect.s.addr));
tempType = OCProtoRefType;
}
else
{
protoAddy = *(UInt32*)(iObjcProtoListSect.contents +
(inAddr - iObjcProtoListSect.s.addr));
tempType = OCProtoListType;
}
if (iSwapped)
protoAddy = OSSwapInt32(protoAddy);
if (protoAddy != 0 &&
(protoAddy >= iDataSect.s.addr && protoAddy < (iDataSect.s.addr + iDataSect.size)))
{
objc2_32_protocol_t* proto = (objc2_32_protocol_t*)(iDataSect.contents +
(protoAddy - iDataSect.s.addr));
UInt32 protoName = proto->name;
if (iSwapped)
protoName = OSSwapInt32(protoName);
if (protoName != 0)
{
thePtr = [self getPointer:protoName type:NULL];
if (outType)
*outType = tempType;
}
}
}
else // (__DATA,__nl_symbol_ptr) (cf_string_object*)
if (inAddr >= iNLSymSect.s.addr &&
inAddr < iNLSymSect.s.addr + iNLSymSect.size)
{
thePtr = (char*)(iNLSymSect.contents + (inAddr - iNLSymSect.s.addr));
if (outType)
*outType = NLSymType;
}
else // (__DATA,__dyld) (function ptr)
if (inAddr >= iDyldSect.s.addr &&
inAddr < iDyldSect.s.addr + iDyldSect.size)
{
thePtr = (char*)(iDyldSect.contents + (inAddr - iDyldSect.s.addr));
if (outType)
*outType = DYLDType;
}
// should implement these if they ever contain CFStrings or NSStrings
/* else // (__DATA, __coalesced_data) (?)
if (localAddy >= mCoalDataSect.s.addr &&
localAddy < mCoalDataSect.s.addr + mCoalDataSect.size)
{
}
else // (__DATA, __datacoal_nt) (?)
if (localAddy >= mCoalDataNTSect.s.addr &&
localAddy < mCoalDataNTSect.s.addr + mCoalDataNTSect.size)
{
}*/
return thePtr;
}
#ifdef OTX_DEBUG
// printSymbol:
// ----------------------------------------------------------------------------
// Used for symbol debugging.
- (void)printSymbol: (nlist)inSym
{
fprintf(stderr, "----------------\n\n");
fprintf(stderr, " n_strx = 0x%08x\n", inSym.n_un.n_strx);
fprintf(stderr, " n_type = 0x%02x\n", inSym.n_type);
fprintf(stderr, " n_sect = 0x%02x\n", inSym.n_sect);
fprintf(stderr, " n_desc = 0x%04x\n", inSym.n_desc);
fprintf(stderr, "n_value = 0x%08x (%u)\n\n", inSym.n_value, inSym.n_value);
if ((inSym.n_type & N_STAB) != 0)
{ // too complicated, see <mach-o/stab.h>
fprintf(stderr, "STAB symbol\n");
}
else // not a STAB
{
if ((inSym.n_type & N_PEXT) != 0)
fprintf(stderr, "Private external symbol\n\n");
else if ((inSym.n_type & N_EXT) != 0)
fprintf(stderr, "External symbol\n\n");
UInt8 theNType = inSym.n_type & N_TYPE;
UInt16 theRefType = inSym.n_desc & REFERENCE_TYPE;
fprintf(stderr, "Symbol name: %s\n", (char*)((char *)iMachHeaderPtr + iStringTableOffset + inSym.n_un.n_strx));
fprintf(stderr, "Symbol type: ");
if (theNType == N_ABS)
fprintf(stderr, "Absolute\n");
else if (theNType == N_SECT)
fprintf(stderr, "Defined in section %u\n", inSym.n_sect);
else if (theNType == N_INDR)
fprintf(stderr, "Indirect\n");
else
{
if (theNType == N_UNDF)
fprintf(stderr, "Undefined\n");
else if (theNType == N_PBUD)
fprintf(stderr, "Prebound undefined\n");
switch (theRefType)
{
case REFERENCE_FLAG_UNDEFINED_NON_LAZY:
fprintf(stderr, "REFERENCE_FLAG_UNDEFINED_NON_LAZY\n");
break;
case REFERENCE_FLAG_UNDEFINED_LAZY:
fprintf(stderr, "REFERENCE_FLAG_UNDEFINED_LAZY\n");
break;
case REFERENCE_FLAG_DEFINED:
fprintf(stderr, "REFERENCE_FLAG_DEFINED\n");
break;
case REFERENCE_FLAG_PRIVATE_DEFINED:
fprintf(stderr, "REFERENCE_FLAG_PRIVATE_DEFINED\n");
break;
case REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY:
fprintf(stderr, "REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY\n");
break;
case REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY:
fprintf(stderr, "REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY\n");
break;
default:
break;
}
}
}
fprintf(stderr, "\n");
}
// printBlocks:
// ----------------------------------------------------------------------------
// Used for block debugging. Subclasses may override.
- (void)printBlocks: (uint32_t)inFuncIndex;
{
if (!iFuncInfos)
return;
FunctionInfo* funcInfo = &iFuncInfos[inFuncIndex];
if (!funcInfo || !funcInfo->blocks)
return;
uint32_t i;
fprintf(stderr, "\nfunction at 0x%x:\n\n", funcInfo->address);
fprintf(stderr, "%d blocks\n", funcInfo->numBlocks);
for (i = 0; i < funcInfo->numBlocks; i++)
{
fprintf(stderr, "\nblock %d at 0x%x:\n\n", i + 1,
funcInfo->blocks[i].beginAddress);
GPRegisterInfo *regInfo = funcInfo->blocks[i].state.regInfos;
if (regInfo[EAX].isValid) fprintf(stderr, "\t\teax: 0x%x\n", regInfo[EAX].value);
if (regInfo[EBX].isValid) fprintf(stderr, "\t\tebx: 0x%x\n", regInfo[EBX].value);
if (regInfo[ECX].isValid) fprintf(stderr, "\t\tecx: 0x%x\n", regInfo[ECX].value);
if (regInfo[EDX].isValid) fprintf(stderr, "\t\tedx: 0x%x\n", regInfo[EDX].value);
if (regInfo[ESP].isValid) fprintf(stderr, "\t\tesp: 0x%x\n", regInfo[ESP].value);
if (regInfo[EBP].isValid) fprintf(stderr, "\t\tebp: 0x%x\n", regInfo[EBP].value);
if (regInfo[ESI].isValid) fprintf(stderr, "\t\tesi: 0x%x\n", regInfo[ESI].value);
if (regInfo[EDI].isValid) fprintf(stderr, "\t\tedi: 0x%x\n", regInfo[EDI].value);
}
}
#endif // OTX_DEBUG
@end
|
github
|
zhangchn/otx-master
|
PPC64Processor.m
|
.m
|
otx-master/src/source/Processors/PPC64Processor.m
| 74,333 |
utf_8
|
6357b279a717e624564964c7ba8e1495
|
/*
PPC64Processor.m
A subclass of Exe64Processor that handles PPC64-specific issues.
This file is in the public domain.
*/
#import <Cocoa/Cocoa.h>
#import "PPC64Processor.h"
#import "PPCProcessor.h"
#import "Arch64Specifics.h"
#import "List64Utils.h"
#import "Objc64Accessors.h"
#import "Object64Loader.h"
#import "Searchers64.h"
#import "SyscallStrings.h"
#import "UserDefaultKeys.h"
@implementation PPC64Processor
// initWithURL:controller:options:
// ----------------------------------------------------------------------------
- (id)initWithURL: (NSURL*)inURL
controller: (id)inController
options: (ProcOptions*)inOptions
{
if ((self = [super initWithURL: inURL
controller: inController options: inOptions]))
{
strncpy(iArchString, "ppc64", 6);
iArchSelector = CPU_TYPE_POWERPC64;
iFieldWidths.offset = 8;
iFieldWidths.address = 18;
iFieldWidths.instruction = 10;
iFieldWidths.mnemonic = 9;
iFieldWidths.operands = 17;
}
return self;
}
// dealloc
// ----------------------------------------------------------------------------
- (void)dealloc
{
if (iLocalSelves)
{
free(iLocalSelves);
iLocalSelves = NULL;
}
if (iLocalVars)
{
free(iLocalVars);
iLocalVars = NULL;
}
}
// loadDyldDataSection:
// ----------------------------------------------------------------------------
- (void)loadDyldDataSection: (section_64*)inSect
{
[super loadDyldDataSection: inSect];
if (!iAddrDyldStubBindingHelper)
return;
iAddrDyldFuncLookupPointer = iAddrDyldStubBindingHelper + 24;
}
// codeFromLine:
// ----------------------------------------------------------------------------
- (void)codeFromLine: (Line64*)inLine
{
uint32_t theInstruction = (iMachHeader.filetype == MH_OBJECT) ?
*(uint32_t*)((char*)iMachHeaderPtr + (inLine->info.address + iTextOffset)) :
*(uint32_t*)((char*)iMachHeaderPtr + (inLine->info.address - iTextOffset));
inLine->info.codeLength = 4;
uint32_t* intPtr = (uint32_t*)&inLine->info.code[0];
*intPtr = theInstruction;
}
#pragma mark -
// commentForLine:
// ----------------------------------------------------------------------------
- (void)commentForLine: (Line64*)inLine;
{
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
char* theDummyPtr = NULL;
char* theSymPtr = NULL;
UInt8 opcode = PO(theCode);
UInt64 localAddy;
iLineCommentCString[0] = 0;
// Examine the primary opcode to see if we need to look for comments.
switch (opcode)
{
case 0x0a: // cmpli | cmplwi UIMM
case 0x0b: // cmpi | cmpwi SIMM
{
SInt16 imm = SIMM(theCode);
// Check for a single printable 7-bit char.
if (imm >= 0x20 && imm < 0x7f)
snprintf(iLineCommentCString, 4, "'%c'", imm);
break;
}
case 0x11: // sc
[self commentForSystemCall];
break;
case 0x10: // bc, bca, bcl, bcla
case 0x12: // b, ba, bl, bla
{
// Check for absolute branches to the ObjC runtime page. Similar to
// the comm page behavior described at
// http://www.opensource.apple.com/darwinsource/10.4.7.ppc/xnu-792.6.76/osfmk/ppc/cpu_capabilities.h
// However, the ObjC runtime page is not really a comm page, and it
// cannot be accessed by bca and bcla instructions, due to their
// 16-bit limitation.
// Deal with absolute branches.
if (AA(theCode))
{
uint32_t target = LI(theCode);
switch (target)
{
case kRTAddress_objc_msgSend:
{
char tempComment[MAX_COMMENT_LENGTH];
strncpy(tempComment, kRTName_objc_msgSend,
strlen(kRTName_objc_msgSend) + 1);
if (iOpts.verboseMsgSends)
[self commentForMsgSend:tempComment fromLine:inLine];
strncpy(iLineCommentCString, tempComment,
strlen(tempComment) + 1);
break;
}
case kRTAddress_objc_assign_ivar:
{
char tempComment[MAX_COMMENT_LENGTH];
strncpy(tempComment, kRTName_objc_assign_ivar,
strlen(kRTName_objc_assign_ivar) + 1);
// Bail if we don't know about the class.
if (!iCurrentClass)
{
strncpy(iLineCommentCString, tempComment,
strlen(tempComment) + 1);
break;
}
if (iRegInfos[5].isValid)
{
objc2_64_ivar_t* theIvar = NULL;
objc2_64_class_t swappedClass = *iCurrentClass;
#if __LITTLE_ENDIAN__
swap_objc2_64_class(&swappedClass);
#endif
if (!iIsInstanceMethod)
{
if (![self getObjcMetaClass:&swappedClass fromClass:&swappedClass])
break;
#if __LITTLE_ENDIAN__
swap_objc2_64_class(&swappedClass);
#endif
}
if (![self findIvar:&theIvar inClass:&swappedClass withOffset:iRegInfos[5].value])
{
strncpy(iLineCommentCString, tempComment, strlen(tempComment) + 1);
break;
}
theSymPtr = [self getPointer:theIvar->name type:NULL];
if (!theSymPtr)
{
strncpy(iLineCommentCString, tempComment, strlen(tempComment) + 1);
break;
}
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:[self getPointer:theIvar->type type:NULL]];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s (%s)%s", tempComment, theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s %s", tempComment, theSymPtr);
}
else // !mReginfos[5].isValid
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", tempComment);
break;
}
case kRTAddress_objc_assign_global:
strncpy(iLineCommentCString, kRTName_objc_assign_global,
strlen(kRTName_objc_assign_global) + 1);
break;
case kRTAddress_objc_assign_strongCast:
strncpy(iLineCommentCString, kRTName_objc_assign_strongCast,
strlen(kRTName_objc_assign_strongCast) + 1);
break;
default:
break;
}
}
else // not an absolute branch
{
// Insert anonymous label or 'return' if there's not a comment yet.
if (iLineCommentCString[0])
break;
UInt64 absoluteAddy;
if (opcode == 0x12)
absoluteAddy =
inLine->info.address + LI(theCode);
else
absoluteAddy =
inLine->info.address + BD(theCode);
Function64Info searchKey = {absoluteAddy, NULL, 0, 0};
Function64Info* funcInfo = bsearch(&searchKey,
iFuncInfos, iNumFuncInfos, sizeof(Function64Info),
(COMPARISON_FUNC_TYPE)Function_Info_Compare);
if (funcInfo && funcInfo->genericFuncNum != 0)
{
snprintf(iLineCommentCString,
ANON_FUNC_BASE_LENGTH + 11, "%s%d",
ANON_FUNC_BASE, funcInfo->genericFuncNum);
break;
}
// FIXME: mCurrentFuncInfoIndex is -1 here when it should not be
funcInfo = &iFuncInfos[iCurrentFuncInfoIndex];
if (!funcInfo->blocks)
break;
uint32_t i;
for (i = 0; i < funcInfo->numBlocks; i++)
{
if (funcInfo->blocks[i].beginAddress != absoluteAddy)
continue;
if (funcInfo->blocks[i].isEpilog)
snprintf(iLineCommentCString, 8, "return;");
break;
}
}
break;
}
case 0x13: // bcctr, bclr, isync
if (SO(theCode) != 528) // bcctr
break;
if (iRegInfos[4].messageRefSel != NULL)
{
char* sel = iRegInfos[4].messageRefSel;
strncpy(iLineOperandsCString, " ", 2);
if (iRegInfos[3].className != NULL)
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "+[%s %s]", iRegInfos[3].className, sel);
else // Instance method?
if (iRegInfos[3].isValid)
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "objc_msgSend(%%r3, %s)", sel);
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "-[%%r3 %s]", sel);
}
// Print value of ctr, ignoring the low 2 bits.
// if (iCTR.isValid)
// snprintf(iLineCommentCString, 10, "0x%x",
// iCTR.value & ~3);
break;
case 0x30: // lfs SIMM
case 0x34: // stfs SIMM
case 0x32: // lfd SIMM
case 0x36: // stfd SIMM
{
if (!iRegInfos[RA(theCode)].isValid || RA(theCode) == 0)
break;
if (iRegInfos[RA(theCode)].classPtr)
{ // search instance vars
objc2_64_ivar_t* theIvar = NULL;
objc2_64_class_t swappedClass = *iRegInfos[RA(theCode)].classPtr;
#if __LITTLE_ENDIAN__
swap_objc2_64_class(&swappedClass);
#endif
if (!iIsInstanceMethod)
{
if (![self getObjcMetaClass:&swappedClass fromClass:&swappedClass])
break;
#if __LITTLE_ENDIAN__
swap_objc2_64_class(&swappedClass);
#endif
}
if (![self findIvar:&theIvar inClass:&swappedClass withOffset:UIMM(theCode)])
break;
theSymPtr = [self getPointer:theIvar->name type:NULL];
if (theSymPtr)
{
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:[self getPointer:theIvar->type type:NULL]];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "(%s)%s",
theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
}
else
{
localAddy = iRegInfos[RA(theCode)].value + SIMM(theCode);
theDummyPtr = [self getPointer:localAddy type:NULL];
if (!theDummyPtr)
break;
if (opcode == 0x32 || opcode == 0x36) // lfd | stfd
{
UInt64 theInt64 = *(UInt64*)theDummyPtr;
theInt64 = OSSwapBigToHostInt64(theInt64);
// dance around printf's type coersion
snprintf(iLineCommentCString,
30, "%lG", *(double*)&theInt64);
}
else // lfs | stfs
{
uint32_t theInt32 = *(uint32_t*)theDummyPtr;
theInt32 = OSSwapBigToHostInt32(theInt32);
// dance around printf's type coersion
snprintf(iLineCommentCString,
30, "%G", *(float*)&theInt32);
}
}
break;
}
case 0x0e: // li | addi SIMM
case 0x18: // ori UIMM
case 0x20: // lwz SIMM
case 0x22: // lbz SIMM
case 0x24: // stw SIMM
case 0x26: // stb SIMM
case 0x28: // lhz SIMM
case 0x2c: // sth SIMM
{
if (!iRegInfos[RA(theCode)].isValid || RA(theCode) == 0)
break;
if (iRegInfos[RA(theCode)].classPtr) // relative to a class
{ // search instance vars
objc2_64_ivar_t* theIvar = NULL;
objc2_64_class_t swappedClass = *iRegInfos[RA(theCode)].classPtr;
if (![self findIvar:&theIvar inClass:&swappedClass withOffset:UIMM(theCode)])
break;
theSymPtr = [self getPointer:theIvar->name type:NULL];
if (theSymPtr)
{
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:[self getPointer:theIvar->type type:NULL]];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "(%s)%s", theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
}
else // absolute address
{
if (opcode == 0x18) // ori UIMM
localAddy = iRegInfos[RA(theCode)].value | UIMM(theCode);
else
localAddy = iRegInfos[RA(theCode)].value + SIMM(theCode);
UInt8 theType = PointerType;
uint32_t theValue;
theSymPtr = [self getPointer:localAddy type:&theType];
if (theSymPtr)
{
switch (theType)
{
case DataGenericType:
theValue = *(uint32_t*)theSymPtr;
theValue = OSSwapBigToHostInt32(theValue);
theDummyPtr = [self getPointer:theValue type:&theType];
switch (theType)
{
case PointerType:
theSymPtr = theDummyPtr;
break;
default:
theSymPtr = NULL;
break;
}
break;
case DataConstType:
theSymPtr = NULL;
break;
// See http://www.opensource.apple.com/darwinsource/10.4.7.ppc/Csu-58/dyld.s
// They hardcoded the values, we may as well...
case DYLDType:
{
char* dyldComment = NULL;
theValue = *(uint32_t*)theSymPtr;
theValue = OSSwapBigToHostInt32(theValue);
switch(theValue)
{
case kDyldAddress_LaSymBindingEntry:
dyldComment = kDyldName_LaSymBindingEntry;
break;
case kDyldAddress_FuncLookupPointer:
dyldComment = kDyldName_FuncLookupPointer;
break;
default:
break;
}
if (dyldComment)
strcpy(iLineCommentCString, dyldComment);
break;
}
case PointerType:
break;
case CFStringType:
{
cfstring_object_64 theCFString = *(cfstring_object_64*)theSymPtr;
if (theCFString.oc_string.length == 0)
{
theSymPtr = NULL;
break;
}
theCFString.oc_string.chars =
OSSwapBigToHostInt64(theCFString.oc_string.chars);
theSymPtr = [self getPointer:theCFString.oc_string.chars type:NULL];
break;
}
case ImpPtrType:
case NLSymType:
{
theValue = *(uint32_t*)theSymPtr;
theValue = OSSwapBigToHostInt32(theValue);
theDummyPtr = [self getPointer:theValue type:NULL];
if (!theDummyPtr)
{
theSymPtr = NULL;
break;
}
theValue = *(uint32_t*)(theDummyPtr + 4);
theValue = OSSwapBigToHostInt32(theValue);
if (theValue != typeid_NSString)
{
theValue = *(uint32_t*)theDummyPtr;
theValue = OSSwapBigToHostInt32(theValue);
theDummyPtr = [self getPointer:theValue type:NULL];
if (!theDummyPtr)
{
theSymPtr = NULL;
break;
}
}
cfstring_object_64 theCFString = *(cfstring_object_64*)theDummyPtr;
if (theCFString.oc_string.length == 0)
{
theSymPtr = NULL;
break;
}
theCFString.oc_string.chars =
OSSwapBigToHostInt64(theCFString.oc_string.chars);
theSymPtr = [self getPointer:theCFString.oc_string.chars type:NULL];
break;
}
case OCGenericType:
case OCStrObjectType:
case OCClassType:
case OCModType:
if (![self getObjcDescription:&theDummyPtr fromObject:theSymPtr type:theType])
break;
if (theDummyPtr)
{
switch (theType)
{
case OCClassType:
iRegInfos[RT(theCode)].classPtr =
(objc2_64_class_t*)theSymPtr;
break;
default:
break;
}
}
theSymPtr = theDummyPtr;
break;
default:
break;
}
if (theSymPtr && !iLineCommentCString[0])
{
if (theType == PStringType)
snprintf(iLineCommentCString, 255,
"%*s", theSymPtr[0], theSymPtr + 1);
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
} // if (theSymPtr)
else
{ // Maybe it's a four-char code...
if ((opcode == 0x0e || opcode == 0x18) && // li | addi | ori
localAddy >= 0x20202020 && localAddy < 0x7f7f7f7f)
{
localAddy = OSSwapBigToHostInt64(localAddy);
char* fcc = (char*)&localAddy;
if (fcc[0] >= 0x20 && fcc[0] < 0x7f &&
fcc[1] >= 0x20 && fcc[1] < 0x7f &&
fcc[2] >= 0x20 && fcc[2] < 0x7f &&
fcc[3] >= 0x20 && fcc[3] < 0x7f)
snprintf(iLineCommentCString,
7, "'%.4s'", fcc);
}
}
} // if !(.classPtr)
break;
} // case 0x0e...
case 0x3a: // ld
{
if (iRegInfos[RA(theCode)].isValid == NO)
break;
UInt64 address = iRegInfos[RA(theCode)].value + DS(theCode);
UInt8 type;
char* symName = NULL;
theSymPtr = [self getPointer:address type:&type];
if (theSymPtr)
{
switch (type)
{
case CFStringType:
[self getObjcDescription:&symName fromObject:theSymPtr type:type];
if (symName)
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", symName);
break;
case OCClassRefType:
case OCSuperRefType:
case OCProtoRefType:
case OCProtoListType:
case OCMsgRefType:
case OCSelRefType:
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
break;
default:
break;
}
}
else
{
if (address >= iDataSect.s.addr && address < (iDataSect.s.addr + iDataSect.size))
{
objc2_64_ivar_t* foundIvar = NULL;
objc2_64_ivar_t* maybeIvar = (objc2_64_ivar_t*)((iDataSect.contents) + (address - iDataSect.s.addr));
if (maybeIvar->offset != 0)
{
UInt64 offset = OSSwapBigToHostInt64(maybeIvar->offset);
if ([self findIvar:&foundIvar inClass:iCurrentClass withOffset:offset])
{
theSymPtr = [self getPointer:foundIvar->name type:NULL];
if (theSymPtr)
{
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:[self getPointer:foundIvar->type type:NULL]];
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "(%s)%s", theTypeCString, theSymPtr);
}
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theSymPtr);
}
}
}
}
}
break;
}
default:
break;
}
}
// commentForSystemCall
// ----------------------------------------------------------------------------
// System call number is stored in r0, possible values defined in
// <sys/syscall.h>. Call numbers are indices into a lookup table of handler
// routines. Args being passed to the looked-up handler start at r3 or r4,
// depending on whether it's an indirect SYS_syscall.
- (void)commentForSystemCall
{
if (!iRegInfos[0].isValid ||
iRegInfos[0].value > SYS_MAXSYSCALL)
{
snprintf(iLineCommentCString, 11, "syscall(?)");
return;
}
BOOL isIndirect = (iRegInfos[0].value == SYS_syscall);
uint32_t syscallNumReg = isIndirect ? 3 : 0;
uint32_t syscallArg1Reg = isIndirect ? 4 : 3;
if (!iRegInfos[syscallNumReg].isValid ||
iRegInfos[syscallNumReg].value > SYS_MAXSYSCALL)
{
snprintf(iLineCommentCString, 11, "syscall(?)");
return;
}
const char* theSysString = gSysCalls[iRegInfos[syscallNumReg].value];
if (!theSysString)
return;
char theTempComment[50];
theTempComment[0] = 0;
strncpy(theTempComment, theSysString, strlen(theSysString) + 1);
// Handle various system calls.
switch (iRegInfos[syscallNumReg].value)
{
case SYS_ptrace:
if (iRegInfos[syscallArg1Reg].isValid &&
iRegInfos[syscallArg1Reg].value == PT_DENY_ATTACH)
snprintf(iLineCommentCString, 40, "%s(%s)",
theTempComment, "PT_DENY_ATTACH");
else
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theTempComment);
break;
default:
snprintf(iLineCommentCString, MAX_COMMENT_LENGTH, "%s", theTempComment);
break;
}
}
// selectorForMsgSend:fromLine:
// ----------------------------------------------------------------------------
- (char*)selectorForMsgSend: (char*)outComment
fromLine: (Line64*)inLine
{
char* selString = NULL;
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
// Bail if this is not an eligible branch.
if (PO(theCode) != 0x12) // b, bl, ba, bla
return NULL;
// Bail if this is not an objc_msgSend variant.
if (memcmp(outComment, "_objc_msgSend", 13))
return NULL;
UInt8 sendType = [self sendTypeFromMsgSend:outComment];
uint32_t selectorRegNum =
(sendType == sendSuper_stret || sendType == send_stret) ? 5 : 4;
if (!iRegInfos[selectorRegNum].isValid ||
!iRegInfos[selectorRegNum].value)
return NULL;
// Get at the selector.
UInt8 selType = PointerType;
char* selPtr = [self getPointer:iRegInfos[selectorRegNum].value type:&selType];
switch (selType)
{
case PointerType:
selString = selPtr;
break;
case OCGenericType:
if (selPtr)
{
uint32_t selPtrValue = *(uint32_t*)selPtr;
selPtrValue = OSSwapBigToHostInt32(selPtrValue);
selString = [self getPointer:selPtrValue type:NULL];
}
break;
default:
fprintf(stderr, "otx: [PPC64Processor selectorForMsgSend:fromLine:]: "
"unsupported selector type: %d at address: 0x%llx\n",
selType, inLine->info.address);
break;
}
return selString;
}
// commentForMsgSend:fromLine:
// ----------------------------------------------------------------------------
- (void)commentForMsgSend: (char*)ioComment
fromLine: (Line64*)inLine
{
char tempComment[MAX_COMMENT_LENGTH];
tempComment[0] = 0;
if (!strncmp(ioComment, "_objc_msgSend", 13))
{
char* selString = [self selectorForMsgSend:ioComment fromLine:inLine];
// Bail if we couldn't find the selector.
if (!selString)
{
iMissedSelectorCount++;
return;
}
iMatchedSelectorCount++;
UInt8 sendType = [self sendTypeFromMsgSend:ioComment];
// Get the address of the class name string, if this a class method.
UInt64 classNameAddy = 0;
// If *.classPtr is non-NULL, it's not a name string.
if (sendType == sendSuper_stret || sendType == send_stret)
{
if (iRegInfos[4].isValid && !iRegInfos[4].classPtr)
classNameAddy = iRegInfos[4].value;
}
else
{
if (iRegInfos[3].isValid && !iRegInfos[3].classPtr)
classNameAddy = iRegInfos[3].value;
}
char* className = NULL;
char* returnTypeString =
(sendType == sendSuper_stret || sendType == send_stret) ?
"(struct)" : "";
// char tempComment[MAX_COMMENT_LENGTH];
// tempComment[0] = 0;
if (classNameAddy)
{
// Get at the class name
UInt8 classNameType = PointerType;
char* classNamePtr = [self getPointer:classNameAddy type:&classNameType];
switch (classNameType)
{
// Receiver can be a static string or pointer in these sections, but we
// only want to display class names as receivers.
case DataGenericType:
case DataConstType:
case CFStringType:
case ImpPtrType:
case OCStrObjectType:
break;
case NLSymType:
if (classNamePtr)
{
UInt64 namePtrValue = *(UInt64*)classNamePtr;
namePtrValue = OSSwapBigToHostInt64(namePtrValue);
classNamePtr = [self getPointer:namePtrValue type:&classNameType];
switch (classNameType)
{
case CFStringType:
if (classNamePtr != NULL)
{
cfstring_object_64 classNameCFString = *(cfstring_object_64*)classNamePtr;
namePtrValue = classNameCFString.oc_string.chars;
namePtrValue = OSSwapBigToHostInt64(namePtrValue);
classNamePtr = [self getPointer:namePtrValue type:NULL];
className = classNamePtr;
}
break;
// Not sure what these are for, but they're NULL.
case NLSymType:
break;
default:
printf("otx: [PPC64Processor commentForMsgSend:fromLine:]: "
"non-lazy symbol pointer points to unrecognized section: %d\n", classNameType);
break;
}
}
break;
case PointerType:
className = classNamePtr;
break;
case OCGenericType:
if (classNamePtr)
{
uint32_t namePtrValue = *(uint32_t*)classNamePtr;
namePtrValue = OSSwapBigToHostInt32(namePtrValue);
className = [self getPointer:namePtrValue type:NULL];
}
break;
case OCClassType:
if (classNamePtr)
[self getObjcDescription:&className fromObject:classNamePtr type:OCClassType];
break;
default:
fprintf(stderr, "otx: [PPC64Processor commentForMsgSend]: "
"unsupported class name type: %d at address: 0x%llx\n",
classNameType, inLine->info.address);
break;
}
}
if (className)
{
snprintf(tempComment, MAX_COMMENT_LENGTH,
((sendType == sendSuper || sendType == sendSuper_stret) ?
"+%s[[%s super] %s]" : "+%s[%s %s]"),
returnTypeString, className, selString);
}
else
{
switch (sendType)
{
case send:
case send_rtp:
case send_variadic:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[r3 %s]", returnTypeString, selString);
break;
case sendSuper:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[[r3 super] %s]", returnTypeString, selString);
break;
case send_stret:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[r4 %s]", returnTypeString, selString);
break;
case sendSuper_stret:
snprintf(tempComment, MAX_COMMENT_LENGTH, "-%s[[r4 super] %s]", returnTypeString, selString);
break;
default:
break;
}
}
} // if (!strncmp(ioComment, "_objc_msgSend", 13))
else if (!strncmp(ioComment, "_objc_assign_ivar", 17))
{
if (iCurrentClass && iRegInfos[5].isValid)
{
char* theSymPtr = NULL;
objc2_64_ivar_t* theIvar = NULL;
objc2_64_class_t swappedClass = *iCurrentClass;
if (!iIsInstanceMethod)
{
if (![self getObjcMetaClass:&swappedClass fromClass:&swappedClass])
return;
#if __LITTLE_ENDIAN__
swap_objc2_64_class(&swappedClass);
#endif
}
if (![self findIvar:&theIvar inClass:&swappedClass withOffset:iRegInfos[5].value])
return;
theSymPtr = [self getPointer:theIvar->name type:NULL];
if (!theSymPtr)
return;
if (iOpts.variableTypes)
{
char theTypeCString[MAX_TYPE_STRING_LENGTH];
theTypeCString[0] = 0;
[self getDescription:theTypeCString forType:[self getPointer:theIvar->type type:NULL]];
snprintf(tempComment, MAX_COMMENT_LENGTH, " (%s)%s", theTypeCString, theSymPtr);
}
else
snprintf(tempComment, MAX_COMMENT_LENGTH, " %s", theSymPtr);
strncat(ioComment, tempComment, strlen(tempComment));
}
}
}
// chooseLine:
// ----------------------------------------------------------------------------
- (void)chooseLine: (Line64**)ioLine
{
if (!(*ioLine) || !(*ioLine)->info.isCode ||
!(*ioLine)->alt || !(*ioLine)->alt->chars)
return;
uint32_t theCode = *(uint32_t*)(*ioLine)->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (PO(theCode) == 18) // b, ba, bl, bla
{
Line64* theNewLine = malloc(sizeof(Line64));
memcpy(theNewLine, (*ioLine)->alt, sizeof(Line64));
theNewLine->chars = malloc(theNewLine->length + 1);
strncpy(theNewLine->chars, (*ioLine)->alt->chars,
theNewLine->length + 1);
// Swap in the verbose line and free the previous verbose lines.
[self deleteLinesBefore:(*ioLine)->alt fromList:&iVerboseLineListHead];
[self replaceLine:*ioLine withLine:theNewLine inList:&iPlainLineListHead];
*ioLine = theNewLine;
}
}
#pragma mark -
// resetRegisters:
// ----------------------------------------------------------------------------
- (void)resetRegisters: (Line64*)inLine
{
if (!inLine)
{
fprintf(stderr, "otx: [PPC64Processor resetRegisters]: "
"tried to reset with NULL inLine\n");
return;
}
// Setup the registers with default info. r3 is 'self' at the beginning
// of any Obj-C method, and r12 holds the address of the 1st instruction
// if the function was called indirectly. In the case of direct calls,
// r12 will be overwritten before it is used, if it is used at all.
[self getObjcClassPtr:&iCurrentClass fromMethod:inLine->info.address];
// [self getObjcCatPtr:&iCurrentCat fromMethod:inLine->info.address];
memset(iRegInfos, 0, sizeof(GP64RegisterInfo) * 32);
// If we didn't get the class from the method, try to get it from the
// category.
/* if (!iCurrentClass && iCurrentCat)
{
objc_category swappedCat = *iCurrentCat;
#if __LITTLE_ENDIAN__
swap_objc_category(&swappedCat);
#endif
[self getObjcClassPtr:&iCurrentClass fromName:[self getPointer:swappedCat.class_name type:NULL]];
}*/
iRegInfos[3].classPtr = iCurrentClass;
// iRegInfos[3].catPtr = iCurrentCat;
iRegInfos[3].isValid = YES;
iRegInfos[12].value = iCurrentFuncPtr;
iRegInfos[12].isValid = YES;
iLR = (GP64RegisterInfo){0};
iCTR = (GP64RegisterInfo){0};
// Try to find out whether this is a class or instance method.
Method64Info* thisMethod = NULL;
if ([self getObjcMethod:&thisMethod fromAddress:inLine->info.address])
iIsInstanceMethod = thisMethod->inst;
if (iLocalSelves)
{
free(iLocalSelves);
iLocalSelves = NULL;
iNumLocalSelves = 0;
}
if (iLocalVars)
{
free(iLocalVars);
iLocalVars = NULL;
iNumLocalVars = 0;
}
iCurrentFuncInfoIndex++;
if (iCurrentFuncInfoIndex >= iNumFuncInfos)
iCurrentFuncInfoIndex = -1;
}
// updateRegisters:
// ----------------------------------------------------------------------------
// Keep our local copy of the GPRs in sync as much as possible with the
// values that the exe will use at runtime. Assign classPtr and catPtr fields
// in a register's info if its new value points to a class or category.
// http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/Articles/32bitPowerPC.html
// http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/Articles/dynamic_code.html
- (void)updateRegisters: (Line64*)inLine;
{
if (!inLine)
{
fprintf(stderr, "otx: [PPC64Processor updateRegisters]: "
"tried to update with NULL inLine\n");
return;
}
UInt64 theNewValue;
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (IS_BRANCH_LINK(theCode))
{
iLR.value = inLine->info.address + 4;
iLR.isValid = YES;
}
switch (PO(theCode))
{
case 0x07: // mulli SIMM
{
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
}
UInt64 theProduct = (SInt32)iRegInfos[RA(theCode)].value * SIMM(theCode);
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = theProduct & 0xffffffff;
iRegInfos[RT(theCode)].isValid = YES;
break;
}
case 0x08: // subfic SIMM
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
}
theNewValue = iRegInfos[RA(theCode)].value - SIMM(theCode);
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
break;
case 0x0c: // addic SIMM
case 0x0d: // addic. SIMM
case 0x0e: // addi | li SIMM
if (RA(theCode) == 1 && // current reg is stack pointer (r1)
SIMM(theCode) >= 0) // we're accessing local vars, not args
{
BOOL found = NO;
uint32_t i;
// Check for copied self pointer. This happens mostly in "init"
// methods, as in: "self = [super init]"
if (iLocalSelves) // self was copied to a local variable
{
// If we're accessing a local var copy of self,
// copy that info back to the reg in question.
for (i = 0; i < iNumLocalSelves; i++)
{
if (iLocalSelves[i].offset != UIMM(theCode))
continue;
iRegInfos[RT(theCode)] = iLocalSelves[i].regInfo;
found = YES;
break;
}
}
if (found)
break;
// Check for other local variables.
if (iLocalVars)
{
for (i = 0; i < iNumLocalVars; i++)
{
if (iLocalVars[i].offset != UIMM(theCode))
continue;
iRegInfos[RT(theCode)] = iLocalVars[i].regInfo;
found = YES;
break;
}
}
if (found)
break;
}
// We didn't find any local variables, try immediates.
if (RA(theCode) == 0) // li
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = UIMM(theCode);
iRegInfos[RT(theCode)].isValid = YES;
}
else // addi
{
// Update rD if we know what rA is.
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
}
iRegInfos[RT(theCode)].classPtr = NULL;
iRegInfos[RT(theCode)].className = NULL;
iRegInfos[RT(theCode)].messageRefSel = NULL;
// iRegInfos[RT(theCode)].catPtr = NULL;
theNewValue = iRegInfos[RA(theCode)].value + SIMM(theCode);
UInt8 type;
char* ref = [self getPointer:theNewValue type:&type];
if (type == OCMsgRefType)
iRegInfos[RT(theCode)].messageRefSel = ref;
else if (type == OCClassRefType)
iRegInfos[RT(theCode)].className = ref;
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
}
break;
case 0x0f: // addis | lis
iRegInfos[RT(theCode)].classPtr = NULL;
// iRegInfos[RT(theCode)].catPtr = NULL;
if (RA(theCode) == 0) // lis
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = UIMM(theCode) << 16;
iRegInfos[RT(theCode)].isValid = YES;
break;
}
// addis
if (!iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
}
theNewValue = iRegInfos[RA(theCode)].value +
(SIMM(theCode) << 16);
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
break;
case 0x10: // bcl, bcla
case 0x13: // bclrl, bcctrl
if (!IS_BRANCH_LINK(theCode)) // fall thru if link
break;
case 0x12: // b, ba, bl, bla
{
if (!LK(theCode)) // bl, bla
break;
iRegInfos[3] = (GP64RegisterInfo){0};
break;
}
case 0x15: // rlwinm
{
if (!iRegInfos[RT(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
break;
}
UInt64 rotatedRT =
rotl(iRegInfos[RT(theCode)].value, RB(theCode));
uint32_t theMask = 0x0;
UInt8 i;
for (i = MB(theCode); i <= ME(theCode); i++)
theMask |= 1 << (31 - i);
theNewValue = rotatedRT & theMask;
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
}
case 0x18: // ori
if (!iRegInfos[RT(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
break;
}
theNewValue =
iRegInfos[RT(theCode)].value | (uint32_t)UIMM(theCode);
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
case 0x1e: // rldicl
{
if (!iRegInfos[RT(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
break;
}
UInt8 shift = SH(theCode);
UInt8 maskBegin = MB64(theCode);
UInt64 rotatedRT = rotl64(iRegInfos[RT(theCode)].value, shift);
UInt64 theMask = (UInt64)-1 >> maskBegin;
theNewValue = rotatedRT & theMask;
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
}
case 0x1f: // multiple instructions
switch (SO(theCode))
{
case 21: // ldx
/* if ((RA(theCode) != 0 && !iRegInfos[RA(theCode)].isValid) ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
}
theNewValue = (RA(theCode) == 0) ? 0 :
iRegInfos[RA(theCode)].value + iRegInfos[RB(theCode)].value;*/
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
case 23: // lwzx
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
case 8: // subfc
case 40: // subf
if (!iRegInfos[RA(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
}
// 2's complement subtraction
theNewValue =
(iRegInfos[RA(theCode)].value ^= 0xffffffff) +
iRegInfos[RB(theCode)].value + 1;
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = theNewValue;
iRegInfos[RT(theCode)].isValid = YES;
break;
case 266: // add
if (iRegInfos[RA(theCode)].isValid && iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RT(theCode)].value =
iRegInfos[RA(theCode)].value + iRegInfos[RB(theCode)].value;
iRegInfos[RT(theCode)].isValid = YES;
iRegInfos[RT(theCode)].classPtr = NULL;
iRegInfos[RT(theCode)].className = NULL;
iRegInfos[RT(theCode)].messageRefSel = NULL;
}
else
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
case 339: // mfspr
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
if (SPR(theCode) == LR && // from LR
iLR.isValid)
{ // Copy LR into rD.
iRegInfos[RT(theCode)].value = iLR.value;
iRegInfos[RT(theCode)].isValid = YES;
}
break;
case 444: // or | or.
if (!iRegInfos[RT(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
break;
}
theNewValue =
(iRegInfos[RT(theCode)].value |
iRegInfos[RB(theCode)].value);
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
// If we just copied a register, copy the
// remaining fields.
if (RT(theCode) == RB(theCode))
{
iRegInfos[RA(theCode)].classPtr =
iRegInfos[RB(theCode)].classPtr;
iRegInfos[RA(theCode)].className =
iRegInfos[RB(theCode)].className;
iRegInfos[RA(theCode)].messageRefSel =
iRegInfos[RB(theCode)].messageRefSel;
// iRegInfos[RA(theCode)].catPtr =
// iRegInfos[RB(theCode)].catPtr;
}
break;
case 467: // mtspr
if (SPR(theCode) == CTR) // to CTR
{
if (!iRegInfos[RS(theCode)].isValid)
{
iCTR = (GP64RegisterInfo){0};
break;
}
iCTR.value = iRegInfos[RS(theCode)].value;
iCTR.isValid = YES;
}
break;
case 24: // slw
if (!iRegInfos[RS(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
break;
}
if (SB(iRegInfos[RB(theCode)].value))
{
theNewValue =
iRegInfos[RS(theCode)].value <<
SV(iRegInfos[RB(theCode)].value);
}
else // If RB.5 == 0, RA = 0.
theNewValue = 0;
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
case 536: // srw
if (!iRegInfos[RS(theCode)].isValid ||
!iRegInfos[RB(theCode)].isValid)
{
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
break;
}
theNewValue =
iRegInfos[RS(theCode)].value >>
SV(iRegInfos[RB(theCode)].value);
iRegInfos[RA(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RA(theCode)].value = theNewValue;
iRegInfos[RA(theCode)].isValid = YES;
break;
default:
// Ideally, we would zero the destination register here. Sadly, because SO values can vary in their formats, we don't know which register is the destination.
break;
}
break;
case 0x20: // lwz
case 0x22: // lbz
if (RA(theCode) == 0)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = SIMM(theCode);
iRegInfos[RT(theCode)].isValid = YES;
}
else if (iRegInfos[RA(theCode)].isValid)
{
void *tempPtr = [self getPointer:iRegInfos[RA(theCode)].value + SIMM(theCode) type:NULL];
if (tempPtr)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = *(uint32_t*)tempPtr;
iRegInfos[RT(theCode)].value =
OSSwapBigToHostInt64(iRegInfos[RT(theCode)].value);
iRegInfos[RT(theCode)].isValid = YES;
}
else
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
}
else if (iLocalVars)
{
uint32_t i;
for (i = 0; i < iNumLocalVars; i++)
{
if (iLocalVars[i].offset == SIMM(theCode))
{
iRegInfos[RT(theCode)] = iLocalVars[i].regInfo;
break;
}
}
}
else
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
break;
/* case 0x22: // lbz
mRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
if (RA(theCode) == 0)
{
mRegInfos[RT(theCode)].value = SIMM(theCode);
mRegInfos[RT(theCode)].isValid = YES;
}
break;*/
case 0x24: // stw
if (!iRegInfos[RT(theCode)].isValid ||
RA(theCode) != 1 ||
SIMM(theCode) < 0)
break;
if (iRegInfos[RT(theCode)].classPtr) // if it's a class
{
iNumLocalSelves++;
iLocalSelves = realloc(iLocalSelves,
iNumLocalSelves * sizeof(Var64Info));
iLocalSelves[iNumLocalSelves - 1] = (Var64Info)
{iRegInfos[RT(theCode)], UIMM(theCode)};
}
else
{
iNumLocalVars++;
iLocalVars = realloc(iLocalVars,
iNumLocalVars * sizeof(Var64Info));
iLocalVars[iNumLocalVars - 1] = (Var64Info)
{iRegInfos[RT(theCode)], UIMM(theCode)};
}
break;
/* case 0x21:
case 0x23:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
break;*/
case 0x3a: // ld
{
if (RA(theCode) == 0)
{
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
iRegInfos[RT(theCode)].value = DS(theCode);
iRegInfos[RT(theCode)].isValid = YES;
}
else if (iRegInfos[RA(theCode)].className != NULL && DS(theCode) == 0)
{
iRegInfos[RT(theCode)] = iRegInfos[RA(theCode)];
}
else if (iRegInfos[RA(theCode)].isValid)
{
iRegInfos[RT(theCode)].classPtr = NULL;
iRegInfos[RT(theCode)].className = NULL;
iRegInfos[RT(theCode)].messageRefSel = NULL;
UInt64 newValue = iRegInfos[RA(theCode)].value + DS(theCode);
iRegInfos[RT(theCode)].value = newValue;
iRegInfos[RT(theCode)].isValid = YES;
UInt8 type;
char* ref = [self getPointer:newValue type:&type];
if (type == OCClassRefType || type == OCSuperRefType)
iRegInfos[RT(theCode)].className = ref;
}
else if (RA(theCode) == 1 && DS(theCode) >= 0)
{
BOOL found = NO;
uint32_t i;
// Check for copied self pointer. This happens mostly in "init"
// methods, as in: "self = [super init]"
if (iLocalSelves) // self was copied to a local variable
{
// If we're accessing a local var copy of self,
// copy that info back to the reg in question.
for (i = 0; i < iNumLocalSelves; i++)
{
if (iLocalSelves[i].offset != UIMM(theCode))
continue;
iRegInfos[RT(theCode)] = iLocalSelves[i].regInfo;
found = YES;
break;
}
}
if (found)
break;
// Check for other local variables.
if (iLocalVars)
{
for (i = 0; i < iNumLocalVars; i++)
{
if (iLocalVars[i].offset != UIMM(theCode))
continue;
iRegInfos[RT(theCode)] = iLocalVars[i].regInfo;
found = YES;
break;
}
}
// We don't know what's being loaded, just zero the receiver.
if (found == NO)
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
}
else
iRegInfos[RT(theCode)] = (GP64RegisterInfo){0};
/* else if (iRegInfos[RA(theCode)].isValid)
{
UInt64 address = iRegInfos[RA(theCode)].value + DS(theCode);
UInt8 ptrType = PointerType;
char* sel = [self getPointer:address type:&ptrType];
if (sel != NULL && ptrType == OCMsgRefType)
iRegInfos[RT(theCode)].messageRefSel = sel;
else
iRegInfos[RT(theCode)].messageRefSel = NULL;
iRegInfos[RT(theCode)].classPtr = NULL;
iRegInfos[RT(theCode)].className = NULL;
iRegInfos[RT(theCode)].value = address;
iRegInfos[RT(theCode)].isValid = YES;
}*/
break;
}
case 0x3e: // std
if (!iRegInfos[RT(theCode)].isValid || RA(theCode) != 1 || DS(theCode) < 0)
break;
if (iRegInfos[RT(theCode)].classPtr) // if it's a class
{
iNumLocalSelves++;
iLocalSelves = realloc(iLocalSelves, iNumLocalSelves * sizeof(Var64Info));
iLocalSelves[iNumLocalSelves - 1] = (Var64Info){iRegInfos[RT(theCode)], (uint32_t)DS(theCode)};
}
else
{
iNumLocalVars++;
iLocalVars = realloc(iLocalVars, iNumLocalVars * sizeof(Var64Info));
iLocalVars[iNumLocalVars - 1] = (Var64Info) {iRegInfos[RT(theCode)], (uint32_t)DS(theCode)};
}
break;
default:
break;
}
}
// restoreRegisters:
// ----------------------------------------------------------------------------
- (BOOL)restoreRegisters: (Line64*)inLine
{
if (!inLine)
{
fprintf(stderr, "otx: [PPC64Processor restoreRegisters]: "
"tried to restore with NULL inLine\n");
return NO;
}
BOOL needNewLine = NO;
if (iCurrentFuncInfoIndex < 0)
return NO;
// Search current Function64Info for blocks that start at this address.
Function64Info* funcInfo =
&iFuncInfos[iCurrentFuncInfoIndex];
if (!funcInfo->blocks)
return NO;
uint32_t i;
for (i = 0; i < funcInfo->numBlocks; i++)
{
if (funcInfo->blocks[i].beginAddress !=
inLine->info.address)
continue;
// Update machine state.
Machine64State machState =
funcInfo->blocks[i].state;
memcpy(iRegInfos, machState.regInfos,
sizeof(GP64RegisterInfo) * 32);
iLR = machState.regInfos[LRIndex];
iCTR = machState.regInfos[CTRIndex];
if (machState.localSelves)
{
if (iLocalSelves)
free(iLocalSelves);
iNumLocalSelves = machState.numLocalSelves;
iLocalSelves = malloc(
sizeof(Var64Info) * iNumLocalSelves);
memcpy(iLocalSelves, machState.localSelves,
sizeof(Var64Info) * iNumLocalSelves);
}
if (machState.localVars)
{
if (iLocalVars)
free(iLocalVars);
iNumLocalVars = machState.numLocalVars;
iLocalVars = malloc(
sizeof(Var64Info) * iNumLocalVars);
memcpy(iLocalVars, machState.localVars,
sizeof(Var64Info) * iNumLocalVars);
}
// Optionally add a blank line before this block.
if (iOpts.separateLogicalBlocks && inLine->chars[0] != '\n' &&
!inLine->info.isFunction)
needNewLine = YES;
break;
} // for (i = 0...)
return needNewLine;
}
// lineIsFunction:
// ----------------------------------------------------------------------------
- (BOOL)lineIsFunction: (Line64*)inLine
{
if (!inLine)
return NO;
UInt64 theAddy = inLine->info.address;
if (theAddy == iAddrDyldStubBindingHelper ||
theAddy == iAddrDyldFuncLookupPointer)
return YES;
Method64Info* theDummyInfo = NULL;
// In Obj-C apps, the majority of funcs will have Obj-C symbols, so check
// those first.
if ([self findClassMethod:&theDummyInfo byAddress:theAddy])
return YES;
// if ([self findCatMethod:&theDummyInfo byAddress:theAddy])
// return YES;
// If it's not an Obj-C method, maybe there's an nlist.
if ([self findSymbolByAddress:theAddy])
return YES;
// If otool gave us a function name...
if (inLine->prev && !inLine->prev->info.isCode)
return YES;
BOOL isFunction = NO;
uint32_t theCode = *(uint32_t*)inLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if ((theCode & 0xfc1fffff) == 0x7c0802a6) // mflr to any reg
{ // Allow for late mflr
BOOL foundUB = NO;
Line64* thePrevLine = inLine->prev;
// Walk back to the most recent unconditional branch, looking
// for existing symbols.
while (!foundUB && thePrevLine)
{
// Allow for multiple mflr's
if (thePrevLine->info.isFunction)
return NO;
theCode = *(uint32_t*)thePrevLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if ((theCode & 0xfc0007ff) == 0x7c000008) // trap
{
foundUB = YES;
continue;
}
UInt8 opcode = PO(theCode);
if (opcode == 16 || opcode == 18 || opcode == 19)
// bc, bca, bcl, bcla, b, ba, bl, bla, bclr, bclrl and more
{
if (!IS_BRANCH_CONDITIONAL(theCode) &&
theCode != 0x429f0005 && // bcl w/ "always branch"
(theCode & 0x48000001) != 0x48000001) // bl
foundUB = YES;
}
if (!foundUB)
thePrevLine = thePrevLine->prev;
}
if (!thePrevLine)
return YES;
thePrevLine = thePrevLine->next;
// If the code line following the most recent unconditional
// branch is not already recognized, flag it now.
if (thePrevLine == inLine)
isFunction = YES;
else
{
BOOL foundStart = NO;
for (; thePrevLine != inLine;
thePrevLine = thePrevLine->next)
{
if (!thePrevLine->info.isCode)
continue; // not code, keep looking
else if (!thePrevLine->info.isFunction)
{ // not yet recognized, try it
theCode = *(uint32_t*)thePrevLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (theCode == 0x7fe00008 || // ignore traps
theCode == 0x60000000 || // ignore nops
theCode == 0x00000000) // ignore .longs
continue;
else
{
thePrevLine->info.isFunction = YES;
foundStart = YES;
break;
}
}
else // already recognized, bail
{
foundStart = YES;
break;
}
}
if (!foundStart)
isFunction = YES;
}
} // if (theCode == 0x7c0802a6)
return isFunction;
}
// codeIsBlockJump:
// ----------------------------------------------------------------------------
- (BOOL)codeIsBlockJump: (UInt8*)inCode
{
uint32_t theCode = *(uint32_t*)inCode;
theCode = OSSwapBigToHostInt32(theCode);
return IS_BLOCK_BRANCH(theCode);
}
// gatherFuncInfos
// ----------------------------------------------------------------------------
- (void)gatherFuncInfos
{
Line64* theLine = iPlainLineListHead;
uint32_t theCode;
uint32_t progCounter = 0;
// Loop thru lines.
while (theLine)
{
if (!(progCounter % (PROGRESS_FREQ * 5)))
{
if (gCancel == YES)
return;
// [NSThread sleepForTimeInterval: 0.0];
}
if (!theLine->info.isCode)
{
theLine = theLine->next;
continue;
}
theCode = *(uint32_t*)theLine->info.code;
theCode = OSSwapBigToHostInt32(theCode);
if (theLine->info.isFunction)
{
iCurrentFuncPtr = theLine->info.address;
[self resetRegisters:theLine];
}
else
[self restoreRegisters:theLine];
[self updateRegisters:theLine];
// Check if we need to save the machine state.
if (IS_BLOCK_BRANCH(theCode) && iCurrentFuncInfoIndex >= 0 &&
PO(theCode) != 0x13) // no new blocks for blr, bctr
{
UInt64 branchTarget = 0;
// Retrieve the branch target.
if (PO(theCode) == 0x12) // b
branchTarget = theLine->info.address + LI(theCode);
else if (PO(theCode) == 0x10) // bc
branchTarget = theLine->info.address + BD(theCode);
// Retrieve current Function64Info.
Function64Info* funcInfo =
&iFuncInfos[iCurrentFuncInfoIndex];
// 'currentBlock' will point to either an existing block which
// we will update, or a newly allocated block.
Block64Info* currentBlock = NULL;
Line64* endLine = NULL;
BOOL isEpilog = NO;
uint32_t i;
if (funcInfo->blocks)
{ // Blocks exist, find 1st one matching this address.
// This is an exhaustive search, but the speed hit should
// only be an issue with extremely long functions.
for (i = 0; i < funcInfo->numBlocks; i++)
{
if (funcInfo->blocks[i].beginAddress == branchTarget)
{
currentBlock = &funcInfo->blocks[i];
break;
}
}
if (currentBlock)
{ // Determine if the target block is an epilog.
if (currentBlock->endLine == NULL &&
iOpts.returnStatements)
{
// Find the first line of the target block.
Line64 searchKey = {NULL, 0, NULL, NULL, NULL, {branchTarget, {0}, YES, NO}};
Line64* searchKeyPtr = &searchKey;
Line64** beginLine = bsearch(&searchKeyPtr, iLineArray, iNumCodeLines, sizeof(Line64*),
(COMPARISON_FUNC_TYPE)Line_Address_Compare);
if (beginLine != NULL)
{
// Walk through the block. It's an epilog if it ends
// with 'blr'.
Line64* nextLine = *beginLine;
uint32_t tempCode;
while (nextLine)
{
tempCode = *(uint32_t*)nextLine->info.code;
tempCode = OSSwapBigToHostInt32(tempCode);
if (IS_BLOCK_BRANCH(tempCode))
{
endLine = nextLine;
if (IS_BLR(tempCode))
isEpilog = YES;
break;
}
nextLine = nextLine->next;
}
}
// currentBlock->endLine = endLine;
}
}
else
{ // No matching blocks found, so allocate a new one.
funcInfo->numBlocks++;
funcInfo->blocks = realloc(funcInfo->blocks,
sizeof(Block64Info) * funcInfo->numBlocks);
currentBlock =
&funcInfo->blocks[funcInfo->numBlocks - 1];
*currentBlock = (Block64Info){0};
}
}
else
{ // No existing blocks, allocate one.
funcInfo->numBlocks++;
funcInfo->blocks = calloc(1, sizeof(Block64Info));
currentBlock = funcInfo->blocks;
}
// sanity check
if (!currentBlock)
{
fprintf(stderr, "otx: [PPC64Processor gatherFuncInfos] "
"currentBlock is NULL. Flame the dev.\n");
return;
}
// Create a new Machine64State.
GP64RegisterInfo* savedRegs = malloc(
sizeof(GP64RegisterInfo) * 34);
memcpy(savedRegs, iRegInfos, sizeof(GP64RegisterInfo) * 32);
savedRegs[LRIndex] = iLR;
savedRegs[CTRIndex] = iCTR;
Var64Info* savedSelves = NULL;
if (iLocalSelves)
{
savedSelves = malloc(
sizeof(Var64Info) * iNumLocalSelves);
memcpy(savedSelves, iLocalSelves,
sizeof(Var64Info) * iNumLocalSelves);
}
Var64Info* savedVars = NULL;
if (iLocalVars)
{
savedVars = malloc(
sizeof(Var64Info) * iNumLocalVars);
memcpy(savedVars, iLocalVars,
sizeof(Var64Info) * iNumLocalVars);
}
Machine64State machState =
{savedRegs, savedSelves, iNumLocalSelves,
savedVars, iNumLocalVars};
// Store the new Block64Info.
Block64Info blockInfo =
{branchTarget, endLine, isEpilog, machState};
memcpy(currentBlock, &blockInfo, sizeof(Block64Info));
}
theLine = theLine->next;
progCounter++;
}
iCurrentFuncInfoIndex = -1;
}
#ifdef OTX_DEBUG
// printBlocks:
// ----------------------------------------------------------------------------
- (void)printBlocks: (uint32_t)inFuncIndex;
{
if (!iFuncInfos)
return;
Function64Info* funcInfo = &iFuncInfos[inFuncIndex];
if (!funcInfo || !funcInfo->blocks)
return;
uint32_t i, j;
fprintf(stderr, "\nfunction at 0x%llx:\n\n", funcInfo->address);
fprintf(stderr, "%d blocks\n", funcInfo->numBlocks);
for (i = 0; i < funcInfo->numBlocks; i++)
{
fprintf(stderr, "\nblock %d at 0x%llx:\n\n", i + 1,
funcInfo->blocks[i].beginAddress);
for (j = 0; j < 32; j++)
{
if (!funcInfo->blocks[i].state.regInfos[j].isValid)
continue;
fprintf(stderr, "\t\tr%d: 0x%llx\n", j,
funcInfo->blocks[i].state.regInfos[j].value);
}
}
}
#endif // OTX_DEBUG
@end
|
github
|
amcorrigan/IA-Lab-master
|
choosePlanes.m
|
.m
|
IA-Lab-master/GUI/choosePlanes.m
| 1,713 |
utf_8
|
8b73f8946c63776dba8f7342c186874b
|
function zvalues = choosePlanes(IL,initSelection,parenth)
% choose selected z planes for modifying the import file.
zidx = find(strcmpi('zslice',IL.ChoiceStruct.Labels),1,'first');
origzvalues = IL.ChoiceStruct.Choices{zidx};
if nargin<3 || isempty(parenth)
parenth = gfigure();
end
set(parenth,'closerequestfcn',@figclosefun)
vbox = uix.VBox('parent',parenth,'padding',20);
uicontrol('parent',vbox,'style','text','String','Select planes:');
lbox = uicontrol('parent',vbox,'style','listbox','Max',100,'min',0,...
'string',arrayfun(@num2str,origzvalues,'uni',false),'value',[]);
if nargin>1 && ~isempty(initSelection)
selinds = any(bsxfun(@eq,origzvalues(:),initSelection(:)'),2);
set(lbox,'value',origzvalues(selinds))
end
temphbox = uix.HBox('parent',vbox);
uicontrol('parent',temphbox,'style','pushbutton','String','Select all',...
'callback',{@selectallcallback,lbox});
uix.Empty('parent',temphbox);
uicontrol('parent',temphbox,'style','pushbutton','String','Finish',...
'callback',@(src,evt)close(parenth));
set(temphbox,'widths',[-1,-2,-2])
set(vbox,'heights',[-1,-5,-1]);
uiwait(parenth);
% get the selected wells, then delete the figure
zinds = get(lbox,'value');
zvalues = origzvalues(zinds);
delete(parenth)
end
function selectallcallback(src,evt,lbox)
numvals = numel(get(lbox,'String')); % need to check this works even in the event of one plane
set(lbox,'value',1:numvals)
end
function figclosefun(src,evt)
if isequal(get(src, 'waitstatus'), 'waiting')
% The GUI is still in UIWAIT, us UIRESUME
uiresume(src);
else
% The GUI is no longer waiting, just close it
delete(src);
end
end
|
github
|
amcorrigan/IA-Lab-master
|
chooseWells.m
|
.m
|
IA-Lab-master/GUI/chooseWells.m
| 1,183 |
utf_8
|
db96ecfe82d88de9511f61be6874106f
|
function wellrowcol = chooseWells(IL,initSelection,parenth)
% find out what choices are available
wellidx = find(strcmpi('well',IL.ChoiceStruct.Labels),1,'first');
[r,c] = wellstr2rowcol(IL.ChoiceStruct.Choices{wellidx});
data = NaN*zeros(IL.PlateDimensions([2,1]));
data(amcSub2Ind(size(data),[r,c])) = 1;
if nargin<3 || isempty(parenth)
parenth = gfigure();
end
set(parenth,'closerequestfcn',@figclosefun)
if nargin<2 || isempty(initSelection)
initSelection = zeros(size(data));
elseif size(initSelection,2)==2 && size(data,2)~=2
temp = initSelection;
initSelection = zeros(size(data));
initSelection(amcSub2Ind(size(data),temp)) = 1;
end
this.WellSelector = PlateShowSelect(data(:,:,[1,1,1]),parenth,initSelection);
uiwait(parenth);
% get the selected wells, then delete the figure
wellinds = this.WellSelector.Status==1;
wellrowcol = findn(wellinds);
delete(parenth)
end
function figclosefun(src,evt)
if isequal(get(src, 'waitstatus'), 'waiting')
% The GUI is still in UIWAIT, us UIRESUME
uiresume(src);
else
% The GUI is no longer waiting, just close it
delete(src);
end
end
|
github
|
amcorrigan/IA-Lab-master
|
getStringGUI.m
|
.m
|
IA-Lab-master/GUI/getStringGUI.m
| 1,184 |
utf_8
|
5fc2dd0f88ca0bf52baa4d95bb53748c
|
function str = getStringGUI(title, msg, varargin)
% get the user to enter a string
if nargin<2 || isempty(msg)
msg = 'Enter some text:';
end
if nargin<1 || isempty(title)
title = 'Get text';
end
fig = gfigure('Name',title,'closerequestfcn',@closereqfun,varargin{:});
vbox = uix.VBox('parent',fig);
texth = uicontrol('style','text','String',msg,'parent',vbox);
edith = uicontrol('style','edit','parent',vbox);
hbox = uix.HBox('parent',vbox);
uix.Empty('parent',hbox);
okbutton = uicontrol('style','pushbutton','String','OK','parent',hbox,...
'callback',{@OKcallback,fig});
set(hbox,'widths',[-4,-1])
set(vbox,'heights',[-2,-2,-1],'spacing',10,'padding',10)
uiwait(fig);
str = get(edith,'String');
delete(fig);
end
function OKcallback(src,evt,fig)
uiresume(fig);
end
function closereqfun(src,evt)
if isequal(get(src, 'waitstatus'), 'waiting')
% The GUI is still in UIWAIT, us UIRESUME
uiresume(src);
else
% The GUI is no longer waiting, just close it
delete(src);
end
end
|
github
|
amcorrigan/IA-Lab-master
|
chooseFields.m
|
.m
|
IA-Lab-master/GUI/chooseFields.m
| 1,820 |
utf_8
|
8cff1357e138e3aeb7e124e10002eb05
|
function fvalues = chooseFields(IL,initSelection,parenth)
% choose selected z planes for modifying the import file.
% This could be completely generalised, nothing field or z specific here
% apart from the choice of label
fidx = find(strcmpi('field',IL.ChoiceStruct.Labels),1,'first');
origfvalues = IL.ChoiceStruct.Choices{fidx};
if nargin<3 || isempty(parenth)
parenth = gfigure();
end
set(parenth,'closerequestfcn',@figclosefun)
vbox = uix.VBox('parent',parenth,'padding',20);
uicontrol('parent',vbox,'style','text','String','Select planes:');
lbox = uicontrol('parent',vbox,'style','listbox','Max',100,'min',0,...
'string',arrayfun(@num2str,origfvalues,'uni',false),'value',[]);
if nargin>1 && ~isempty(initSelection)
selinds = any(bsxfun(@eq,origfvalues(:),initSelection(:)'),2);
set(lbox,'value',origfvalues(selinds))
end
temphbox = uix.HBox('parent',vbox);
uicontrol('parent',temphbox,'style','pushbutton','String','Select all',...
'callback',{@selectallcallback,lbox});
uix.Empty('parent',temphbox);
uicontrol('parent',temphbox,'style','pushbutton','String','Finish',...
'callback',@(src,evt)close(parenth));
set(temphbox,'widths',[-1,-2,-2])
set(vbox,'heights',[-1,-5,-1]);
uiwait(parenth);
% get the selected wells, then delete the figure
finds = get(lbox,'value');
fvalues = origfvalues(finds);
delete(parenth)
end
function selectallcallback(src,evt,lbox)
numvals = numel(get(lbox,'String')); % need to check this works even in the event of one plane
set(lbox,'value',1:numvals)
end
function figclosefun(src,evt)
if isequal(get(src, 'waitstatus'), 'waiting')
% The GUI is still in UIWAIT, us UIRESUME
uiresume(src);
else
% The GUI is no longer waiting, just close it
delete(src);
end
end
|
github
|
amcorrigan/IA-Lab-master
|
prepareForExport.m
|
.m
|
IA-Lab-master/ExportClasses/prepareForExport.m
| 2,849 |
utf_8
|
b51365d0b86be053e25c4b1c4fc72590
|
function stats2 = prepareForExport(stats,include,exclude)
% prepare the statistics structure for export
%
% To export to a csv-type file, each of the fields should contain only
% scalars
% So go through the fields, and if there are non-scalars, replace the field
% with multiple fields, one for each element
fnames = fieldnames(stats);
if nargin<3
if nargin==2 && isstruct(include)
inames = fieldnames(include);
ind = find(strcmpi('exclude',inames),1,'first');
if ~isempty(ind)
exclude = include.(inames{ind});
else
exclude = false(numel(fnames),1);
end
ind = find(strcmpi('include',inames),1,'first');
if ~isempty(ind)
include = include.(inames{ind});
else
include = true(numel(fnames),1);
end
else
exclude = false(numel(fnames),1);
end
end
if nargin<2 || isempty(include)
include = true(numel(fnames),1);
end
if iscell(exclude)
exclude = cellfun(@(x)any(strcmpi(x,exclude)),fnames);
end
if iscell(include)
% cell array of field names supplied
% fstr = include;
include = cellfun(@(x)any(strcmpi(x,include)),fnames);
end
maxSize = zeros(numel(fnames),1);
% skip = false(numel(fnames),1);
skip = exclude(:) | ~include(:);
for ii = 1:numel(fnames)
fieldsize = arrayfun(@(x)numel(x.(fnames{ii})),stats);
maxSize(ii) = max(fieldsize);
maxInd = find(fieldsize==maxSize(ii),1,'first');
if iscell(stats(maxInd).(fnames{ii}))
% for a cell array, check that it's strings inside
if ~ischar(stats(maxInd).(fnames{ii}){1})
skip(ii) = true;
end
elseif ischar(stats(maxInd).(fnames{ii}))
maxSize(ii) = 1; % strings of any length can be accommodated
end
end
trivial = maxSize<=1 & ~skip;
nonTrivial = maxSize>1 & ~skip;
for ii = 1:numel(fnames)
if trivial(ii)
% this syntax is awful!
[stats2(1:numel(stats),1).(fnames{ii})] = stats.(fnames{ii});
elseif nonTrivial(ii)
fmt = ['%s_%0.', num2str(ceil(log10(maxSize(ii)))), 'd'];
for jj = 1:maxSize(ii)
newname = sprintf(fmt,fnames{ii},jj);
tempval = arrayfun(@(x)subarrayfcn(x,fnames{ii},jj),stats,'uni',false);
[stats2(1:numel(stats),1).(newname)] = tempval{:};
end
end
end
if ~exist('stats2','var')
stats2 = struct;
end
end
function val = subarrayfcn(x,fname,ind)
% this function is used by arrayfun above to extract the ind'th element of
% the field fname of the structure x, or NaN if that element doesn't exist
%
% ie
% x.(fname)(ind)
if numel(x.(fname))<ind
val = NaN;
else
val = x.(fname)(ind);
end
end
|
github
|
amcorrigan/IA-Lab-master
|
label2outline.m
|
.m
|
IA-Lab-master/Utilities/label2outline.m
| 3,037 |
utf_8
|
5ecb67916987dd5c80e4bee236a291db
|
function bordxy = label2outline(L,skip,interpfact)
% Currently the interpolation means that there is a bit of a discontinuity
% at the join, this needs tidying up by extending the range of the
% interpolation input
% no real logic behind choosing these factors, just whatever looks nice and
% retains the detail of the label matrix
if nargin<2 || isempty(skip)
skip = 6;
end
if nargin<3 || isempty(interpfact)
interpfact = 2*skip;
end
stats = labelBorder2D(L);
bordxy = cell(numel(stats),1);
for ii = 1:numel(stats)
borderskip = stats(ii).border([(1:skip:end-1),1],:); % make sure circular
if ~isnan(interpfact)
inds = (-1:(size(borderskip,1)+2))';
actinds = mod(inds-1,size(borderskip,1))+1;
bordxy{ii} = interp1(inds,borderskip(actinds,:),...
linspace(1,size(borderskip,1),interpfact*size(borderskip,1))','spline');
else
bordxy{ii} = borderskip;
end
end
end
function stats = labelBorder2D(L)
% return a structure which contains border information for the different
% regions in the label matrix L.
% Absolute means that the centroid isn't subtracted off
% this approach is predicated on having 2D separation. This means that 3D
% overlapping objects or objects without a boundary of zeros separating
% them will cause problems
bw = L>0;
[B,L2] = bwboundaries(bw,8,'noholes');
if max(L2(:))==max(L(:))
cumL = borderLength(B);
stats = regionprops(L2,L,'MeanIntensity');
for ii = 1:numel(stats)
% stats(ii).rawborder = B{ii};
stats(ii).cumL = cumL{ii};
stats(ii).border = B{ii};
end
% rearrange based on the mean region intensity, which should always match
% exactly with the region in the original matrix
ix = [stats.MeanIntensity];
% stats = stats(ix);
stats(ix) = stats;
stats = rmfield(stats,'MeanIntensity');
else
% no clear 2D boundary, so have to do one label at a time
% This also carries the assumption that each region is contiguous.
for ii = 1:max(L(:))
if nnz(L==ii)>0
B = bwboundaries(L==ii,8,'noholes');
if ~iscell(B)
B = {B}; % easier to do this way round..
end
cumL = borderLength(B);
tstats.cumL = cumL{1};
tstats.border = B{1};
stats(ii) = tstats;
else
tstats.cumL = NaN;
tstats.border = NaN;
stats(ii) = tstats;
end
end
end
end
function cumL = borderLength(B)
% return the cumulative length along the border pixels contained in B
if ~iscell(B)
B = {B};
end
cumL = cell(size(B));
for ii = 1:numel(B)
dd = diff(B{ii},1,1);
sL = sqrt(sum(dd.^2,2));% simple addition may be quicker than calling sum
% but MIGHT not alway be in 2D..
cumL{ii} = [0;cumsum(sL)];
end
end
|
github
|
amcorrigan/IA-Lab-master
|
expandCellIndices.m
|
.m
|
IA-Lab-master/Utilities/expandCellIndices.m
| 800 |
utf_8
|
88d51af88990f29b0c4028308028871a
|
function expandIdx = expandCellIndices(cellidx)
% expand the cell indices cellidx into a list of permutations
% use a recursive function?
expandIdx = recurseexpand(cellidx{1},cellidx(2:end));
end
function expandIdx = recurseexpand(currlist,remcellidx)
% for every element of currlist, combine with each element of the next cellidx
% and then call the next level down
try
if isempty(remcellidx)
expandIdx = currlist;
else
initlen = size(currlist,1);
nextlen = numel(remcellidx{1});
newidx = [currlist(ceil((1:(initlen*nextlen))/nextlen),:), repmat(remcellidx{1}(:),[initlen,1])];
expandIdx = recurseexpand(newidx,remcellidx(2:end));
end
catch ME
rethrow(ME)
end
end
|
github
|
amcorrigan/IA-Lab-master
|
matchLabels.m
|
.m
|
IA-Lab-master/Utilities/matchLabels.m
| 865 |
utf_8
|
c436f156ccd8f0e0b607f5edd2c4847b
|
function [Lnew,probvals] = matchLabels(L2,Lseed)
% adjust the values in L2 so that they match those in the seed region.
% Try not to assume that the seed region will be wholely contained within
% L2, but that there is overlap.
%
% also, optionally check for confusion in which region is which, and flag
% this up
L3 = L2;
L3(Lseed==0) = 0;
stats = regionprops(L3,'PixelIdxList');
idxlist = {stats.PixelIdxList}';
% need to remove zeros and then check that the variance is zero and find
% the mean value
% is this any quicker than doing in a loop??
[mu,vv] = cellfun(@(x)meanvarfunction(x,Lseed),idxlist);
probvals = find(vv>0);
mu(probvals) = 0;
mu = [0;mu(:)];
Lnew = mu(L2+1);
end
function [mu,vv] = meanvarfunction(idx,L2)
vals = L2(idx);
vals(vals==0) = [];
mu = mean(vals);
vv = mean(vals.^2) - mu.^2;
end
|
github
|
amcorrigan/IA-Lab-master
|
az_parseXML_ChannelColour_mes.m
|
.m
|
IA-Lab-master/Utilities/az_parseXML_ChannelColour_mes.m
| 3,396 |
utf_8
|
d6908fa960c4fea024cc188e7a861100
|
function o_struct = az_parseXML_ChannelColour_mes(i_fileName)
%
% i_fileName = '\\UK-Image-01\HCB\Technology Eval\Automated confocal\Yokogawa CV7000\CV7000 Demo Data\Corrected Images\Bead 96well_20140827_122725\AssayPlate_BD_#353219\JP_60x_beads_96w_4col.mes'
try
tree = xmlread(i_fileName);
catch
error('Failed to read XML file %s.',i_fileName);
end
% Recurse over child nodes. This could run into problems
% with very deeply nested trees.
try
xmlStruct = parseChildNodes(tree);
catch
error('Unable to parse XML file %s.',i_fileName);
end
%%____________________________________________________________
%%
counter = 0;
for i = 1:length(xmlStruct.Children)
if strcmp(xmlStruct.Children(i).Name, 'bts:ChannelList') == true
for j = 1:length(xmlStruct.Children(i).Children)
if strcmp(xmlStruct.Children(i).Children(j).Name, 'bts:Channel') == true
counter = counter + 1;
o_struct(counter).Ch = uint8(str2double(xmlStruct.Children(i).Children(j).Attributes.Ch));
o_struct(counter).Colour(1) = hex2dec(xmlStruct.Children(i).Children(j).Attributes.Color(4:5))/255;
o_struct(counter).Colour(2) = hex2dec(xmlStruct.Children(i).Children(j).Attributes.Color(6:7))/255;
o_struct(counter).Colour(3) = hex2dec(xmlStruct.Children(i).Children(j).Attributes.Color(8:9))/255;
end;
end;
break;
end;
end;
end
% ----- Local function PARSECHILDNODES -----
function children = parseChildNodes(theNode)
% Recurse over node children.
children = [];
if theNode.hasChildNodes
childNodes = theNode.getChildNodes;
numChildNodes = childNodes.getLength;
allocCell = cell(1, numChildNodes);
children = struct( ...
'Name', allocCell, ...
'Attributes', allocCell, ...
'Children', allocCell);
for count = 1:numChildNodes
theChild = childNodes.item(count-1);
children(count) = makeStructFromNode(theChild);
end
end
end
% ----- Local function MAKESTRUCTFROMNODE -----
function nodeStruct = makeStructFromNode(theNode)
% Create structure of node info.
nodeStruct = struct( ...
'Name', char(theNode.getNodeName), ...
'Attributes', parseAttributes(theNode), ...
'Children', parseChildNodes(theNode));
end
% ----- Local function PARSEATTRIBUTES -----
function attributes = parseAttributes(theNode)
% Create attributes structure.
attributes = [];
if theNode.hasAttributes
theAttributes = theNode.getAttributes;
numAttributes = theAttributes.getLength;
%-- Delete the leading 'dts:' if any
token = 'bts:';
for count = 1:numAttributes
attrib = theAttributes.item(count-1);
%-- Delete the leading 'dts:' if any
aName = char(attrib.getName);
[~,endIndex] = regexp(aName,token);
if ~isempty(endIndex)
tempName = aName(endIndex + 1 : end);
attributes.(tempName) = char(attrib.getValue);
end
end;
end
end
|
github
|
amcorrigan/IA-Lab-master
|
parseChildNodes.m
|
.m
|
IA-Lab-master/Utilities/parseChildNodes.m
| 1,742 |
utf_8
|
aa71c09fe13a05a2507661f5a965daa6
|
function children = parseChildNodes(theNode)
% Recurse over node children.
children = [];
if theNode.hasChildNodes
childNodes = theNode.getChildNodes;
numChildNodes = childNodes.getLength;
allocCell = cell(1, numChildNodes);
children = struct( ...
'Name', allocCell, ...
'Attributes', allocCell, ...
'Children', allocCell);
for count = 1:numChildNodes
theChild = childNodes.item(count-1);
children(count) = makeStructFromNode(theChild);
end
end
end
% ----- Local function MAKESTRUCTFROMNODE -----
function nodeStruct = makeStructFromNode(theNode)
% Create structure of node info.
nodeStruct = struct( ...
'Name', char(theNode.getNodeName), ...
'Attributes', parseAttributes(theNode), ...
'Children', parseChildNodes(theNode));
end
% ----- Local function PARSEATTRIBUTES -----
function attributes = parseAttributes(theNode)
% Create attributes structure.
attributes = [];
if theNode.hasAttributes
theAttributes = theNode.getAttributes;
numAttributes = theAttributes.getLength;
%-- Delete the leading 'dts:' if any
token = 'bts:';
for count = 1:numAttributes
attrib = theAttributes.item(count-1);
%-- Delete the leading 'dts:' if any
aName = char(attrib.getName);
[~,endIndex] = regexp(aName,token);
if ~isempty(endIndex)
tempName = aName(endIndex + 1 : end);
attributes.(tempName) = char(attrib.getValue);
end
end;
end
end
|
github
|
amcorrigan/IA-Lab-master
|
savejson.m
|
.m
|
IA-Lab-master/Utilities/jsonlab/savejson.m
| 19,584 |
utf_8
|
116395347173d949bf39b82ac3bdd794
|
function json=savejson(rootname,obj,varargin)
%
% json=savejson(rootname,obj,filename)
% or
% json=savejson(rootname,obj,opt)
% json=savejson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a JSON (JavaScript
% Object Notation) string
%
% author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2011/09/09
%
% $Id$
%
% input:
% rootname: the name of the root-object, when set to '', the root name
% is ignored, however, when opt.ForceRootName is set to 1 (see below),
% the MATLAB variable name will be used as the root name.
% obj: a MATLAB object (array, cell, cell array, struct, struct array,
% class instance).
% filename: a string for the file name to save the output JSON data.
% opt: a struct for additional options, ignore to use default values.
% opt can have the following fields (first in [.|.] is the default)
%
% opt.FileName [''|string]: a file name to save the output JSON data
% opt.FloatFormat ['%.10g'|string]: format to show each numeric element
% of a 1D/2D array;
% opt.ArrayIndent [1|0]: if 1, output explicit data array with
% precedent indentation; if 0, no indentation
% opt.ArrayToStruct[0|1]: when set to 0, savejson outputs 1D/2D
% array in JSON array format; if sets to 1, an
% array will be shown as a struct with fields
% "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for
% sparse arrays, the non-zero elements will be
% saved to _ArrayData_ field in triplet-format i.e.
% (ix,iy,val) and "_ArrayIsSparse_" will be added
% with a value of 1; for a complex array, the
% _ArrayData_ array will include two columns
% (4 for sparse) to record the real and imaginary
% parts, and also "_ArrayIsComplex_":1 is added.
% opt.ParseLogical [0|1]: if this is set to 1, logical array elem
% will use true/false rather than 1/0.
% opt.SingletArray [0|1]: if this is set to 1, arrays with a single
% numerical element will be shown without a square
% bracket, unless it is the root object; if 0, square
% brackets are forced for any numerical arrays.
% opt.SingletCell [1|0]: if 1, always enclose a cell with "[]"
% even it has only one element; if 0, brackets
% are ignored when a cell has only 1 element.
% opt.ForceRootName [0|1]: when set to 1 and rootname is empty, savejson
% will use the name of the passed obj variable as the
% root object name; if obj is an expression and
% does not have a name, 'root' will be used; if this
% is set to 0 and rootname is empty, the root level
% will be merged down to the lower level.
% opt.Inf ['"$1_Inf_"'|string]: a customized regular expression pattern
% to represent +/-Inf. The matched pattern is '([-+]*)Inf'
% and $1 represents the sign. For those who want to use
% 1e999 to represent Inf, they can set opt.Inf to '$11e999'
% opt.NaN ['"_NaN_"'|string]: a customized regular expression pattern
% to represent NaN
% opt.JSONP [''|string]: to generate a JSONP output (JSON with padding),
% for example, if opt.JSONP='foo', the JSON data is
% wrapped inside a function call as 'foo(...);'
% opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson
% back to the string form
% opt.SaveBinary [0|1]: 1 - save the JSON file in binary mode; 0 - text mode.
% opt.Compact [0|1]: 1- out compact JSON format (remove all newlines and tabs)
%
% opt can be replaced by a list of ('param',value) pairs. The param
% string is equivallent to a field in opt and is case sensitive.
% output:
% json: a string in the JSON format (see http://json.org)
%
% examples:
% jsonmesh=struct('MeshNode',[0 0 0;1 0 0;0 1 0;1 1 0;0 0 1;1 0 1;0 1 1;1 1 1],...
% 'MeshTetra',[1 2 4 8;1 3 4 8;1 2 6 8;1 5 6 8;1 5 7 8;1 3 7 8],...
% 'MeshTri',[1 2 4;1 2 6;1 3 4;1 3 7;1 5 6;1 5 7;...
% 2 8 4;2 8 6;3 8 4;3 8 7;5 8 6;5 8 7],...
% 'MeshCreator','FangQ','MeshTitle','T6 Cube',...
% 'SpecialData',[nan, inf, -inf]);
% savejson('jmesh',jsonmesh)
% savejson('',jsonmesh,'ArrayIndent',0,'FloatFormat','\t%.5g')
%
% license:
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details
%
% -- this function is part of JSONLab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab)
%
if(nargin==1)
varname=inputname(1);
obj=rootname;
if(isempty(varname))
varname='root';
end
rootname=varname;
else
varname=inputname(2);
end
if(length(varargin)==1 && ischar(varargin{1}))
opt=struct('filename',varargin{1});
else
opt=varargin2struct(varargin{:});
end
opt.IsOctave=exist('OCTAVE_VERSION','builtin');
if(isfield(opt,'norowbracket'))
warning('Option ''NoRowBracket'' is depreciated, please use ''SingletArray'' and set its value to not(NoRowBracket)');
if(~isfield(opt,'singletarray'))
opt.singletarray=not(opt.norowbracket);
end
end
rootisarray=0;
rootlevel=1;
forceroot=jsonopt('ForceRootName',0,opt);
if((isnumeric(obj) || islogical(obj) || ischar(obj) || isstruct(obj) || ...
iscell(obj) || isobject(obj)) && isempty(rootname) && forceroot==0)
rootisarray=1;
rootlevel=0;
else
if(isempty(rootname))
rootname=varname;
end
end
if((isstruct(obj) || iscell(obj))&& isempty(rootname) && forceroot)
rootname='root';
end
whitespaces=struct('tab',sprintf('\t'),'newline',sprintf('\n'),'sep',sprintf(',\n'));
if(jsonopt('Compact',0,opt)==1)
whitespaces=struct('tab','','newline','','sep',',');
end
if(~isfield(opt,'whitespaces_'))
opt.whitespaces_=whitespaces;
end
nl=whitespaces.newline;
json=obj2json(rootname,obj,rootlevel,opt);
if(rootisarray)
json=sprintf('%s%s',json,nl);
else
json=sprintf('{%s%s%s}\n',nl,json,nl);
end
jsonp=jsonopt('JSONP','',opt);
if(~isempty(jsonp))
json=sprintf('%s(%s);%s',jsonp,json,nl);
end
% save to a file if FileName is set, suggested by Patrick Rapin
filename=jsonopt('FileName','',opt);
if(~isempty(filename))
if(jsonopt('SaveBinary',0,opt)==1)
fid = fopen(filename, 'wb');
fwrite(fid,json);
else
fid = fopen(filename, 'wt');
fwrite(fid,json,'char');
end
fclose(fid);
end
%%-------------------------------------------------------------------------
function txt=obj2json(name,item,level,varargin)
if(iscell(item))
txt=cell2json(name,item,level,varargin{:});
elseif(isstruct(item))
txt=struct2json(name,item,level,varargin{:});
elseif(ischar(item))
txt=str2json(name,item,level,varargin{:});
elseif(isobject(item))
txt=matlabobject2json(name,item,level,varargin{:});
else
txt=mat2json(name,item,level,varargin{:});
end
%%-------------------------------------------------------------------------
function txt=cell2json(name,item,level,varargin)
txt={};
if(~iscell(item))
error('input is not a cell');
end
dim=size(item);
if(ndims(squeeze(item))>2) % for 3D or higher dimensions, flatten to 2D for now
item=reshape(item,dim(1),numel(item)/dim(1));
dim=size(item);
end
len=numel(item);
ws=jsonopt('whitespaces_',struct('tab',sprintf('\t'),'newline',sprintf('\n'),'sep',sprintf(',\n')),varargin{:});
padding0=repmat(ws.tab,1,level);
padding2=repmat(ws.tab,1,level+1);
nl=ws.newline;
bracketlevel=~jsonopt('singletcell',1,varargin{:});
if(len>bracketlevel)
if(~isempty(name))
txt={padding0, '"', checkname(name,varargin{:}),'": [', nl}; name='';
else
txt={padding0, '[', nl};
end
elseif(len==0)
if(~isempty(name))
txt={padding0, '"' checkname(name,varargin{:}) '": []'}; name='';
else
txt={padding0, '[]'};
end
end
for i=1:dim(1)
if(dim(1)>1)
txt(end+1:end+3)={padding2,'[',nl};
end
for j=1:dim(2)
txt{end+1}=obj2json(name,item{i,j},level+(dim(1)>1)+(len>bracketlevel),varargin{:});
if(j<dim(2))
txt(end+1:end+2)={',' nl};
end
end
if(dim(1)>1)
txt(end+1:end+3)={nl,padding2,']'};
end
if(i<dim(1))
txt(end+1:end+2)={',' nl};
end
%if(j==dim(2)) txt=sprintf('%s%s',txt,sprintf(',%s',nl)); end
end
if(len>bracketlevel)
txt(end+1:end+3)={nl,padding0,']'};
end
txt = sprintf('%s',txt{:});
%%-------------------------------------------------------------------------
function txt=struct2json(name,item,level,varargin)
txt={};
if(~isstruct(item))
error('input is not a struct');
end
dim=size(item);
if(ndims(squeeze(item))>2) % for 3D or higher dimensions, flatten to 2D for now
item=reshape(item,dim(1),numel(item)/dim(1));
dim=size(item);
end
len=numel(item);
forcearray= (len>1 || (jsonopt('SingletArray',0,varargin{:})==1 && level>0));
ws=struct('tab',sprintf('\t'),'newline',sprintf('\n'));
ws=jsonopt('whitespaces_',ws,varargin{:});
padding0=repmat(ws.tab,1,level);
padding2=repmat(ws.tab,1,level+1);
padding1=repmat(ws.tab,1,level+(dim(1)>1)+forcearray);
nl=ws.newline;
if(isempty(item))
if(~isempty(name))
txt={padding0, '"', checkname(name,varargin{:}),'": []'};
else
txt={padding0, '[]'};
end
txt = sprintf('%s',txt{:});
return;
end
if(~isempty(name))
if(forcearray)
txt={padding0, '"', checkname(name,varargin{:}),'": [', nl};
end
else
if(forcearray)
txt={padding0, '[', nl};
end
end
for j=1:dim(2)
if(dim(1)>1)
txt(end+1:end+3)={padding2,'[',nl};
end
for i=1:dim(1)
names = fieldnames(item(i,j));
if(~isempty(name) && len==1 && ~forcearray)
txt(end+1:end+5)={padding1, '"', checkname(name,varargin{:}),'": {', nl};
else
txt(end+1:end+3)={padding1, '{', nl};
end
if(~isempty(names))
for e=1:length(names)
txt{end+1}=obj2json(names{e},item(i,j).(names{e}),...
level+(dim(1)>1)+1+forcearray,varargin{:});
if(e<length(names))
txt{end+1}=',';
end
txt{end+1}=nl;
end
end
txt(end+1:end+2)={padding1,'}'};
if(i<dim(1))
txt(end+1:end+2)={',' nl};
end
end
if(dim(1)>1)
txt(end+1:end+3)={nl,padding2,']'};
end
if(j<dim(2))
txt(end+1:end+2)={',' nl};
end
end
if(forcearray)
txt(end+1:end+3)={nl,padding0,']'};
end
txt = sprintf('%s',txt{:});
%%-------------------------------------------------------------------------
function txt=str2json(name,item,level,varargin)
txt={};
if(~ischar(item))
error('input is not a string');
end
item=reshape(item, max(size(item),[1 0]));
len=size(item,1);
ws=struct('tab',sprintf('\t'),'newline',sprintf('\n'),'sep',sprintf(',\n'));
ws=jsonopt('whitespaces_',ws,varargin{:});
padding1=repmat(ws.tab,1,level);
padding0=repmat(ws.tab,1,level+1);
nl=ws.newline;
sep=ws.sep;
if(~isempty(name))
if(len>1)
txt={padding1, '"', checkname(name,varargin{:}),'": [', nl};
end
else
if(len>1)
txt={padding1, '[', nl};
end
end
for e=1:len
val=escapejsonstring(item(e,:));
if(len==1)
obj=['"' checkname(name,varargin{:}) '": ' '"',val,'"'];
if(isempty(name))
obj=['"',val,'"'];
end
txt(end+1:end+2)={padding1, obj};
else
txt(end+1:end+4)={padding0,'"',val,'"'};
end
if(e==len)
sep='';
end
txt{end+1}=sep;
end
if(len>1)
txt(end+1:end+3)={nl,padding1,']'};
end
txt = sprintf('%s',txt{:});
%%-------------------------------------------------------------------------
function txt=mat2json(name,item,level,varargin)
if(~isnumeric(item) && ~islogical(item))
error('input is not an array');
end
ws=struct('tab',sprintf('\t'),'newline',sprintf('\n'),'sep',sprintf(',\n'));
ws=jsonopt('whitespaces_',ws,varargin{:});
padding1=repmat(ws.tab,1,level);
padding0=repmat(ws.tab,1,level+1);
nl=ws.newline;
sep=ws.sep;
if(length(size(item))>2 || issparse(item) || ~isreal(item) || ...
(isempty(item) && any(size(item))) ||jsonopt('ArrayToStruct',0,varargin{:}))
if(isempty(name))
txt=sprintf('%s{%s%s"_ArrayType_": "%s",%s%s"_ArraySize_": %s,%s',...
padding1,nl,padding0,class(item),nl,padding0,regexprep(mat2str(size(item)),'\s+',','),nl);
else
txt=sprintf('%s"%s": {%s%s"_ArrayType_": "%s",%s%s"_ArraySize_": %s,%s',...
padding1,checkname(name,varargin{:}),nl,padding0,class(item),nl,padding0,regexprep(mat2str(size(item)),'\s+',','),nl);
end
else
if(numel(item)==1 && jsonopt('SingletArray',0,varargin{:})==0 && level>0)
numtxt=regexprep(regexprep(matdata2json(item,level+1,varargin{:}),'^\[',''),']','');
else
numtxt=matdata2json(item,level+1,varargin{:});
end
if(isempty(name))
txt=sprintf('%s%s',padding1,numtxt);
else
if(numel(item)==1 && jsonopt('SingletArray',0,varargin{:})==0)
txt=sprintf('%s"%s": %s',padding1,checkname(name,varargin{:}),numtxt);
else
txt=sprintf('%s"%s": %s',padding1,checkname(name,varargin{:}),numtxt);
end
end
return;
end
dataformat='%s%s%s%s%s';
if(issparse(item))
[ix,iy]=find(item);
data=full(item(find(item)));
if(~isreal(item))
data=[real(data(:)),imag(data(:))];
if(size(item,1)==1)
% Kludge to have data's 'transposedness' match item's.
% (Necessary for complex row vector handling below.)
data=data';
end
txt=sprintf(dataformat,txt,padding0,'"_ArrayIsComplex_": ','1', sep);
end
txt=sprintf(dataformat,txt,padding0,'"_ArrayIsSparse_": ','1', sep);
if(size(item,1)==1)
% Row vector, store only column indices.
txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',...
matdata2json([iy(:),data'],level+2,varargin{:}), nl);
elseif(size(item,2)==1)
% Column vector, store only row indices.
txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',...
matdata2json([ix,data],level+2,varargin{:}), nl);
else
% General case, store row and column indices.
txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',...
matdata2json([ix,iy,data],level+2,varargin{:}), nl);
end
else
if(isreal(item))
txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',...
matdata2json(item(:)',level+2,varargin{:}), nl);
else
txt=sprintf(dataformat,txt,padding0,'"_ArrayIsComplex_": ','1', sep);
txt=sprintf(dataformat,txt,padding0,'"_ArrayData_": ',...
matdata2json([real(item(:)) imag(item(:))],level+2,varargin{:}), nl);
end
end
txt=sprintf('%s%s%s',txt,padding1,'}');
%%-------------------------------------------------------------------------
function txt=matlabobject2json(name,item,level,varargin)
if numel(item) == 0 %empty object
st = struct();
else
% "st = struct(item);" would produce an inmutable warning, because it
% make the protected and private properties visible. Instead we get the
% visible properties
propertynames = properties(item);
for p = 1:numel(propertynames)
for o = numel(item):-1:1 % aray of objects
st(o).(propertynames{p}) = item(o).(propertynames{p});
end
end
end
txt=struct2json(name,st,level,varargin{:});
%%-------------------------------------------------------------------------
function txt=matdata2json(mat,level,varargin)
ws=struct('tab',sprintf('\t'),'newline',sprintf('\n'),'sep',sprintf(',\n'));
ws=jsonopt('whitespaces_',ws,varargin{:});
tab=ws.tab;
nl=ws.newline;
if(size(mat,1)==1)
pre='';
post='';
level=level-1;
else
pre=sprintf('[%s',nl);
post=sprintf('%s%s]',nl,repmat(tab,1,level-1));
end
if(isempty(mat))
txt='null';
return;
end
floatformat=jsonopt('FloatFormat','%.10g',varargin{:});
%if(numel(mat)>1)
formatstr=['[' repmat([floatformat ','],1,size(mat,2)-1) [floatformat sprintf('],%s',nl)]];
%else
% formatstr=[repmat([floatformat ','],1,size(mat,2)-1) [floatformat sprintf(',\n')]];
%end
if(nargin>=2 && size(mat,1)>1 && jsonopt('ArrayIndent',1,varargin{:})==1)
formatstr=[repmat(tab,1,level) formatstr];
end
txt=sprintf(formatstr,mat');
txt(end-length(nl):end)=[];
if(islogical(mat) && jsonopt('ParseLogical',0,varargin{:})==1)
txt=regexprep(txt,'1','true');
txt=regexprep(txt,'0','false');
end
%txt=regexprep(mat2str(mat),'\s+',',');
%txt=regexprep(txt,';',sprintf('],\n['));
% if(nargin>=2 && size(mat,1)>1)
% txt=regexprep(txt,'\[',[repmat(sprintf('\t'),1,level) '[']);
% end
txt=[pre txt post];
if(any(isinf(mat(:))))
txt=regexprep(txt,'([-+]*)Inf',jsonopt('Inf','"$1_Inf_"',varargin{:}));
end
if(any(isnan(mat(:))))
txt=regexprep(txt,'NaN',jsonopt('NaN','"_NaN_"',varargin{:}));
end
%%-------------------------------------------------------------------------
function newname=checkname(name,varargin)
isunpack=jsonopt('UnpackHex',1,varargin{:});
newname=name;
if(isempty(regexp(name,'0x([0-9a-fA-F]+)_','once')))
return
end
if(isunpack)
isoct=jsonopt('IsOctave',0,varargin{:});
if(~isoct)
newname=regexprep(name,'(^x|_){1}0x([0-9a-fA-F]+)_','${native2unicode(hex2dec($2))}');
else
pos=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','start');
pend=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','end');
if(isempty(pos))
return;
end
str0=name;
pos0=[0 pend(:)' length(name)];
newname='';
for i=1:length(pos)
newname=[newname str0(pos0(i)+1:pos(i)-1) char(hex2dec(str0(pos(i)+3:pend(i)-1)))];
end
if(pos(end)~=length(name))
newname=[newname str0(pos0(end-1)+1:pos0(end))];
end
end
end
%%-------------------------------------------------------------------------
function newstr=escapejsonstring(str)
newstr=str;
isoct=exist('OCTAVE_VERSION','builtin');
if(isoct)
vv=sscanf(OCTAVE_VERSION,'%f');
if(vv(1)>=3.8)
isoct=0;
end
end
if(isoct)
escapechars={'\\','\"','\/','\a','\f','\n','\r','\t','\v'};
for i=1:length(escapechars);
newstr=regexprep(newstr,escapechars{i},escapechars{i});
end
newstr=regexprep(newstr,'\\\\(u[0-9a-fA-F]{4}[^0-9a-fA-F]*)','\$1');
else
escapechars={'\\','\"','\/','\a','\b','\f','\n','\r','\t','\v'};
for i=1:length(escapechars);
newstr=regexprep(newstr,escapechars{i},regexprep(escapechars{i},'\\','\\\\'));
end
newstr=regexprep(newstr,'\\\\(u[0-9a-fA-F]{4}[^0-9a-fA-F]*)','\\$1');
end
|
github
|
amcorrigan/IA-Lab-master
|
loadjson.m
|
.m
|
IA-Lab-master/Utilities/jsonlab/loadjson.m
| 16,843 |
ibm852
|
76e78ae4dcbb1c593583aa12596c6608
|
function data = loadjson(fname,varargin)
%
% data=loadjson(fname,opt)
% or
% data=loadjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2011/09/09, including previous works from
%
% Nedialko Krouchev: http://www.mathworks.com/matlabcentral/fileexchange/25713
% created on 2009/11/02
% François Glineur: http://www.mathworks.com/matlabcentral/fileexchange/23393
% created on 2009/03/22
% Joel Feenstra:
% http://www.mathworks.com/matlabcentral/fileexchange/20565
% created on 2008/07/03
%
% $Id$
%
% input:
% fname: input file name, if fname contains "{}" or "[]", fname
% will be interpreted as a JSON string
% opt: a struct to store parsing options, opt can be replaced by
% a list of ('param',value) pairs - the param string is equivallent
% to a field in opt. opt can have the following
% fields (first in [.|.] is the default)
%
% opt.SimplifyCell [0|1]: if set to 1, loadjson will call cell2mat
% for each element of the JSON data, and group
% arrays based on the cell2mat rules.
% opt.FastArrayParser [1|0 or integer]: if set to 1, use a
% speed-optimized array parser when loading an
% array object. The fast array parser may
% collapse block arrays into a single large
% array similar to rules defined in cell2mat; 0 to
% use a legacy parser; if set to a larger-than-1
% value, this option will specify the minimum
% dimension to enable the fast array parser. For
% example, if the input is a 3D array, setting
% FastArrayParser to 1 will return a 3D array;
% setting to 2 will return a cell array of 2D
% arrays; setting to 3 will return to a 2D cell
% array of 1D vectors; setting to 4 will return a
% 3D cell array.
% opt.ShowProgress [0|1]: if set to 1, loadjson displays a progress bar.
%
% output:
% dat: a cell array, where {...} blocks are converted into cell arrays,
% and [...] are converted to arrays
%
% examples:
% dat=loadjson('{"obj":{"string":"value","array":[1,2,3]}}')
% dat=loadjson(['examples' filesep 'example1.json'])
% dat=loadjson(['examples' filesep 'example1.json'],'SimplifyCell',1)
%
% license:
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details
%
% -- this function is part of JSONLab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab)
%
global pos inStr len esc index_esc len_esc isoct arraytoken
if(regexp(fname,'^\s*(?:\[.*\])|(?:\{.*\})\s*$','once'))
string=fname;
elseif(exist(fname,'file'))
try
string = fileread(fname);
catch
try
string = urlread(['file://',fname]);
catch
string = urlread(['file://',fullfile(pwd,fname)]);
end
end
else
error('input file does not exist');
end
pos = 1; len = length(string); inStr = string;
isoct=exist('OCTAVE_VERSION','builtin');
arraytoken=find(inStr=='[' | inStr==']' | inStr=='"');
jstr=regexprep(inStr,'\\\\',' ');
escquote=regexp(jstr,'\\"');
arraytoken=sort([arraytoken escquote]);
% String delimiters and escape chars identified to improve speed:
esc = find(inStr=='"' | inStr=='\' ); % comparable to: regexp(inStr, '["\\]');
index_esc = 1; len_esc = length(esc);
opt=varargin2struct(varargin{:});
if(jsonopt('ShowProgress',0,opt)==1)
opt.progressbar_=waitbar(0,'loading ...');
end
jsoncount=1;
while pos <= len
switch(next_char)
case '{'
data{jsoncount} = parse_object(opt);
case '['
data{jsoncount} = parse_array(opt);
otherwise
error_pos('Outer level structure must be an object or an array');
end
jsoncount=jsoncount+1;
end % while
jsoncount=length(data);
if(jsoncount==1 && iscell(data))
data=data{1};
end
if(isfield(opt,'progressbar_'))
close(opt.progressbar_);
end
%%-------------------------------------------------------------------------
function object = parse_object(varargin)
parse_char('{');
object = [];
if next_char ~= '}'
while 1
str = parseStr(varargin{:});
if isempty(str)
error_pos('Name of value at position %d cannot be empty');
end
parse_char(':');
val = parse_value(varargin{:});
object.(valid_field(str))=val;
if next_char == '}'
break;
end
parse_char(',');
end
end
parse_char('}');
if(isstruct(object))
object=struct2jdata(object);
end
%%-------------------------------------------------------------------------
function object = parse_array(varargin) % JSON array is written in row-major order
global pos inStr isoct
parse_char('[');
object = cell(0, 1);
dim2=[];
arraydepth=jsonopt('JSONLAB_ArrayDepth_',1,varargin{:});
pbar=-1;
if(isfield(varargin{1},'progressbar_'))
pbar=varargin{1}.progressbar_;
end
if next_char ~= ']'
if(jsonopt('FastArrayParser',1,varargin{:})>=1 && arraydepth>=jsonopt('FastArrayParser',1,varargin{:}))
[endpos, e1l, e1r]=matching_bracket(inStr,pos);
arraystr=['[' inStr(pos:endpos)];
arraystr=regexprep(arraystr,'"_NaN_"','NaN');
arraystr=regexprep(arraystr,'"([-+]*)_Inf_"','$1Inf');
arraystr(arraystr==sprintf('\n'))=[];
arraystr(arraystr==sprintf('\r'))=[];
%arraystr=regexprep(arraystr,'\s*,',','); % this is slow,sometimes needed
if(~isempty(e1l) && ~isempty(e1r)) % the array is in 2D or higher D
astr=inStr((e1l+1):(e1r-1));
astr=regexprep(astr,'"_NaN_"','NaN');
astr=regexprep(astr,'"([-+]*)_Inf_"','$1Inf');
astr(astr==sprintf('\n'))=[];
astr(astr==sprintf('\r'))=[];
astr(astr==' ')='';
if(isempty(find(astr=='[', 1))) % array is 2D
dim2=length(sscanf(astr,'%f,',[1 inf]));
end
else % array is 1D
astr=arraystr(2:end-1);
astr(astr==' ')='';
[obj, count, errmsg, nextidx]=sscanf(astr,'%f,',[1,inf]);
if(nextidx>=length(astr)-1)
object=obj;
pos=endpos;
parse_char(']');
return;
end
end
try
if(~isempty(dim2))
astr=arraystr;
astr(astr=='[')='';
astr(astr==']')='';
astr(astr==' ')='';
[obj, count, errmsg, nextidx]=sscanf(astr,'%f,',inf);
if(nextidx>=length(astr)-1)
object=reshape(obj,dim2,numel(obj)/dim2)';
pos=endpos;
parse_char(']');
if(pbar>0)
waitbar(pos/length(inStr),pbar,'loading ...');
end
return;
end
end
arraystr=regexprep(arraystr,'\]\s*,','];');
catch
end
else
arraystr='[';
end
try
arraystr=regexprep(arraystr,'^\s*\[','{','once');
arraystr=regexprep(arraystr,'\]\s*$','}','once');
if(isoct && regexp(arraystr,'"','once'))
error('Octave eval can produce empty cells for JSON-like input');
end
object=eval(arraystr);
pos=endpos;
catch
while 1
newopt=varargin2struct(varargin{:},'JSONLAB_ArrayDepth_',arraydepth+1);
val = parse_value(newopt);
object{end+1} = val;
if next_char == ']'
break;
end
parse_char(',');
end
end
end
if(jsonopt('SimplifyCell',0,varargin{:})==1)
try
oldobj=object;
object=cell2mat(object')';
if(iscell(oldobj) && isstruct(object) && numel(object)>1 && jsonopt('SimplifyCellArray',1,varargin{:})==0)
object=oldobj;
elseif(size(object,1)>1 && ismatrix(object))
object=object';
end
catch
end
end
parse_char(']');
if(pbar>0)
waitbar(pos/length(inStr),pbar,'loading ...');
end
%%-------------------------------------------------------------------------
function parse_char(c)
global pos inStr len
pos=skip_whitespace(pos,inStr,len);
if pos > len || inStr(pos) ~= c
error_pos(sprintf('Expected %c at position %%d', c));
else
pos = pos + 1;
pos=skip_whitespace(pos,inStr,len);
end
%%-------------------------------------------------------------------------
function c = next_char
global pos inStr len
pos=skip_whitespace(pos,inStr,len);
if pos > len
c = [];
else
c = inStr(pos);
end
%%-------------------------------------------------------------------------
function newpos=skip_whitespace(pos,inStr,len)
newpos=pos;
while newpos <= len && isspace(inStr(newpos))
newpos = newpos + 1;
end
%%-------------------------------------------------------------------------
function str = parseStr(varargin)
global pos inStr len esc index_esc len_esc
% len, ns = length(inStr), keyboard
if inStr(pos) ~= '"'
error_pos('String starting with " expected at position %d');
else
pos = pos + 1;
end
str = '';
while pos <= len
while index_esc <= len_esc && esc(index_esc) < pos
index_esc = index_esc + 1;
end
if index_esc > len_esc
str = [str inStr(pos:len)];
pos = len + 1;
break;
else
str = [str inStr(pos:esc(index_esc)-1)];
pos = esc(index_esc);
end
nstr = length(str);
switch inStr(pos)
case '"'
pos = pos + 1;
if(~isempty(str))
if(strcmp(str,'_Inf_'))
str=Inf;
elseif(strcmp(str,'-_Inf_'))
str=-Inf;
elseif(strcmp(str,'_NaN_'))
str=NaN;
end
end
return;
case '\'
if pos+1 > len
error_pos('End of file reached right after escape character');
end
pos = pos + 1;
switch inStr(pos)
case {'"' '\' '/'}
str(nstr+1) = inStr(pos);
pos = pos + 1;
case {'b' 'f' 'n' 'r' 't'}
str(nstr+1) = sprintf(['\' inStr(pos)]);
pos = pos + 1;
case 'u'
if pos+4 > len
error_pos('End of file reached in escaped unicode character');
end
str(nstr+(1:6)) = inStr(pos-1:pos+4);
pos = pos + 5;
end
otherwise % should never happen
str(nstr+1) = inStr(pos);
keyboard;
pos = pos + 1;
end
end
error_pos('End of file while expecting end of inStr');
%%-------------------------------------------------------------------------
function num = parse_number(varargin)
global pos inStr isoct
currstr=inStr(pos:min(pos+30,end));
if(isoct~=0)
numstr=regexp(currstr,'^\s*-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+\-]?\d+)?','end');
[num] = sscanf(currstr, '%f', 1);
delta=numstr+1;
else
[num, one, err, delta] = sscanf(currstr, '%f', 1);
if ~isempty(err)
error_pos('Error reading number at position %d');
end
end
pos = pos + delta-1;
%%-------------------------------------------------------------------------
function val = parse_value(varargin)
global pos inStr len
if(isfield(varargin{1},'progressbar_'))
waitbar(pos/len,varargin{1}.progressbar_,'loading ...');
end
switch(inStr(pos))
case '"'
val = parseStr(varargin{:});
return;
case '['
val = parse_array(varargin{:});
return;
case '{'
val = parse_object(varargin{:});
return;
case {'-','0','1','2','3','4','5','6','7','8','9'}
val = parse_number(varargin{:});
return;
case 't'
if pos+3 <= len && strcmpi(inStr(pos:pos+3), 'true')
val = true;
pos = pos + 4;
return;
end
case 'f'
if pos+4 <= len && strcmpi(inStr(pos:pos+4), 'false')
val = false;
pos = pos + 5;
return;
end
case 'n'
if pos+3 <= len && strcmpi(inStr(pos:pos+3), 'null')
val = [];
pos = pos + 4;
return;
end
end
error_pos('Value expected at position %d');
%%-------------------------------------------------------------------------
function error_pos(msg)
global pos inStr len
poShow = max(min([pos-15 pos-1 pos pos+20],len),1);
if poShow(3) == poShow(2)
poShow(3:4) = poShow(2)+[0 -1]; % display nothing after
end
msg = [sprintf(msg, pos) ': ' ...
inStr(poShow(1):poShow(2)) '<error>' inStr(poShow(3):poShow(4)) ];
error( ['JSONparser:invalidFormat: ' msg] );
%%-------------------------------------------------------------------------
function str = valid_field(str)
global isoct
% From MATLAB doc: field names must begin with a letter, which may be
% followed by any combination of letters, digits, and underscores.
% Invalid characters will be converted to underscores, and the prefix
% "x0x[Hex code]_" will be added if the first character is not a letter.
pos=regexp(str,'^[^A-Za-z]','once');
if(~isempty(pos))
if(~isoct)
str=regexprep(str,'^([^A-Za-z])','x0x${sprintf(''%X'',unicode2native($1))}_','once');
else
str=sprintf('x0x%X_%s',char(str(1)),str(2:end));
end
end
if(isempty(regexp(str,'[^0-9A-Za-z_]', 'once' )))
return;
end
if(~isoct)
str=regexprep(str,'([^0-9A-Za-z_])','_0x${sprintf(''%X'',unicode2native($1))}_');
else
pos=regexp(str,'[^0-9A-Za-z_]');
if(isempty(pos))
return;
end
str0=str;
pos0=[0 pos(:)' length(str)];
str='';
for i=1:length(pos)
str=[str str0(pos0(i)+1:pos(i)-1) sprintf('_0x%X_',str0(pos(i)))];
end
if(pos(end)~=length(str))
str=[str str0(pos0(end-1)+1:pos0(end))];
end
end
%str(~isletter(str) & ~('0' <= str & str <= '9')) = '_';
%%-------------------------------------------------------------------------
function endpos = matching_quote(str,pos)
len=length(str);
while(pos<len)
if(str(pos)=='"')
if(~(pos>1 && str(pos-1)=='\'))
endpos=pos;
return;
end
end
pos=pos+1;
end
error('unmatched quotation mark');
%%-------------------------------------------------------------------------
function [endpos, e1l, e1r, maxlevel] = matching_bracket(str,pos)
global arraytoken
level=1;
maxlevel=level;
endpos=0;
bpos=arraytoken(arraytoken>=pos);
tokens=str(bpos);
len=length(tokens);
pos=1;
e1l=[];
e1r=[];
while(pos<=len)
c=tokens(pos);
if(c==']')
level=level-1;
if(isempty(e1r))
e1r=bpos(pos);
end
if(level==0)
endpos=bpos(pos);
return
end
end
if(c=='[')
if(isempty(e1l))
e1l=bpos(pos);
end
level=level+1;
maxlevel=max(maxlevel,level);
end
if(c=='"')
pos=matching_quote(tokens,pos+1);
end
pos=pos+1;
end
if(endpos==0)
error('unmatched "]"');
end
|
github
|
amcorrigan/IA-Lab-master
|
loadubjson.m
|
.m
|
IA-Lab-master/Utilities/jsonlab/loadubjson.m
| 13,774 |
utf_8
|
cf1ef9319b0f46d709ea706a0048f15d
|
function data = loadubjson(fname,varargin)
%
% data=loadubjson(fname,opt)
% or
% data=loadubjson(fname,'param1',value1,'param2',value2,...)
%
% parse a JSON (JavaScript Object Notation) file or string
%
% authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2013/08/01
%
% $Id$
%
% input:
% fname: input file name, if fname contains "{}" or "[]", fname
% will be interpreted as a UBJSON string
% opt: a struct to store parsing options, opt can be replaced by
% a list of ('param',value) pairs - the param string is equivallent
% to a field in opt. opt can have the following
% fields (first in [.|.] is the default)
%
% opt.SimplifyCell [0|1]: if set to 1, loadubjson will call cell2mat
% for each element of the JSON data, and group
% arrays based on the cell2mat rules.
% opt.IntEndian [B|L]: specify the endianness of the integer fields
% in the UBJSON input data. B - Big-Endian format for
% integers (as required in the UBJSON specification);
% L - input integer fields are in Little-Endian order.
% opt.NameIsString [0|1]: for UBJSON Specification Draft 8 or
% earlier versions (JSONLab 1.0 final or earlier),
% the "name" tag is treated as a string. To load
% these UBJSON data, you need to manually set this
% flag to 1.
%
% output:
% dat: a cell array, where {...} blocks are converted into cell arrays,
% and [...] are converted to arrays
%
% examples:
% obj=struct('string','value','array',[1 2 3]);
% ubjdata=saveubjson('obj',obj);
% dat=loadubjson(ubjdata)
% dat=loadubjson(['examples' filesep 'example1.ubj'])
% dat=loadubjson(['examples' filesep 'example1.ubj'],'SimplifyCell',1)
%
% license:
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details
%
% -- this function is part of JSONLab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab)
%
global pos inStr len esc index_esc len_esc isoct arraytoken fileendian systemendian
if(regexp(fname,'[\{\}\]\[]','once'))
string=fname;
elseif(exist(fname,'file'))
fid = fopen(fname,'rb');
string = fread(fid,inf,'uint8=>char')';
fclose(fid);
else
error('input file does not exist');
end
pos = 1; len = length(string); inStr = string;
isoct=exist('OCTAVE_VERSION','builtin');
arraytoken=find(inStr=='[' | inStr==']' | inStr=='"');
jstr=regexprep(inStr,'\\\\',' ');
escquote=regexp(jstr,'\\"');
arraytoken=sort([arraytoken escquote]);
% String delimiters and escape chars identified to improve speed:
esc = find(inStr=='"' | inStr=='\' ); % comparable to: regexp(inStr, '["\\]');
index_esc = 1; len_esc = length(esc);
opt=varargin2struct(varargin{:});
fileendian=upper(jsonopt('IntEndian','B',opt));
[os,maxelem,systemendian]=computer;
jsoncount=1;
while pos <= len
switch(next_char)
case '{'
data{jsoncount} = parse_object(opt);
case '['
data{jsoncount} = parse_array(opt);
otherwise
error_pos('Outer level structure must be an object or an array');
end
jsoncount=jsoncount+1;
end % while
jsoncount=length(data);
if(jsoncount==1 && iscell(data))
data=data{1};
end
%%-------------------------------------------------------------------------
function object = parse_object(varargin)
parse_char('{');
object = [];
type='';
count=-1;
if(next_char == '$')
type=inStr(pos+1); % TODO
pos=pos+2;
end
if(next_char == '#')
pos=pos+1;
count=double(parse_number());
end
if next_char ~= '}'
num=0;
while 1
if(jsonopt('NameIsString',0,varargin{:}))
str = parseStr(varargin{:});
else
str = parse_name(varargin{:});
end
if isempty(str)
error_pos('Name of value at position %d cannot be empty');
end
%parse_char(':');
val = parse_value(varargin{:});
num=num+1;
object.(valid_field(str))=val;
if next_char == '}' || (count>=0 && num>=count)
break;
end
%parse_char(',');
end
end
if(count==-1)
parse_char('}');
end
if(isstruct(object))
object=struct2jdata(object);
end
%%-------------------------------------------------------------------------
function [cid,len]=elem_info(type)
id=strfind('iUIlLdD',type);
dataclass={'int8','uint8','int16','int32','int64','single','double'};
bytelen=[1,1,2,4,8,4,8];
if(id>0)
cid=dataclass{id};
len=bytelen(id);
else
error_pos('unsupported type at position %d');
end
%%-------------------------------------------------------------------------
function [data, adv]=parse_block(type,count,varargin)
global pos inStr isoct fileendian systemendian
[cid,len]=elem_info(type);
datastr=inStr(pos:pos+len*count-1);
if(isoct)
newdata=int8(datastr);
else
newdata=uint8(datastr);
end
id=strfind('iUIlLdD',type);
if(id<=5 && fileendian~=systemendian)
newdata=swapbytes(typecast(newdata,cid));
end
data=typecast(newdata,cid);
adv=double(len*count);
%%-------------------------------------------------------------------------
function object = parse_array(varargin) % JSON array is written in row-major order
global pos inStr
parse_char('[');
object = cell(0, 1);
dim=[];
type='';
count=-1;
if(next_char == '$')
type=inStr(pos+1);
pos=pos+2;
end
if(next_char == '#')
pos=pos+1;
if(next_char=='[')
dim=parse_array(varargin{:});
count=prod(double(dim));
else
count=double(parse_number());
end
end
if(~isempty(type))
if(count>=0)
[object, adv]=parse_block(type,count,varargin{:});
if(~isempty(dim))
object=reshape(object,dim);
end
pos=pos+adv;
return;
else
endpos=matching_bracket(inStr,pos);
[cid,len]=elem_info(type);
count=(endpos-pos)/len;
[object, adv]=parse_block(type,count,varargin{:});
pos=pos+adv;
parse_char(']');
return;
end
end
if next_char ~= ']'
while 1
val = parse_value(varargin{:});
object{end+1} = val;
if next_char == ']'
break;
end
%parse_char(',');
end
end
if(jsonopt('SimplifyCell',0,varargin{:})==1)
try
oldobj=object;
object=cell2mat(object')';
if(iscell(oldobj) && isstruct(object) && numel(object)>1 && jsonopt('SimplifyCellArray',1,varargin{:})==0)
object=oldobj;
elseif(size(object,1)>1 && ismatrix(object))
object=object';
end
catch
end
end
if(count==-1)
parse_char(']');
end
%%-------------------------------------------------------------------------
function parse_char(c)
global pos inStr len
skip_whitespace;
if pos > len || inStr(pos) ~= c
error_pos(sprintf('Expected %c at position %%d', c));
else
pos = pos + 1;
skip_whitespace;
end
%%-------------------------------------------------------------------------
function c = next_char
global pos inStr len
skip_whitespace;
if pos > len
c = [];
else
c = inStr(pos);
end
%%-------------------------------------------------------------------------
function skip_whitespace
global pos inStr len
while pos <= len && isspace(inStr(pos))
pos = pos + 1;
end
%%-------------------------------------------------------------------------
function str = parse_name(varargin)
global pos inStr
bytelen=double(parse_number());
if(length(inStr)>=pos+bytelen-1)
str=inStr(pos:pos+bytelen-1);
pos=pos+bytelen;
else
error_pos('End of file while expecting end of name');
end
%%-------------------------------------------------------------------------
function str = parseStr(varargin)
global pos inStr
% len, ns = length(inStr), keyboard
type=inStr(pos);
if type ~= 'S' && type ~= 'C' && type ~= 'H'
error_pos('String starting with S expected at position %d');
else
pos = pos + 1;
end
if(type == 'C')
str=inStr(pos);
pos=pos+1;
return;
end
bytelen=double(parse_number());
if(length(inStr)>=pos+bytelen-1)
str=inStr(pos:pos+bytelen-1);
pos=pos+bytelen;
else
error_pos('End of file while expecting end of inStr');
end
%%-------------------------------------------------------------------------
function num = parse_number(varargin)
global pos inStr isoct fileendian systemendian
id=strfind('iUIlLdD',inStr(pos));
if(isempty(id))
error_pos('expecting a number at position %d');
end
type={'int8','uint8','int16','int32','int64','single','double'};
bytelen=[1,1,2,4,8,4,8];
datastr=inStr(pos+1:pos+bytelen(id));
if(isoct)
newdata=int8(datastr);
else
newdata=uint8(datastr);
end
if(id<=5 && fileendian~=systemendian)
newdata=swapbytes(typecast(newdata,type{id}));
end
num=typecast(newdata,type{id});
pos = pos + bytelen(id)+1;
%%-------------------------------------------------------------------------
function val = parse_value(varargin)
global pos inStr
switch(inStr(pos))
case {'S','C','H'}
val = parseStr(varargin{:});
return;
case '['
val = parse_array(varargin{:});
return;
case '{'
val = parse_object(varargin{:});
return;
case {'i','U','I','l','L','d','D'}
val = parse_number(varargin{:});
return;
case 'T'
val = true;
pos = pos + 1;
return;
case 'F'
val = false;
pos = pos + 1;
return;
case {'Z','N'}
val = [];
pos = pos + 1;
return;
end
error_pos('Value expected at position %d');
%%-------------------------------------------------------------------------
function error_pos(msg)
global pos inStr len
poShow = max(min([pos-15 pos-1 pos pos+20],len),1);
if poShow(3) == poShow(2)
poShow(3:4) = poShow(2)+[0 -1]; % display nothing after
end
msg = [sprintf(msg, pos) ': ' ...
inStr(poShow(1):poShow(2)) '<error>' inStr(poShow(3):poShow(4)) ];
error( ['JSONparser:invalidFormat: ' msg] );
%%-------------------------------------------------------------------------
function str = valid_field(str)
global isoct
% From MATLAB doc: field names must begin with a letter, which may be
% followed by any combination of letters, digits, and underscores.
% Invalid characters will be converted to underscores, and the prefix
% "x0x[Hex code]_" will be added if the first character is not a letter.
pos=regexp(str,'^[^A-Za-z]','once');
if(~isempty(pos))
if(~isoct)
str=regexprep(str,'^([^A-Za-z])','x0x${sprintf(''%X'',unicode2native($1))}_','once');
else
str=sprintf('x0x%X_%s',char(str(1)),str(2:end));
end
end
if(isempty(regexp(str,'[^0-9A-Za-z_]', 'once' )))
return;
end
if(~isoct)
str=regexprep(str,'([^0-9A-Za-z_])','_0x${sprintf(''%X'',unicode2native($1))}_');
else
pos=regexp(str,'[^0-9A-Za-z_]');
if(isempty(pos))
return;
end
str0=str;
pos0=[0 pos(:)' length(str)];
str='';
for i=1:length(pos)
str=[str str0(pos0(i)+1:pos(i)-1) sprintf('_0x%X_',str0(pos(i)))];
end
if(pos(end)~=length(str))
str=[str str0(pos0(end-1)+1:pos0(end))];
end
end
%str(~isletter(str) & ~('0' <= str & str <= '9')) = '_';
%%-------------------------------------------------------------------------
function endpos = matching_quote(str,pos)
len=length(str);
while(pos<len)
if(str(pos)=='"')
if(~(pos>1 && str(pos-1)=='\'))
endpos=pos;
return;
end
end
pos=pos+1;
end
error('unmatched quotation mark');
%%-------------------------------------------------------------------------
function [endpos, e1l, e1r, maxlevel] = matching_bracket(str,pos)
global arraytoken
level=1;
maxlevel=level;
endpos=0;
bpos=arraytoken(arraytoken>=pos);
tokens=str(bpos);
len=length(tokens);
pos=1;
e1l=[];
e1r=[];
while(pos<=len)
c=tokens(pos);
if(c==']')
level=level-1;
if(isempty(e1r))
e1r=bpos(pos);
end
if(level==0)
endpos=bpos(pos);
return
end
end
if(c=='[')
if(isempty(e1l))
e1l=bpos(pos);
end
level=level+1;
maxlevel=max(maxlevel,level);
end
if(c=='"')
pos=matching_quote(tokens,pos+1);
end
pos=pos+1;
end
if(endpos==0)
error('unmatched "]"');
end
|
github
|
amcorrigan/IA-Lab-master
|
saveubjson.m
|
.m
|
IA-Lab-master/Utilities/jsonlab/saveubjson.m
| 18,302 |
utf_8
|
71eb65f95dee01aa2bf33ff80a5bf80d
|
function json=saveubjson(rootname,obj,varargin)
%
% json=saveubjson(rootname,obj,filename)
% or
% json=saveubjson(rootname,obj,opt)
% json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...)
%
% convert a MATLAB object (cell, struct or array) into a Universal
% Binary JSON (UBJSON) binary string
%
% author: Qianqian Fang (fangq<at> nmr.mgh.harvard.edu)
% created on 2013/08/17
%
% $Id$
%
% input:
% rootname: the name of the root-object, when set to '', the root name
% is ignored, however, when opt.ForceRootName is set to 1 (see below),
% the MATLAB variable name will be used as the root name.
% obj: a MATLAB object (array, cell, cell array, struct, struct array,
% class instance)
% filename: a string for the file name to save the output UBJSON data
% opt: a struct for additional options, ignore to use default values.
% opt can have the following fields (first in [.|.] is the default)
%
% opt.FileName [''|string]: a file name to save the output JSON data
% opt.ArrayToStruct[0|1]: when set to 0, saveubjson outputs 1D/2D
% array in JSON array format; if sets to 1, an
% array will be shown as a struct with fields
% "_ArrayType_", "_ArraySize_" and "_ArrayData_"; for
% sparse arrays, the non-zero elements will be
% saved to _ArrayData_ field in triplet-format i.e.
% (ix,iy,val) and "_ArrayIsSparse_" will be added
% with a value of 1; for a complex array, the
% _ArrayData_ array will include two columns
% (4 for sparse) to record the real and imaginary
% parts, and also "_ArrayIsComplex_":1 is added.
% opt.ParseLogical [1|0]: if this is set to 1, logical array elem
% will use true/false rather than 1/0.
% opt.SingletArray [0|1]: if this is set to 1, arrays with a single
% numerical element will be shown without a square
% bracket, unless it is the root object; if 0, square
% brackets are forced for any numerical arrays.
% opt.SingletCell [1|0]: if 1, always enclose a cell with "[]"
% even it has only one element; if 0, brackets
% are ignored when a cell has only 1 element.
% opt.ForceRootName [0|1]: when set to 1 and rootname is empty, saveubjson
% will use the name of the passed obj variable as the
% root object name; if obj is an expression and
% does not have a name, 'root' will be used; if this
% is set to 0 and rootname is empty, the root level
% will be merged down to the lower level.
% opt.JSONP [''|string]: to generate a JSONP output (JSON with padding),
% for example, if opt.JSON='foo', the JSON data is
% wrapped inside a function call as 'foo(...);'
% opt.UnpackHex [1|0]: conver the 0x[hex code] output by loadjson
% back to the string form
%
% opt can be replaced by a list of ('param',value) pairs. The param
% string is equivallent to a field in opt and is case sensitive.
% output:
% json: a binary string in the UBJSON format (see http://ubjson.org)
%
% examples:
% jsonmesh=struct('MeshNode',[0 0 0;1 0 0;0 1 0;1 1 0;0 0 1;1 0 1;0 1 1;1 1 1],...
% 'MeshTetra',[1 2 4 8;1 3 4 8;1 2 6 8;1 5 6 8;1 5 7 8;1 3 7 8],...
% 'MeshTri',[1 2 4;1 2 6;1 3 4;1 3 7;1 5 6;1 5 7;...
% 2 8 4;2 8 6;3 8 4;3 8 7;5 8 6;5 8 7],...
% 'MeshCreator','FangQ','MeshTitle','T6 Cube',...
% 'SpecialData',[nan, inf, -inf]);
% saveubjson('jsonmesh',jsonmesh)
% saveubjson('jsonmesh',jsonmesh,'meshdata.ubj')
%
% license:
% BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details
%
% -- this function is part of JSONLab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab)
%
if(nargin==1)
varname=inputname(1);
obj=rootname;
if(isempty(varname))
varname='root';
end
rootname=varname;
else
varname=inputname(2);
end
if(length(varargin)==1 && ischar(varargin{1}))
opt=struct('filename',varargin{1});
else
opt=varargin2struct(varargin{:});
end
opt.IsOctave=exist('OCTAVE_VERSION','builtin');
if(isfield(opt,'norowbracket'))
warning('Option ''NoRowBracket'' is depreciated, please use ''SingletArray'' and set its value to not(NoRowBracket)');
if(~isfield(opt,'singletarray'))
opt.singletarray=not(opt.norowbracket);
end
end
rootisarray=0;
rootlevel=1;
forceroot=jsonopt('ForceRootName',0,opt);
if((isnumeric(obj) || islogical(obj) || ischar(obj) || isstruct(obj) || ...
iscell(obj) || isobject(obj)) && isempty(rootname) && forceroot==0)
rootisarray=1;
rootlevel=0;
else
if(isempty(rootname))
rootname=varname;
end
end
if((isstruct(obj) || iscell(obj))&& isempty(rootname) && forceroot)
rootname='root';
end
json=obj2ubjson(rootname,obj,rootlevel,opt);
if(~rootisarray)
json=['{' json '}'];
end
jsonp=jsonopt('JSONP','',opt);
if(~isempty(jsonp))
json=[jsonp '(' json ')'];
end
% save to a file if FileName is set, suggested by Patrick Rapin
filename=jsonopt('FileName','',opt);
if(~isempty(filename))
fid = fopen(filename, 'wb');
fwrite(fid,json);
fclose(fid);
end
%%-------------------------------------------------------------------------
function txt=obj2ubjson(name,item,level,varargin)
if(iscell(item))
txt=cell2ubjson(name,item,level,varargin{:});
elseif(isstruct(item))
txt=struct2ubjson(name,item,level,varargin{:});
elseif(ischar(item))
txt=str2ubjson(name,item,level,varargin{:});
elseif(isobject(item))
txt=matlabobject2ubjson(name,item,level,varargin{:});
else
txt=mat2ubjson(name,item,level,varargin{:});
end
%%-------------------------------------------------------------------------
function txt=cell2ubjson(name,item,level,varargin)
txt='';
if(~iscell(item))
error('input is not a cell');
end
dim=size(item);
if(ndims(squeeze(item))>2) % for 3D or higher dimensions, flatten to 2D for now
item=reshape(item,dim(1),numel(item)/dim(1));
dim=size(item);
end
bracketlevel=~jsonopt('singletcell',1,varargin{:});
len=numel(item); % let's handle 1D cell first
if(len>bracketlevel)
if(~isempty(name))
txt=[N_(checkname(name,varargin{:})) '[']; name='';
else
txt='[';
end
elseif(len==0)
if(~isempty(name))
txt=[N_(checkname(name,varargin{:})) 'Z']; name='';
else
txt='Z';
end
end
for j=1:dim(2)
if(dim(1)>1)
txt=[txt '['];
end
for i=1:dim(1)
txt=[txt obj2ubjson(name,item{i,j},level+(len>bracketlevel),varargin{:})];
end
if(dim(1)>1)
txt=[txt ']'];
end
end
if(len>bracketlevel)
txt=[txt ']'];
end
%%-------------------------------------------------------------------------
function txt=struct2ubjson(name,item,level,varargin)
txt='';
if(~isstruct(item))
error('input is not a struct');
end
dim=size(item);
if(ndims(squeeze(item))>2) % for 3D or higher dimensions, flatten to 2D for now
item=reshape(item,dim(1),numel(item)/dim(1));
dim=size(item);
end
len=numel(item);
forcearray= (len>1 || (jsonopt('SingletArray',0,varargin{:})==1 && level>0));
if(~isempty(name))
if(forcearray)
txt=[N_(checkname(name,varargin{:})) '['];
end
else
if(forcearray)
txt='[';
end
end
for j=1:dim(2)
if(dim(1)>1)
txt=[txt '['];
end
for i=1:dim(1)
names = fieldnames(item(i,j));
if(~isempty(name) && len==1 && ~forcearray)
txt=[txt N_(checkname(name,varargin{:})) '{'];
else
txt=[txt '{'];
end
if(~isempty(names))
for e=1:length(names)
txt=[txt obj2ubjson(names{e},item(i,j).(names{e}),...
level+(dim(1)>1)+1+forcearray,varargin{:})];
end
end
txt=[txt '}'];
end
if(dim(1)>1)
txt=[txt ']'];
end
end
if(forcearray)
txt=[txt ']'];
end
%%-------------------------------------------------------------------------
function txt=str2ubjson(name,item,level,varargin)
txt='';
if(~ischar(item))
error('input is not a string');
end
item=reshape(item, max(size(item),[1 0]));
len=size(item,1);
if(~isempty(name))
if(len>1)
txt=[N_(checkname(name,varargin{:})) '['];
end
else
if(len>1)
txt='[';
end
end
for e=1:len
val=item(e,:);
if(len==1)
obj=[N_(checkname(name,varargin{:})) '' '',S_(val),''];
if(isempty(name))
obj=['',S_(val),''];
end
txt=[txt,'',obj];
else
txt=[txt,'',['',S_(val),'']];
end
end
if(len>1)
txt=[txt ']'];
end
%%-------------------------------------------------------------------------
function txt=mat2ubjson(name,item,level,varargin)
if(~isnumeric(item) && ~islogical(item))
error('input is not an array');
end
if(length(size(item))>2 || issparse(item) || ~isreal(item) || ...
(isempty(item) && any(size(item))) ||jsonopt('ArrayToStruct',0,varargin{:}))
cid=I_(uint32(max(size(item))));
if(isempty(name))
txt=['{' N_('_ArrayType_'),S_(class(item)),N_('_ArraySize_'),I_a(size(item),cid(1)) ];
else
if(isempty(item))
txt=[N_(checkname(name,varargin{:})),'Z'];
return;
else
txt=[N_(checkname(name,varargin{:})),'{',N_('_ArrayType_'),S_(class(item)),N_('_ArraySize_'),I_a(size(item),cid(1))];
end
end
else
if(isempty(name))
txt=matdata2ubjson(item,level+1,varargin{:});
else
if(numel(item)==1 && jsonopt('SingletArray',0,varargin{:})==0)
numtxt=regexprep(regexprep(matdata2ubjson(item,level+1,varargin{:}),'^\[',''),']','');
txt=[N_(checkname(name,varargin{:})) numtxt];
else
txt=[N_(checkname(name,varargin{:})),matdata2ubjson(item,level+1,varargin{:})];
end
end
return;
end
if(issparse(item))
[ix,iy]=find(item);
data=full(item(find(item)));
if(~isreal(item))
data=[real(data(:)),imag(data(:))];
if(size(item,1)==1)
% Kludge to have data's 'transposedness' match item's.
% (Necessary for complex row vector handling below.)
data=data';
end
txt=[txt,N_('_ArrayIsComplex_'),'T'];
end
txt=[txt,N_('_ArrayIsSparse_'),'T'];
if(size(item,1)==1)
% Row vector, store only column indices.
txt=[txt,N_('_ArrayData_'),...
matdata2ubjson([iy(:),data'],level+2,varargin{:})];
elseif(size(item,2)==1)
% Column vector, store only row indices.
txt=[txt,N_('_ArrayData_'),...
matdata2ubjson([ix,data],level+2,varargin{:})];
else
% General case, store row and column indices.
txt=[txt,N_('_ArrayData_'),...
matdata2ubjson([ix,iy,data],level+2,varargin{:})];
end
else
if(isreal(item))
txt=[txt,N_('_ArrayData_'),...
matdata2ubjson(item(:)',level+2,varargin{:})];
else
txt=[txt,N_('_ArrayIsComplex_'),'T'];
txt=[txt,N_('_ArrayData_'),...
matdata2ubjson([real(item(:)) imag(item(:))],level+2,varargin{:})];
end
end
txt=[txt,'}'];
%%-------------------------------------------------------------------------
function txt=matlabobject2ubjson(name,item,level,varargin)
if numel(item) == 0 %empty object
st = struct();
else
% "st = struct(item);" would produce an inmutable warning, because it
% make the protected and private properties visible. Instead we get the
% visible properties
propertynames = properties(item);
for p = 1:numel(propertynames)
for o = numel(item):-1:1 % aray of objects
st(o).(propertynames{p}) = item(o).(propertynames{p});
end
end
end
txt=struct2ubjson(name,st,level,varargin{:});
%%-------------------------------------------------------------------------
function txt=matdata2ubjson(mat,level,varargin)
if(isempty(mat))
txt='Z';
return;
end
type='';
hasnegtive=(mat<0);
if(isa(mat,'integer') || isinteger(mat) || (isfloat(mat) && all(mod(mat(:),1) == 0)))
if(isempty(hasnegtive))
if(max(mat(:))<=2^8)
type='U';
end
end
if(isempty(type))
% todo - need to consider negative ones separately
id= histc(abs(max(mat(:))),[0 2^7 2^15 2^31 2^63]);
if(isempty(id~=0))
error('high-precision data is not yet supported');
end
key='iIlL';
type=key(id~=0);
end
txt=[I_a(mat(:),type,size(mat))];
elseif(islogical(mat))
logicalval='FT';
if(numel(mat)==1)
txt=logicalval(mat+1);
else
txt=['[$U#' I_a(size(mat),'l') typecast(swapbytes(uint8(mat(:)')),'uint8')];
end
else
if(numel(mat)==1)
txt=['[' D_(mat) ']'];
else
txt=D_a(mat(:),'D',size(mat));
end
end
%txt=regexprep(mat2str(mat),'\s+',',');
%txt=regexprep(txt,';',sprintf('],['));
% if(nargin>=2 && size(mat,1)>1)
% txt=regexprep(txt,'\[',[repmat(sprintf('\t'),1,level) '[']);
% end
if(any(isinf(mat(:))))
txt=regexprep(txt,'([-+]*)Inf',jsonopt('Inf','"$1_Inf_"',varargin{:}));
end
if(any(isnan(mat(:))))
txt=regexprep(txt,'NaN',jsonopt('NaN','"_NaN_"',varargin{:}));
end
%%-------------------------------------------------------------------------
function newname=checkname(name,varargin)
isunpack=jsonopt('UnpackHex',1,varargin{:});
newname=name;
if(isempty(regexp(name,'0x([0-9a-fA-F]+)_','once')))
return
end
if(isunpack)
isoct=jsonopt('IsOctave',0,varargin{:});
if(~isoct)
newname=regexprep(name,'(^x|_){1}0x([0-9a-fA-F]+)_','${native2unicode(hex2dec($2))}');
else
pos=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','start');
pend=regexp(name,'(^x|_){1}0x([0-9a-fA-F]+)_','end');
if(isempty(pos))
return;
end
str0=name;
pos0=[0 pend(:)' length(name)];
newname='';
for i=1:length(pos)
newname=[newname str0(pos0(i)+1:pos(i)-1) char(hex2dec(str0(pos(i)+3:pend(i)-1)))];
end
if(pos(end)~=length(name))
newname=[newname str0(pos0(end-1)+1:pos0(end))];
end
end
end
%%-------------------------------------------------------------------------
function val=N_(str)
val=[I_(int32(length(str))) str];
%%-------------------------------------------------------------------------
function val=S_(str)
if(length(str)==1)
val=['C' str];
else
val=['S' I_(int32(length(str))) str];
end
%%-------------------------------------------------------------------------
function val=I_(num)
if(~isinteger(num))
error('input is not an integer');
end
if(num>=0 && num<255)
val=['U' data2byte(swapbytes(cast(num,'uint8')),'uint8')];
return;
end
key='iIlL';
cid={'int8','int16','int32','int64'};
for i=1:4
if((num>0 && num<2^(i*8-1)) || (num<0 && num>=-2^(i*8-1)))
val=[key(i) data2byte(swapbytes(cast(num,cid{i})),'uint8')];
return;
end
end
error('unsupported integer');
%%-------------------------------------------------------------------------
function val=D_(num)
if(~isfloat(num))
error('input is not a float');
end
if(isa(num,'single'))
val=['d' data2byte(num,'uint8')];
else
val=['D' data2byte(num,'uint8')];
end
%%-------------------------------------------------------------------------
function data=I_a(num,type,dim,format)
id=find(ismember('iUIlL',type));
if(id==0)
error('unsupported integer array');
end
% based on UBJSON specs, all integer types are stored in big endian format
if(id==1)
data=data2byte(swapbytes(int8(num)),'uint8');
blen=1;
elseif(id==2)
data=data2byte(swapbytes(uint8(num)),'uint8');
blen=1;
elseif(id==3)
data=data2byte(swapbytes(int16(num)),'uint8');
blen=2;
elseif(id==4)
data=data2byte(swapbytes(int32(num)),'uint8');
blen=4;
elseif(id==5)
data=data2byte(swapbytes(int64(num)),'uint8');
blen=8;
end
if(nargin>=3 && length(dim)>=2 && prod(dim)~=dim(2))
format='opt';
end
if((nargin<4 || strcmp(format,'opt')) && numel(num)>1)
if(nargin>=3 && (length(dim)==1 || (length(dim)>=2 && prod(dim)~=dim(2))))
cid=I_(uint32(max(dim)));
data=['$' type '#' I_a(dim,cid(1)) data(:)'];
else
data=['$' type '#' I_(int32(numel(data)/blen)) data(:)'];
end
data=['[' data(:)'];
else
data=reshape(data,blen,numel(data)/blen);
data(2:blen+1,:)=data;
data(1,:)=type;
data=data(:)';
data=['[' data(:)' ']'];
end
%%-------------------------------------------------------------------------
function data=D_a(num,type,dim,format)
id=find(ismember('dD',type));
if(id==0)
error('unsupported float array');
end
if(id==1)
data=data2byte(single(num),'uint8');
elseif(id==2)
data=data2byte(double(num),'uint8');
end
if(nargin>=3 && length(dim)>=2 && prod(dim)~=dim(2))
format='opt';
end
if((nargin<4 || strcmp(format,'opt')) && numel(num)>1)
if(nargin>=3 && (length(dim)==1 || (length(dim)>=2 && prod(dim)~=dim(2))))
cid=I_(uint32(max(dim)));
data=['$' type '#' I_a(dim,cid(1)) data(:)'];
else
data=['$' type '#' I_(int32(numel(data)/(id*4))) data(:)'];
end
data=['[' data];
else
data=reshape(data,(id*4),length(data)/(id*4));
data(2:(id*4+1),:)=data;
data(1,:)=type;
data=data(:)';
data=['[' data(:)' ']'];
end
%%-------------------------------------------------------------------------
function bytes=data2byte(varargin)
bytes=typecast(varargin{:});
bytes=bytes(:)';
|
github
|
amcorrigan/IA-Lab-master
|
AddTextToImageWithBorder.m
|
.m
|
IA-Lab-master/Utilities/textimage/AddTextToImageWithBorder.m
| 2,034 |
utf_8
|
98e36284eff76a81ec7ab9b7a1986c24
|
function Image = AddTextToImageWithBorder(Image,String,Position,Color,Font,FontSize,BorderWidth,BorderColor)
% Image = AddTextToImage(Image,String,Position,Color,Font,FontSize,BorderWidth,BorderColor)
%
% Works as AddTextToImage, except also allows for a border of thickness
% BorderWidth pixels and color given by BorderColor. BorderColor should
% be a 1- or 3-element vector giving Y or RGB in the range 0 to 1
% regardless of the image class.
%
% If no border parameters are provided, default is 1 pixel black.
%
% Daniel Warren
% Particle Therapy Cancer Research Institute
% University of Oxford
if ~exist('BorderWidth','var')
BorderWidth = 1;
end
if ~exist('BorderColor','var')
BorderColor = 0;
end
if BorderWidth == 0
Image = AddTextToImage(Image,String,Position,Color,Font,FontSize);
return;
end
% uint8 images go from 0 to 255, whereas double ones go from 0 to 1
if isa(Image, 'uint8')
ScaleFactor = 255;
else
ScaleFactor = 1;
end
% monochrome images need monochrome text, colour images need colour text
if ndims(Image) == 2 %#ok<ISMAT>
BorderColor = mean(BorderColor(:));
end
if ndims(Image) == 3 && numel(BorderColor) == 1
BorderColor = [BorderColor BorderColor BorderColor];
end
Mask = AddTextToImage(false(size(Image(:,:,1))),String,Position,1,Font,FontSize);
ConvElement = double(CircleMask(1+2*BorderWidth,1+2*BorderWidth,BorderWidth+0.5,BorderWidth+0.5,0.5+BorderWidth));
Outline = xor(conv2(double(Mask),ConvElement,'same'),Mask);
Image = AddTextToImage(Image,String,Position,Color,Font,FontSize);
for i = 1:size(Image,3)
tmp = Image(:,:,i);
tmp(Outline) = ScaleFactor*BorderColor(i);
Image(:,:,i) = tmp;
end
end
function out = CircleMask(w,h,cx,cy,r)
% function out = CircleMask(w,h,cx,cy,r)
% Outputs a 1D bitmap of a solid circle of radius r pixels
% centered at pixel (cx,cy) within an matrix of size w x h
% pixels.
[x y] = meshgrid(1:w,1:h);
out = ((x-cx-0.5).^2+(y-cy-0.5).^2) <= r^2;
end
|
github
|
amcorrigan/IA-Lab-master
|
real2rgb.m
|
.m
|
IA-Lab-master/Utilities/sc/real2rgb.m
| 4,918 |
utf_8
|
e3d94e10c8a2aca6dfbb6e867ed707bc
|
function [B lims map] = real2rgb(A, cmap, lims)
%REAL2RGB Converts a real-valued matrix into a truecolor image
%
% Examples:
% B = real2rgb(A, cmap);
% B = real2rgb(A, cmap, lims);
% [B lims map] = real2rgb(...);
%
% This function converts a real-valued matrix into a truecolor image (i.e.
% double array with values between 0 and 1) using the colormap specified
% (either user-defined or the name of a colormap function). The output
% image is suitable for display using IMAGE or IMSHOW, exporting using
% IMWRITE, texture mapping a surface etc.
%
% Colormaps specified by name, e.g. 'hot', can be reversed ('-hot'), made
% to convert linearly to grayscale when printed on a black & white printer
% ('hot*'), or both ('-hot*').
%
% Value limits and a colormap table can be output, for use generating the
% correct colorbar, e.g.:
% [B lims map] = real2rgb(peaks(256), '-hot*');
% hIm = imshow(B);
% set(gcf, 'Colormap', map);
% set(gca, 'CLim', lims);
% set(hIm, 'CDataMapping', 'scaled');
% colorbar;
%
% IN:
% A - MxN real matrix.
% cmap - JxK user-defined colormap, or a string indicating the name
% of the colormap to be used. K = 3 or 4. If K == 4 then
% cmap(1:end-1,4) contains the relative widths of the bins between
% colors. If cmap is a colormap function name then the prefix '-'
% indicates that the colormap is to be reversed, while the suffix
% '*' indicates that the colormap bins are to be rescaled so that
% each bin produces the same change in gray level, such that the
% colormap converts linearly to grayscale when printed in black
% and white.
% lims - 1x2 array of saturation limits to be used on A. Default:
% [min(A(:)) max(A(:))].
%
% OUT:
% B - MxNx3 truecolor image.
% lims - 1x2 array of saturation limits used on A. Same as input lims, if
% given.
% map - 256x3 colormap similar to that used to generate B.
% Copyright: Oliver Woodford, 2009-2010
% Thank you to Peter Nave for reporting a bug whereby colormaps larger than
% 256 entries long are returned.
% Don't do much if A is wrong size
[y x c] = size(A);
if c > 1
error('A can only have 2 dimensions');
end
if y*x*c == 0
% Create an empty array with the correct dimensions
B = zeros(y, x, (c~=0)*3);
return
end
% Generate the colormap
if ischar(cmap)
% If map starts with a '-' sign, invert the colormap
reverseMap = cmap(1) == '-';
% If the map ends with a '*', attempt to make map convert linearly to
% grayscale
grayMap = cmap(end) == '*';
% Extract the map name
cmap = lower(cmap(reverseMap+1:end-grayMap));
% Load the map
try
% Check for a concise table first
map = feval(cmap, Inf);
catch
map = [];
end
if invalid_map(map)
try
% Just load a large table
map = feval(cmap, 256);
catch
error('Colormap ''%s'' not found', cmap);
end
if invalid_map(map)
error('Invalid colormap');
end
end
if reverseMap
% Reverse the map
map = map(end:-1:1,:);
if size(map, 2) == 4
% Shift up the bin lengths
map(1:end-1,4) = map(2:end,4);
end
end
if grayMap && size(map, 1) > 2
% Ensure the map converts linearly to grayscale
map(1:end-1,4) = abs(diff(map(:,1:3) * [0.299; 0.587; 0.114]));
end
else
% Table-based colormap given
map = cmap;
end
% Only work with real doubles
B = reshape(double(real(A)), y*x, c);
% Compute limits and scaled values
maxInd = 1 + (size(map, 1) - 2) * (size(map, 2) ~= 4);
if nargin < 3
lims = [];
end
[B lims] = rescale(B, lims, [0 maxInd]);
% Compute indices and offsets
if size(map, 2) == 4
% Non-linear colormap
bins = map(1:end-1,4);
cbins = cumsum(bins);
bins(bins==0) = 1;
bins = cbins(end) ./ bins;
cbins = [0; cbins(1:end-1) ./ cbins(end); 1+eps];
[ind ind] = histc(B, cbins);
B = (B - cbins(ind)) .* bins(ind);
clear bins cbins
else
% Linear colormap
ind = min(floor(B), maxInd-1);
B = B - ind;
ind = ind + 1;
end
% Compute the output image
B = B(:,[1 1 1]);
B = map(ind,1:3) .* (1 - B) + map(ind+1,1:3) .* B;
B = min(max(B, 0), 1); % Rounding errors can make values slip outside bounds
B = reshape(B, y, x, 3);
if nargout > 2 && (size(map, 1) ~= 256 || size(map, 2) == 4)
% Generate the colormap (for creating a colorbar with)
map = reshape(real2rgb(0:255, map, [0 255]), 256, 3);
end
return
function notmap = invalid_map(map)
notmap = isempty(map) || ndims(map) ~= 2 || size(map, 1) < 1 || size(map, 2) < 3 || size(map, 2) > 4 || ~all(reshape(map(:,1:3) >= 0 & map(:,1:3) <= 1, [], 1));
|
github
|
amcorrigan/IA-Lab-master
|
imsc.m
|
.m
|
IA-Lab-master/Utilities/sc/imsc.m
| 1,299 |
utf_8
|
97cd4a988efe36fe0575539142fc605e
|
%IMSC Wrapper function to SC which replicates display behaviour of IMAGESC
%
% Examples:
% imsc(I, varargin)
% imsc(x, y, I, varargin)
% h = imsc(...)
%
% IN:
% x - 1x2 vector of x-axis bounds. If x(1) > x(2) the image is flipped
% left-right. Default: [1 size(I, 2)].
% y - 1x2 vector of y-axis bounds. If y(1) > y(2) the image is flipped
% up-down. Default: [1 size(I, 1)].
% I - MxNxC input image.
% varargin - Extra input parameters passed to SC. See SC's help for more
% information.
%
% OUT:
% h - Handle of the image graphics object generated.
%
% See also IMAGESC, SC.
% Copyright: Oliver Woodford, 2010
function h = imsc(varargin)
% Check for x, y as first two inputs
if numel(varargin{1}) == 2 && numel(varargin{2}) == 2
% Render
[I clim map] = sc(varargin{3:end});
% Display
h = image(varargin{1}, varargin{2}, I);
else
% Render
[I clim map] = sc(varargin{:});
% Display
h = image(I);
end
% Fix up colormap, if there is one
if ~isempty(clim)
set(h, 'CDataMapping', 'scaled');
ha = get(h, 'Parent');
set(ha, 'CLim', clim);
set(get(ha, 'Parent'), 'Colormap', map);
end
% Don't display the handle if not requested
if nargout < 1
clear h
end
|
github
|
amcorrigan/IA-Lab-master
|
rescale.m
|
.m
|
IA-Lab-master/Utilities/sc/rescale.m
| 1,613 |
utf_8
|
427de5e2419533818c74ea0c8fd7f773
|
function [B lims] = rescale(A, lims, out_lims)
%RESCALE Linearly rescale values in an array
%
% Examples:
% B = rescale(A)
% B = rescale(A, lims)
% B = rescale(A, lims, out_lims)
% [B lims] = rescale(A)
%
% Linearly rescales values in an array, saturating values outside limits.
%
% IN:
% A - Input array of any size and class.
% lims - 1x2 array of saturation limits to be used on A. Default:
% [min(A(:)) max(A(:))].
% out_lims - 1x2 array of output limits the values in lims are to be
% rescaled to. Default: [0 1].
%
% OUT:
% B - size(A) double array.
% lims - 1x2 array of saturation limits used on A. Equal to the input
% lims, if given.
% $Id: rescale.m,v 1.2 2009/04/05 15:09:11 ojw Exp $
% Copyright: Oliver Woodford, 2009
if nargin < 3
out_lims = [0 1];
end
if nargin < 2 || isempty(lims)
M = isfinite(A);
if ~any(reshape(M, numel(M), 1))
% All NaNs, Infs or -Infs
B = double(A > 0);
lims = [0 1];
else
lims = [min(A(M)) max(A(M))];
B = normalize(A, lims, out_lims);
end
clear M
else
B = normalize(A, lims, out_lims);
B = min(max(B, out_lims(1)), out_lims(2));
end
return
function B = normalize(A, lims, out_lims)
if lims(2) == lims(1) || out_lims(1) == out_lims(2)
B = zeros(size(A));
else
B = double(A);
if lims(1)
B = B - lims(1);
end
v = (out_lims(2) - out_lims(1)) / (lims(2) - lims(1));
if v ~= 1
B = B * v;
end
end
if out_lims(1)
B = B + out_lims(1);
end
return
|
github
|
amcorrigan/IA-Lab-master
|
imdisp.m
|
.m
|
IA-Lab-master/Utilities/sc/imdisp.m
| 19,654 |
utf_8
|
c97ad19a7be236223dde28b870a9b800
|
function hIm = imdisp(I, varargin)
%IMDISP Display one or more images nicely
%
% Examples:
% imdisp
% imdisp(I)
% imdisp(I, map)
% imdisp(I, lims)
% imdisp(I, map, lims)
% imdisp(..., param1, value1, param2, value2, ...)
% h = imdisp(...)
%
% This function displays one or more images nicely. Images can be defined
% by arrays or filenames. Multiple images can be input in a cell array or
% stacked along the fourth dimension, and are displayed as a grid of
% subplots (an improvement over MONTAGE). The size of grid is calculated or
% user defined. The figure size is set so that images are magnified by an
% integer value.
%
% If the image grid size is user defined, images not fitting in the grid
% can be scrolled through using the following key presses:
% Up - Back a row.
% Down - Forward a row.
% Left - Back a page (or column if there is only one row).
% Right - Forward a page (or column if there is only one row).
% Shift - 2 x speed.
% Ctrl - 4 x speed.
% Shift + Ctrl - 8 x speed.
%
% This allows fast scrolling through a movie or image stack, e.g.
% imdisp(imstack, 'Size', 1)
% The function can be used as a visual DIR, e.g.
% imdisp()
% to display all images in the current directory on a grid, or
% imdisp({}, 'Size', 1)
% to scroll through them one at a time.
%
% IN:
% I - MxNxCxP array of images, or 1xP cell array. C is 1 for indexed
% images or 3 for RGB images. P is the number of images. If I is a
% cell array then each cell must contain an image. Images can equally
% be defined by filenames. If I is an empty cell array then all the
% images in the current directory are used. Default: {}.
% map - Kx3 colormap to be used with indexed images. Default: gray(256).
% lims - [LOW HIGH] display range for indexed images. Default: [min(I(:))
% max(I(:))].
% Optional parameters - name, value parameter pairs for the following:
% 'Size' - [H W] size of grid to display image on. If only H is given
% then W = H. If either H or W is NaN then the number of rows
% or columns is chosen such that all images fit. If both H
% and W are NaN or the array is empty then the size of grid
% is chosen to fit all images in as large as possible.
% Default: [].
% 'Indices' - 1xL list of indices of images to display. Default: 1:P.
% 'Border' - [TB LR] borders to give each image top and bottom (TB)
% and left and right (LR), to space out images. Borders are
% normalized to the subplot size, i.e. TB = 0.01 gives a
% border 1% of the height of each subplot. If only TB is
% given, LR = TB. Default: 0.01.
% 'DisplayRange' - Same as lims input.
% 'Map' - Kx3 colormap or (additionally from above) name of MATLAB
% colormap, for use with indexed images. Default: gray(256).
%
% OUT:
% h - HxW array of handles to images.
%
% See also IMAGE, IMAGESC, IMSHOW, MONTAGE.
% Copyright: Oliver Woodford 2010
% Parse inputs
[map layout gap indices lims] = parse_inputs(varargin);
if nargin == 0 || (iscell(I) && isempty(I))
% Read in all the images in the directory
I = get_im_names;
if isempty(I)
% No images found
if nargout > 0
hIm = [];
end
return
end
end
% Check if input is filenames
if ischar(I)
[x y c] = size(I);
if (x > 1 && y > 1) || c > 1
I = num2cell(I, 2);
else
I = {I(:)'};
end
end
% Get limits, etc.
if isnumeric(I) || islogical(I)
[y x c n] = size(I);
if isempty(lims)
lims = min_max(I);
elseif isequal(0, lims)
lims = default_limits(I);
elseif c == 3
% Rescale
if ~isfloat(I)
I = single(I);
end
I = min(max((I - lims(1)) ./ (lims(2) - lims(1)), 0), 1);
end
if isfloat(I) && c == 3 && n > 1
I = uint8(I * 256 - 0.5);
lims = round(lims * 256 - 0.5);
end
elseif iscell(I)
n = numel(I);
A = I{1};
if ischar(A)
% Read in the image (or images for multi-frame files)
if n == 1
I = imread_rgb_multi(A);
if iscell(I)
n = numel(I);
A = I{1};
[y x c] = size(A);
else
[y x c n] = size(I);
A = I;
end
else
A = imread_rgb(A);
I{1} = A;
[y x c] = size(A);
end
else
[y x c] = size(A);
end
% Assume all images are the same size and type as the first
if isempty(lims) || isequal(0, lims)
lims = default_limits(A);
end
else
error('I not of recognized type.');
end
% Select indexed images
if ~isequal(indices, -1)
if iscell(I)
I = I(indices);
n = numel(I);
else
I = I(:,:,:,indices);
n = size(I, 4);
end
end
% Get the current figure
hFig = get(0, 'CurrentFigure');
if isempty(hFig)
% Create a new figure
hFig = figure;
end
if n < 2
% Set the colormap
set(hFig, 'Colormap', map);
end
% Display the image(s)
if n == 0
hIm = display_image([], gca, [0 1]);
if nargout == 0
clear hIm % Avoid printing this out
end
return
elseif n == 1
% IMSHOW mode
% Display the single image
hAx = gca;
if iscell(I)
I = I{1};
end
hIm = display_image(I, hAx, lims);
if nargout == 0
clear hIm % Avoid printing this out
end
% Only resize image if it is alone in the figure
if numel(findobj(get(hFig, 'Children'), 'Type', 'axes')) > 1
return
end
% Could still be the first subplot - do another check
axesPos = get(hAx, 'Position');
newAxesPos = [gap(1) gap(end) 1-2*gap(1) 1-2*gap(end)];
if isequal(axesPos, get(hFig, 'DefaultAxesPosition'))
% Default position => not a subplot
% Fill the window
set(hAx, 'Units', 'normalized', 'Position', newAxesPos);
axesPos = newAxesPos;
end
if ~isequal(axesPos, newAxesPos)
% Figure not alone, so don't resize.
return
end
layout = [1 1];
else
% MONTAGE mode
% Compute a good layout
layout = choose_layout(n, y, x, layout);
% Create a data structure to store the data in
num = prod(layout);
state.num = num * ceil(n / num);
hIm = zeros(layout);
hAx = zeros(layout);
% Clear the figure
if n > num
hFig = clf(hFig, 'reset');
else
hFig = clf(hFig);
end
% Set the colormap
set(hFig, 'Colormap', map);
% Set the first lot of images
index = mod(0:num-1, state.num) + 1;
hw = 1 ./ layout;
gap = gap ./ layout;
dims = hw - 2 * gap;
dims = dims([2 1]);
for a = 1:layout(1)
for b = 1:layout(2)
c = index(b + (layout(1) - a) * layout(2));
if c > n
A = [];
elseif iscell(I)
A = I{c};
if ischar(A)
A = imread_rgb(A);
I{c} = A;
end
else
A = I(:,:,:,c);
end
hAx(a,b) = axes('Position', [(b-1)*hw(2)+gap(2) (a-1)*hw(1)+gap(1) dims], 'Units', 'normalized');
hIm(a,b) = display_image(A, hAx(a,b), lims);
end
end
% Check if we need to be able to scroll through images
if n > num
% Intialize rest of data structure
state.hIm = hIm;
state.hAx = hAx;
state.index = 1;
state.layout = layout;
state.n = n;
state.I = I;
% Set the callback for image navigation, and save the image data in the figure
set(hFig, 'KeyPressFcn', @keypress_callback, 'Interruptible', 'off', 'BusyAction', 'cancel', 'UserData', state);
end
% Flip hIm so it matches the layout
hIm = hIm(end:-1:1,:);
if nargout == 0
clear hIm % Avoid printing this out
end
end
if strcmp(get(hFig, 'WindowStyle'), 'docked')
% Figure is docked, so can't resize
return
end
% Set the figure size well
% Compute the image size
ImSz = layout([2 1]) .* [x y] ./ (1 - 2 * gap([end 1]));
% Get the size of the monitor we're on
figPosCur = get(hFig, 'Position');
% Monitor sizes
MonSz = get(0, 'MonitorPositions');
MonOn = size(MonSz, 1);
if MonOn > 1
% Make the origin the top left corner of the primary monitor
correction = 0;
if ispc
for a = 1:MonOn
if isequal(MonSz(a,1:2), [1 1])
correction = MonSz(a,4);
break
end
end
end
% Determine which monitor the centre of the image is on
figCenter = figPosCur(1:2) + figPosCur(3:4) / 2;
figCenter = MonSz - repmat(figCenter, [MonOn 2]);
MonOn = all(sign(figCenter) == repmat([-1 -1 1 1], [MonOn 1]), 2);
MonOn(1) = MonOn(1) | ~any(MonOn);
MonSz = MonSz(MonOn,:);
% Correct the size
MonSz(3:4) = MonSz(3:4) - MonSz(1:2) + 1;
% Correct the origin
if correction
MonSz(2) = correction - MonSz(4) - MonSz(2) + 2;
end
end
% Check if the window is maximized
% This is a hack which may only work on Windows! No matter, though.
if isequal(MonSz([1 3]), figPosCur([1 3]))
% Leave maximized
return
end
% Compute the size to set the window
MaxSz = MonSz(3:4) - [20 120];
RescaleFactor = min(MaxSz ./ ImSz);
if RescaleFactor > 1
% Integer scale for enlarging, but don't make too big
MaxSz = min(MaxSz, [1200 800]);
RescaleFactor = max(floor(min(MaxSz ./ ImSz)), 1);
end
figPosNew = ceil(ImSz * RescaleFactor);
% Don't move the figure if the size isn't changing
if isequal(figPosCur(3:4), figPosNew)
return
end
% Keep the centre of the figure stationary
figPosNew = [floor(figPosCur(1:2)+(figPosCur(3:4)-figPosNew)/2) figPosNew];
% Ensure the figure is in bounds
figPosNew(1:2) = min(max(figPosNew(1:2), MonSz(1:2)+6), MonSz(1:2)+MonSz(3:4)-[6 101]-figPosNew(3:4));
% Set the figure size and position
set(hFig, 'Position', figPosNew);
return
%% Keypress callback
% The function which does all the display stuff
function keypress_callback(fig, event_data)
% Check what key was pressed and update the image index as necessary
switch event_data.Character
case 28 % Left
up = -1; % Back a page
case 29 % Right
up = 1; % Forward a page
case 30 % Up
up = -0.1; % Back a row
case 31 % Down
up = 0.1; % Forward a row
otherwise
% Another key was pressed - ignore it
return
end
% Use control and shift for faster scrolling
if ~isempty(event_data.Modifier)
up = up * (2 ^ (strcmpi(event_data.Modifier, {'shift', 'control'}) * [1; 2]));
end
% Get the state data
state = get(fig, 'UserData');
% Get the current index
index = state.index;
% Get number of images
n = prod(state.layout);
% Generate 12 valid indices
if abs(up) < 1
% Increment by row
index = index + state.layout(2) * (up * 10) - 1;
else
if state.layout(1) == 1
% Increment by column
index = index + up - 1;
else
% Increment by page
index = index + n * up - 1;
end
end
index = mod(index:index+n, state.num) + 1;
% Plot the images
figure(fig);
for a = 1:state.layout(1)
for b = 1:state.layout(2)
% Get the image
c = index(b + (state.layout(1) - a) * state.layout(2));
if c > state.n
% Set the image data
set(state.hIm(a,b), 'CData', []);
elseif iscell(state.I)
A = state.I{c};
if ischar(A)
% Filename - read the image from disk
A = imread_rgb(A);
state.I{c} = A;
end
% Set the image data
set(state.hIm(a,b), 'CData', A);
% Reset the axes limits
if ~isempty(A)
set(state.hAx(a,b), 'XLim', [0.5 size(A, 2)+0.5], 'YLim', [0.5 size(A, 1)+0.5]);
end
else
% Set the image data
set(state.hIm(a,b), 'CData', state.I(:,:,:,c));
end
end
end
drawnow;
% Save the current index
state.index = index(1);
set(fig, 'UserData', state);
return
%% Display the image
function hIm = display_image(A, hAx, lims)
if isempty(A)
hIm = image(zeros(1, 1, 3));
set(hIm, 'CData', []);
else
hIm = image(A);
end
set(hAx, 'Visible', 'off', 'DataAspectRatio', [1 1 1], 'DrawMode', 'fast', 'CLim', lims);
set(get(hAx, 'XLabel'), 'Visible', 'on');
set(get(hAx, 'YLabel'), 'Visible', 'on');
set(get(hAx, 'Title'), 'Visible', 'on');
set(hIm, 'CDataMapping', 'scaled');
return
%% Choose a good layout for the images
function layout = choose_layout(n, y, x, layout)
v = numel(layout);
N = isnan(layout);
if v == 0 || all(N)
% Compute approximate layout
sz = get(0, 'ScreenSize');
sz = sz(3:4) ./ [x y];
layout = ceil(sz([2 1]) ./ sqrt(prod(sz) / n));
% Remove superfluous rows or columns
while 1
switch ([prod(layout - [1 0]) prod(layout - [0 1])] >= n) * [2; 1]
case 0
break;
case 1
layout = layout - [0 1];
case 2
layout = layout - [1 0];
case 3
if min(sz .* (layout - [0 1])) > min(sz .* (layout - [1 0]))
layout = layout - [0 1];
else
layout = layout - [1 0];
end
end
end
elseif v == 1
layout = layout([1 1]);
elseif any(N)
layout(N) = ceil(n / layout(~N));
end
layout = reshape(layout, 1, 2);
return
%% Read image to uint8 rgb array
function A = imread_rgb(name)
try
[A map alpha] = imread(name);
catch
% Format not recognized by imread, so create a red cross (along diagonals)
A = eye(101) | diag(ones(100, 1), 1) | diag(ones(100, 1), -1);
A = (uint8(1) - uint8(A | flipud(A))) * uint8(255);
A = cat(3, zeros(size(A), 'uint8')+uint8(255), A, A);
return
end
A = A(:,:,:,1); % Keep only first frame of multi-frame files
if ~isempty(map)
map = uint8(map * 256 - 0.5); % Convert to uint8 for storage
A = reshape(map(uint32(A)+1,:), [size(A) size(map, 2)]); % Assume indexed from 0
elseif size(A, 3) == 4
if lower(name(end)) == 'f'
% TIFF in CMYK colourspace - convert to RGB
if isfloat(A)
A = A * 255;
else
A = single(A);
end
A = 255 - A;
A(:,:,4) = A(:,:,4) / 255;
A = uint8(A(:,:,1:3) .* A(:,:,[4 4 4]));
else
% Assume 4th channel is an alpha matte
alpha = A(:,:,4);
A = A(:,:,1:3);
end
end
if ~isempty(alpha)
% Apply transprency over a grey checkerboard pattern
if isa(alpha, 'uint8')
alpha = double(alpha) / 255;
end
A = double(A) .* alpha(:,:,ones(1, size(A, 3)));
sqSz = max(size(alpha));
sqSz = floor(max(log(sqSz / 100), 0) * 10 + 1 + min(sqSz, 100) / 20);
grid = repmat(85, ceil(size(alpha) / sqSz));
grid(2:2:end,1:2:end) = 171;
grid(1:2:end,2:2:end) = 171;
grid = kron(grid, ones(sqSz));
alpha = grid(1:size(A, 1),1:size(A, 2)) .* (1 - alpha);
A = uint8(A + alpha(:,:,ones(1, size(A, 3))));
end
return
%% Read (potentially) multi-frame image to uint8 rgb array
function A = imread_rgb_multi(name)
try
% Get file info
info = imfinfo(name);
catch
% Revert to standard case
A = imread_rgb(name);
return
end
if numel(info) < 2
% Single image
A = imread_rgb(name);
return
else
% Multi-frame image
switch lower(info(1).Format)
case 'gif'
[A map] = imread(name, 'frames', 'all');
if ~isempty(map)
map = uint8(map * 256 - 0.5); % Convert to uint8 for storage
A = reshape(map(uint32(A)+1,:), [size(A) size(map, 2)]); % Assume indexed from 0
A = permute(A, [1 2 5 4 3]);
end
case {'tif', 'tiff'}
A = cell(numel(info), 1);
for a = 1:numel(A)
[A{a} map] = imread(name, 'Index', a, 'Info', info);
if ~isempty(map)
map = uint8(map * 256 - 0.5); % Convert to uint8 for storage
A{a} = reshape(map(uint32(A{a})+1,:), [size(A) size(map, 2)]); % Assume indexed from 0
end
if size(A{a}, 3) == 4
% TIFF in CMYK colourspace - convert to RGB
if isfloat(A{a})
A{a} = A{a} * 255;
else
A{a} = single(A{a});
end
A{a} = 255 - A{a};
A{a}(:,:,4) = A{a}(:,:,4) / 255;
A{a} = uint8(A(:,:,1:3) .* A{a}(:,:,[4 4 4]));
end
end
otherwise
% Multi-frame not supported for this format
A = imread_rgb(name);
return
end
end
return
%% Get the names of all images in a directory
function L = get_im_names
D = dir;
n = 0;
L = cell(size(D));
% Go through the directory list
for a = 1:numel(D)
% Check if file is a supported image type
if numel(D(a).name) > 4 && ~D(a).isdir && (any(strcmpi(D(a).name(end-3:end), {'.png', '.tif', '.jpg', '.bmp', '.ppm', '.pgm', '.pbm', '.gif', '.ras'})) || any(strcmpi(D(a).name(end-4:end), {'.tiff', '.jpeg'})))
n = n + 1;
L{n} = D(a).name;
end
end
L = L(1:n);
return
%% Parse inputs
function [map layout gap indices lims] = parse_inputs(inputs)
% Set defaults
map = [];
layout = [];
gap = 0;
indices = -1;
lims = 0;
% Check for map and display range
for b = 1:numel(inputs)
if ~isnumeric(inputs{b})
b = b - 1;
break;
end
if size(inputs{b}, 2) == 3
map = inputs{b};
elseif numel(inputs{b}) < 3
lims = inputs{b};
end
end
% Go through option pairs
for a = b+1:2:numel(inputs)
switch lower(inputs{a})
case 'map'
map = inputs{a+1};
if ischar(map)
map = feval(map, 256);
end
case {'size', 'grid'}
layout = inputs{a+1};
case {'gap', 'border'}
gap = inputs{a+1};
case 'indices'
indices = inputs{a+1};
case {'lims', 'displayrange'}
lims = inputs{a+1};
otherwise
error('Input option %s not recognized', inputs{a});
end
end
if isempty(map)
map = gray(256);
end
return
%% Return default limits for the image type
function lims = default_limits(A)
if size(A, 3) == 1
lims = min_max(A);
else
lims = [0 1];
if ~isfloat(A)
lims = lims * double(intmax(class(A)));
end
end
return
%% Return minimum and maximum values
function lims = min_max(A)
M = isfinite(A);
if all(M(:))
lims = double([min(A(:)) max(A(:))]);
else
lims = double([min(A(M)) max(A(M))]);
end
if isempty(lims)
lims = [0 1];
elseif lims(1) == lims(2)
lims(2) = lims(1) + 1;
end
return
|
github
|
amcorrigan/IA-Lab-master
|
sc.m
|
.m
|
IA-Lab-master/Utilities/sc/sc.m
| 31,219 |
utf_8
|
f247fe4402993a806f759a89a6ddf8a6
|
function [I limits map] = sc(I, varargin)
%SC Display/output truecolor images with a range of colormaps
%
% Examples:
% sc(image)
% sc(image, limits)
% sc(image, map)
% sc(image, limits, map)
% sc(image, map, limits)
% sc(..., col1, mask1, col2, mask2,...)
% out = sc(...)
% [out clim map] = sc(...)
% sc
%
% Generates a truecolor RGB image based on the input values in 'image' and
% any maximum and minimum limits specified, using the colormap specified.
% The image is displayed on screen if there is no output argument.
%
% SC has these advantages over MATLAB image rendering functions:
% - images can be displayed or output; makes combining/overlaying images
% simple.
% - images are rendered/output in truecolor (RGB [0,1]); no nasty
% discretization of the input data.
% - many special, built-in colormaps for viewing various types of data.
% - linearly interpolates user defined linear and non-linear colormaps.
% - no border and automatic, integer magnification (unless figure is
% docked or maximized) for better display.
% - multiple images can be generated simultaneously.
%
% For a demonstration, simply call SC without any input arguments.
%
% If you don't like the display behaviour of SC, e.g. the fixed aspect
% ratio, no border and axes, then you can replicate the behaviour of
% IMAGESC using the wrapper function IMSC.
%
% IN:
% image - MxNxCxP or 3xMxNxP image array. MxN are the dimensions of the
% image(s), C is the number of channels, and P the number of
% images. If P > 1, images can only be exported, not displayed.
% limits - [min max] where values in image less than min will be set to
% min and values greater than max will be set to max.
% map - Kx3 or Kx4 user defined colormap matrix, where the optional 4th
% column is the relative distance between colours along the scale,
% or a string containing the name of the colormap to use to create
% the output image. Default: 'none', which is RGB for 3-channel
% images, grayscale otherwise. Conversion of multi-channel images
% to intensity for intensity-based colormaps is done using the L2
% norm. Most MATLAB colormaps are supported. All named colormaps
% can be reversed by prefixing '-' to the string. This maintains
% integrity of the colorbar. Special, non-MATLAB colormaps are:
% 'hicontrast' - a high contrast colormap for intensity images that
% maintains intensity scale when converted to
% grayscale, for example when printing in black &
% white.
% 'prob' - first channel is plotted as hue, and the other channels
% modulate intensity. Useful for laying probabilites over
% images.
% 'prob_jet' - first channel is plotted as jet colormap, and the other
% channels modulate intensity.
% 'diff' - intensity values are marked blue for > 0 and red for < 0.
% Darker colour means larger absolute value. For multi-
% channel images, the L2 norm of the other channels sets
% green level. 3 channel images are converted to YUV and
% images with more that 3 channels are projected onto the
% principle components first.
% 'compress' - compress many channels to RGB while maximizing
% variance.
% 'contrast' - apply the CONTRAST function to create an approximately
% equal intensity distribution.
% 'flow' - display two channels representing a 2d Cartesian vector as
% hue for angle and intensity for magnitude (darker colour
% indicates a larger magnitude).
% 'phase' - first channel is intensity, second channel is phase in
% radians. Darker colour means greater intensity, hue
% represents phase from 0 to 2 pi.
% 'stereo' - pair of concatenated images used to generate a red/cyan
% anaglyph.
% 'stereo_col' - pair of concatenated RGB images used to generate a
% colour anaglyph.
% 'segment' - given concatenated image and segmentation (index image),
% colour each segment with the mean colour of the image in
% that segment.
% 'rand' - gives an index image a random colormap. Useful for viewing
% segmentations.
% 'rgb2gray' - converts an RGB image to grayscale in the same fashion
% as MATLAB's rgb2gray (in the image processing toolbox).
% col/mask pairs - Pairs of parameters for coloring specific parts of the
% image differently. The first (col) parameter can be
% a MATLAB color specifier, e.g. 'b' or [0.5 0 1], or
% one of the colormaps named above, or an MxNx3 RGB
% image. The second (mask) paramater should be an MxN
% logical array indicating those pixels (true) whose
% color should come from the specified color parameter.
% If there is only one col parameter, without a mask
% pair, then mask = any(isnan(I, 3)), i.e. the mask is
% assumed to indicate the location of NaNs. Note that
% col/mask pairs are applied in order, painting over
% previous pixel values.
%
% OUT:
% out - MxNx3xP truecolour (double) RGB image array in range [0, 1].
% clim - 1x2 vector of limits of the input array mapped to linearly
% [0, 1] in out. [] if this mapping is not available, e.g. if
% output image is multi-spectral.
% map - 256x3 colormap of the output. [] is limits is [].
%
% See also IMAGE, IMAGESC, IMSC, COLORMAP, COLORBAR.
% Copyright: Oliver Woodford, 2007-2010
%% Check for arguments
if nargin == 0
% If there are no input arguments then run the demo
if nargout > 0
error('Output expected from no inputs!');
end
demo; % Run the demo
return
end
%% Size our image(s)
[y x c n] = size(I);
I = reshape(I, y, x, c, n);
%% Check if image is given with RGB colour along the first dimension
if y == 3 && c > 3
% Flip colour to 3rd dimension
I = permute(I, [2 3 1 4]);
[y x c n] = size(I);
end
%% Don't do much if I is empty
if isempty(I)
if nargout == 0
% Clear the current axes if we were supposed to display the image
cla; axis off;
else
% Create an empty array with the correct dimensions
I = zeros(y, x, (c~=0)*3, n);
end
return
end
%% Check for multiple images
% If we have a non-singleton 4th dimension we want to display the images in
% a 3x4 grid and use buttons to cycle through them
if n > 1
% Return transformed images in an YxXx3xN array
A = zeros(y, x, 3, n);
for a = 1:n
A(:,:,:,a) = sc(I(:,:,:,a), varargin{:});
end
I = A;
if nargout == 0
clear I
if n > 12
sz = [3 4];
else
sz = [];
end
imdisp(A, 'Size', sz, 'Border', 0.01);
end
return
end
%% Parse the input arguments coming after I (1st input)
[map limits mask] = parse_inputs(I, varargin, y, x);
%% Call the rendering function
if isnumeric(map) && (size(map, 2) == 3 || size(map, 2) == 4)
% Table-based colormap
[I limits map] = table_wrapper(I, map, limits);
elseif ischar(map)
% Predefined colormap
[I limits map] = colormap_switch(I, map, limits);
else
error('map input invalid.');
end
%% Update any masked pixels
I = reshape(I, y*x, 3);
for a = 1:size(mask, 2)
I(mask{2,a},1) = mask{1,a}(:,1);
I(mask{2,a},2) = mask{1,a}(:,2);
I(mask{2,a},3) = mask{1,a}(:,3);
end
I = reshape(I, [y x 3]); % Reshape to correct size
%% Only display if the output isn't used
if nargout == 0
% Display the image
hIm = imdisp(I, 'Border', 0);
% Set the colormap (if valid)
if ~isempty(limits)
set(gcf, 'Colormap', map);
set(gca, 'CLim', limits);
set(hIm, 'CDataMapping', 'scaled');
end
% Don't print out the matrix if we've forgotten the ";"
clear I
end
return
%% Colormap switch
function [I limits map] = colormap_switch(A, cmap, limits)
% Reshape
[y x c] = size(A);
I = full(real(double(reshape(A, y*x, 1, c))));
% If map starts with a '-' sign, invert the colormap
reverseMap = cmap(1) == '-';
% If the map ends with a '*', attempt to make map convert linearly to
% grayscale
grayMap = cmap(end) == '*';
% Large switch statement for all the colormaps
switch lower(cmap(1+reverseMap:end-grayMap))
%% Prism
case 'prism'
% Similar to the MATLAB internal prism colormap, but only works on
% index images, assigning each index (or rounded float) to a
% different colour
[I limits] = index_im(I);
% Generate prism colormap
map = prism(6);
if reverseMap
map = map(end:-1:1,:); % Reverse the map
end
% Lookup the colours
I = mod(I, 6) + 1;
I = map(I,:);
%% Rand
case 'rand'
% Assigns a random colour to each index
[I limits num_vals] = index_im(I);
% Generate random colormap
map = rand(num_vals, 3);
% Lookup the colours
I = map(I,:);
%% Diff
case 'diff'
% Show positive as blue and negative as red, white is 0
switch c
case 1
I(:,2:3) = 0;
case 2
% Second channel can only have absolute value
I(:,3) = abs(I(:,2));
case 3
% Diff of RGB images - convert to YUV first
I = rgb2yuv(I);
I(:,3) = sqrt(sum(I(:,2:end) .^ 2, 2)) ./ sqrt(2);
otherwise
% Use difference along principle component, and other
% channels to modulate second channel
I = calc_prin_comps(I);
I(:,3) = sqrt(sum(I(:,2:end) .^ 2, 2)) ./ sqrt(c - 1);
I(:,4:end) = [];
end
% Generate limits
if isempty(limits)
limits = [min(I(:,1)) max(I(:,1))];
end
limits = max(abs(limits));
if limits
% Scale
if c > 1
I(:,[1 3]) = I(:,[1 3]) / limits;
else
I = I / (limits * 0.5);
end
else
limits = 1;
end
% Colour
M = I(:,1) > 0;
I(:,2) = -I(:,1) .* ~M;
I(:,1) = I(:,1) .* M;
if reverseMap
% Swap first two channels
I = I(:,[2 1 3]);
end
%I = 1 - I * [1 0.4 1; 0.4 1 1; 1 1 0.4]; % (Green/Red)
I = 1 - I * [1 1 0.4; 0.4 1 1; 1 0.4 1]; % (Blue/Red)
I = min(max(I, 0), 1);
limits = [-limits limits]; % For colorbar
%% Flow
case 'flow'
% Calculate amplitude and phase, and use 'phase'
if c ~= 2
error('''flow'' requires two channels');
end
A = sqrt(sum(I .^ 2, 3));
if isempty(limits)
limits = [min(A) max(A)*2];
else
limits = [0 max(abs(limits)*sqrt(2))*2];
end
I(:,1) = atan2(I(:,2), I(:,1));
I(:,2) = A;
if reverseMap
% Invert the amplitude
I(:,2) = -I(:,2);
limits = -limits([2 1]);
end
I = phase_helper(I, limits, 2); % Last parameter tunes how saturated colors can get
% Set NaNs (unknown flow) to 0
I(isnan(I)) = reverseMap;
limits = []; % This colormap doesn't have a valid colorbar
%% Phase
case 'phase'
% Plot amplitude as intensity and angle as hue
if c < 2
error('''phase'' requires two channels');
end
if isempty(limits)
limits = [min(I(:,1)) max(I(:,1))];
end
if reverseMap
% Invert the phase
I(:,2) = -I(:,2);
end
I = I(:,[2 1]);
if diff(limits)
I = phase_helper(I, limits, 1.3); % Last parameter tunes how saturated colors can get
else
% No intensity - just cycle hsv
I = real2rgb(mod(I(:,1) / (2 * pi), 1), 'hsv');
end
limits = []; % This colormap doesn't have a valid colorbar
%% RGB2Gray
case {'rgb2gray', 'rgb2grey'}
% Compress RGB to greyscale
[I limits] = rgb2gray(I, limits, reverseMap);
%% RGB2YUV
case 'rgb2yuv'
% Convert RGB to YUV - not for displaying or saving to disk!
[I limits] = rgb2yuv(I);
%% YUV2RGB
case 'yuv2rgb'
% Convert YUV to RGB - undo conversion of rgb2yuv
if c ~= 3
error('''yuv2rgb'' requires a 3 channel image');
end
I = I(:,:) * [1 1 1; 0, -0.39465, 2.03211; 1.13983, -0.58060 0];
I = rescale(I, limits);
limits = []; % This colormap doesn't have a valid colorbar
%% Prob
case 'prob'
% Plot first channel as grey variation of 'bled' and modulate
% according to other channels
if c > 1
A = rgb2gray(I(:,:,2:end), [], false);
I = I(:,:,1);
else
A = 0.5;
end
cmap2 = cmap;
cmap2((1:4)+reverseMap) = 'bled';
[I limits] = real2rgb(I, cmap2, limits);
I = rescale(A + I, [-0.1 1.3]);
%% Prob_jet
case 'prob_jet'
% Plot first channel as 'jet' and modulate according to other
% channels
if c > 1
A = rgb2gray(I(:,:,2:end), [], false);
I = I(:,:,1);
else
A = 0.5;
end
cmap2 = cmap;
cmap2(reverseMap+(1:5)) = [];
[I limits] = real2rgb(I, cmap2, limits);
I = rescale(A + I, [0.2 1.8]);
%% Compress
case 'compress'
% Compress to RGB, maximizing variance
% Determine and scale to limits
I = rescale(I, limits);
if reverseMap
% Invert after everything
I = 1 - I;
end
% Zero mean
meanCol = mean(I, 1);
isBsx = exist('bsxfun', 'builtin');
if isBsx
I = bsxfun(@minus, I, meanCol);
else
I = I - meanCol(ones(x*y, 1, 'uint8'),:);
end
% Calculate top 3 principle components
I = calc_prin_comps(I, 3);
% Normalize each channel independently
if isBsx
I = bsxfun(@minus, I, min(I, [], 1));
I = bsxfun(@times, I, 1./max(I, [], 1));
else
for a = 1:3
I(:,a) = I(:,a) - min(I(:,a));
I(:,a) = I(:,a) / max(I(:,a));
end
end
% Put components in order of human eyes' response to channels
I = I(:,[2 1 3]);
limits = []; % This colormap doesn't have a valid colorbar
%% Contrast
case 'contrast'
% Use MATLAB's CONTRAST function to spread the gray levels evenly
[I limits] = intensity(I, limits, 0);
map = contrast(I, 256);
if reverseMap
map = map(end:-1:1,:);
end
I = real2rgb(I, map, [0 1]);
%% Stereo (anaglyph)
case 'stereo'
% Convert 2 colour images to intensity images
% Show first channel as red and second channel as cyan
A = rgb2gray(I(:,1:floor(end/2)), limits, false);
I = rgb2gray(I(:,floor(end/2)+1:end), limits, false);
if reverseMap
I(:,2:3) = A(:,1:2); % Make first image cyan
else
I(:,1) = A(:,1); % Make first image red
end
limits = []; % This colormap doesn't have a valid colorbar
%% Coloured anaglyph
case 'stereo_col'
if c ~= 6
error('''stereo_col'' requires a 6 channel image');
end
I = rescale(I, limits);
% Red channel from one image, green and blue from the other
if reverseMap
I(:,1) = I(:,4); % Make second image red
else
I(:,2:3) = I(:,5:6); % Make first image red
end
I = I(:,1:3);
limits = []; % This colormap doesn't have a valid colorbar
%% Coloured segments
case 'segment'
% Last channel assumed to be an index image. Output each segment as
% a mean of the other channels in the segment.
if c < 2
error('''segment'' requires at least 2 channels');
end
[S num_vals num_vals] = index_im(I(:,end));
% Generate the means
R = 1 ./ (accumarray(S, 1, [num_vals 1]) + 1e-300);
for a = c-1:-1:1
J(:,1,a) = accumarray(S, I(:,a), [num_vals 1]) .* R;
end
if c == 4
J = rescale(J, limits);
limits = [];
else
[J limits map] = table_wrapper(J, 'gray', limits);
end
% Generate the image
I = J(S,:);
%% None
case 'none'
% No colormap - just output the image
if c == 3
I = rescale(I, limits);
limits = [];
if reverseMap
I = 1 - I;
end
else
cmap((1:4)+reverseMap) = 'gray';
[I limits map] = table_wrapper(I, cmap, limits);
end
%% Grey
case 'grey'
cmap(3+reverseMap) = 'a';
[I limits map] = table_wrapper(I, cmap, limits);
%% Colourcube
case {'colorcube2', 'colourcube2'}
% Psychedelic colormap inspired by MATLAB's version
[I limits] = intensity(I, limits, reverseMap); % Intensity map
step = 4;
I = I * (step * (1 - eps));
J = I * step;
K = floor(J);
I = cat(3, mod(K, step)/(step-1), J - floor(K), mod(floor(I), step)/(step-1));
%% Functional colormap
otherwise
[I limits map] = table_wrapper(I, cmap, limits);
end
I = reshape(I, y, x, 3);
% Fix up the colormap
if nargout > 2
if isempty(limits)
map = [];
elseif ~exist('map', 'var')
map = (0:255) * ((limits(2) - limits(1)) / 255) + limits(1);
map = squeeze(colormap_switch(map, cmap, limits));
end
end
return
%% Parse input variables
function [map limits mask] = parse_inputs(I, inputs, y, x)
% Check the first two arguments for the colormap and limits
ninputs = numel(inputs);
map = 'none';
limits = [];
mask = 1;
for a = 1:min(2, ninputs)
if ischar(inputs{a}) && numel(inputs{a}) > 1
% Name of colormap
map = inputs{a};
elseif isnumeric(inputs{a})
[p q r] = size(inputs{a});
if (p * q * r) == 2
% Limits
limits = double(inputs{a});
elseif p > 1 && (q == 3 || q == 4) && r == 1
% Table-based colormap
map = inputs{a};
else
break;
end
else
break;
end
mask = mask + 1;
end
% Check for following inputs
if mask > ninputs
mask = cell(2, 0);
return
end
% Following inputs must either be colour/mask pairs, or a colour for NaNs
if ninputs - mask == 0
mask = cell(2, 1);
mask{1} = inputs{end};
mask{2} = ~all(isfinite(I), 3);
elseif mod(ninputs-mask, 2) == 1
mask = reshape(inputs(mask:end), 2, []);
else
error('Error parsing inputs');
end
% Go through pairs and generate
for a = 1:size(mask, 2)
% Generate any masks from functions
if isa(mask{2,a}, 'function_handle')
mask{2,a} = mask{2,a}(I);
end
if ~islogical(mask{2,a})
error('Mask is not a logical array');
end
if ~isequal(size(mask{2,a}), [y x])
error('Mask does not match image size');
end
if ischar(mask{1,a})
if numel(mask{1,a}) == 1
% Generate colours from MATLAB colour strings
mask{1,a} = rem(floor((strfind('kbgcrmyw', mask{1,a}) - 1) * [0.25 0.5 1]), 2);
else
% Assume it's a colormap name
mask{1,a} = sc(I, mask{1,a});
end
end
mask{1,a} = reshape(mask{1,a}, [], 3);
if size(mask{1,a}, 1) ~= y*x && size(mask{1,a}, 1) ~= 1
error('Replacement color/image of unexpected dimensions');
end
if size(mask{1,a}, 1) ~= 1
mask{1,a} = mask{1,a}(mask{2,a},:);
end
end
return
%% RGB2gray
function [B limits] = rgb2gray(A, limits, reverseMap)
% Compress RGB to grayscale
c = size(A, 3);
B = A;
if c == 3
B = reshape(reshape(B, [], 3) * [0.299; 0.587; 0.114], size(B, 1), size(B, 2));
end
[B limits] = intensity(B, limits, reverseMap);
% Replicate channels
B = B(:,:,[1 1 1]);
return
%% RGB2YUV
function [B limits] = rgb2yuv(A)
% Convert RGB to YUV - not for displaying or saving to disk!
c = size(A, 3);
if c ~= 3
error('rgb2yuv requires a 3 channel image');
end
B = reshape(A, [], c) * [0.299, -0.14713, 0.615; 0.587, -0.28886, -0.51498; 0.114, 0.436, -0.10001];
limits = []; % This colormap doesn't have a valid colorbar
return
%% Phase helper
function I = phase_helper(I, limits, n)
I = squeeze(I);
I(:,1) = mod(I(:,1)/(2*pi), 1);
I(:,2) = I(:,2) - limits(1);
I(:,2) = I(:,2) * (n / (limits(2) - limits(1)));
I(:,3) = n - I(:,2);
I(:,[2 3]) = min(max(I(:,[2 3]), 0), 1);
I = hsv2rgb(reshape(I, [], 1, 3));
return
%% Real2rgb wrapper
function [B limits map] = table_wrapper(A, cmap, limits)
% Convert to intensity
[B limits] = intensity(A, limits, 0);
% Convert to colour using the specified colormap
[B map map] = real2rgb(B, cmap, [0 1]);
return
%% Intensity maps
function [I limits] = intensity(I, limits, reverseMap)
% Squash to 1d using L2 norm
if size(I, 3) > 1
I = sqrt(sum(I .^ 2, 3));
end
% Determine and scale to limits
[I limits] = rescale(I, limits);
if limits(1) == limits(2)
limits(2) = limits(1) + 1;
end
if reverseMap
% Invert after everything
I = 1 - I;
end
return
%% Index images
function [J limits num_vals] = index_im(I)
% Returns an index image
if size(I, 2) ~= 1
error('Index maps only work on single channel images');
end
J = round(I);
rescaled = any(abs(I - J) > 0.01);
if rescaled
% Appears not to be an index image. Rescale over 256 indices
m = min(I);
m = m * (1 - sign(m) * eps);
I = I - m;
I = I * (256 / max(I(:)));
J = ceil(I);
num_vals = 256;
elseif nargout > 2
% Output the number of values
J = J - (min(J) - 1);
num_vals = max(J);
end
% These colormaps don't have valid colorbars
limits = [];
return
%% Calculate principle components
function I = calc_prin_comps(I, numComps)
c = size(I, 3);
I = reshape(I, [], c);
if nargin < 2
numComps = c;
end
% Do SVD
[I S] = svd(I, 0);
% Calculate projection of data onto components
S = diag(S);
S = S(1:numComps)';
if exist('bsxfun', 'builtin')
I = bsxfun(@times, I(:,1:numComps), S);
else
I = I(:,1:numComps) .* S(ones(size(I, 1), 1, 'uint8'),:);
end
return
%% Demo function to show capabilities of sc
function demo
%% Demo gray & lack of border
figure; fig = gcf; Z = peaks(256); sc(Z);
display_text([...
' Lets take a standard, MATLAB, real-valued function:\n\n peaks(256)\n\n'...
' Calling:\n\n figure\n Z = peaks(256);\n sc(Z)\n\n'...
' gives (see figure). SC automatically scales intensity to fill the\n'...
' truecolor range of [0 1].\n\n'...
' If your figure isn''t docked, then the image will have no border, and\n'...
' will be magnified by an integer factor (in this case, 2) so that the\n'...
' image is a reasonable size.']);
%% Demo colour image display
figure(fig); clf;
load mandrill; mandrill = ind2rgb(X, map); sc(mandrill);
display_text([...
' That wasn''t so interesting. The default colormap is ''none'', which\n'...
' produces RGB images given a 3-channel input image, otherwise it produces\n'...
' a grayscale image. So calling:\n\n load mandrill\n'...
' mandrill = ind2rgb(X, map);\n sc(mandrill)\n\n gives (see figure).']);
%% Demo discretization
figure(fig); clf;
subplot(121); sc(Z, 'jet'); label(Z, 'sc(Z, ''jet'')');
subplot(122); imagesc(Z); axis image off; colormap(jet(64)); % Fix the fact we change the default depth
label(Z, 'imagesc(Z); axis image off; colormap(''jet'');');
display_text([...
' However, if we want to display intensity images in color we can use any\n'...
' of the MATLAB colormaps implemented (most of them) to give truecolor\n'...
' images. For example, to use ''jet'' simply call:\n\n'...
' sc(Z, ''jet'')\n\n'...
' The MATLAB alternative, shown on the right, is:\n\n'...
' imagesc(Z)\n axis equal off\n colormap(jet)\n\n'...
' which generates noticeable discretization artifacts.']);
%% Demo intensity colormaps
figure(fig); clf;
subplot(221); sc(Z, 'hsv'); label(Z, 'sc(Z, ''hsv'')');
subplot(222); sc(Z, 'colorcube'); label(Z, 'sc(Z, ''colorcube'')');
subplot(223); sc(Z, 'hicontrast'); label(Z, 'sc(Z, ''hicontrast'')');
subplot(224); sc(Z-round(Z), 'diff'); label(Z, 'sc(Z-round(Z), ''diff'')');
display_text([...
' There are several other intensity colormaps to choose from. Calling:\n\n'...
' help sc\n\n'...
' will give you a list of them. Here are several others demonstrated.']);
%% Demo saturation limits & colormap reversal
figure(fig); clf;
subplot(121); sc(Z, [0 max(Z(:))], '-hot'); label(Z, 'sc(Z, [0 max(Z(:))], ''-hot'')');
subplot(122); sc(mandrill, [-0.5 0.5]); label(mandrill, 'sc(mandrill, [-0.5 0.5])');
display_text([...
' SC can also rescale intensity, given an upper and lower bound provided\n'...
' by the user, and invert most colormaps simply by prefixing a ''-'' to the\n'...
' colormap name. For example:\n\n'...
' sc(Z, [0 max(Z(:))], ''-hot'');\n'...
' sc(mandrill, [-0.5 0.5]);\n\n'...
' Note that the order of the colormap and limit arguments are\n'...
' interchangable.']);
%% Demo prob
load gatlin;
gatlin = X;
figure(fig); clf; im = cat(3, abs(Z)', gatlin(1:256,end-255:end)); sc(im, 'prob');
label(im, 'sc(cat(3, prob, gatlin), ''prob'')');
display_text([...
' SC outputs the recolored data as a truecolor RGB image. This makes it\n'...
' easy to combine colormaps, either arithmetically, or by masking regions.\n'...
' For example, we could combine an image and a probability map\n'...
' arithmetically as follows:\n\n'...
' load gatlin\n'...
' gatlin = X(1:256,end-255:end);\n'...
' prob = abs(Z)'';\n'...
' im = sc(prob, ''hsv'') .* sc(prob, ''gray'') + sc(gatlin, ''rgb2gray'');\n'...
' sc(im, [-0.1 1.3]);\n\n'...
' In fact, that particular colormap has already been implemented in SC.\n'...
' Simply call:\n\n'...
' sc(cat(3, prob, gatlin), ''prob'');']);
%% Demo colorbar
colorbar;
display_text([...
' SC also makes possible the generation of a colorbar in the normal way, \n'...
' with all the colours and data values correct. Simply call:\n\n'...
' colorbar\n\n'...
' The colorbar doesn''t work with all colormaps, but when it does,\n'...
' inverting the colormap (using ''-map'') maintains the integrity of the\n'...
' colorbar (i.e. it works correctly) - unlike if you invert the input data.']);
%% Demo combine by masking
figure(fig); clf;
sc(Z, [0 max(Z(:))], '-hot', sc(Z-round(Z), 'diff'), Z < 0);
display_text([...
' It''s just as easy to combine generated images by masking too. Here''s an\n'...
' example:\n\n'...
' im = cat(4, sc(Z, [0 max(Z(:))], ''-hot''), sc(Z-round(Z), ''diff''));\n'...
' mask = repmat(Z < 0, [1 1 3]);\n'...
' mask = cat(4, mask, ~mask);\n'...
' im = sum(im .* mask, 4);\n'...
' sc(im)\n\n'...
' In fact, SC can also do this for you, by adding image/colormap and mask\n'...
' pairs to the end of the argument list, as follows:\n\n'...
' sc(Z, [0 max(Z(:))], ''-hot'', sc(Z-round(Z), ''diff''), Z < 0);\n\n'...
' A benefit of the latter approach is that you can still display a\n'...
' colorbar for the first colormap.']);
%% Demo user defined colormap
figure(fig); clf; sc(abs(Z), rand(10, 3)); colorbar;
display_text([...
' SC can also use user defined colormaps to display indexed images.\n'...
' These can be defined as a linear colormap. For example:\n\n'...
' sc(abs(Z), rand(10, 3))\n colorbar;\n\n'...
' Note that the colormap is automatically linearly interpolated.']);
%% Demo non-linear user defined colormap
figure(fig); clf; sc(abs(Z), [rand(10, 3) exp((1:10)/2)']); colorbar;
display_text([...
' Non-linear colormaps can also be defined by the user, by including the\n'...
' relative distance between the given colormap points on the colormap\n'...
' scale in the fourth column of the colormap matrix. For example:\n\n'...
' sc(abs(Z), [rand(10, 3) exp((1:10)/2)''])\n colorbar;\n\n'...
' Note that the colormap is still linearly interpolated between points.']);
%% Demo compress
load mri;
mri = D;
figure(fig); clf;
sc(squeeze(mri(:,:,:,1:6)), 'compress');
display_text([...
' SC has many colormaps for displaying multi-dimensional data, including\n'...
' ''flow'' for optic flow fields, ''phase'' for edge maps with phase, and\n'...
' ''stereo'' for generating anaglyphs.\n\n'...
' For images with more than 3 channels, SC can compress these images to RGB\n'...
' while maintaining the maximum amount of variance in the data. For\n'...
' example, this 6 channel image:\n\n'...
' load mri\n mri = D;\n sc(squeeze(mri(:,:,:,1:6), ''compress'')']);
%% Demo texture map
figure(fig); clf;
surf(Z, sc(Z, 'hicontrast'), 'edgecolor', 'none');
display_text([...
' Further benefits of SC outputting the image as an array (on top of being\n'...
' able to combine images) are that the image can be saved straight to disk\n'...
' using imwrite(), or can be used to texture map a surface, thus:\n\n'...
' tex = sc(Z, ''hicontrast'');\n'...
' surf(Z, tex, ''edgecolor'', ''none'');']);
%% Demo multiple images
close(fig); % Only way to get round loss of focus (bug?)
figure(fig); clf; sc(mri, 'bone');
display_text([...
' Finally, SC can process multiple images when passed in as a 4d array,\n'...
' either for export or for display. In the latter case, images are\n'...
' displayed as a montage of up to 12 images. For example:\n\n'...
' sc(mri, ''bone'')']);
display_text([...
' Any additional images can then be viewed by scrolling through them using\n'...
' using the scroll (arrow) keys. Try it and see.']);
clc; fprintf('End of demo.\n');
return
%% Some helper functions for the demo
function display_text(str)
clc;
fprintf([str '\n\n']);
fprintf('Press a key to go on.\n');
figure(gcf);
waitforbuttonpress;
return
function label(im, str)
text(size(im, 2)/2, size(im, 1)+12, str,...
'Interpreter', 'none', 'HorizontalAlignment', 'center', 'VerticalAlignment', 'middle');
return
|
github
|
amcorrigan/IA-Lab-master
|
rescale.m
|
.m
|
IA-Lab-master/Utilities/sc/private/rescale.m
| 1,613 |
utf_8
|
427de5e2419533818c74ea0c8fd7f773
|
function [B lims] = rescale(A, lims, out_lims)
%RESCALE Linearly rescale values in an array
%
% Examples:
% B = rescale(A)
% B = rescale(A, lims)
% B = rescale(A, lims, out_lims)
% [B lims] = rescale(A)
%
% Linearly rescales values in an array, saturating values outside limits.
%
% IN:
% A - Input array of any size and class.
% lims - 1x2 array of saturation limits to be used on A. Default:
% [min(A(:)) max(A(:))].
% out_lims - 1x2 array of output limits the values in lims are to be
% rescaled to. Default: [0 1].
%
% OUT:
% B - size(A) double array.
% lims - 1x2 array of saturation limits used on A. Equal to the input
% lims, if given.
% $Id: rescale.m,v 1.2 2009/04/05 15:09:11 ojw Exp $
% Copyright: Oliver Woodford, 2009
if nargin < 3
out_lims = [0 1];
end
if nargin < 2 || isempty(lims)
M = isfinite(A);
if ~any(reshape(M, numel(M), 1))
% All NaNs, Infs or -Infs
B = double(A > 0);
lims = [0 1];
else
lims = [min(A(M)) max(A(M))];
B = normalize(A, lims, out_lims);
end
clear M
else
B = normalize(A, lims, out_lims);
B = min(max(B, out_lims(1)), out_lims(2));
end
return
function B = normalize(A, lims, out_lims)
if lims(2) == lims(1) || out_lims(1) == out_lims(2)
B = zeros(size(A));
else
B = double(A);
if lims(1)
B = B - lims(1);
end
v = (out_lims(2) - out_lims(1)) / (lims(2) - lims(1));
if v ~= 1
B = B * v;
end
end
if out_lims(1)
B = B + out_lims(1);
end
return
|
github
|
amcorrigan/IA-Lab-master
|
sfm_local_chanvese.m
|
.m
|
IA-Lab-master/ThirdParty/lanktonchanvese/sfm_local_chanvese.m
| 2,172 |
utf_8
|
3a6307d657f860fcd0f80de155397eb3
|
% [seg Lz] = sfm_local_chanvese(img,mask,iterations,lambda,rad,display)
%
% img - any image (2D or 3D). color images will be
% converted to grayscale.
%
% mask - binary image representing initialization.
% (1's foreground, 0's background)
%
% iterations - number of iterations to run
%
% lambda - relative weighting of curve smoothness
% (lambda will ususally be between [0,1])
%
% rad - the radius of the ball used for localization
%
% display - whether or not to display intermediate results
%
% seg - binary map of resulting segmentation
% (1's foreground, 0's background)
%
% Lz - A list of the indexes of points on the zero level set.
%
% --------------------------------------
% written by Shawn Lankton (4/17/2009) - www.shawnlankton.com
%
function [seg Lz] = sfm_local_chanvese(img,mask,iterations,lam,rad,display)
% ensure mex is compiled
if(isempty(which('sfm_local_chanvese_mex')))
compile_sfm_local_chanvese
end
% check for color image and convert to grayscale
if(numel(size(img))==3) %if image is 3D
if(size(img,3)==3) %z dim is 3... probably color
img = rgb2gray(img);%rescale to grayscale
end
end
% mex is expecting img to be a double
img = double(img);
mask = double(mask);
if(any(size(img)~=size(mask)))
error('img and mask must be the same size');
end
% default value of iterations is 100
if(~exist('iterations','var'))
iterations = 100;
end
iterations = double(iterations);
% default value of lambda is 0.1
if(~exist('lam','var'))
lam = 0.1;
end
lam = double(lam);
% default value of rad is 10
if(~exist('rad','var'))
rad = 10;
end
rad = double(rad);
% default value of display is 1
if(~exist('display','var'))
display = 1;
end
display = double(display);
if(display)
clf;
imagesc(img);
end
% perform segmentation
[phi c] = sfm_local_chanvese_mex(img,mask,iterations,display,lam,rad);
% get labelmap from signed distance function
seg = phi<=0;
Lz = uint32(c)+1;
|
github
|
amcorrigan/IA-Lab-master
|
fat_contour.m
|
.m
|
IA-Lab-master/ThirdParty/lanktonchanvese/fat_contour.m
| 571 |
utf_8
|
d41a83dbdb50798bcf825109fc225bb8
|
% FAT_CONTOUR draw a easily visible contour
function [h1 h2] = fat_contour(phi,dashed,c1)
%Coded by: Shawn Lankton
%Function: Display a contour
c2 = 'k';
if(~exist('c1','var')) c1 = 'r'; end
if(~exist('dashed','var')) dashed = false; end
t1 = 4;
t2 = 2;
hold on;
if(dashed)
h1 = contour(phi,[0 0],c1,'linewidth',t1,'linestyle','--');
h2 = contour(phi,[0 0],c2,'linewidth',t2,'linestyle','--');
else
h1 = contour(phi,[0 0],c1,'linewidth',t1);
h2 = contour(phi,[0 0],c2,'linewidth',t2);
end
hold off;
end
|
github
|
amcorrigan/IA-Lab-master
|
AboutWound.m
|
.m
|
IA-Lab-master/Examples/Pellet/AboutWound.m
| 3,125 |
utf_8
|
e11339d283a2565d848bcb30104c1aa5
|
function varargout = AboutWound(varargin)
% ABOUTWOUND MATLAB code for AboutWound.fig
% ABOUTWOUND, by itself, creates a new ABOUTWOUND or raises the existing
% singleton*.
%
% H = ABOUTWOUND returns the handle to a new ABOUTWOUND or the handle to
% the existing singleton*.
%
% ABOUTWOUND('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ABOUTWOUND.M with the given input arguments.
%
% ABOUTWOUND('Property','Value',...) creates a new ABOUTWOUND or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before AboutWound_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to AboutWound_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help AboutWound
% Last Modified by GUIDE v2.5 12-Dec-2016 10:16:07
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @AboutWound_OpeningFcn, ...
'gui_OutputFcn', @AboutWound_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
end
% --- Executes just before AboutWound is made visible.
function AboutWound_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to AboutWound (see VARARGIN)
anImage = imread('pellet.png');
imshow(anImage, [], 'Parent', handles.axes1, 'InitialMagnification', 'fit');
set(handles.axes1,'xcolor','w','ycolor','w','xtick',[],'ytick',[]);
set(handles.figure1,'Name','About Pellet Explorer')
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes YEAbout wait for user response (see UIRESUME)
% uiwait(handles.figure1);
end
% --- Outputs from this function are returned to the command line.
function varargout = AboutWound_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout = cell(nargout,1);
end
|
github
|
amcorrigan/IA-Lab-master
|
amcFillNaNs.m
|
.m
|
IA-Lab-master/Examples/Spheroid3D/utilities/amcFillNaNs.m
| 1,083 |
utf_8
|
58043bf2cbc8e1f285c575e09666201e
|
function outim = amcFillNaNs(im,blurScale,maxIts,initScale,epsilon)
% fill in NaNs by iteratively blurring from the edges
if nargin<2 || isempty(blurScale)
blurScale = max(1,0.01*min(size(im,1),size(im,2)));
end
if nargin<3 || isempty(maxIts)
maxIts = 40;
end
if nargin<4 || isempty(initScale)
initScale = 5*blurScale;
end
if nargin<5 || isempty(epsilon)
epsilon = 2e-2;
end
nanreg = isnan(im);
fim = gaussBlurNaNs(im,initScale,nanreg);
while nnz(isnan(fim))>0
fim = gaussBlurNaNs(fim,initScale);
end
outim = im;
outim(nanreg) = fim(nanreg);
for ii = 1:maxIts
fim = gaussFiltND(outim,blurScale*[1,1]);
if max(abs(fim(nanreg)-outim(nanreg))./outim(nanreg))<epsilon
outim(nanreg) = fim(nanreg);
break;
else
outim(nanreg) = fim(nanreg);
end
end
end
function fim = gaussBlurNaNs(im,lscale,bw)
if nargin<3 || isempty(bw)
bw = isnan(im);
end
im(bw) = 0;
num = gaussFiltND(im,lscale*[1,1],0);
denom = gaussFiltND(~bw,lscale*[1,1],0);
fim = num./denom;
end
|
github
|
amcorrigan/IA-Lab-master
|
bwdistsc.m
|
.m
|
IA-Lab-master/Examples/Spheroid3D/utilities/bwdistsc.m
| 18,385 |
utf_8
|
a8192c2781c7f03ef9cf7e9f0b91c769
|
function D=bwdistsc(bw,aspect)
% D=BWDISTSC(BW,ASPECT)
% BWDISTSC computes Euclidean distance transform of the binary 3D image
% BW. For each pixel in BW, the distance transform assignes a number
% that is the distance between that pixel and the nearest nonzero pixel
% of BW. BW may be a single 2D image, 3D array or a cell array of
% 2D slices. ASPECT is 3-component vector defining aspect ratio in
% the dataset BW. If ASPECT is not specified, isotropic aspect
% ratio [1 1 1] is assumed.
%
% BWDISTSC uses fast optimized scanning algorithm and cell-arrays to
% represent internal data, so that it is less demanding to physical
% memory. In many cases BWDISTSC is actually faster than MATLAB's
% optimized kd-tree algorithm used for Euclidean distance
% transform in 3D.
%
% BWDISTSC tries to use MATLAB bwdist for 2D scans if possible, which
% is significantly faster. Otherwise BWDISTSC uses internal algorithm
% to perform 2D scans.
%
% Yuriy Mishchenko JFRC HHMI Chklovskii Lab JUL 2007
% This code is free for use or modifications, just please give credit
% where appropriate. And if you modify code or fix bugs, please drop
% me a message at [email protected].
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Scan algorithms below use following Lema: %
% LEMA: let F(X,z) be lower envelope of a family of parabola: %
% F(X,z)=min_{i} [G_i(X)+(z-k_i)^2]; %
% and let H_k(X,z)=A(X)+(z-k)^2 be a parabola. %
% Then for H_k(X,z)==F(X,z) at each X there exist at most %
% two solutions k1<k2 such that H_k12(X,z)=F(X,z), and %
% H_k(X,z)<F(X,z) is restricted to at most k1<k2. %
% Here X is any-dimensional coordinate. %
% %
% Thus, simply scan away from any z such that H_k(X,z)<F(X,z) %
% in either direction as long as H_k(X,z)<F(X,z) and update %
% F(X,z). Note that need to properly choose starting point; %
% starting point is any z such that H_k(X,z)<F(X,z); z==k is %
% usually, but not always the starting point!!! %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% parse inputs
if(nargin<2 || isempty(aspect)) aspect=[1 1 1]; end
% determine geometry of data
if(iscell(bw)) shape=[size(bw{1}),length(bw)]; else shape=size(bw); end
% fix to handle 1D & 2D images
if(length(shape)<3) shape(length(shape)+1:3)=1; end
if(length(aspect)<3) aspect(length(aspect)+1:3)=1; end
% allocate space
D=cell(1,shape(3)); for k=1:shape(3) D{k}=zeros(shape(1:2)); end
%%%%%%%%%%%%% scan along XY %%%%%%%%%%%%%%%%
for k=1:shape(3)
if(iscell(bw)) bwXY=bw{k}; else bwXY=bw(:,:,k); end
% initialize arrays
DXY=zeros(shape(1:2));
D1=zeros(shape(1:2));
DK=zeros(shape(1:2));
% if can, use 2D bwdist from image processing toolbox
if(exist('bwdist') && aspect(1)==aspect(2))
D1=aspect(1)^2*bwdist(bwXY).^2;
else % if not, use full XY-scan
%%%%%%%%%%%%%%% X-SCAN %%%%%%%%%%%%%%%
% reference nearest bwXY "on"-pixel in x direction downward:
% scan bottow-up, copy x-reference from previous row unless
% there is bwXY "on"-pixel in that point in current row
xlower=repmat(Inf,shape(1:2));
xlower(1,find(bwXY(1,:)))=1; % fill in first row
for i=2:shape(1)
xlower(i,:)=xlower(i-1,:); % copy previous row
xlower(i,find(bwXY(i,:)))=i;% unless there is pixel
end
% reference nearest bwXY "on"-pixel in x direction upward:
xupper=repmat(Inf,shape(1:2));
xupper(end,find(bwXY(end,:)))=shape(1);
for i=shape(1)-1:-1:1
xupper(i,:)=xupper(i+1,:);
xupper(i,find(bwXY(i,:)))=i;
end
% find points for which distance needs to be updated
idx=find(~bwXY); [x,y]=ind2sub(shape(1:2),idx);
% set distance as the shortest to upward or to downward
DXY(idx)=aspect(1)^2*min((x-xlower(idx)).^2,(x-xupper(idx)).^2);
%%%%%%%%%%%%%%% Y-SCAN %%%%%%%%%%%%%%%
% this will be the envelop
% envelop is initialized at Inf to ensure single scan direction,
% otherwise may end up in infinite loop when trying to find
% starting point
D1=repmat(Inf,shape(1:2));
% these will be the references to parabolas defining the envelop
DK=repmat(Inf,shape(1:2));
% starting points
i0=zeros(shape(1),1);
% convenience x-coords array
x=(1:shape(1))';
for i=1:shape(2)
% need to select starting point for each X:
% * starting point should be below current envelop
% * i0==i is not necessarily a starting point
% * there is at most one starting point
% * there may be no starting point
% i0 is the starting points for each X: i0(X) is the first
% y-index such that parabola from line i is below the envelop
% first guess is the current y-line
i0(:)=i;
% some auxiliary datasets
d0=DXY(:,i);
% L0 indicates for which X starting point had been fixed
L0=isinf(d0) | (d0==0);
while(~isempty(find(~L0,1)))
% reference starting points in DXY
idx=sub2ind(shape(1:2),x(~L0),i0(~L0));
% reduce out trivial points (DXY==0)
L=(DXY(idx)==0);
L0(~L0)=L;
idx=idx(~L);
if(isempty(idx)) continue; end
% these are current best parabolas for starting points
ik=DK(idx);
% these are new values from parabola from line #i
dtmp=d0(~L0)+aspect(2)^2*(i0(~L0)-i).^2;
% these starting points are OK - below the envelop
L=D1(idx)>dtmp; D1(idx(L))=dtmp(L);
% points which are still above the envelop but ik==i0,
% will not get any better, so fix them as well
L=L | (ik==i0(~L0));
% all other points are not OK, need new starting point:
% starting point should be at least below parabola
% beating us at current choice of i0
% solve quadratic equation to find where this happens
ik=(ik-i);
di=(D1(idx(~L))-dtmp(~L))./ik(~L)/2/aspect(2)^2;
% should select next highest index to the equality
di=fix(di)+sign(di);
% the new starting points
idx=find(~L0);
i0(idx(~L))=i0(idx(~L))+di;
% update L0 to indicate which points we've fixed
L0(~L0)=L; L0(idx(~L))=(di==0);
% points that went out of boundaries can't get better;
% fix them as well
idx=idx(~L);
idx=idx((i0(idx)<1) | (i0(idx)>shape(2)));
i0(idx)=i;
L0(idx)=1;
end
% reduce out trivial points DXY(idx)<DXY(:,i)
idx=sub2ind(shape(1:2),x,i0);
L=(DXY(idx)>0) | (i0==i);
idx=idx(L);
% these will keep track along which X should
% keep updating distances
map_lower=L;
map_upper=L;
idx_lower=idx;
idx_upper=idx;
% set trivial pixels D==0 in line #i:
% this has to be done b/s we manually discarded them from L0
D1(d0==0,i)=0;
% scan from starting points for each X,i0 in increments of 1
di=0; % distance from current y-line
eols=2; % end-of-line-scan flag
totlen=prod(shape(1:2));
while(eols)
eols=2;
di=di+1;
% select X which can be updated for di<0;
% i.e. X which had been below envelop all way till now
if(~isempty(idx_lower))
% shift y by -1
idx_lower=idx_lower-shape(1);
% prevent index dropping below 1st
L=(idx_lower>=1);
map_lower(map_lower)=L;
idx_lower=idx_lower(L);
if(~isempty(idx_lower))
dtmp=d0(map_lower)+...
aspect(2)^2*(i0(map_lower)-di-i).^2;
% these pixels are to be updated with i0-di
L=D1(idx_lower)>dtmp & DXY(idx_lower)>0;
map_lower(map_lower)=L;
idx_lower=idx_lower(L);
D1(idx_lower)=dtmp(L);
DK(idx_lower)=i;
end
else % if this is empty, get ready to quit
eols=eols-1;
end
% select X which can be updated for di>0;
% i.e. X which had been below envelop all way till now
if(~isempty(idx_upper))
% shift y by +1
idx_upper=idx_upper+shape(1);
% prevent index from going over array limits
L=(idx_upper<=totlen);
map_upper(map_upper)=L;
idx_upper=idx_upper(L);
if(~isempty(idx_upper))
dtmp=d0(map_upper)+...
aspect(2)^2*(i0(map_upper)+di-i).^2;
% check which pixels are to be updated with i0+di
L=D1(idx_upper)>dtmp & DXY(idx_upper)>0;
map_upper(map_upper)=L;
idx_upper=idx_upper(L);
D1(idx_upper)=dtmp(L);
DK(idx_upper)=i;
end
else % if this is empty, get ready to quit
eols=eols-1;
end
end
end
end
D{k}=D1;
end
%%%%%%%%%%%%% scan along Z %%%%%%%%%%%%%%%%
% this will be the envelop:
% envelop has to be initialized at Inf to ensure single direction of scan,
% otherwise may end up in infinite loop when trying to find starting point
D1=cell(size(D));
for k=1:shape(3) D1{k}=repmat(Inf,shape(1:2)); end
% these will be the references to parabolas defining the envelop
DK=cell(size(D));
for k=1:shape(3) DK{k}=repmat(Inf,shape(1:2)); end
% start building the envelope
for k=1:shape(3)
% need to select starting point for each X:
% * starting point should be below current envelop
% * k0==k is not necessarily a starting point
% * there may be no starting point
% k0 is the starting points for each XY: k0(XY) is the first
% z-index such that parabola from line k is below the envelop
% initial starting point guess is current slice
k0=repmat(k,shape(1:2));
% L0 indicates which starting points had been fixed
L0=isinf(D{k}) | (D{k}==0);
idxtot=find(~L0);
while(~isempty(idxtot))
% because of using cells need to explicitly scan in Z
% to avoid repetitious searches in k0, parse first
ss=getregions(k0(idxtot));
sslen=length(ss);
for kk=1:sslen
% these are starting points @kk which had not been set
idx=idxtot(ss(kk).PixelIdxList);
% reduce out trivial points (D==0)
if(kk~=k)
L=(D{kk}(idx)==0);
L0(idx)=L;
idx=idx(~L);
end
if(isempty(idx)) continue; end
% these are currently best parabolas for slice kk
ik=DK{kk}(idx);
% these are new values for slice kk from parabola from k
dtmp=D{k}(idx)+aspect(3)^2*(kk-k)^2;
% these points are OK - below current envelop
L=D1{kk}(idx)>dtmp; D1{kk}(idx(L))=dtmp(L);
% these points are not OK, but since ik==k0
% can't get any better
L=L | (ik==kk);
% all other points are not OK, need new starting point:
% starting point should be at least below parabola
% beating us at current choice of k0
% solve quadratic equation to find where this happens
ik=(ik-k);
dk=(D1{kk}(idx(~L))-dtmp(~L))./ik(~L)/2/aspect(3)^2;
dk=fix(dk)+sign(dk);
k0(idx(~L))=k0(idx(~L))+dk;
% update starting points that had been set
L0(idx)=L;
L0(idx(~L))=(dk==0);
% points that went out of boundaries can't get better
idx=idx(~L);
idx=idx((k0(idx)<1) | (k0(idx)>shape(3)));
L0(idx)=1;
k0(idx)=k;
end
idxtot=find(~L0);
end
% map_lower/map_upper keeps track of which pixels can be yet updated
% with new distance, i.e. all such XY that had been below envelop for
% all dk up to now for dk<0/dk>0 respectively
map_lower=true(shape(1:2));
map_upper=true(shape(1:2));
% parse different values in k0 to avoid repetitious searching below
ss=getregions(k0);
sslen=length(ss);
% reduce out trivially faulty starting points
for kk=1:sslen
if(kk==k) continue; end
idx=ss(kk).PixelIdxList;
L=D{kk}(idx)>D{k}(idx);
map_lower(idx)=L;
map_upper(idx)=L;
end
% these are maintained to keep fast track of whether maps are empty
idx_lower=find(map_lower);
idx_upper=find(map_upper);
% set trivial pixels D==0 in slice k:
% this has to be done b/s we manually discarded them from L0
D1{k}(D{k}==0)=0;
% scan away from starting points in increments of 1
dk=0; % distance from current xy-slice
eols=2; % end-of-scan flag
while(eols)
eols=2;
dk=dk+1;
if(~isempty(idx_lower))
% prevent index from going over the boundaries
L=(k0(map_lower)-dk>=1);
map_lower(map_lower)=L;
% need to explicitly scan in Z because of using cell-arrays
for kk=1:sslen-dk
% get all XY such that k0-dk==kk
idx=ss(kk+dk).PixelIdxList;
L=map_lower(idx);
idx=idx(L);
if(~isempty(idx))
dtmp=D{k}(idx)+aspect(3)^2*(kk-k)^2;
% these pixels are to be updated with k0-dk
L=D1{kk}(idx)>dtmp & D{kk}(idx)>0;
map_lower(idx)=L;
D1{kk}(idx(L))=dtmp(L);
% ridiculously, but this is faster than
% direct assignment
dtmp=idx(L);
dtmp(:)=k;
DK{kk}(idx(L))=k;
end
end
idx_lower=idx_lower(map_lower(idx_lower));
else
eols=eols-1;
end
if(~isempty(idx_upper))
% prevent index from going over the boundaries
L=(k0(map_upper)+dk<=shape(3));
map_upper(map_upper)=L;
% need to explicitly scan in Z because of using cell-arrays
for kk=dk+1:min(shape(3),sslen+dk)
% get all XY such that k0+dk==kk
idx=ss(kk-dk).PixelIdxList;
L=map_upper(idx);
idx=idx(L);
if(~isempty(idx))
dtmp=D{k}(idx)+aspect(3)^2*(kk-k)^2;
% these pixels are to be updated with k0+dk
L=D1{kk}(idx)>dtmp & D{kk}(idx)>0;
map_upper(idx)=L;
D1{kk}(idx(L))=dtmp(L);
dtmp=idx(L);
dtmp(:)=k;
DK{kk}(idx(L))=dtmp;
end
end
idx_upper=idx_upper(map_upper(idx_upper));
else
eols=eols-1;
end
end
end
% the answer
if(iscell(bw))
D=cell(size(bw));
for k=1:shape(3) D{k}=sqrt(D1{k}); end
else
D=zeros(shape);
for k=1:shape(3) D(:,:,k)=sqrt(D1{k}); end
end
function s=getregions(map)
% this function is replacer for regionprops(map,'PixelIdxList');
% it produces the list of different values along with list of
% indexes of pixels in map with these values; 's' is struct-array
% such that s(i).PixelIdxList contains list of pixels in map
% with value i.
% enable using regionprops if available, faster on 7.3
fregionprops=1;
% version control for using regionprops
v=version; v=str2num(v(1:3));
fregionprops=fregionprops & v>=7.3;
% in later matlab regionprops is actually faster than this code
if(exist('regionprops') & fregionprops)
s=regionprops(map,'PixelIdxList');
return
end
idx=(1:prod(size(map)))';
dtmp=double(map(:));
[dtmp,ind]=sort(dtmp);
idx=idx(ind);
ind=[0;find([diff(dtmp(:));1])];
s=[];
for i=2:length(ind)
if(dtmp(ind(i)))==0 continue; end
s(dtmp(ind(i))).PixelIdxList=idx(ind(i-1)+1:ind(i));
end
|
github
|
amcorrigan/IA-Lab-master
|
nuclearPropertiesFunctionTest.m
|
.m
|
IA-Lab-master/Tests/nuclearPropertiesFunctionTest.m
| 693 |
utf_8
|
ba0a6abfb01ff7b5766b72580e174ee8
|
function tests = nuclearPropertiesFunctionTest
tests = functiontests(localfunctions);
end
function setupOnce(testCase)
parentfolder = fileparts(which('nuclearPropertiesWorkflow.m'));
parser = ParserYokogawa(fullfile(parentfolder,'AssayPlate'));
testCase.TestData.Workflow = nuclearPropertiesWorkflow('tempoutput',parser);
end
function testReproducibleStats(testCase)
imobj = testCase.TestData.Workflow.BatchParser.ParserObj.getAC2DObj('well','E03');
testCase.verifyTrue(iscell(imobj));
testCase.verifyEqual(numel(imobj),1,'Should be 1 image object returned');
imdata = imobj{1}.getDataC2D();
testCase.verifyEqual(numel(imdata),3,'Should be 3 channels');
end
|
github
|
amcorrigan/IA-Lab-master
|
YEAbout.m
|
.m
|
IA-Lab-master/YokoV2/YEAbout.m
| 3,650 |
utf_8
|
80021317baece190475f4d64bdddfe24
|
function varargout = YEAbout(varargin)
% YEABOUT MATLAB code for YEAbout.fig
% YEABOUT, by itself, creates a new YEABOUT or raises the existing
% singleton*.
%
% H = YEABOUT returns the handle to a new YEABOUT or the handle to
% the existing singleton*.
%
% YEABOUT('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in YEABOUT.M with the given input arguments.
%
% YEABOUT('Property','Value',...) creates a new YEABOUT or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before YEAbout_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to YEAbout_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help YEAbout
% Last Modified by GUIDE v2.5 14-Oct-2016 13:34:02
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @YEAbout_OpeningFcn, ...
'gui_OutputFcn', @YEAbout_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
end
% --- Executes just before YEAbout is made visible.
function YEAbout_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to YEAbout (see VARARGIN)
%_______________________________________________
% change Yinhai Icon
% % jFrame = get(hObject,'JavaFrame');
% % jIcon = javax.swing.ImageIcon('\\UK-Image-01\IAGroup\SB\2016\Yoko\Source Code\Artworks\icon_48.png');
% % jFrame.setFigureIcon(jIcon);
% commented this out until any conflict with the licensing agreement is
% clarified
% this isn't necessary, everything is stored in handles
% hAxes = findobj('Tag', 'AxesAbout');
% anImage = imread('\\UK-Image-01\IAGroup\SB\2016\Yoko\Source Code\Artworks\panel.png');
anImage = imread('IALab.png');
imshow(anImage, [], 'Parent', handles.AxesAbout, 'InitialMagnification', 'fit');
set(handles.AxesAbout,'xcolor','w','ycolor','w','xtick',[],'ytick',[]);
set(handles.figure1,'Name','About IALab')
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes YEAbout wait for user response (see UIRESUME)
% uiwait(handles.figure1);
end
% --- Outputs from this function are returned to the command line.
function varargout = YEAbout_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout = cell(nargout,1);
end
|
github
|
amcorrigan/IA-Lab-master
|
gaussFiltND.m
|
.m
|
IA-Lab-master/Filters/gaussFiltND.m
| 1,751 |
utf_8
|
37578851d6366b2c6b5ba79f53e5a72c
|
function fim = gaussFiltND(im,frad,boundcon,relsiz)
% N-dimensional Gaussian filtering
% This works by permuting the image rather than the
% kernel so that the filtering is always done along the first dimension,
% which seems to be faster for some reason.
if nargin<4 || isempty(relsiz)
relsiz = 6; % size of the filter relative to the Gaussian radius
end
if nargin<3 || isempty(boundcon)
boundcon = 'replicate';
end
if ~isa(im,'double')
im = double(im);
end
% the number of elements of frad explicitly tells us how many dimensions we
% want to filter, so a scalar would mean only the x-dimension is filtered
siz = odd(relsiz.*frad,'up'); % element-wise in case we've specified different relative sizes in each dimension..
% need to work out which dimensions are to be permuted
totdim = numel(size(im)); % assume we won't be daft enough to use this function for low dimensional images..
ndim = numel(frad);
% allow a filter radius of zero to specify no filtering
pvect = 1:totdim;
pvect(1:ndim) = [ndim,1:(ndim-1)];
fim = im;
% work in reverse order
for ii = ndim:-1:1
fim = permute(fim,pvect);
if frad(ii)>0
n = (0.55:0.1:(siz(ii)+0.45))';
m = (1+siz(ii))/2;
temp1 = exp(-((n-m).^2)/(2*frad(ii)^2));
kk = sum(reshape(temp1,[10,numel(temp1)/10]),1)';
kk = kk/sum(kk);
fim = imfilter(fim,kk,boundcon);
end
end
end
function out = odd(x,direction)
if nargin<2
direction = 'up';
end
if ~ischar(direction)
if direction>0
direction = 'up';
else
direction = 'down';
end
end
switch direction
case 'up'
out = ceil((x + 1)/2)*2 - 1;
case 'down'
out = floor((x + 1)/2)*2 - 1;
end
end
|
github
|
amcorrigan/IA-Lab-master
|
amcBilateral2D.m
|
.m
|
IA-Lab-master/Filters/amcBilateral2D.m
| 5,348 |
utf_8
|
c9c7a1e74c52e78500f4ee6e81555d70
|
function fim = amcBilateral2D(im,rdata,sxy,sr,rbins,xydsc)
% fast bilateral filtering, taking advantage of MATLAB's efficiency of
% array indexing
% Adam Corrigan
% if the normalization for r-binning is done only on rg without changing
% im, we don't have to scale then rescale at the end..
% first thing to do is create a 3D image of im separated by intensity
if nargin<4 || isempty(rbins)
rbins = 10;
end
if nargin<5 || isempty(xydsc)
xydsc = 2; % this should really be related to the size of the xy filter
end
if isscalar(xydsc)
xydsc = xydsc*[1,1];
end
if isempty(rdata)
minim = double(min(im(:)));
maxim = double(max(im(:)));
rg = ceil(rbins*(double(im)-minim)/(maxim-minim));
else
minim = double(min(rdata(:)));
maxim = double(max(rdata(:)));
rg = ceil(rbins*(double(rdata)-minim)/(maxim-minim));
end
rg(rg==0) = 1;
rg(rg>rbins) = rbins;
[xx,yy] = amcMakeGrid(im);
insiz = [size(im,1),size(im,2),rbins];
outsiz = ceil(insiz./[xydsc,1]);
if numel(sxy)==1
sxy = [1,1]*sxy;
end
% width of the z-kernel
sb = sr*rbins;
% width of the xy-kernel in downscaled units
scxy = sxy./xydsc;
% % linind = amcSub2Ind(insiz,[xx(:),yy(:),rg(:)]);
loutind = amcSub2Ind(outsiz,[ceil([xx(:),yy(:)]./(ones(numel(xx),1)*xydsc)),rg(:)]);
% % num3 = zeros(size(im,1),size(im,2),rbins);
% % denom3 = zeros(size(num3));
% %
% % for ii = 1:rbins
% % ntemp = zeros(size(im));
% % dtemp = zeros(size(im));
% % ntemp(rg==ii) = im(rg==ii);
% % dtemp(rg==ii) = 1;
% %
% % num3(:,:,ii) = ntemp;
% % denom3(:,:,ii) = dtemp;
% % end
% % d3 = zeros(insiz);
% % n3 = zeros(insiz);
% % d3(linind) = 1;
% % n3(linind) = im(:);
% have to use the 'in' indices here because we may have duplicates in the
% 'out' indices and they need to be summed.
% The two lines below take half the total running time, can we find a
% better way? Perhaps accumarray?
% % scd = blocksum(d3,[xydsc,xydsc,1],1);
% % scn = blocksum(n3,[xydsc,xydsc,1],1);
% This can't deal with NaNs..
% scd = reshape(accumarray(loutind,ones(size(loutind)),[prod(outsiz),1]),outsiz);
% scn = reshape(accumarray(loutind,im(:),[prod(outsiz),1]),outsiz);
inds = ~isnan(im);
scd = reshape(accumarray(loutind(inds),ones(nnz(inds),1),[prod(outsiz),1]),outsiz);
scn = reshape(accumarray(loutind(inds),im(inds),[prod(outsiz),1]),outsiz);
% the rest of the running time is the actual filtering, which might be
% improved
% % fi = dog3split2([scxy,sb]);
% % fnum = gauss3filt(scn,fi);
% % fdenom = gauss3filt(scd,fi);
fnum = gaussFiltND(scn,[scxy,sb]);
fdenom = gaussFiltND(scd,[scxy,sb]);
fim = zeros(insiz(1:2));
fim(inds) = fnum(loutind(inds))./fdenom(loutind(inds));
end
function [x,y,z] = amcMakeGrid(im)
% makegrid (because it uses ndgrid) can be very memory intensive (the
% problem seems to be the permute command (line 48 of ndgrid)
% Do something about this
if numel(im)>3
ss = size(im);
else
ss = im;
end
if numel(ss)==1
ss = ss*ones(1,nargout);
end
if numel(ss)==2 && nargout>2
ss = [ss,1];
end
switch length(ss)
case 2
% [x,y] = ndgrid(1:ss(1),1:ss(2));
x = repmat((1:ss(1))',[1 ss(2)]);
y = repmat((1:ss(2)),[ss(1) 1]);
z = ones(size(x));
case 3
% [x,y,z] = ndgrid(1:ss(1),1:ss(2),1:ss(3));
x = repmat((1:ss(1))',[1 ss(2) ss(3)]);
y = repmat((1:ss(2)),[ss(1) 1 ss(3)]);
z = repmat(permute((1:ss(3)),[1 3 2]),[ss(1) ss(2) 1]);
end
end
function fim = gaussFiltND(im,frad,boundcon,relsiz)
% N-dimensional Gaussian filtering
% This works by permuting the image rather than the
% kernel so that the filtering is always done along the first dimension,
% which seems to be faster for some reason.
if nargin<4 || isempty(relsiz)
relsiz = 6; % size of the filter relative to the Gaussian radius
end
if nargin<3 || isempty(boundcon)
boundcon = 'replicate';
end
if ~isa(im,'double')
im = double(im);
end
% the number of elements of frad explicitly tells us how many dimensions we
% want to filter, so a scalar would mean only the x-dimension is filtered
siz = odd(relsiz.*frad,'up'); % element-wise in case we've specified different relative sizes in each dimension..
% need to work out which dimensions are to be permuted
totdim = numel(size(im)); % assume we won't be daft enough to use this function for low dimensional images..
ndim = numel(frad);
% allow a filter radius of zero to specify no filtering
pvect = 1:totdim;
pvect(1:ndim) = [ndim,1:(ndim-1)];
fim = im;
% work in reverse order
for ii = ndim:-1:1
fim = permute(fim,pvect);
if frad(ii)>0
n = (0.55:0.1:(siz(ii)+0.45))';
m = (1+siz(ii))/2;
temp1 = exp(-((n-m).^2)/(2*frad(ii)^2));
kk = sum(reshape(temp1,[10,numel(temp1)/10]),1)';
kk = kk/sum(kk);
fim = imfilter(fim,kk,boundcon);
end
end
end
function out = odd(x,direction)
if nargin<2
direction = 'up';
end
if ~ischar(direction)
if direction>0
direction = 'up';
else
direction = 'down';
end
end
switch direction
case 'up'
out = ceil((x + 1)/2)*2 - 1;
case 'down'
out = floor((x + 1)/2)*2 - 1;
end
end
|
github
|
amcorrigan/IA-Lab-master
|
bwdistsc.m
|
.m
|
IA-Lab-master/Filters/bwdistsc.m
| 18,385 |
utf_8
|
a8192c2781c7f03ef9cf7e9f0b91c769
|
function D=bwdistsc(bw,aspect)
% D=BWDISTSC(BW,ASPECT)
% BWDISTSC computes Euclidean distance transform of the binary 3D image
% BW. For each pixel in BW, the distance transform assignes a number
% that is the distance between that pixel and the nearest nonzero pixel
% of BW. BW may be a single 2D image, 3D array or a cell array of
% 2D slices. ASPECT is 3-component vector defining aspect ratio in
% the dataset BW. If ASPECT is not specified, isotropic aspect
% ratio [1 1 1] is assumed.
%
% BWDISTSC uses fast optimized scanning algorithm and cell-arrays to
% represent internal data, so that it is less demanding to physical
% memory. In many cases BWDISTSC is actually faster than MATLAB's
% optimized kd-tree algorithm used for Euclidean distance
% transform in 3D.
%
% BWDISTSC tries to use MATLAB bwdist for 2D scans if possible, which
% is significantly faster. Otherwise BWDISTSC uses internal algorithm
% to perform 2D scans.
%
% Yuriy Mishchenko JFRC HHMI Chklovskii Lab JUL 2007
% This code is free for use or modifications, just please give credit
% where appropriate. And if you modify code or fix bugs, please drop
% me a message at [email protected].
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Scan algorithms below use following Lema: %
% LEMA: let F(X,z) be lower envelope of a family of parabola: %
% F(X,z)=min_{i} [G_i(X)+(z-k_i)^2]; %
% and let H_k(X,z)=A(X)+(z-k)^2 be a parabola. %
% Then for H_k(X,z)==F(X,z) at each X there exist at most %
% two solutions k1<k2 such that H_k12(X,z)=F(X,z), and %
% H_k(X,z)<F(X,z) is restricted to at most k1<k2. %
% Here X is any-dimensional coordinate. %
% %
% Thus, simply scan away from any z such that H_k(X,z)<F(X,z) %
% in either direction as long as H_k(X,z)<F(X,z) and update %
% F(X,z). Note that need to properly choose starting point; %
% starting point is any z such that H_k(X,z)<F(X,z); z==k is %
% usually, but not always the starting point!!! %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% parse inputs
if(nargin<2 || isempty(aspect)) aspect=[1 1 1]; end
% determine geometry of data
if(iscell(bw)) shape=[size(bw{1}),length(bw)]; else shape=size(bw); end
% fix to handle 1D & 2D images
if(length(shape)<3) shape(length(shape)+1:3)=1; end
if(length(aspect)<3) aspect(length(aspect)+1:3)=1; end
% allocate space
D=cell(1,shape(3)); for k=1:shape(3) D{k}=zeros(shape(1:2)); end
%%%%%%%%%%%%% scan along XY %%%%%%%%%%%%%%%%
for k=1:shape(3)
if(iscell(bw)) bwXY=bw{k}; else bwXY=bw(:,:,k); end
% initialize arrays
DXY=zeros(shape(1:2));
D1=zeros(shape(1:2));
DK=zeros(shape(1:2));
% if can, use 2D bwdist from image processing toolbox
if(exist('bwdist') && aspect(1)==aspect(2))
D1=aspect(1)^2*bwdist(bwXY).^2;
else % if not, use full XY-scan
%%%%%%%%%%%%%%% X-SCAN %%%%%%%%%%%%%%%
% reference nearest bwXY "on"-pixel in x direction downward:
% scan bottow-up, copy x-reference from previous row unless
% there is bwXY "on"-pixel in that point in current row
xlower=repmat(Inf,shape(1:2));
xlower(1,find(bwXY(1,:)))=1; % fill in first row
for i=2:shape(1)
xlower(i,:)=xlower(i-1,:); % copy previous row
xlower(i,find(bwXY(i,:)))=i;% unless there is pixel
end
% reference nearest bwXY "on"-pixel in x direction upward:
xupper=repmat(Inf,shape(1:2));
xupper(end,find(bwXY(end,:)))=shape(1);
for i=shape(1)-1:-1:1
xupper(i,:)=xupper(i+1,:);
xupper(i,find(bwXY(i,:)))=i;
end
% find points for which distance needs to be updated
idx=find(~bwXY); [x,y]=ind2sub(shape(1:2),idx);
% set distance as the shortest to upward or to downward
DXY(idx)=aspect(1)^2*min((x-xlower(idx)).^2,(x-xupper(idx)).^2);
%%%%%%%%%%%%%%% Y-SCAN %%%%%%%%%%%%%%%
% this will be the envelop
% envelop is initialized at Inf to ensure single scan direction,
% otherwise may end up in infinite loop when trying to find
% starting point
D1=repmat(Inf,shape(1:2));
% these will be the references to parabolas defining the envelop
DK=repmat(Inf,shape(1:2));
% starting points
i0=zeros(shape(1),1);
% convenience x-coords array
x=(1:shape(1))';
for i=1:shape(2)
% need to select starting point for each X:
% * starting point should be below current envelop
% * i0==i is not necessarily a starting point
% * there is at most one starting point
% * there may be no starting point
% i0 is the starting points for each X: i0(X) is the first
% y-index such that parabola from line i is below the envelop
% first guess is the current y-line
i0(:)=i;
% some auxiliary datasets
d0=DXY(:,i);
% L0 indicates for which X starting point had been fixed
L0=isinf(d0) | (d0==0);
while(~isempty(find(~L0,1)))
% reference starting points in DXY
idx=sub2ind(shape(1:2),x(~L0),i0(~L0));
% reduce out trivial points (DXY==0)
L=(DXY(idx)==0);
L0(~L0)=L;
idx=idx(~L);
if(isempty(idx)) continue; end
% these are current best parabolas for starting points
ik=DK(idx);
% these are new values from parabola from line #i
dtmp=d0(~L0)+aspect(2)^2*(i0(~L0)-i).^2;
% these starting points are OK - below the envelop
L=D1(idx)>dtmp; D1(idx(L))=dtmp(L);
% points which are still above the envelop but ik==i0,
% will not get any better, so fix them as well
L=L | (ik==i0(~L0));
% all other points are not OK, need new starting point:
% starting point should be at least below parabola
% beating us at current choice of i0
% solve quadratic equation to find where this happens
ik=(ik-i);
di=(D1(idx(~L))-dtmp(~L))./ik(~L)/2/aspect(2)^2;
% should select next highest index to the equality
di=fix(di)+sign(di);
% the new starting points
idx=find(~L0);
i0(idx(~L))=i0(idx(~L))+di;
% update L0 to indicate which points we've fixed
L0(~L0)=L; L0(idx(~L))=(di==0);
% points that went out of boundaries can't get better;
% fix them as well
idx=idx(~L);
idx=idx((i0(idx)<1) | (i0(idx)>shape(2)));
i0(idx)=i;
L0(idx)=1;
end
% reduce out trivial points DXY(idx)<DXY(:,i)
idx=sub2ind(shape(1:2),x,i0);
L=(DXY(idx)>0) | (i0==i);
idx=idx(L);
% these will keep track along which X should
% keep updating distances
map_lower=L;
map_upper=L;
idx_lower=idx;
idx_upper=idx;
% set trivial pixels D==0 in line #i:
% this has to be done b/s we manually discarded them from L0
D1(d0==0,i)=0;
% scan from starting points for each X,i0 in increments of 1
di=0; % distance from current y-line
eols=2; % end-of-line-scan flag
totlen=prod(shape(1:2));
while(eols)
eols=2;
di=di+1;
% select X which can be updated for di<0;
% i.e. X which had been below envelop all way till now
if(~isempty(idx_lower))
% shift y by -1
idx_lower=idx_lower-shape(1);
% prevent index dropping below 1st
L=(idx_lower>=1);
map_lower(map_lower)=L;
idx_lower=idx_lower(L);
if(~isempty(idx_lower))
dtmp=d0(map_lower)+...
aspect(2)^2*(i0(map_lower)-di-i).^2;
% these pixels are to be updated with i0-di
L=D1(idx_lower)>dtmp & DXY(idx_lower)>0;
map_lower(map_lower)=L;
idx_lower=idx_lower(L);
D1(idx_lower)=dtmp(L);
DK(idx_lower)=i;
end
else % if this is empty, get ready to quit
eols=eols-1;
end
% select X which can be updated for di>0;
% i.e. X which had been below envelop all way till now
if(~isempty(idx_upper))
% shift y by +1
idx_upper=idx_upper+shape(1);
% prevent index from going over array limits
L=(idx_upper<=totlen);
map_upper(map_upper)=L;
idx_upper=idx_upper(L);
if(~isempty(idx_upper))
dtmp=d0(map_upper)+...
aspect(2)^2*(i0(map_upper)+di-i).^2;
% check which pixels are to be updated with i0+di
L=D1(idx_upper)>dtmp & DXY(idx_upper)>0;
map_upper(map_upper)=L;
idx_upper=idx_upper(L);
D1(idx_upper)=dtmp(L);
DK(idx_upper)=i;
end
else % if this is empty, get ready to quit
eols=eols-1;
end
end
end
end
D{k}=D1;
end
%%%%%%%%%%%%% scan along Z %%%%%%%%%%%%%%%%
% this will be the envelop:
% envelop has to be initialized at Inf to ensure single direction of scan,
% otherwise may end up in infinite loop when trying to find starting point
D1=cell(size(D));
for k=1:shape(3) D1{k}=repmat(Inf,shape(1:2)); end
% these will be the references to parabolas defining the envelop
DK=cell(size(D));
for k=1:shape(3) DK{k}=repmat(Inf,shape(1:2)); end
% start building the envelope
for k=1:shape(3)
% need to select starting point for each X:
% * starting point should be below current envelop
% * k0==k is not necessarily a starting point
% * there may be no starting point
% k0 is the starting points for each XY: k0(XY) is the first
% z-index such that parabola from line k is below the envelop
% initial starting point guess is current slice
k0=repmat(k,shape(1:2));
% L0 indicates which starting points had been fixed
L0=isinf(D{k}) | (D{k}==0);
idxtot=find(~L0);
while(~isempty(idxtot))
% because of using cells need to explicitly scan in Z
% to avoid repetitious searches in k0, parse first
ss=getregions(k0(idxtot));
sslen=length(ss);
for kk=1:sslen
% these are starting points @kk which had not been set
idx=idxtot(ss(kk).PixelIdxList);
% reduce out trivial points (D==0)
if(kk~=k)
L=(D{kk}(idx)==0);
L0(idx)=L;
idx=idx(~L);
end
if(isempty(idx)) continue; end
% these are currently best parabolas for slice kk
ik=DK{kk}(idx);
% these are new values for slice kk from parabola from k
dtmp=D{k}(idx)+aspect(3)^2*(kk-k)^2;
% these points are OK - below current envelop
L=D1{kk}(idx)>dtmp; D1{kk}(idx(L))=dtmp(L);
% these points are not OK, but since ik==k0
% can't get any better
L=L | (ik==kk);
% all other points are not OK, need new starting point:
% starting point should be at least below parabola
% beating us at current choice of k0
% solve quadratic equation to find where this happens
ik=(ik-k);
dk=(D1{kk}(idx(~L))-dtmp(~L))./ik(~L)/2/aspect(3)^2;
dk=fix(dk)+sign(dk);
k0(idx(~L))=k0(idx(~L))+dk;
% update starting points that had been set
L0(idx)=L;
L0(idx(~L))=(dk==0);
% points that went out of boundaries can't get better
idx=idx(~L);
idx=idx((k0(idx)<1) | (k0(idx)>shape(3)));
L0(idx)=1;
k0(idx)=k;
end
idxtot=find(~L0);
end
% map_lower/map_upper keeps track of which pixels can be yet updated
% with new distance, i.e. all such XY that had been below envelop for
% all dk up to now for dk<0/dk>0 respectively
map_lower=true(shape(1:2));
map_upper=true(shape(1:2));
% parse different values in k0 to avoid repetitious searching below
ss=getregions(k0);
sslen=length(ss);
% reduce out trivially faulty starting points
for kk=1:sslen
if(kk==k) continue; end
idx=ss(kk).PixelIdxList;
L=D{kk}(idx)>D{k}(idx);
map_lower(idx)=L;
map_upper(idx)=L;
end
% these are maintained to keep fast track of whether maps are empty
idx_lower=find(map_lower);
idx_upper=find(map_upper);
% set trivial pixels D==0 in slice k:
% this has to be done b/s we manually discarded them from L0
D1{k}(D{k}==0)=0;
% scan away from starting points in increments of 1
dk=0; % distance from current xy-slice
eols=2; % end-of-scan flag
while(eols)
eols=2;
dk=dk+1;
if(~isempty(idx_lower))
% prevent index from going over the boundaries
L=(k0(map_lower)-dk>=1);
map_lower(map_lower)=L;
% need to explicitly scan in Z because of using cell-arrays
for kk=1:sslen-dk
% get all XY such that k0-dk==kk
idx=ss(kk+dk).PixelIdxList;
L=map_lower(idx);
idx=idx(L);
if(~isempty(idx))
dtmp=D{k}(idx)+aspect(3)^2*(kk-k)^2;
% these pixels are to be updated with k0-dk
L=D1{kk}(idx)>dtmp & D{kk}(idx)>0;
map_lower(idx)=L;
D1{kk}(idx(L))=dtmp(L);
% ridiculously, but this is faster than
% direct assignment
dtmp=idx(L);
dtmp(:)=k;
DK{kk}(idx(L))=k;
end
end
idx_lower=idx_lower(map_lower(idx_lower));
else
eols=eols-1;
end
if(~isempty(idx_upper))
% prevent index from going over the boundaries
L=(k0(map_upper)+dk<=shape(3));
map_upper(map_upper)=L;
% need to explicitly scan in Z because of using cell-arrays
for kk=dk+1:min(shape(3),sslen+dk)
% get all XY such that k0+dk==kk
idx=ss(kk-dk).PixelIdxList;
L=map_upper(idx);
idx=idx(L);
if(~isempty(idx))
dtmp=D{k}(idx)+aspect(3)^2*(kk-k)^2;
% these pixels are to be updated with k0+dk
L=D1{kk}(idx)>dtmp & D{kk}(idx)>0;
map_upper(idx)=L;
D1{kk}(idx(L))=dtmp(L);
dtmp=idx(L);
dtmp(:)=k;
DK{kk}(idx(L))=dtmp;
end
end
idx_upper=idx_upper(map_upper(idx_upper));
else
eols=eols-1;
end
end
end
% the answer
if(iscell(bw))
D=cell(size(bw));
for k=1:shape(3) D{k}=sqrt(D1{k}); end
else
D=zeros(shape);
for k=1:shape(3) D(:,:,k)=sqrt(D1{k}); end
end
function s=getregions(map)
% this function is replacer for regionprops(map,'PixelIdxList');
% it produces the list of different values along with list of
% indexes of pixels in map with these values; 's' is struct-array
% such that s(i).PixelIdxList contains list of pixels in map
% with value i.
% enable using regionprops if available, faster on 7.3
fregionprops=1;
% version control for using regionprops
v=version; v=str2num(v(1:3));
fregionprops=fregionprops & v>=7.3;
% in later matlab regionprops is actually faster than this code
if(exist('regionprops') & fregionprops)
s=regionprops(map,'PixelIdxList');
return
end
idx=(1:prod(size(map)))';
dtmp=double(map(:));
[dtmp,ind]=sort(dtmp);
idx=idx(ind);
ind=[0;find([diff(dtmp(:));1])];
s=[];
for i=2:length(ind)
if(dtmp(ind(i)))==0 continue; end
s(dtmp(ind(i))).PixelIdxList=idx(ind(i-1)+1:ind(i));
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.