blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
97fc51e9407bfb562359245bb2c5806a2646bce9 | 258b8cd33ce666d1a2a16114af1996a5f36113a4 | /src/Wordlist.hpp | 9f3469c59dc1a0f005ea8f237b97fe56311853c4 | [] | no_license | Emma-Rabbit/hangman | 1099a010985f3e77bcd31933bbfcf0c85a14ed3b | 87bb7c4c4e5bfc01f5f3e2a2288cc9cdb3b3ac09 | refs/heads/main | 2023-05-05T03:11:06.772490 | 2021-05-15T11:11:41 | 2021-05-15T11:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 339 | hpp | #include "FileManager.hpp"
#include <vector>
#include <string>
class Wordlist{
FileManager *fm;
std::vector<std::string> wordlist;
public:
int addWord(std::string word);
int deleteWord(std::string word);
void listWords();
std::vector<std::string> getWordVector();
std::string pickWord();
Wordlist(std::string filename);
}; | [
"tiranmelia@gmail.com"
] | tiranmelia@gmail.com |
dcaaddfb8548c2b48ebeca6b0691f519b8d46cf6 | fc61880f0895ef0e41c6e0225534c5683313247a | /modules/sort/test/merge_sort_test_suite.cpp | 29b006f064254e6d52dc45ab3a0f5364075fd3d5 | [] | no_license | nkornelsen/computer-vision-bootcamp | ba3cb556deae23c2bc58d6f289b8d70beea6fc49 | e0c00985a9526aa6c196df79e3d66839b47f13fc | refs/heads/master | 2022-11-23T06:04:45.547940 | 2020-08-01T19:45:03 | 2020-08-01T19:45:03 | 284,184,831 | 0 | 0 | null | 2020-08-01T04:19:48 | 2020-08-01T04:19:47 | null | UTF-8 | C++ | false | false | 1,293 | cpp | /**
* @file merge_sort_test_suite.h
* @author Nolan Kornelsen
*
* @section LICENSE
*
* Copyright (c) 2015, Waterloo Aerial Robotics Group (WARG)
* All rights reserved.
*
* This software is licensed under a modified version of the BSD 3 clause license
* that should have been included with this software in a file called COPYING.txt
* Otherwise it is available at:
* https://raw.githubusercontent.com/UWARG/computer-vision/master/COPYING.txt
*/
#define BOOST_TEST_MODULE SortModule
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <cstdlib>
#include "merge_sort.h"
BOOST_AUTO_TEST_SUITE(MergeSortTestSuite);
BOOST_AUTO_TEST_CASE(MergeSortTest) {
int n = rand() % 100 + 1;
std::vector<int> testVector;
for (int i = 0; i < n; i++) {
testVector.push_back(rand() % 1000 + 1);
}
std::cout << "Sorting list: ";
for (int i : testVector) {
std::cout << i << ' ';
}
std::cout << std::endl;
merge_sort(&testVector);
std::cout << "Sorted list: ";
for (int i : testVector) {
std::cout << i << ' ';
}
std::cout << std::endl;
// test if sorted
for (int i = 0; i < testVector.size() - 1; i++) {
BOOST_CHECK(testVector[i] <= testVector[i+1]);
}
}
BOOST_AUTO_TEST_SUITE_END(); | [
"perpetualcolor@gmail.com"
] | perpetualcolor@gmail.com |
869c819af31f714c119d9009d6ff415d7809a159 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /ui/views/widget/native_widget_private.h | 740880cf19a2e49c0e208c18ba80161620648397 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,285 | h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
#define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
#include <memory>
#include <string>
#include "base/strings/string16.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/views/widget/native_widget.h"
namespace gfx {
class FontList;
class ImageSkia;
class Rect;
}
namespace ui {
class InputMethod;
class NativeTheme;
class OSExchangeData;
}
namespace views {
class TooltipManager;
namespace internal {
////////////////////////////////////////////////////////////////////////////////
// NativeWidgetPrivate interface
//
// A NativeWidget subclass internal to views that provides Widget a conduit for
// communication with a backend-specific native widget implementation.
//
// Many of the methods here are pass-thrus for Widget, and as such there is no
// documentation for them here. In that case, see methods of the same name in
// widget.h.
//
// IMPORTANT: This type is intended for use only by the views system and for
// NativeWidget implementations. This file should not be included
// in code that does not fall into one of these use cases.
//
class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget {
public:
~NativeWidgetPrivate() override {}
// Creates an appropriate default NativeWidgetPrivate implementation for the
// current OS/circumstance.
static NativeWidgetPrivate* CreateNativeWidget(
internal::NativeWidgetDelegate* delegate);
static NativeWidgetPrivate* GetNativeWidgetForNativeView(
gfx::NativeView native_view);
static NativeWidgetPrivate* GetNativeWidgetForNativeWindow(
gfx::NativeWindow native_window);
// Retrieves the top NativeWidgetPrivate in the hierarchy containing the given
// NativeView, or NULL if there is no NativeWidgetPrivate that contains it.
static NativeWidgetPrivate* GetTopLevelNativeWidget(
gfx::NativeView native_view);
static void GetAllChildWidgets(gfx::NativeView native_view,
Widget::Widgets* children);
static void GetAllOwnedWidgets(gfx::NativeView native_view,
Widget::Widgets* owned);
static void ReparentNativeView(gfx::NativeView native_view,
gfx::NativeView new_parent);
// Returns true if any mouse button is currently down.
static bool IsMouseButtonDown();
static gfx::FontList GetWindowTitleFontList();
// Returns the NativeView with capture, otherwise NULL if there is no current
// capture set, or if |native_view| has no root.
static gfx::NativeView GetGlobalCapture(gfx::NativeView native_view);
// Initializes the NativeWidget.
virtual void InitNativeWidget(const Widget::InitParams& params) = 0;
// Called at the end of Widget::Init(), after Widget has completed
// initialization.
virtual void OnWidgetInitDone() = 0;
// Returns a NonClientFrameView for the widget's NonClientView, or NULL if
// the NativeWidget wants no special NonClientFrameView.
virtual NonClientFrameView* CreateNonClientFrameView() = 0;
virtual bool ShouldUseNativeFrame() const = 0;
virtual bool ShouldWindowContentsBeTransparent() const = 0;
virtual void FrameTypeChanged() = 0;
// Returns the Widget associated with this NativeWidget. This function is
// guaranteed to return non-NULL for the lifetime of the NativeWidget.
virtual Widget* GetWidget() = 0;
virtual const Widget* GetWidget() const = 0;
// Returns the NativeView/Window associated with this NativeWidget.
virtual gfx::NativeView GetNativeView() const = 0;
virtual gfx::NativeWindow GetNativeWindow() const = 0;
// Returns the topmost Widget in a hierarchy.
virtual Widget* GetTopLevelWidget() = 0;
// Returns the Compositor, or NULL if there isn't one associated with this
// NativeWidget.
virtual const ui::Compositor* GetCompositor() const = 0;
// Returns the NativeWidget's layer, if any.
virtual const ui::Layer* GetLayer() const = 0;
// Reorders the widget's child NativeViews which are associated to the view
// tree (eg via a NativeViewHost) to match the z-order of the views in the
// view tree. The z-order of views with layers relative to views with
// associated NativeViews is used to reorder the NativeView layers. This
// method assumes that the widget's child layers which are owned by a view are
// already in the correct z-order relative to each other and does no
// reordering if there are no views with an associated NativeView.
virtual void ReorderNativeViews() = 0;
// Notifies the NativeWidget that a view was removed from the Widget's view
// hierarchy.
virtual void ViewRemoved(View* view) = 0;
// Sets/Gets a native window property on the underlying native window object.
// Returns NULL if the property does not exist. Setting the property value to
// NULL removes the property.
virtual void SetNativeWindowProperty(const char* name, void* value) = 0;
virtual void* GetNativeWindowProperty(const char* name) const = 0;
// Returns the native widget's tooltip manager. Called from the View hierarchy
// to update tooltips.
virtual TooltipManager* GetTooltipManager() const = 0;
// Sets or releases event capturing for this native widget.
virtual void SetCapture() = 0;
virtual void ReleaseCapture() = 0;
// Returns true if this native widget is capturing events.
virtual bool HasCapture() const = 0;
// Returns the ui::InputMethod for this native widget.
virtual ui::InputMethod* GetInputMethod() = 0;
// Centers the window and sizes it to the specified size.
virtual void CenterWindow(const gfx::Size& size) = 0;
// Retrieves the window's current restored bounds and "show" state, for
// persisting.
virtual void GetWindowPlacement(
gfx::Rect* bounds,
ui::WindowShowState* show_state) const = 0;
// Sets the NativeWindow title. Returns true if the title changed.
virtual bool SetWindowTitle(const base::string16& title) = 0;
// Sets the Window icons. |window_icon| is a 16x16 icon suitable for use in
// a title bar. |app_icon| is a larger size for use in the host environment
// app switching UI.
virtual void SetWindowIcons(const gfx::ImageSkia& window_icon,
const gfx::ImageSkia& app_icon) = 0;
// Initializes the modal type of the window to |modal_type|. Called from
// NativeWidgetDelegate::OnNativeWidgetCreated() before the widget is
// initially parented.
virtual void InitModalType(ui::ModalType modal_type) = 0;
// See method documentation in Widget.
virtual gfx::Rect GetWindowBoundsInScreen() const = 0;
virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0;
virtual gfx::Rect GetRestoredBounds() const = 0;
virtual std::string GetWorkspace() const = 0;
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual void SetSize(const gfx::Size& size) = 0;
virtual void StackAbove(gfx::NativeView native_view) = 0;
virtual void StackAtTop() = 0;
virtual void SetShape(std::unique_ptr<SkRegion> shape) = 0;
virtual void Close() = 0;
virtual void CloseNow() = 0;
virtual void Show() = 0;
virtual void Hide() = 0;
// Invoked if the initial show should maximize the window. |restored_bounds|
// is the bounds of the window when not maximized.
virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
virtual void ShowWithWindowState(ui::WindowShowState show_state) = 0;
virtual bool IsVisible() const = 0;
virtual void Activate() = 0;
virtual void Deactivate() = 0;
virtual bool IsActive() const = 0;
virtual void SetAlwaysOnTop(bool always_on_top) = 0;
virtual bool IsAlwaysOnTop() const = 0;
virtual void SetVisibleOnAllWorkspaces(bool always_visible) = 0;
virtual bool IsVisibleOnAllWorkspaces() const = 0;
virtual void Maximize() = 0;
virtual void Minimize() = 0;
virtual bool IsMaximized() const = 0;
virtual bool IsMinimized() const = 0;
virtual void Restore() = 0;
virtual void SetFullscreen(bool fullscreen) = 0;
virtual bool IsFullscreen() const = 0;
virtual void SetOpacity(float opacity) = 0;
virtual void FlashFrame(bool flash) = 0;
virtual void RunShellDrag(View* view,
const ui::OSExchangeData& data,
const gfx::Point& location,
int operation,
ui::DragDropTypes::DragEventSource source) = 0;
virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0;
virtual void SetCursor(gfx::NativeCursor cursor) = 0;
virtual bool IsMouseEventsEnabled() const = 0;
virtual void ClearNativeFocus() = 0;
virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0;
virtual Widget::MoveLoopResult RunMoveLoop(
const gfx::Vector2d& drag_offset,
Widget::MoveLoopSource source,
Widget::MoveLoopEscapeBehavior escape_behavior) = 0;
virtual void EndMoveLoop() = 0;
virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0;
virtual void SetVisibilityAnimationDuration(
const base::TimeDelta& duration) = 0;
virtual void SetVisibilityAnimationTransition(
Widget::VisibilityTransition transition) = 0;
virtual ui::NativeTheme* GetNativeTheme() const = 0;
virtual void OnRootViewLayout() = 0;
virtual bool IsTranslucentWindowOpacitySupported() const = 0;
virtual void OnSizeConstraintsChanged() = 0;
// Repost an unhandled event to the native widget for default OS processing.
virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0;
// Returns an internal name that matches the name of the associated Widget.
virtual std::string GetName() const = 0;
// Overridden from NativeWidget:
internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override;
};
} // namespace internal
} // namespace views
#endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
b566a8ff631c0f09aeddaa188626d1957b732a59 | ea401c3e792a50364fe11f7cea0f35f99e8f4bde | /hackathon/wpkenan/resample_swc/resampling.h | 4709d789b7025d003f5eb45c652f5f312604793f | [
"MIT"
] | permissive | Vaa3D/vaa3d_tools | edb696aa3b9b59acaf83d6d27c6ae0a14bf75fe9 | e6974d5223ae70474efaa85e1253f5df1814fae8 | refs/heads/master | 2023-08-03T06:12:01.013752 | 2023-08-02T07:26:01 | 2023-08-02T07:26:01 | 50,527,925 | 107 | 86 | MIT | 2023-05-22T23:43:48 | 2016-01-27T18:19:17 | C++ | UTF-8 | C++ | false | false | 4,256 | h | //resample neuronTree subject to a step length
//2012-02-29 by Yinan Wan
//2012-03-05 Yinan Wan: interpolate radius
#ifndef __RESAMPLING_H__
#define __RESAMPLING_H__
#include "basic_surf_objs.h"
#include <vector>
using namespace std;
#define DISTP(a,b) sqrt(((a)->x-(b)->x)*((a)->x-(b)->x)+((a)->y-(b)->y)*((a)->y-(b)->y)+((a)->z-(b)->z)*((a)->z-(b)->z))
struct Point;
struct Point
{
double x,y,z,r;
V3DLONG type;
Point* p;
V3DLONG childNum;
V3DLONG level,seg_id;
QList<float> fea_val;
};
typedef vector<Point*> Segment;
typedef vector<Point*> Tree;
void resample_path(Segment * seg, double step)
{
char c;
Segment seg_r;
double path_length = 0;
Point* start = seg->at(0);
Point* seg_par = seg->back()->p;
V3DLONG iter_old = 0;
seg_r.push_back(start);
while (iter_old < seg->size() && start && start->p)
{
path_length += DISTP(start,start->p);
if (path_length<=seg_r.size()*step)
{
start = start->p;
iter_old++;
}
else//a new point should be created
{
path_length -= DISTP(start,start->p);
Point* pt = new Point;
double rate = (seg_r.size()*step-path_length)/(DISTP(start,start->p));
pt->x = start->x + rate*(start->p->x-start->x);
pt->y = start->y + rate*(start->p->y-start->y);
pt->z = start->z + rate*(start->p->z-start->z);
pt->r = start->r*(1-rate) + start->p->r*rate;//intepolate the radius
pt->p = start->p;
if (rate<0.5)
{
pt->type = start->type;
pt->seg_id = start->seg_id;
pt->level = start->level;
pt->fea_val = start->fea_val;
}
else
{
pt->type = start->p->type;
pt->seg_id = start->p->seg_id;
pt->level = start->p->level;
pt->fea_val = start->p->fea_val;
}
seg_r.back()->p = pt;
seg_r.push_back(pt);
path_length += DISTP(start,pt);
start = pt;
}
}
seg_r.back()->p = seg_par;
for (V3DLONG i=0;i<seg->size();i++)
if (!seg->at(i)) {delete seg->at(i); seg->at(i) = NULL;}
*seg = seg_r;
};
NeuronTree resample(NeuronTree input, double step)
{
NeuronTree result;
V3DLONG siz = input.listNeuron.size();
Tree tree;
for (V3DLONG i=0;i<siz;i++)
{
NeuronSWC s = input.listNeuron[i];
Point* pt = new Point;
pt->x = s.x;
pt->y = s.y;
pt->z = s.z;
pt->r = s.r;
pt ->type = s.type;
pt->seg_id = s.seg_id;
pt->level = s.level;
pt->fea_val = s.fea_val;
pt->p = NULL;
pt->childNum = 0;
tree.push_back(pt);
}
for (V3DLONG i=0;i<siz;i++)
{
if (input.listNeuron[i].pn<0) continue;
V3DLONG pid = input.hashNeuron.value(input.listNeuron[i].pn);
tree[i]->p = tree[pid];
tree[pid]->childNum++;
}
// printf("tree constructed.\n");
vector<Segment*> seg_list;
for (V3DLONG i=0;i<siz;i++)
{
if (tree[i]->childNum!=1)//tip or branch point
{
Segment* seg = new Segment;
Point* cur = tree[i];
do
{
seg->push_back(cur);
cur = cur->p;
}
while(cur && cur->childNum==1);
seg_list.push_back(seg);
}
}
// printf("segment list constructed.\n");
for (V3DLONG i=0;i<seg_list.size();i++)
{
resample_path(seg_list[i], step);
}
// printf("resample done.\n");
tree.clear();
map<Point*, V3DLONG> index_map;
for (V3DLONG i=0;i<seg_list.size();i++)
for (V3DLONG j=0;j<seg_list[i]->size();j++)
{
tree.push_back(seg_list[i]->at(j));
index_map.insert(pair<Point*, V3DLONG>(seg_list[i]->at(j), tree.size()-1));
}
for (V3DLONG i=0;i<tree.size();i++)
{
NeuronSWC S;
Point* p = tree[i];
S.n = i+1;
if (p->p==NULL) S.pn = -1;
else
S.pn = index_map[p->p]+1;
if (p->p==p) printf("There is loop in the tree!\n");
S.x = p->x;
S.y = p->y;
S.z = p->z;
S.r = p->r;
S.type = p->type;
S.seg_id = p->seg_id;
S.level = p->level;
S.fea_val = p->fea_val;
result.listNeuron.push_back(S);
}
for (V3DLONG i=0;i<tree.size();i++)
{
if (tree[i]) {delete tree[i]; tree[i]=NULL;}
}
for (V3DLONG j=0;j<seg_list.size();j++)
if (seg_list[j]) {delete seg_list[j]; seg_list[j] = NULL;}
for (V3DLONG i=0;i<result.listNeuron.size();i++)
result.hashNeuron.insert(result.listNeuron[i].n, i);
return result;
}
#endif
| [
"llfwyyx@163.com"
] | llfwyyx@163.com |
463d92779ffeb4b0e2728648abe24ac847f0d47f | 3799ce480dee23accbe16c0bf22ebfd4dd084c9d | /UVa/UVaSolutions/11152 Colourful Flowers/11152 Colourful Flowers.cpp | 794821a2bf82ed9d3fa6843b75221d7fe6ad629e | [] | no_license | belal-bh/Analytical_Programming | e8847f1cfe207b7810e6bce599a4b4d11a264834 | 4443097b9f849ad66d9a8be387b79f7d384d5152 | refs/heads/master | 2021-09-12T23:04:08.252839 | 2018-04-22T07:17:14 | 2018-04-22T07:17:14 | 115,419,505 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | #include<iostream>
#include<stdio.h>
#include<math.h>
#define pi acos(-1.0)
using namespace std;
int main(){
double a,b,c,s;
double Mar,Bar,Tar,R;
while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF){
//while(cin>>a>>b>>c){
s=(a+b+c)/2;
Tar=sqrt((s*(s-a)*(s-b)*(s-c)));
Mar=pi*pow((Tar/s),2);
Tar=Tar-Mar;
R=(a*b*c)/(sqrt(((a+b+c)*(a+b-c)*(a+c-b)*(b+c-a))));
Bar=(pi*pow(R,2))-(Tar+Mar);
printf("%.4f %.4f %.4f\n", Bar,Tar,Mar);
}
return 0;
}
| [
"noreply@github.com"
] | belal-bh.noreply@github.com |
d1adcdfac87ee4323213d26d35da44c81b9a6ab1 | 1464919791f6d1932f18f0a2c4a471d4ffcab740 | /DirectionalLight/main.cpp | ea485ece25e51c5aa503447602b841c27ec971a7 | [] | no_license | firearasi/mylearnopengl | bb5f464ba333b075f1d5ab4293c25264c6f15372 | a274b3ec15d5f54ae1bc72cde1aa01739fb756cd | refs/heads/master | 2020-03-22T23:22:20.360790 | 2018-07-13T06:23:17 | 2018-07-13T06:23:17 | 140,806,068 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,439 | cpp | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <shader/shader.h>
#include <utils/camera.h>
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void mouse_callback(GLFWwindow* window, double xpos, double ypos);
void scroll_callback(GLFWwindow* window, double xoffset, double yoffset);
void processInput(GLFWwindow *window);
unsigned int loadTexture(char const * path);
// settings
const unsigned int SCR_WIDTH = 1920;
const unsigned int SCR_HEIGHT = 1080;
// camera
Camera camera(glm::vec3(0.0f, 0.0f, 8.0f));
float lastX = SCR_WIDTH / 2.0f;
float lastY = SCR_HEIGHT / 2.0f;
bool firstMouse = true;
// timing
float deltaTime = 0.0f; // time between current frame and last frame
float lastFrame = 0.0f;
int main()
{
// glfw: initialize and configure
// ------------------------------
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
#ifdef __APPLE__
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // uncomment this statement to fix compilation on OS X
#endif
// glfw window creation
// --------------------
GLFWwindow* window = glfwCreateWindow(SCR_WIDTH, SCR_HEIGHT, "LearnOpenGL", NULL, NULL);
if (window == NULL)
{
std::cout << "Failed to create GLFW window" << std::endl;
glfwTerminate();
return -1;
}
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
glfwSetCursorPosCallback(window, mouse_callback);
glfwSetScrollCallback(window, scroll_callback);
glfwMakeContextCurrent(window);
glfwSetFramebufferSizeCallback(window, framebuffer_size_callback);
// glad: load all OpenGL function pointers
// ---------------------------------------
if (!gladLoadGLLoader((GLADloadproc)glfwGetProcAddress))
{
std::cout << "Failed to initialize GLAD" << std::endl;
return -1;
}
// configure global opengl state
// -----------------------------
glEnable(GL_DEPTH_TEST);
// build and compile our shader zprogram
// ------------------------------------
Shader cubeShader("shader.vert", "cubeshader.frag");
Shader lightShader("shader.vert", "lightshader.frag");
// set up vertex data (and buffer(s)) and configure vertex attributes
// ------------------------------------------------------------------
float vertices[] = {
// positions // normals // texture coords
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f,
0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f,
0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 1.0f,
0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 1.0f, 1.0f,
-0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f,
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f,
-0.5f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f,
0.5f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f,
0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f,
0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f,
-0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f,
-0.5f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f,
-0.5f, 0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f,
-0.5f, 0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
-0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f,
-0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f,
-0.5f, -0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f,
-0.5f, 0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f,
0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f,
0.5f, 0.5f, -0.5f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
0.5f, -0.5f, -0.5f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f,
0.5f, -0.5f, -0.5f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f,
0.5f, -0.5f, 0.5f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f,
0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f,
-0.5f, -0.5f, -0.5f, 0.0f, -1.0f, 0.0f, 0.0f, 1.0f,
0.5f, -0.5f, -0.5f, 0.0f, -1.0f, 0.0f, 1.0f, 1.0f,
0.5f, -0.5f, 0.5f, 0.0f, -1.0f, 0.0f, 1.0f, 0.0f,
0.5f, -0.5f, 0.5f, 0.0f, -1.0f, 0.0f, 1.0f, 0.0f,
-0.5f, -0.5f, 0.5f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f,
-0.5f, -0.5f, -0.5f, 0.0f, -1.0f, 0.0f, 0.0f, 1.0f,
-0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f,
0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f,
0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f,
0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f,
-0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f,
-0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f
};
glm::vec3 cubePositions[] = {
glm::vec3( 0.0f, 0.0f, 0.0f),
glm::vec3( 2.0f, 5.0f, -15.0f),
glm::vec3(-1.5f, -2.2f, -2.5f),
glm::vec3(-3.8f, -2.0f, -12.3f),
glm::vec3( 2.4f, -0.4f, -3.5f),
glm::vec3(-1.7f, 3.0f, -7.5f),
glm::vec3( 1.3f, -2.0f, -2.5f),
glm::vec3( 1.5f, 2.0f, -2.5f),
glm::vec3( 1.5f, 0.2f, -1.5f),
glm::vec3(-1.3f, 1.0f, -1.5f)
};
/*
float vertices[] = {
-1, 1, -1, 0.25, 0,
1, 1, -1, 0.5, 0,
-1, 1, -1, 0, 0.25,
-1, 1, 1, 0.25,0.25,
1,1,1,0.5,0.25,
1,1,-1,0.75,0.25,
-1,1,-1,1,0.25,
-1,-1,-1,0,0.5,
-1,-1,1,0.25,0.5,
1,-1,1,0.5,0.5,
1,-1,-1,0.75,0.5,
-1,-1,-1,1,0.5,
-1,-1,-1,0.25,0.75,
1,-1,-1,0.5,0.75
};
int indices[] = {
0,1,4,
0,4,3,
2,3,8,
2,8,7,
3,4,9,
3,9,8,
4,5,10,
4,10,9,
5,6,11,
5,11,10,
8,9,13,
8,13,12
};
*/
// Cube VBO,VAO,EBO
unsigned int VBO, VAO;
glGenVertexArrays(1, &VAO);
glGenBuffers(1, &VBO);
glBindVertexArray(VAO);
glBindBuffer(GL_ARRAY_BUFFER, VBO);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
// position attribute
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void*)0);
glEnableVertexAttribArray(0);
// normal vec attribute
glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void*)(3 * sizeof(float)));
glEnableVertexAttribArray(1);
// texture coords
glVertexAttribPointer(2, 2, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void*)(6 * sizeof(float)));
glEnableVertexAttribArray(2);
// Light Source
unsigned int lightVAO, lightVBO;
glGenVertexArrays(1, &lightVAO);
glGenBuffers(1, &lightVBO);
glBindVertexArray(lightVAO);
glBindBuffer(GL_ARRAY_BUFFER, lightVBO);
glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
// position attribute
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void*)0);
glEnableVertexAttribArray(0);
// normal vec attribute
glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(float), (void*) (3 * sizeof(float)));
glEnableVertexAttribArray(1);
// load and create a texture
// -------------------------
unsigned int diffuseMap = loadTexture("../textures/container2.png");
unsigned int specularMap = loadTexture("../textures/container2_specular.png");
unsigned int emissiveMap = loadTexture("../textures/matrix.jpg");
// render loop
// -----------
while (!glfwWindowShouldClose(window))
{
// per-frame time logic
// --------------------
//std::cout<< "Camera pos: (" << camera.Position.x<<", "<<camera.Position.y<<", "<<camera.Position.z<<")."<<std::endl;
float currentFrame = glfwGetTime();
deltaTime = currentFrame - lastFrame;
lastFrame = currentFrame;
// input
// -----
processInput(window);
// render
// ------
glClearColor(0.2f, 0.3f, 0.3f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // also clear the depth buffer now!
// create transformations
glm::mat4 model;
glm::mat4 view;
glm::mat4 projection;
glm::mat4 translation;
unsigned int modelLoc;
unsigned int viewLoc;
// Set colors
glm::vec4 lightColor = glm::vec4(1.f, 1.0f, 1.0f, 1.0f);
glm::vec3 lightPos = glm::vec3(3.0, 2.0, 2.5);
// Draw light source
/*
lightShader.use();
glBindVertexArray(lightVAO);
model = glm::scale(glm::mat4(1.0f), glm::vec3(0.2));
view = camera.GetViewMatrix();
translation = glm::translate(glm::mat4(1.0),lightPos);
projection = glm::perspective(glm::radians(45.0f), (float)SCR_WIDTH / (float)SCR_HEIGHT, 0.1f, 100.0f);
lightShader.set4fv("lightColor", lightColor);
lightShader.setMat4("model", model);
lightShader.setMat4("view", view);
// note: currently we set the projection matrix each frame, but since the projection matrix rarely changes it's often best practice to set it outside the main loop only once.
lightShader.setMat4("projection", projection);
lightShader.setMat4("translation", translation);
glDrawArrays(GL_TRIANGLES, 0, 36);
//glDrawElements(GL_TRIANGLES, sizeof(indices) / sizeof(int), GL_UNSIGNED_INT, 0);
*/
// Draw cube
// activate shader
cubeShader.use();
// Load lightingmaps
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, diffuseMap);
glActiveTexture(GL_TEXTURE0 + 1);
glBindTexture(GL_TEXTURE_2D, specularMap);
glActiveTexture(GL_TEXTURE0 + 2);
glBindTexture(GL_TEXTURE_2D, emissiveMap);
cubeShader.setInt("material.diffuse", 0);
cubeShader.setInt("material.specular", 1);
cubeShader.setInt("material.emissive", 2);
cubeShader.setFloat("material.shininess", 32);
// light properties
cubeShader.set4fv("light.direction", glm::vec4(-0.2f, -1.0f, -0.3f, 0.0f));
cubeShader.set4fv("light.ambient", glm::vec4(0.4f, 0.4f, 0.4f, 1.0f));
cubeShader.set4fv("light.diffuse", glm::vec4(0.7f, 0.7f, 0.7f, 1.0f));
cubeShader.set4fv("light.specular", glm::vec4(1.0f, 1.0f, 1.0f, 1.0f));
// retrieve the matrix uniform locations
cubeShader.setFloat("u_time", glfwGetTime());
// set normal matrix
glm::mat3 normalMatrix = glm::mat3(glm::transpose(glm::inverse(model)));
cubeShader.setMat3("normalMatrix", normalMatrix);
// render box
// set viewPos
cubeShader.set3fv("viewPos", camera.Position);
// note: currently we set the projection matrix each frame, but since the projection matrix rarely changes it's often best practice to set it outside the main loop only once.
cubeShader.setMat4("projection", projection);
glBindVertexArray(VAO);
view = camera.GetViewMatrix();
translation = glm::mat4(1.0);
for (int i = 0; i< 10; i++)
{
//model = glm::rotate(glm::mat4(1.0), (float)glfwGetTime() * glm::radians(10.0f), glm::vec3(0.5f, 1.0f, 0.0f));
model = glm::rotate(glm::mat4(1.0), glm::radians(23.0f * i), glm::vec3(0.5f, 1.0f, 0.1f));
model = glm::translate(model, cubePositions[i]);
projection = glm::perspective(glm::radians(45.0f), (float)SCR_WIDTH / (float)SCR_HEIGHT, 0.1f, 100.0f);
// note: currently we set the projection matrix each frame, but since the projection matrix rarely changes it's often best practice to set it outside the main loop only once.
cubeShader.setMat4("model", model);
cubeShader.setMat4("view", view);
cubeShader.setMat4("projection", projection);
cubeShader.setMat4("translation", translation);
glDrawArrays(GL_TRIANGLES, 0, 36);
}
//glDrawElements(GL_TRIANGLES, sizeof(indices) / sizeof(int), GL_UNSIGNED_INT, 0);
//translation = glm::translate(glm::mat4(1.0), glm::vec3(2.0,2.0,2.0));
//cubeShader.setMat4("translation", translation);
//glDrawArrays(GL_TRIANGLES, 0, 36);
// glfw: swap buffers and poll IO events (keys pressed/released, mouse moved etc.)
// -------------------------------------------------------------------------------
glfwSwapBuffers(window);
glfwPollEvents();
}
// optional: de-allocate all resources once they've outlived their purpose:
// ------------------------------------------------------------------------
glDeleteVertexArrays(1, &VAO);
glDeleteBuffers(1, &VBO);
// glfw: terminate, clearing all previously allocated GLFW resources.
// ------------------------------------------------------------------
glfwTerminate();
return 0;
}
// process all input: query GLFW whether relevant keys are pressed/released this frame and react accordingly
// ---------------------------------------------------------------------------------------------------------
void processInput(GLFWwindow *window)
{
if (glfwGetKey(window, GLFW_KEY_ESCAPE) == GLFW_PRESS)
glfwSetWindowShouldClose(window, true);
if (glfwGetKey(window, GLFW_KEY_W) == GLFW_PRESS)
camera.ProcessKeyboard(FORWARD, deltaTime);
if (glfwGetKey(window, GLFW_KEY_S) == GLFW_PRESS)
camera.ProcessKeyboard(BACKWARD, deltaTime);
if (glfwGetKey(window, GLFW_KEY_A) == GLFW_PRESS)
camera.ProcessKeyboard(LEFT, deltaTime);
if (glfwGetKey(window, GLFW_KEY_D) == GLFW_PRESS)
camera.ProcessKeyboard(RIGHT, deltaTime);
if (glfwGetKey(window, GLFW_KEY_Q) == GLFW_PRESS)
camera.ProcessKeyboard(DOWN, deltaTime);
if (glfwGetKey(window, GLFW_KEY_E) == GLFW_PRESS)
camera.ProcessKeyboard(UP, deltaTime);
}
// glfw: whenever the window size changed (by OS or user resize) this callback function executes
// ---------------------------------------------------------------------------------------------
void framebuffer_size_callback(GLFWwindow* window, int width, int height)
{
// make sure the viewport matches the new window dimensions; note that width and
// height will be significantly larger than specified on retina displays.
glViewport(0, 0, width, height);
}
void mouse_callback(GLFWwindow* window, double xpos, double ypos)
{
if (firstMouse)
{
lastX = xpos;
lastY = ypos;
firstMouse = false;
}
float xoffset = xpos - lastX;
float yoffset = lastY - ypos; // reversed since y-coordinates go from bottom to top
lastX = xpos;
lastY = ypos;
camera.ProcessMouseMovement(xoffset, yoffset);
}
// glfw: whenever the mouse scroll wheel scrolls, this callback is called
// ----------------------------------------------------------------------
void scroll_callback(GLFWwindow* window, double xoffset, double yoffset)
{
if (glfwGetKey(window, GLFW_KEY_LEFT_CONTROL) == GLFW_PRESS)
camera.ProcessMouseScroll(yoffset);
}
// utility function for loading a 2D texture from file
// ---------------------------------------------------
unsigned int loadTexture(char const * path)
{
unsigned int textureID;
glGenTextures(1, &textureID);
int width, height, nrComponents;
unsigned char *data = stbi_load(path, &width, &height, &nrComponents, 0);
if (data)
{
GLenum format;
if (nrComponents == 1)
format = GL_RED;
else if (nrComponents == 3)
format = GL_RGB;
else if (nrComponents == 4)
format = GL_RGBA;
glBindTexture(GL_TEXTURE_2D, textureID);
glTexImage2D(GL_TEXTURE_2D, 0, format, width, height, 0, format, GL_UNSIGNED_BYTE, data);
glGenerateMipmap(GL_TEXTURE_2D);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
stbi_image_free(data);
}
else
{
std::cout << "Texture failed to load at path: " << path << std::endl;
stbi_image_free(data);
}
return textureID;
}
| [
"firearasi@qq.com"
] | firearasi@qq.com |
aac525f7c030ef2b5c5fa778e7f6df37c7f9c39d | 108c2b4b662962786d1f727831251790d8d38162 | /src/somadicom/Dicom/Bruker/BrukerEnhancedMRReader.cc | 64a1e5b5313ab7dd2b4a99a188fd5e2c1e391cd9 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | brainvisa/soma-io | 105adbaccc5f06d6773ee894f30baec35c48a403 | d22e9d27f6e0696e234a6e33f7fbd9fa4620adc1 | refs/heads/master | 2023-08-04T18:46:57.728163 | 2023-07-28T16:53:08 | 2023-07-28T16:53:08 | 155,413,952 | 3 | 4 | NOASSERTION | 2023-07-28T16:53:09 | 2018-10-30T15:55:17 | C++ | UTF-8 | C++ | false | false | 1,500 | cc | #ifdef SOMA_IO_DICOM
#include <soma-io/Dicom/Bruker/BrukerEnhancedMRReader.h>
#include <soma-io/Dicom/Bruker/BrukerEnhancedIndexModule.h>
#include <soma-io/Dicom/DicomDatasetHeader.h>
#include <soma-io/Dicom/DicomIO.h>
#include <soma-io/Object/HeaderProxy.h>
#include <soma-io/Utils/StdInt.h>
#else
#include <Dicom/Bruker/BrukerEnhancedMRReader.h>
#include <Dicom/Bruker/BrukerEnhancedIndexModule.h>
#include <Dicom/DicomDatasetHeader.h>
#include <Dicom/DicomIO.h>
#include <Object/HeaderProxy.h>
#include <Utils/StdInt.h>
#endif
#include <dcmtk/config/osconfig.h>
#include <dcmtk/dcmdata/dcdatset.h>
#include <dcmtk/dcmdata/dcdeftag.h>
#include <dcmtk/dcmdata/dcsequen.h>
dcm::BrukerEnhancedMRReader::BrukerEnhancedMRReader()
: dcm::EnhancedMRImageStorageReader(),
dcm::Singleton< dcm::BrukerEnhancedMRReader >()
{
}
dcm::BrukerEnhancedMRReader::~BrukerEnhancedMRReader()
{
}
std::string dcm::BrukerEnhancedMRReader::getManufacturerName()
{
return "Bruker BioSpin MRI GmbH";
}
bool dcm::BrukerEnhancedMRReader::buildIndexLut( DcmDataset* dataset )
{
if ( dataset )
{
dcm::BrukerEnhancedIndexModule indexModule;
if ( indexModule.parseItem( dataset ) )
{
_dataInfo->_slices = indexModule.getZCount();
_dataInfo->_frames = indexModule.getTCount();
_indexLut = indexModule.getIndices();
return true;
}
}
return false;
}
RegisterDicomReaderFunction( BrukerEnhancedMRReader );
| [
"FPoupon@users.noreply.github.com"
] | FPoupon@users.noreply.github.com |
1ee76481047b86c14d9dd8a1fd18b22a5379a96c | c897e90a03799e50250a8304a4f8f74c63fa2b92 | /include/Color.h | e7c4a8062c8f351065c32fd5c507b1ae9463e1fe | [] | no_license | GHF/trayrace | 5e6d7e188ea95c8f41bf5808a9e4f6a70c0ff352 | d6cf02aef3c511c8b9816b5edc84ba803638f811 | refs/heads/master | 2016-09-10T10:09:31.562165 | 2012-12-14T16:35:43 | 2012-12-14T16:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | h | /*
* Copyright (C) 2012 Xo Wang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL XO
* WANG BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Except as contained in this notice, the name of Xo Wang shall not be
* used in advertising or otherwise to promote the sale, use or other dealings
* in this Software without prior written authorization from Xo Wang.
*/
#ifndef COLOR_H_
#define COLOR_H_
#include "Trayrace.h"
#include "PixelToaster/PixelToaster.h"
#include <ostream>
namespace Trayrace {
class Color: public Vector4f {
public:
Color() {
}
Color(float r, float g, float b, float a = 1.f) {
*this << r, g, b, a;
}
Color(const Vector4f &v) :
Vector4f(v) {
}
// friend std::ostream &operator<<(std::ostream &os, const Color &c) {
// return os <<
// }
};
}
#endif /* COLOR_H_ */
| [
"xo@geekshavefeelings.com"
] | xo@geekshavefeelings.com |
b134c2e4af39cab20b002db5b202d2ea917a46c4 | 22aee427f75c8411a6910567f0421f722619db27 | /Math/source/Math/cdm_radian.cpp | 70ed7dd63c8e8f3a53cdf482a6122f3e0b0d748f | [] | no_license | XxGTSCxX/Chilldew | 7ffc747d50ecfa1b5f3171e9b582de91c12c4c0d | 3de3ba2f75170729242b8d62c4e47b94ad98870f | refs/heads/master | 2023-01-07T02:29:24.162286 | 2020-10-23T14:58:20 | 2020-10-23T14:58:20 | 254,054,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,296 | cpp | /******************************************************************************/
/*!
\project Chilldew-Math
\file cdm_radian.cpp
\author Gabrielle Tan Suan Choo
\brief
Angles in radians.
all content (C) 2020 DigiPen (SINGAPORE) Corporation, all rights reserved.
Reproduction or disclosure of this file or its contents without the prior
written consent of DigiPen Institute of Technology is prohibited.
*/
/******************************************************************************/
#include "cdm_radian.h"
#include "cdm_degree.h"
namespace chilldew::math
{
radian::radian(degree deg_angle) noexcept
: _angle{ deg_angle._angle * math::deg_to_rad }
{}
radian& radian::operator+=(radian angle) noexcept
{
_angle += angle._angle;
return *this;
}
radian& radian::operator-=(radian angle) noexcept
{
_angle -= angle._angle;
return *this;
}
radian& radian::operator*=(real scale) noexcept
{
_angle *= scale;
return *this;
}
radian& radian::operator/=(real scale) noexcept
{
_angle /= scale;
return *this;
}
radian operator+(radian lhs, radian rhs)
{
return radian{ lhs } += rhs;
}
radian operator-(radian lhs, radian rhs)
{
return radian{ lhs } -= rhs;
}
radian operator*(radian angle, real scale)
{
return radian{ angle } *= scale;
}
radian operator*(real scale, radian angle)
{
return radian{ angle } *= scale;
}
radian operator/(radian angle, real scale)
{
return radian{ angle } /= scale;
}
radian operator-(radian angle)
{
return radian{ -angle._angle };
}
bool operator==(radian lhs, radian rhs)
{
return lhs._angle == rhs._angle;
}
bool operator<(radian lhs, radian rhs)
{
return lhs._angle < rhs._angle;
}
bool operator>(radian lhs, radian rhs)
{
return lhs._angle > rhs._angle;
}
bool operator!=(radian lhs, radian rhs)
{
return !(lhs == rhs);
}
bool operator<=(radian lhs, radian rhs)
{
return !(lhs > rhs);
}
bool operator>=(radian lhs, radian rhs)
{
return !(lhs < rhs);
}
}
| [
"g.tan@digipen.edu"
] | g.tan@digipen.edu |
7c9df481e3819d0a127828b2b1b3612d77aa2202 | 082389d29e73a19668cf5c829e0059309203e320 | /Before November 2016/August/sep2.cpp | a55105a0714eb6c2b8fc63847404a4f894ad2409 | [] | no_license | aman955/Competitive-Coding | 41674cd625e2d941332d77ed0832fbc09ecf898e | 3feab59f254654a72ea6d0fba74c3f21eb710242 | refs/heads/master | 2021-05-10T20:25:22.604740 | 2018-02-15T15:24:58 | 2018-02-15T15:24:58 | 118,187,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327 | cpp | #include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
using namespace std;
int main()
{
long n,k,c,i;
cin>>n;
vector<long long int> a(n);
for(int i=0;i<n;i++)
cin>>a[i];
sort(a.begin(),a.end());
for(i=0;i<n-1;i++)
{
if(a[i]!=a[i+1])
c++;
}
k=pow(2,n-c-1);
cout<<k;
}
| [
"noreply@github.com"
] | aman955.noreply@github.com |
8a8d09b3796b317b81039c7d94e60db0d4bb6f24 | 87960daf16cca9bc7f46fe26571333b619f2bafc | /test/cpp/jit/test_misc.h | 36c22dcb5934d537c8d090165b0bad64a45273cd | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Roulbac/pytorch | d754e7d464a62c25f6c6b9c3bba77eb76363efec | 6c52a5f60321bb9fbd6cec31cbfb79811f3201ea | refs/heads/master | 2020-04-26T06:55:18.194409 | 2019-03-02T18:20:27 | 2019-03-02T18:20:27 | 173,379,856 | 0 | 0 | NOASSERTION | 2019-03-01T23:10:05 | 2019-03-01T23:10:05 | null | UTF-8 | C++ | false | false | 60,238 | h | #pragma once
#include "test/cpp/jit/test_base.h"
#include "ATen/core/interned_strings.h"
#include "torch/csrc/autograd/generated/variable_factories.h"
#include "torch/csrc/autograd/variable.h"
#include "torch/csrc/jit/argument_spec.h"
#include "torch/csrc/jit/attributes.h"
#include "torch/csrc/jit/autodiff.h"
#include "torch/csrc/jit/code_template.h"
#include "torch/csrc/jit/custom_operator.h"
#include "torch/csrc/jit/dynamic_dag.h"
#include "torch/csrc/jit/fuser/interface.h"
#include "torch/csrc/jit/import.h"
#include "torch/csrc/jit/interpreter.h"
#include "torch/csrc/jit/passes/alias_analysis.h"
#include "torch/csrc/jit/passes/common_subexpression_elimination.h"
#include "torch/csrc/jit/passes/constant_propagation.h"
#include "torch/csrc/jit/passes/create_autodiff_subgraphs.h"
#include "torch/csrc/jit/passes/dead_code_elimination.h"
#include "torch/csrc/jit/passes/graph_fuser.h"
#include "torch/csrc/jit/passes/lower_grad_of.h"
#include "torch/csrc/jit/passes/lower_tuples.h"
#include "torch/csrc/jit/passes/requires_grad_analysis.h"
#include "torch/csrc/jit/passes/shape_analysis.h"
#include "torch/csrc/jit/passes/utils/subgraph_utils.h"
#include "torch/csrc/jit/symbolic_script.h"
#include "torch/csrc/jit/symbolic_variable.h"
#include "torch/csrc/jit/tracer.h"
#include "torch/csrc/utils/hash.h"
#include "torch/csrc/utils/memory.h"
#include "torch/csrc/autograd/engine.h"
#include "torch/csrc/autograd/variable.h"
#include "ATen/core/ivalue.h"
#include "torch/csrc/jit/graph_executor.h"
#include "torch/csrc/jit/script/compiler.h"
#include "torch/csrc/jit/script/module.h"
#include "onnx/onnx_pb.h"
#include <ATen/ATen.h>
#include <c10/util/Exception.h>
#include <algorithm>
#include <cstddef>
#include <functional>
#include <iostream>
#include <memory>
#include <stdexcept>
#include <string>
#include <tuple>
#include <unordered_set>
#include <utility>
#include <vector>
namespace torch {
namespace jit {
namespace {
using Var = SymbolicVariable;
using namespace torch::autograd;
template <typename T>
std::ostream& operator<<(std::ostream& out, const std::vector<T>& list) {
size_t i = 0;
out << "{";
for (auto&& e : list) {
if (i++ > 0)
out << ", ";
out << e;
}
out << "}";
return out;
}
auto ct = CodeTemplate(R"(
int foo($args) {
$bar
$bar
$a+$b
}
int commatest(int a${,stuff})
int notest(int a${,empty,})
)");
auto ct_expect = R"(
int foo(hi, 8) {
what
on many
lines...
7
what
on many
lines...
7
3+4
}
int commatest(int a, things..., others)
int notest(int a)
)";
void testCodeTemplate() {
{
TemplateEnv e;
e.s("hi", "foo");
e.v("what", {"is", "this"});
TemplateEnv c(e);
c.s("hi", "foo2");
ASSERT_EQ(e.s("hi"), "foo");
ASSERT_EQ(c.s("hi"), "foo2");
ASSERT_EQ(e.v("what")[0], "is");
}
{
TemplateEnv e;
e.v("args", {"hi", "8"});
e.v("bar", {"what\non many\nlines...", "7"});
e.s("a", "3");
e.s("b", "4");
e.v("stuff", {"things...", "others"});
e.v("empty", {});
auto s = ct.format(e);
// std::cout << "'" << s << "'\n";
// std::cout << "'" << ct_expect << "'\n";
ASSERT_EQ(s, ct_expect);
}
}
void testFusion() {
auto testSimple = [&] {
Graph graph;
Var i0 = Var::asNewInput(graph);
Var i1 = Var::asNewInput(graph);
auto o0 = i0 * i1;
o0.addAsOutput();
auto a = at::rand({3, 4}, at::kCUDA);
auto b = at::rand({4, 3}, at::kCUDA).transpose(0, 1);
auto o = at::zeros({3, 4}, at::kCUDA);
auto outputs = debugLaunchGraph(graph, {a, b});
ASSERT_EQ(outputs.size(), 1);
auto o2 = a * b;
float max_diff = (o2 - outputs[0]).abs().max().item<double>();
// std::cout << "max diff: " << max_diff << "\n";
ASSERT_EQ(max_diff, 0);
};
testSimple();
auto testOne = [&](int ti, int tj, int toi, int toj) {
Graph graph;
Var i0 = Var::asNewInput(graph);
Var i1 = Var::asNewInput(graph);
Var i2 = Var::asNewInput(graph);
Var i3 = Var::asNewInput(graph);
Var i4 = Var::asNewInput(graph);
auto p22 = i4.sigmoid();
auto p20 = i3.sigmoid();
auto p18 = i2.tanh();
auto p16 = i1.sigmoid();
auto p14 = p20 * i0;
auto p11 = p22 * p18;
auto o1 = p14 + p11;
auto p5 = o1.tanh();
auto o0 = p16 * p5;
o0.addAsOutput();
o1.addAsOutput();
graph.lint();
std::vector<at::Tensor> inputs;
// We want to generate input/output tensors with dimension 128x128x32, but
// with different internal strides. To do this, we generate a tensor
// with the "wrong" dimensions, and then use transpose to get an
// appropriately sized view.
for (size_t i = 0; i < graph.inputs().size(); i++) {
std::vector<int64_t> dims = {128, 128, 32};
std::swap(dims[ti], dims[tj]);
inputs.push_back(at::rand(dims, at::kCUDA).transpose(ti, tj));
}
auto t22 = inputs[4].sigmoid();
auto t20 = inputs[3].sigmoid();
auto t18 = inputs[2].tanh();
auto t16 = inputs[1].sigmoid();
auto t14 = t20 * inputs[0];
auto t11 = t22 * t18;
auto out1 = t14 + t11;
auto t5 = out1.tanh();
auto out0 = t16 * t5;
auto outputs = debugLaunchGraph(graph, inputs);
ASSERT_EQ(outputs.size(), graph.outputs().size());
ASSERT_TRUE(out0.is_same_size(outputs.front()));
float max_diff = (outputs.front() - out0).abs().max().item<double>();
ASSERT_TRUE(max_diff < 1e-6);
};
testOne(0, 0, 0, 0);
testOne(0, 1, 0, 0);
testOne(1, 2, 0, 0);
testOne(0, 2, 0, 0);
testOne(0, 0, 0, 1);
testOne(0, 1, 1, 2);
testOne(1, 2, 0, 2);
auto createFusedConcat =
[](Graph& graph, at::ArrayRef<Value*> inputs, int64_t dim) -> Value* {
return graph
.insertNode(graph.create(prim::FusedConcat, inputs)->i_(attr::dim, dim))
->output();
};
auto testConcat = [&](int dim) {
Graph graph;
Var i0 = Var::asNewInput(graph);
Var i1 = Var::asNewInput(graph);
auto o0 = i0 * i1;
o0.addAsOutput();
Var(createFusedConcat(graph, {i0, o0}, dim)).addAsOutput();
auto a = at::rand({3, 4, 5}, at::kCUDA);
auto b = at::rand({4, 3, 5}, at::kCUDA).transpose(0, 1);
auto o_r = a * b;
auto o2_r = at::cat({a, o_r}, dim);
auto outputs = debugLaunchGraph(graph, {a, b});
ASSERT_EQ(outputs.size(), 2);
float max_diff = (o_r - outputs[0]).abs().max().item<double>();
ASSERT_EQ(max_diff, 0);
float max_diff2 = (o2_r - outputs[1]).abs().max().item<double>();
ASSERT_EQ(max_diff2, 0);
};
testConcat(0);
testConcat(1);
testConcat(2);
}
void testAttributes() {
Graph g;
auto one = attr::alpha;
auto two = attr::device;
auto three = attr::end;
auto four = attr::perm;
Node* n = g.create(Symbol::fromQualString("foo::bar"));
Node& attr = *n;
attr.f_(one, 3.4)->i_(two, 5)->s_(three, "what");
ASSERT_EQ(attr.f(one), 3.4);
ASSERT_EQ(attr.s(three), "what");
ASSERT_EQ(attr.i(two), 5);
attr.s_(one, "no");
ASSERT_EQ(attr.s(one), "no");
ASSERT_TRUE(attr.hasAttribute(three));
ASSERT_TRUE(!attr.hasAttribute(four));
attr.ss_(two, {"hi", "now"});
ASSERT_EQ(attr.ss(two).at(1), "now");
Node* n2 = g.create(Symbol::fromQualString("foo::baz"));
Node& attr2 = *n2;
attr2.copyAttributes(attr);
ASSERT_EQ(attr2.s(one), "no");
attr2.f_(one, 5);
ASSERT_EQ(attr.s(one), "no");
ASSERT_EQ(attr2.f(one), 5);
}
void testInternedStrings() {
ASSERT_EQ(prim::Param, Symbol::prim("Param"));
ASSERT_EQ(prim::Return, Symbol::prim("Return"));
ASSERT_EQ(prim::Return.toUnqualString(), std::string("Return"));
ASSERT_EQ(prim::Return.toQualString(), std::string("prim::Return"));
Symbol newsym = Symbol::aten("__NEW_SYMBOL");
size_t symstart = newsym;
ASSERT_EQ(newsym.toQualString(), std::string("aten::__NEW_SYMBOL"));
// TODO: This test is a bit too close to the implementation details.
ASSERT_EQ(Symbol::aten("What"), symstart + 1);
ASSERT_EQ(Symbol::aten("What2"), symstart + 2);
ASSERT_EQ(Symbol::aten("What"), symstart + 1);
ASSERT_EQ(Symbol::aten("What2"), symstart + 2);
ASSERT_EQ(Symbol(symstart + 2).toUnqualString(), std::string("What2"));
}
void testFromQualString() {
ASSERT_EQ(Symbol::fromQualString("prim::Param"), Symbol::prim("Param"));
ASSERT_EQ(Symbol::fromQualString("aten::mm"), Symbol::aten("mm"));
ASSERT_EQ(Symbol::fromQualString("onnx::LSTM"), Symbol::onnx("LSTM"));
ASSERT_EQ(Symbol::fromQualString("attr::value"), Symbol::attr("value"));
ASSERT_EQ(Symbol::fromQualString("scope::"), Symbol::scope(""));
ASSERT_EQ(Symbol::fromQualString("::").toUnqualString(), std::string(""));
ASSERT_EQ(
Symbol::fromQualString("::").ns().toQualString(),
std::string("namespaces::"));
ASSERT_EQ(
Symbol::fromQualString("new_ns::param").toUnqualString(),
std::string("param"));
ASSERT_EQ(
Symbol::fromQualString("new_ns::param").ns().toUnqualString(),
std::string("new_ns"));
ASSERT_EQ(
Symbol::fromQualString("new_ns::param").ns(),
Symbol::fromQualString("namespaces::new_ns"));
auto bad_inputs = {"scope", ":", ""};
for (auto input : bad_inputs) {
try {
Symbol::fromQualString(input);
ASSERT_TRUE(0);
} catch (const std::exception& c) {
}
}
}
at::Tensor t_use(at::Tensor x) {
return x;
}
at::Tensor t_def(at::Tensor x) {
return x.t();
}
// given the difference of output vs expected tensor, check whether the
// difference is within a relative tolerance range. This is a standard way of
// matching tensor values upto certain precision
bool checkRtol(const at::Tensor& diff, const std::vector<at::Tensor> inputs) {
double maxValue = 0.0;
for (auto& tensor : inputs) {
maxValue = fmax(tensor.abs().max().item<float>(), maxValue);
}
return diff.abs().max().item<float>() < 2e-6 * maxValue;
}
bool almostEqual(const at::Tensor& a, const at::Tensor& b) {
return checkRtol(a - b, {a, b});
}
bool exactlyEqual(const at::Tensor& a, const at::Tensor& b) {
return (a - b).abs().max().item<float>() == 0.f;
}
std::pair<at::Tensor, at::Tensor> lstm(
at::Tensor input,
at::Tensor hx,
at::Tensor cx,
at::Tensor w_ih,
at::Tensor w_hh) {
auto gates = input.mm(t_use(w_ih)) + hx.mm(t_use(w_hh));
auto chunked_gates = gates.chunk(4, 1);
auto ingate = chunked_gates[0];
auto forgetgate = chunked_gates[1];
auto cellgate = chunked_gates[2];
auto outgate = chunked_gates[3];
ingate = ingate.sigmoid();
outgate = outgate.sigmoid();
cellgate = cellgate.tanh();
forgetgate = forgetgate.sigmoid();
auto cy = (forgetgate * cx) + (ingate * cellgate);
auto hy = outgate * cy.tanh();
return {hy, cy};
}
std::tuple<Var, Var> build_lstm_body(
Graph& g,
Var input,
Var hx,
Var cx,
Var w_ih,
Var w_hh) {
auto gates = input.mm(w_ih);
gates = gates + hx.mm(w_hh);
auto outputs = gates.chunk(4, 1);
auto ingate = outputs[0];
auto forgetgate = outputs[1];
auto cellgate = outputs[2];
auto outgate = outputs[3];
ingate = ingate.sigmoid();
outgate = outgate.sigmoid();
cellgate = cellgate.tanh();
forgetgate = forgetgate.sigmoid();
auto cy = forgetgate * cx;
cy = cy + ingate * cellgate;
auto hy = outgate * cy.tanh();
return std::make_tuple(hy, cy);
}
std::shared_ptr<Graph> build_lstm() {
auto r = std::make_shared<Graph>();
auto& g = *r;
Value* input = g.addInput();
Value* hx = g.addInput();
Value* cx = g.addInput();
Value* w_ih = g.addInput();
Value* w_hh = g.addInput();
Var hy;
Var cy;
std::tie(hy, cy) = build_lstm_body(g, input, hx, cx, w_ih, w_hh);
hy.addAsOutput();
cy.addAsOutput();
g.lint();
return r;
}
std::vector<at::Tensor> run(
InterpreterState& interp,
const std::vector<at::Tensor>& inputs) {
std::vector<IValue> stack(inputs.begin(), inputs.end());
interp.run(stack);
return fmap(stack, [](const IValue& i) { return i.toTensor(); });
}
std::pair<tensor_list, tensor_list> runGradient(
Gradient& grad_spec,
tensor_list& tensors_in,
tensor_list& tensor_grads_in) {
static const auto as_tensorlist = [](const Stack& stack) {
return fmap(stack, [](const IValue& i) { return i.toTensor(); });
};
Code f_code{grad_spec.f}, df_code{grad_spec.df};
InterpreterState f_interpreter{f_code}, df_interpreter{df_code};
auto f_stack = fmap<IValue>(tensors_in);
f_interpreter.run(f_stack);
Stack df_stack;
df_stack.insert(
df_stack.end(), tensor_grads_in.begin(), tensor_grads_in.end());
for (auto offset : grad_spec.df_input_captured_inputs)
df_stack.push_back(tensors_in[offset]);
for (auto offset : grad_spec.df_input_captured_outputs)
df_stack.push_back(f_stack[offset]);
df_interpreter.run(df_stack);
// Outputs of f needs to be sliced
f_stack.erase(f_stack.begin() + grad_spec.f_real_outputs, f_stack.end());
return std::make_pair(as_tensorlist(f_stack), as_tensorlist(df_stack));
}
void assertAllClose(const tensor_list& a, const tensor_list& b) {
ASSERT_EQ(a.size(), b.size());
for (size_t i = 0; i < a.size(); ++i) {
ASSERT_TRUE(a[i].is_same_size(b[i]));
ASSERT_TRUE(a[i].allclose(b[i]));
}
}
void testInterp() {
constexpr int batch_size = 4;
constexpr int input_size = 256;
constexpr int seq_len = 32;
int hidden_size = 2 * input_size;
auto input = at::randn({seq_len, batch_size, input_size}, at::kCUDA);
auto hx = at::randn({batch_size, hidden_size}, at::kCUDA);
auto cx = at::randn({batch_size, hidden_size}, at::kCUDA);
auto w_ih = t_def(at::randn({4 * hidden_size, input_size}, at::kCUDA));
auto w_hh = t_def(at::randn({4 * hidden_size, hidden_size}, at::kCUDA));
auto lstm_g = build_lstm();
Code lstm_function(lstm_g);
InterpreterState lstm_interp(lstm_function);
auto outputs = run(lstm_interp, {input[0], hx, cx, w_ih, w_hh});
std::tie(hx, cx) = lstm(input[0], hx, cx, w_ih, w_hh);
// std::cout << almostEqual(outputs[0],hx) << "\n";
ASSERT_TRUE(exactlyEqual(outputs[0], hx));
ASSERT_TRUE(exactlyEqual(outputs[1], cx));
}
void testTHNNConv() {
std::vector<int64_t> input_size = {4, 3, 15, 17}; // B x C x H x W
std::vector<int64_t> kernel_size = {3, 5};
std::vector<int64_t> stride = {1, 2};
std::vector<int64_t> padding = {2, 1};
constexpr int out_channels = 5;
// make inputs
at::Tensor input = torch::randn(input_size);
at::Tensor weight = torch::randn(
{out_channels, input_size[1], kernel_size[0], kernel_size[1]});
at::Tensor bias = torch::randn({out_channels});
// run forward eagerly
at::Tensor output, finput, fgradinput;
std::tie(output, finput, fgradinput) = at::thnn_conv2d_forward(
input, weight, kernel_size, bias, stride, padding);
// make grad_outputs
at::Tensor grad_output = torch::randn_like(output);
at::Tensor grad_finput = torch::zeros_like(finput);
at::Tensor grad_fgradinput = torch::zeros_like(fgradinput);
// run backward eagerly
at::Tensor grad_input, grad_weight, grad_bias;
std::tie(grad_input, grad_weight, grad_bias) = at::thnn_conv2d_backward(
grad_output,
input,
weight,
kernel_size,
stride,
padding,
finput,
fgradinput,
{true, true, true});
// make JIT graph
auto graph = std::make_shared<Graph>();
auto ksz_val = graph->insertConstant(IValue(kernel_size));
auto kst_val = graph->insertConstant(IValue(stride));
auto pad_val = graph->insertConstant(IValue(padding));
auto inputg = graph->addInput("self");
auto weightg = graph->addInput("weight");
auto biasg = graph->addInput("bias");
Value* conv = graph->insert(
aten::thnn_conv2d_forward,
{inputg, weightg, ksz_val, biasg, kst_val, pad_val});
auto outputs = conv->node()->outputs();
for (auto output : outputs) {
graph->registerOutput(output);
}
LowerAllTuples(graph);
graph->lint();
// differentiate JIT graph
EliminateDeadCode(graph); // Tracing of some ops depends on the DCE trick
ConstantPropagation(graph);
auto grad_spec = differentiate(graph);
LowerGradOf(*grad_spec.df);
// prepare JIT inputs / gradients
tensor_list tensors_in;
tensors_in.push_back(input);
tensors_in.push_back(weight);
tensors_in.push_back(bias);
tensor_list tensor_grads_in;
tensor_grads_in.push_back(grad_output);
tensor_grads_in.push_back(grad_finput);
tensor_grads_in.push_back(grad_fgradinput);
// Get outputs from the interpreter
tensor_list tensors_out, tensor_grads_out;
std::tie(tensors_out, tensor_grads_out) =
runGradient(grad_spec, tensors_in, tensor_grads_in);
// prepare expected structs
tensor_list expected_tensors_out, expected_tensor_grads_out;
expected_tensors_out.push_back(output);
expected_tensors_out.push_back(finput);
expected_tensors_out.push_back(fgradinput);
expected_tensor_grads_out.push_back(grad_input);
expected_tensor_grads_out.push_back(grad_weight);
expected_tensor_grads_out.push_back(grad_bias);
// Compare results
assertAllClose(tensors_out, expected_tensors_out);
assertAllClose(tensor_grads_out, expected_tensor_grads_out);
}
void testATenNativeBatchNorm() {
// aten::native_batch_norm(Tensor input, Tensor weight, Tensor bias, Tensor
// running_mean, Tensor running_var, bool training, float momentum, float eps)
// -> (Tensor, Tensor, Tensor)
std::vector<int64_t> input_size = {4, 3, 15, 17}; // B x C x H x W
bool training = true;
float momentum = 0.9;
float eps = 1e-5;
// make inputs
at::Tensor input = torch::randn(input_size);
at::Tensor weight = torch::randn({input_size[1]});
at::Tensor bias = torch::randn({input_size[1]});
at::Tensor running_mean = torch::randn({input_size[1]});
at::Tensor running_var = torch::randn({input_size[1]});
// running_mean and running_var are changed in-place, so clone and send them
at::Tensor running_mean_eager = running_mean.clone();
at::Tensor running_var_eager = running_var.clone();
at::Tensor running_mean_jit = running_mean.clone();
at::Tensor running_var_jit = running_var.clone();
// run forward eagerly
at::Tensor output, savemean, saveinvstd;
std::tie(output, savemean, saveinvstd) = at::native_batch_norm(
input,
weight,
bias,
running_mean_eager,
running_var_eager,
training,
momentum,
eps);
// make grad_outputs
at::Tensor grad_output = torch::randn_like(output);
at::Tensor grad_savemean = torch::zeros_like(savemean);
at::Tensor grad_saveinvstd = torch::zeros_like(saveinvstd);
// run backward eagerly
at::Tensor grad_input, grad_weight, grad_bias;
// aten::native_batch_norm_backward(Tensor grad_out, Tensor input, Tensor
// weight, Tensor running_mean, Tensor running_var, Tensor save_mean, Tensor
// save_invstd, bool train, float eps, bool[3] output_mask) -> (Tensor,
// Tensor, Tensor)
std::tie(grad_input, grad_weight, grad_bias) = at::native_batch_norm_backward(
grad_output,
input,
weight,
running_mean_eager,
running_var_eager,
savemean,
saveinvstd,
training,
eps,
{true, true, true});
// make JIT graph
auto graph = std::make_shared<Graph>();
auto training_val = graph->insertConstant(IValue(training));
auto momentum_val = graph->insertConstant(IValue(momentum));
auto eps_val = graph->insertConstant(IValue(eps));
auto inputg = graph->addInput("self");
auto weightg = graph->addInput("weight");
auto biasg = graph->addInput("bias");
auto running_meang = graph->addInput("running_mean");
auto running_varg = graph->addInput("running_var");
Value* bn = graph->insert(
aten::native_batch_norm,
{inputg,
weightg,
biasg,
running_meang,
running_varg,
training_val,
momentum_val,
eps_val});
auto outputs = bn->node()->outputs();
for (auto output : outputs) {
graph->registerOutput(output);
}
LowerAllTuples(graph);
graph->lint();
// differentiate JIT graph
EliminateDeadCode(graph); // Tracing of some ops depends on the DCE trick
ConstantPropagation(graph);
auto grad_spec = differentiate(graph);
LowerGradOf(*grad_spec.df);
// prepare JIT inputs / gradients
tensor_list tensors_in;
tensors_in.push_back(input);
tensors_in.push_back(weight);
tensors_in.push_back(bias);
tensors_in.push_back(running_mean_jit);
tensors_in.push_back(running_var_jit);
tensor_list tensor_grads_in;
tensor_grads_in.push_back(grad_output);
tensor_grads_in.push_back(grad_savemean);
tensor_grads_in.push_back(grad_saveinvstd);
// Get outputs from the interpreter
tensor_list tensors_out, tensor_grads_out;
std::tie(tensors_out, tensor_grads_out) =
runGradient(grad_spec, tensors_in, tensor_grads_in);
// prepare expected structs
tensor_list expected_tensors_out, expected_tensor_grads_out;
expected_tensors_out.push_back(output);
expected_tensors_out.push_back(savemean);
expected_tensors_out.push_back(saveinvstd);
expected_tensors_out.push_back(running_mean_eager);
expected_tensors_out.push_back(running_var_eager);
expected_tensor_grads_out.push_back(grad_input);
expected_tensor_grads_out.push_back(grad_weight);
expected_tensor_grads_out.push_back(grad_bias);
tensors_out.push_back(running_mean_jit);
tensors_out.push_back(running_var_jit);
// Compare results
assertAllClose(tensors_out, expected_tensors_out);
assertAllClose(tensor_grads_out, expected_tensor_grads_out);
}
using var_meta_type = std::vector<int64_t>;
using var_meta_list = std::vector<var_meta_type>;
using test_fn_type = std::function<variable_list(const variable_list&)>;
struct ADTestSpec {
ADTestSpec(const char* name, var_meta_list input_meta, test_fn_type test_fn)
: name(name), input_meta(input_meta), test_fn(test_fn) {}
variable_list operator()(const variable_list& inputs) const {
return test_fn(inputs);
};
std::vector<Variable> make_vars() const {
std::vector<Variable> out;
for (const auto& m : input_meta) {
out.push_back(torch::randn(m, at::requires_grad(true)));
}
return out;
}
const char* name;
var_meta_list input_meta;
test_fn_type test_fn;
};
variable_list get_grad_outputs(const variable_list& vars) {
return fmap(vars, [](const Variable& v) -> Variable {
return at::randn(v.sizes(), v.options());
});
}
std::shared_ptr<Graph> trace(
const ADTestSpec& test,
const variable_list& vars_in) {
std::shared_ptr<tracer::TracingState> state;
Stack trace_stack_in;
std::tie(state, trace_stack_in) = tracer::enter(fmap<IValue>(vars_in));
variable_list trace_vars_in = fmap(
trace_stack_in, [](const IValue& v) { return Variable(v.toTensor()); });
auto trace_vars_out = test(trace_vars_in);
tracer::exit(fmap<IValue>(trace_vars_out));
return state->graph;
}
variable_list grad(
const variable_list& outputs,
const variable_list& inputs,
const variable_list& grad_outputs) {
const auto get_edge = [](const Variable& v) { return v.gradient_edge(); };
auto& engine = torch::autograd::Engine::get_default_engine();
return engine.execute(
fmap(outputs, get_edge),
grad_outputs,
true,
false,
fmap(inputs, get_edge));
}
void testADFormulas() {
const auto unwrap = [](const Variable& v) { return v.data(); };
using VL = variable_list;
const var_meta_list binary_pointwise = {{2, 3, 4, 5}, {2, 3, 4, 5}};
const var_meta_list unary_pointwise = {{2, 3, 4, 5}};
const var_meta_list unary_pointwise_2d = {{2, 3}};
const std::vector<ADTestSpec> ad_tests = {
{"add",
binary_pointwise,
[](const VL& v) -> VL { return {v[0] + v[1]}; }},
{"sub",
binary_pointwise,
[](const VL& v) -> VL { return {v[0] - v[1]}; }},
{"mul",
binary_pointwise,
[](const VL& v) -> VL { return {v[0] * v[1]}; }},
{"sigmoid",
unary_pointwise,
[](const VL& v) -> VL { return {v[0].sigmoid()}; }},
{"tanh",
unary_pointwise,
[](const VL& v) -> VL { return {v[0].tanh()}; }},
{"t", unary_pointwise_2d, [](const VL& v) -> VL { return {v[0].t()}; }},
{"view",
unary_pointwise_2d,
[](const VL& v) -> VL {
return {v[0].view({3, 2})};
}},
{"expand",
{{2, 1}},
[](const VL& v) -> VL {
return {v[0].expand({2, 3})};
}},
{"mm",
{{10, 12}, {12, 15}},
[](const VL& v) -> VL { return {v[0].mm(v[1])}; }},
// TODO: enable once we'll be able to capture lists across
// forward-backward
//{"chunk", {{10, 12, 15}}, [](const VL& v) -> VL { return
// fmap<Variable>(v[0].chunk(4, 1)); }},
//{"chunk", {{10, 12, 15}}, [](const VL& v) -> VL { return
// fmap<Variable>(v[0].chunk(3, 2)); }},
//{"split", {{10, 12, 15}}, [](const VL& v) -> VL { return
// fmap<Variable>(v[0].split(4, 1)); }},
//{"split", {{10, 12, 15}}, [](const VL& v) -> VL { return
// fmap<Variable>(v[0].split(3, 2)); }},
};
for (const auto& test : ad_tests) {
// Get reference values form autograd
auto vars_in = test.make_vars();
auto vars_out = test(vars_in);
auto var_grads_in = get_grad_outputs(vars_out);
auto var_grads_out = grad(vars_out, vars_in, var_grads_in);
// Trace and differentiate the op
auto graph = trace(test, vars_in);
EliminateDeadCode(graph); // Tracing of some ops depends on the DCE trick
ConstantPropagation(graph);
auto grad_spec = differentiate(graph);
LowerGradOf(*grad_spec.df);
// Get outputs from the interpreter
auto tensors_in = fmap(vars_in, unwrap);
auto tensor_grads_in = fmap(var_grads_in, unwrap);
tensor_list tensors_out, tensor_grads_out;
std::tie(tensors_out, tensor_grads_out) =
runGradient(grad_spec, tensors_in, tensor_grads_in);
// Compare results
auto expected_tensors_out = fmap(vars_out, unwrap);
auto expected_tensor_grads_out = fmap(var_grads_out, unwrap);
assertAllClose(tensors_out, expected_tensors_out);
assertAllClose(tensor_grads_out, expected_tensor_grads_out);
}
}
void testDifferentiate(std::ostream& out = std::cout) {
auto graph = std::make_shared<Graph>();
at::ScalarType s = at::ScalarType::Float;
auto type = CompleteTensorType::create(s, at::kCPU, {2, 3, 4}, {12, 4, 1});
// Build up a fake graph
auto a = SymbolicVariable::asNewInput(*graph, type);
auto b = SymbolicVariable::asNewInput(*graph, type);
auto c = a * b * a + b;
graph->registerOutput(c.value());
auto grad_spec = differentiate(graph);
std::vector<size_t> expected_captured_inputs = {0, 1};
std::vector<size_t> expected_captured_outputs = {1, 2};
std::vector<size_t> expected_input_vjps = {0, 1};
std::vector<size_t> expected_output_vjps = {0, 1};
ASSERT_EQ(grad_spec.f_real_outputs, 1);
ASSERT_EQ(grad_spec.df_input_captured_inputs, expected_captured_inputs);
ASSERT_EQ(grad_spec.df_input_captured_outputs, expected_captured_outputs);
ASSERT_EQ(grad_spec.df_input_vjps, expected_input_vjps);
ASSERT_EQ(grad_spec.df_output_vjps, expected_output_vjps);
out << "testDifferentiate\n";
out << *grad_spec.f;
out << *grad_spec.df;
out << "\n";
}
void testDifferentiateWithRequiresGrad(std::ostream& out = std::cout) {
// Build up a fake graph
auto graph = std::make_shared<Graph>();
auto a = SymbolicVariable::asNewInput(*graph);
auto b = SymbolicVariable::asNewInput(*graph);
auto d = b * b + b;
auto e = (d + a) * a + b;
graph->registerOutput(d.value());
graph->registerOutput(e.value());
auto a_var = autograd::make_variable(
at::empty_strided(2, 2, at::CPU(at::kFloat).options()), true);
auto b_var = autograd::make_variable(
at::empty_strided(2, 2, at::CPU(at::kFloat).options()), false);
setInputTypes(*graph, ArgumentSpec(true, {a_var, b_var}, 2));
PropagateInputShapes(graph);
PropagateRequiresGrad(graph);
auto grad_spec = differentiate(graph);
std::vector<size_t> expected_input_vjps = {1, 2}; // for e and %4 = (d + a)
std::vector<size_t> expected_output_vjps = {0}; // only a requires grad
ASSERT_EQ(grad_spec.f_real_outputs, 2);
ASSERT_EQ(grad_spec.df_input_captured_inputs, std::vector<size_t>({0}));
ASSERT_EQ(grad_spec.df_input_captured_outputs, std::vector<size_t>({2, 3}));
ASSERT_EQ(grad_spec.df_input_vjps, expected_input_vjps);
ASSERT_EQ(grad_spec.df_output_vjps, expected_output_vjps);
out << "testDifferentiateWithRequiresGrad\n";
out << *grad_spec.f;
out << *grad_spec.df;
out << "\n";
}
void testRegisterFusionCachesKernel(std::ostream& out = std::cout) {
// Build up a fake graph with a FusionGroup
auto createGraphWithNames = [](std::string cname, std::string dname) {
auto graph = std::make_shared<Graph>();
at::ScalarType s = at::ScalarType::Float;
auto type = CompleteTensorType::create(s, at::kCPU, {2, 3, 4}, {12, 4, 1});
auto a = SymbolicVariable::asNewInput(*graph, type);
auto b = SymbolicVariable::asNewInput(*graph, type);
auto c = a * b;
auto d = c * a;
c.value()->setUniqueName(cname);
d.value()->setUniqueName(dname);
graph->registerOutput(d.value());
torch::jit::overrideCanFuseOnCPU(true);
FuseGraph(graph);
torch::jit::overrideCanFuseOnCPU(false);
return graph;
};
auto getFusionGroup = [](const std::shared_ptr<Graph>& graph) {
const auto& nodes = graph->nodes();
auto maybe_fusion_group =
std::find_if(nodes.begin(), nodes.end(), [](const Node* node) {
return node->kind() == prim::FusionGroup;
});
AT_CHECK(
maybe_fusion_group != nodes.end(),
"testRegisterFusionCachesKernel: could not create FusionGroup");
return *maybe_fusion_group;
};
// Create two alpha-equivalent fusion groups
auto graph1 = createGraphWithNames("c1", "d1");
auto fg1 = getFusionGroup(graph1);
auto graph2 = createGraphWithNames("c2", "d2");
auto fg2 = getFusionGroup(graph2);
// Register both with the fusion compiler.
auto expected_key = registerFusion(fg1);
auto second_key = registerFusion(fg2);
// Because the graphs are alpha-equivalent, they should return the same key
// and therefore share a KernelSpec to share kernels for specializations
ASSERT_EQ(second_key, expected_key);
}
void testCreateAutodiffSubgraphs(std::ostream& out = std::cout) {
auto graph = build_lstm();
CreateAutodiffSubgraphs(graph, /*threshold=*/2);
out << "testCreateAutodiffSubgraphs\n";
out << *graph << "\n";
}
void testSubgraphUtils() {
auto graph = build_lstm();
EliminateCommonSubexpression(graph);
std::vector<Node*> originalNodes(
graph->nodes().begin(), graph->nodes().end());
// Merge everything into a single subgraph
bool first = true;
Node* subgraph;
for (auto it = graph->nodes().rbegin(); it != graph->nodes().rend();) {
if (first) {
subgraph = SubgraphUtils::createSingletonSubgraph(
*it, prim::DifferentiableGraph);
it = ++subgraph->reverseIterator();
first = false;
}
SubgraphUtils::mergeNodeIntoSubgraph(*it, subgraph);
it = ++subgraph->reverseIterator();
}
// Unmerge and compare with original node listing
SubgraphUtils::unmergeSubgraph(subgraph);
EliminateCommonSubexpression(graph);
std::vector<Node*> newNodes(graph->nodes().begin(), graph->nodes().end());
ASSERT_EQ(originalNodes.size(), newNodes.size());
}
autograd::Variable var(at::Type& t, at::IntArrayRef sizes, bool requires_grad) {
return autograd::make_variable(at::rand(sizes, t.options()), requires_grad);
}
autograd::Variable undef() {
return autograd::Variable();
}
int device(const autograd::Variable& v) {
return v.type().is_cuda() ? v.get_device() : -1;
}
bool isEqual(at::IntArrayRef lhs, at::IntArrayRef rhs) {
return lhs.size() == rhs.size() &&
std::equal(lhs.begin(), lhs.end(), rhs.begin());
}
bool isEqual(const CompleteArgumentInfo& ti, const autograd::Variable& v) {
if (!ti.defined())
return ti.defined() == v.defined();
return ti.device() == device(v) && ti.requires_grad() == v.requires_grad() &&
ti.type() == v.type().scalarType() && isEqual(ti.sizes(), v.sizes()) &&
isEqual(ti.strides(), v.strides());
}
// work around the fact that variable_tensor_list doesn't duplicate all
// of std::vector's constructors.
// most constructors are never used in the implementation, just in our tests.
Stack createStack(std::vector<at::Tensor>&& list) {
return Stack(
std::make_move_iterator(list.begin()),
std::make_move_iterator(list.end()));
}
void testArgumentSpec() {
auto& CF = at::CPU(at::kFloat);
auto& CD = at::CPU(at::kDouble);
auto& GF = at::CUDA(at::kFloat);
auto& GD = at::CUDA(at::kDouble);
auto list = createStack({var(CF, {1}, true),
var(CD, {1, 2}, false),
var(GF, {}, true),
var(GD, {4, 5, 6}, false),
undef()});
// make sure we have some non-standard strides
list[1].toTensor().transpose_(0, 1);
// same list but different backing values
auto list2 = createStack({var(CF, {1}, true),
var(CD, {1, 2}, false),
var(GF, {}, true),
var(GD, {4, 5, 6}, false),
undef()});
list2[1].toTensor().transpose_(0, 1);
CompleteArgumentSpec a(true, list);
CompleteArgumentSpec b(true, list);
ASSERT_EQ(a.hashCode(), b.hashCode());
ASSERT_EQ(a, b);
CompleteArgumentSpec d(true, list2);
ASSERT_EQ(d, a);
ASSERT_EQ(d.hashCode(), a.hashCode());
for (size_t i = 0; i < list.size(); ++i) {
ASSERT_TRUE(isEqual(a.at(i), list[i].toTensor()));
}
CompleteArgumentSpec no_grad(/*with_grad=*/false, list);
ASSERT_TRUE(no_grad != a);
std::unordered_set<CompleteArgumentSpec> spec;
spec.insert(std::move(a));
ASSERT_TRUE(spec.count(b) > 0);
ASSERT_EQ(spec.count(no_grad), 0);
spec.insert(std::move(no_grad));
ASSERT_EQ(spec.count(CompleteArgumentSpec(true, list)), 1);
list2[1].toTensor().transpose_(0, 1);
CompleteArgumentSpec c(true, list2); // same as list, except for one stride
ASSERT_FALSE(c == a);
ASSERT_EQ(spec.count(c), 0);
Stack stack = {var(CF, {1, 2}, true), 3, var(CF, {1, 2}, true)};
CompleteArgumentSpec with_const(true, stack);
ASSERT_EQ(with_const.at(2).sizes().size(), 2);
}
void testGraphExecutor() {
constexpr int batch_size = 4;
constexpr int input_size = 256;
int hidden_size = 2 * input_size;
auto v = [](at::Tensor t) { return autograd::make_variable(t, false); };
auto input = at::randn({batch_size, input_size}, at::kCUDA);
auto hx = at::randn({batch_size, hidden_size}, at::kCUDA);
auto cx = at::randn({batch_size, hidden_size}, at::kCUDA);
auto w_ih = t_def(at::randn({4 * hidden_size, input_size}, at::kCUDA));
auto w_hh = t_def(at::randn({4 * hidden_size, hidden_size}, at::kCUDA));
auto g = build_lstm();
GraphExecutor executor(g);
auto stack = createStack({v(input), v(hx), v(cx), v(w_ih), v(w_hh)});
executor.run(stack);
ASSERT_EQ(stack.size(), 2);
at::Tensor r0, r1;
std::tie(r0, r1) = lstm(input, hx, cx, w_ih, w_hh);
ASSERT_TRUE(almostEqual(Variable(stack[0].toTensor()).data(), r0));
ASSERT_TRUE(almostEqual(Variable(stack[1].toTensor()).data(), r1));
}
void testBlocks(std::ostream& out = std::cout) {
Graph g;
auto a = Var::asNewInput(g, "a");
auto b = Var::asNewInput(g, "b");
auto c = a + b;
auto r = g.appendNode(g.create(prim::If, {Var::asNewInput(g, "c").value()}));
auto then_block = r->addBlock();
auto else_block = r->addBlock();
{
WithInsertPoint guard(then_block);
auto t = c + c;
then_block->registerOutput(t.value());
}
{
WithInsertPoint guard(else_block);
auto d = b + c;
auto e = d + c;
else_block->registerOutput(e.value());
}
g.registerOutput((Var(r->output()) + c).value());
g.lint();
out << "testBlocks\n" << g << "\n";
r->eraseBlock(0);
out << g << "\n";
g.lint();
// test recursive copy of blocks works
auto g2 = g.copy();
out << *g2 << "\n";
}
const auto cf_examples = R"JIT(
def if_test(a, b):
# FIXME: use 0 instead of a.
# c = 0
c = a
if bool(a < b):
c = b
else:
c = a
return c
def if_one(a, b):
c = b
if bool(a < b):
c = a
return c
def while_test(a, i):
while bool(i < 3):
a *= a
i += 1
return a
)JIT";
void testControlFlow() {
auto cu = std::make_shared<script::Module>();
script::defineMethodsInModule(
cu, cf_examples, script::nativeResolver, nullptr);
auto run = [&](const std::string& name, std::vector<IValue> stack) {
auto graph = cu->get_method(name).graph();
Code code(graph);
InterpreterState interp(code);
interp.run(stack);
return stack;
};
auto L = [](int64_t l) {
return IValue(autograd::make_variable(scalar_to_tensor(at::Scalar(l))));
};
auto V = [](IValue t) { return std::move(t).toTensor().item<int64_t>(); };
auto run_binary = [&](const std::string& name, int64_t a, int64_t b) {
return V(run(name, {L(a), L(b)})[0]);
};
ASSERT_EQ(2, run_binary("if_test", 1, 2));
ASSERT_EQ(3, run_binary("if_test", 3, 2));
ASSERT_EQ(2, run_binary("if_one", 2, 3));
ASSERT_EQ(2, run_binary("if_one", 3, 2));
ASSERT_EQ(256, run_binary("while_test", 2, 0));
}
void testIValue() {
Shared<IntList> foo = IntList::create({3, 4, 5});
ASSERT_EQ(foo.use_count(), 1);
IValue bar{foo};
ASSERT_EQ(foo.use_count(), 2);
auto baz = bar;
ASSERT_EQ(foo.use_count(), 3);
auto foo2 = std::move(bar);
ASSERT_EQ(foo.use_count(), 3);
ASSERT_TRUE(foo2.isIntList());
ASSERT_TRUE(bar.isNone());
foo2 = IValue(4.0);
ASSERT_TRUE(foo2.isDouble());
ASSERT_EQ(foo2.toDouble(), 4.0);
ASSERT_EQ(foo.use_count(), 2);
ASSERT_TRUE(ArrayRef<int64_t>(baz.toIntList()->elements()).equals({3, 4, 5}));
auto move_it = std::move(baz).toIntList();
ASSERT_EQ(foo.use_count(), 2);
ASSERT_TRUE(baz.isNone());
IValue i(4);
ASSERT_TRUE(i.isInt());
ASSERT_EQ(i.toInt(), 4);
IValue dlist(DoubleList::create({3.5}));
ASSERT_TRUE(dlist.isDoubleList());
ASSERT_TRUE(ArrayRef<double>(std::move(dlist).toDoubleList()->elements())
.equals({3.5}));
ASSERT_TRUE(dlist.isNone());
dlist = IValue(DoubleList::create({3.4}));
ASSERT_TRUE(ArrayRef<double>(dlist.toDoubleList()->elements()).equals({3.4}));
IValue the_list(Tuple::create({IValue(3.4), IValue(4), IValue(foo)}));
ASSERT_EQ(foo.use_count(), 3);
ASSERT_TRUE(the_list.isTuple());
auto first = std::move(the_list).toTuple()->elements().at(1);
ASSERT_EQ(first.toInt(), 4);
at::Tensor tv = at::rand({3, 4});
IValue ten(tv);
ASSERT_EQ(tv.use_count(), 2);
auto ten2 = ten;
ASSERT_EQ(tv.use_count(), 3);
ASSERT_TRUE(ten2.toTensor().equal(ten.toTensor()));
std::move(ten2).toTensor();
ASSERT_EQ(tv.use_count(), 2);
}
void testProto() {
::ONNX_NAMESPACE::ModelProto proto;
proto.set_producer_name("foo");
}
void testCustomOperators() {
{
RegisterOperators reg({createOperator(
"foo::bar", [](double a, at::Tensor b) { return a + b; })});
auto& ops = getAllOperatorsFor(Symbol::fromQualString("foo::bar"));
ASSERT_EQ(ops.size(), 1);
auto& op = ops.front();
ASSERT_EQ(op->schema().name(), "foo::bar");
ASSERT_EQ(op->schema().arguments().size(), 2);
ASSERT_EQ(op->schema().arguments()[0].name(), "_0");
ASSERT_EQ(op->schema().arguments()[0].type()->kind(), TypeKind::FloatType);
ASSERT_EQ(op->schema().arguments()[1].name(), "_1");
ASSERT_EQ(op->schema().arguments()[1].type()->kind(), TypeKind::TensorType);
ASSERT_EQ(op->schema().returns()[0].type()->kind(), TypeKind::TensorType);
Stack stack;
push(stack, 2.0f, autograd::make_variable(at::ones(5)));
op->getOperation()(stack);
at::Tensor output;
pop(stack, output);
ASSERT_TRUE(output.allclose(autograd::make_variable(at::full(5, 3.0f))));
}
{
RegisterOperators reg({createOperator(
"foo::bar_with_schema(float a, Tensor b) -> Tensor",
[](double a, at::Tensor b) { return a + b; })});
auto& ops =
getAllOperatorsFor(Symbol::fromQualString("foo::bar_with_schema"));
ASSERT_EQ(ops.size(), 1);
auto& op = ops.front();
ASSERT_EQ(op->schema().name(), "foo::bar_with_schema");
ASSERT_EQ(op->schema().arguments().size(), 2);
ASSERT_EQ(op->schema().arguments()[0].name(), "a");
ASSERT_EQ(op->schema().arguments()[0].type()->kind(), TypeKind::FloatType);
ASSERT_EQ(op->schema().arguments()[1].name(), "b");
ASSERT_EQ(op->schema().arguments()[1].type()->kind(), TypeKind::TensorType);
ASSERT_EQ(op->schema().returns().size(), 1);
ASSERT_EQ(op->schema().returns()[0].type()->kind(), TypeKind::TensorType);
Stack stack;
push(stack, 2.0f, autograd::make_variable(at::ones(5)));
op->getOperation()(stack);
at::Tensor output;
pop(stack, output);
ASSERT_TRUE(output.allclose(autograd::make_variable(at::full(5, 3.0f))));
}
{
// Check that lists work well.
RegisterOperators reg({createOperator(
"foo::lists(int[] ints, float[] floats, Tensor[] tensors) -> float[]",
[](const std::vector<int64_t>& ints,
const std::vector<double>& floats,
std::vector<at::Tensor> tensors) { return floats; })});
auto& ops = getAllOperatorsFor(Symbol::fromQualString("foo::lists"));
ASSERT_EQ(ops.size(), 1);
auto& op = ops.front();
ASSERT_EQ(op->schema().name(), "foo::lists");
ASSERT_EQ(op->schema().arguments().size(), 3);
ASSERT_EQ(op->schema().arguments()[0].name(), "ints");
ASSERT_TRUE(
op->schema().arguments()[0].type()->isSubtypeOf(ListType::ofInts()));
ASSERT_EQ(op->schema().arguments()[1].name(), "floats");
ASSERT_TRUE(
op->schema().arguments()[1].type()->isSubtypeOf(ListType::ofFloats()));
ASSERT_EQ(op->schema().arguments()[2].name(), "tensors");
ASSERT_TRUE(
op->schema().arguments()[2].type()->isSubtypeOf(ListType::ofTensors()));
ASSERT_EQ(op->schema().returns().size(), 1);
ASSERT_TRUE(
op->schema().returns()[0].type()->isSubtypeOf(ListType::ofFloats()));
Stack stack;
push(stack, std::vector<int64_t>{1, 2});
push(stack, std::vector<double>{1.0, 2.0});
push(stack, std::vector<at::Tensor>{autograd::make_variable(at::ones(5))});
op->getOperation()(stack);
std::vector<double> output;
pop(stack, output);
ASSERT_EQ(output.size(), 2);
ASSERT_EQ(output[0], 1.0);
ASSERT_EQ(output[1], 2.0);
}
{
RegisterOperators reg(
"foo::lists2(Tensor[] tensors) -> Tensor[]",
[](std::vector<at::Tensor> tensors) { return tensors; });
auto& ops = getAllOperatorsFor(Symbol::fromQualString("foo::lists2"));
ASSERT_EQ(ops.size(), 1);
auto& op = ops.front();
ASSERT_EQ(op->schema().name(), "foo::lists2");
ASSERT_EQ(op->schema().arguments().size(), 1);
ASSERT_EQ(op->schema().arguments()[0].name(), "tensors");
ASSERT_TRUE(
op->schema().arguments()[0].type()->isSubtypeOf(ListType::ofTensors()));
ASSERT_EQ(op->schema().returns().size(), 1);
ASSERT_TRUE(
op->schema().returns()[0].type()->isSubtypeOf(ListType::ofTensors()));
Stack stack;
push(stack, std::vector<at::Tensor>{autograd::make_variable(at::ones(5))});
op->getOperation()(stack);
std::vector<at::Tensor> output;
pop(stack, output);
ASSERT_EQ(output.size(), 1);
ASSERT_TRUE(output[0].allclose(autograd::make_variable(at::ones(5))));
}
{
auto op = createOperator(
"traced::op(float a, Tensor b) -> Tensor",
[](double a, at::Tensor b) { return a + b; });
std::shared_ptr<tracer::TracingState> state;
std::tie(state, std::ignore) = tracer::enter({});
Stack stack;
push(stack, 2.0f, autograd::make_variable(at::ones(5)));
op.getOperation()(stack);
at::Tensor output = autograd::make_variable(at::empty({}));
pop(stack, output);
tracer::exit({IValue(output)});
std::string op_name("traced::op");
bool contains_traced_op = false;
for (const auto& node : state->graph->nodes()) {
if (std::string(node->kind().toQualString()) == op_name) {
contains_traced_op = true;
break;
}
}
ASSERT_TRUE(contains_traced_op);
}
{
ASSERT_THROWS_WITH(
createOperator(
"foo::bar_with_bad_schema(Tensor a) -> Tensor",
[](double a, at::Tensor b) { return a + b; }),
"Inferred 2 argument(s) for operator implementation, "
"but the provided schema specified 1 argument(s).");
ASSERT_THROWS_WITH(
createOperator(
"foo::bar_with_bad_schema(Tensor a) -> Tensor",
[](double a) { return a; }),
"Inferred type for argument #0 was float, "
"but the provided schema specified type Tensor "
"for the argument in that position");
ASSERT_THROWS_WITH(
createOperator(
"foo::bar_with_bad_schema(float a) -> (float, float)",
[](double a) { return a; }),
"Inferred 1 return value(s) for operator implementation, "
"but the provided schema specified 2 return value(s).");
ASSERT_THROWS_WITH(
createOperator(
"foo::bar_with_bad_schema(float a) -> Tensor",
[](double a) { return a; }),
"Inferred type for return value #0 was float, "
"but the provided schema specified type Tensor "
"for the return value in that position");
}
{
// vector<double> is not supported yet.
auto op = createOperator(
"traced::op(float[] f) -> int",
[](const std::vector<double>& f) -> int64_t { return f.size(); });
std::shared_ptr<tracer::TracingState> state;
std::tie(state, std::ignore) = tracer::enter({});
Stack stack;
push(stack, std::vector<double>{1.0});
ASSERT_THROWS_WITH(
op.getOperation()(stack),
"Tracing float lists currently not supported!");
tracer::abandon();
}
}
void testEvalModeForLoadedModule() {
if (isSandcastle())
return; // The module file to load is not generated in Sandcastle
std::string module_path = "dropout_model.pt";
std::shared_ptr<torch::jit::script::Module> module =
torch::jit::load(module_path);
AT_ASSERT(module->get_module("dropout")->is_training());
module->eval();
AT_ASSERT(!module->get_module("dropout")->is_training());
module->train();
AT_ASSERT(module->get_module("dropout")->is_training());
}
// test a few features that are not directly used in schemas yet
void testSchemaParser() {
// nested arrays
auto s = parseSchema("at::what(int[][4] foo) -> ()");
ASSERT_TRUE(s.arguments().at(0).N() == 4);
ASSERT_TRUE(IntType::get()->isSubtypeOf(s.arguments()
.at(0)
.type()
->expect<ListType>()
->getElementType()
->expect<ListType>()
->getElementType()));
auto s2 = parseSchema("at::what(int[][] foo) -> ()");
ASSERT_TRUE(IntType::get()->isSubtypeOf(s2.arguments()
.at(0)
.type()
->expect<ListType>()
->getElementType()
->expect<ListType>()
->getElementType()));
// named returns
parseSchema("at::what(Tensor! i_will_be_written_to) -> ()");
auto s3 =
parseSchema("at::what() -> (Tensor the_return, Tensor the_return2)");
ASSERT_TRUE(s3.returns().at(0).name() == "the_return");
ASSERT_TRUE(s3.returns().at(1).name() == "the_return2");
// futures
auto s4 = parseSchema("at::what(Future(int) foo) -> ()");
ASSERT_TRUE(IntType::get()->isSubtypeOf(
s4.arguments().at(0).type()->expect<FutureType>()->getElementType()));
// test tensor with annotated alias sets
parseSchema("at::what(Tensor(a) foo) -> (Tensor(a))");
{
const auto s = parseSchema(
"at::what(Tensor(b|c)[](a!) list, Tensor(c) element)"
" -> (Tensor(b|c)[](a!))");
// The list itself is annotated with `a`
const auto& aliasInfo = *s.arguments().at(0).alias_info();
ASSERT_TRUE(
aliasInfo.beforeSets() ==
std::unordered_set<Symbol>{Symbol::fromQualString("alias::a")});
ASSERT_TRUE(aliasInfo.isWrite());
// Check the contained types
ASSERT_TRUE(!aliasInfo.containedTypes().empty());
const auto& containedAliasInfo = aliasInfo.containedTypes()[0];
const auto expected = std::unordered_set<Symbol>{
Symbol::fromQualString("alias::b"),
Symbol::fromQualString("alias::c"),
};
ASSERT_TRUE(containedAliasInfo.beforeSets() == expected);
ASSERT_TRUE(containedAliasInfo.afterSets() == expected);
ASSERT_FALSE(containedAliasInfo.isWrite());
}
{
const auto s = parseSchema(
"at::what(Tensor(b -> b|c)[](a!) list, Tensor(c) element)"
" -> (Tensor(b|c)[](a!))");
// The list itself is annotated with `a`
const auto& aliasInfo = *s.arguments().at(0).alias_info();
ASSERT_EQ(
aliasInfo.beforeSets(),
std::unordered_set<Symbol>{Symbol::fromQualString("alias::a")});
ASSERT_EQ(
aliasInfo.afterSets(),
std::unordered_set<Symbol>{Symbol::fromQualString("alias::a")});
ASSERT_TRUE(aliasInfo.isWrite());
ASSERT_EQ(aliasInfo.containedTypes().size(), 1);
// Check the contained types
ASSERT_TRUE(!aliasInfo.containedTypes().empty());
const auto& containedAliasInfo = aliasInfo.containedTypes()[0];
const auto expectedBefore = std::unordered_set<Symbol>{
Symbol::fromQualString("alias::b"),
};
const auto expectedAfter = std::unordered_set<Symbol>{
Symbol::fromQualString("alias::b"),
Symbol::fromQualString("alias::c")
};
ASSERT_TRUE(containedAliasInfo.beforeSets() == expectedBefore);
ASSERT_TRUE(containedAliasInfo.afterSets() == expectedAfter);
ASSERT_FALSE(containedAliasInfo.isWrite());
}
}
void testTopologicalIndex() {
{
Graph graph;
auto node1 = graph.create(prim::Undefined);
auto node2 = graph.create(prim::Undefined);
auto node3 = graph.create(prim::Undefined);
auto node4 = graph.create(prim::Undefined);
graph.appendNode(node4);
graph.prependNode(node1);
node2->insertAfter(node1);
node3->insertBefore(node4);
// nodes should be in numerical order
ASSERT_TRUE(node1->isBefore(node2));
ASSERT_TRUE(node1->isBefore(node3));
ASSERT_TRUE(node1->isBefore(node4));
ASSERT_TRUE(node2->isAfter(node1));
ASSERT_TRUE(node2->isBefore(node3));
ASSERT_TRUE(node2->isBefore(node4));
ASSERT_FALSE(node3->isBefore(node1));
ASSERT_FALSE(node3->isBefore(node2));
ASSERT_FALSE(node3->isAfter(node4));
// Built up a block structure
// node3
// /\ ...
// A B block1
// \ ...
// C block2
auto block1 = node3->addBlock();
auto A = graph.create(prim::Undefined);
block1->appendNode(A);
auto B = graph.create(prim::Undefined);
block1->appendNode(B);
auto block2 = B->addBlock();
auto C = graph.create(prim::Undefined);
block2->appendNode(C);
// Check isAfter on different block levels
ASSERT_TRUE(node1->isBefore(A));
ASSERT_TRUE(A->isBefore(B));
ASSERT_TRUE(A->isBefore(C));
// make sure things don't blow up on deletions
node2->destroy();
auto node2p = graph.create(prim::Undefined);
node2p->insertAfter(node1);
ASSERT_TRUE(node1->isBefore(node2p));
ASSERT_TRUE(node2p->isBefore(node3));
}
{
// Induce reindexing to test that path
Graph graph;
std::map<size_t, Node*> nodes;
auto anchor = graph.create(prim::Undefined);
graph.appendNode(anchor);
// Inserting to the same place a lot will trigger reindexing
for (auto i = 0; i < 100; ++i) {
auto n = graph.create(prim::Undefined);
n->insertAfter(anchor);
nodes[i] = n;
}
// Nodes should be in reverse order
for (auto i = 0; i < 100; ++i) {
for (auto j = i + 1; j < 100; ++j) {
ASSERT_TRUE(nodes[i]->isAfter(nodes[j]));
}
}
}
}
std::unique_ptr<detail::DynamicDAG<std::string>> newDynamicDAG() {
return std::unique_ptr<detail::DynamicDAG<std::string>>(
new detail::DynamicDAG<std::string>());
}
void testNewVertex() {
auto graph = newDynamicDAG();
AT_ASSERT(graph->debugNumVertices() == 0);
auto a = graph->newVertex("a");
AT_ASSERT(graph->debugNumVertices() == 1);
AT_ASSERT(a->ord == 0);
AT_ASSERT(a->data.size() == 1);
AT_ASSERT(a->data[0] == "a");
AT_ASSERT(a->in_edges().size() == 0);
AT_ASSERT(a->out_edges().size() == 0);
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
AT_ASSERT(graph->debugNumVertices() == 3);
AT_ASSERT(b->ord == 1);
AT_ASSERT(c->ord == 2);
}
void testAddEdgeBasic() {
// a -> b -> c
// \---------^
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
graph->addEdge(a, b);
graph->addEdge(b, c);
graph->addEdge(a, c);
AT_ASSERT(a->in_edges().size() == 0);
AT_ASSERT(a->out_edges().size() == 2);
AT_ASSERT(a->out_edges().contains(b));
AT_ASSERT(a->out_edges().contains(c));
AT_ASSERT(b->in_edges().size() == 1);
AT_ASSERT(b->out_edges().size() == 1);
AT_ASSERT(b->in_edges().contains(a));
AT_ASSERT(b->out_edges().contains(c));
AT_ASSERT(c->in_edges().size() == 2);
AT_ASSERT(c->out_edges().size() == 0);
AT_ASSERT(c->in_edges().contains(a));
AT_ASSERT(c->in_edges().contains(b));
}
void testAddEdgeCycleDetection() {
// a -> b -> c
// ^---------/
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
graph->addEdge(a, b);
graph->addEdge(b, c);
bool erred = false;
try {
graph->addEdge(c, a);
} catch (c10::Error& err) {
erred = true;
}
AT_ASSERT(erred);
}
void testAddEdgeReordersBasic() {
// a, b => b -> a
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
AT_ASSERT(a->ord == 0);
AT_ASSERT(b->ord == 1);
graph->addEdge(b, a);
AT_ASSERT(a->ord == 1);
AT_ASSERT(b->ord == 0);
}
void testAddEdgeReordersComplicated() {
// a -> b c -> d with addEdge(d, b) ==>
// c -> d -> a -> b
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
auto d = graph->newVertex("d");
graph->addEdge(a, b);
graph->addEdge(c, d);
AT_ASSERT(a->ord == 0);
AT_ASSERT(b->ord == 1);
AT_ASSERT(c->ord == 2);
AT_ASSERT(d->ord == 3);
graph->addEdge(d, a);
AT_ASSERT(c->ord == 0);
AT_ASSERT(d->ord == 1);
AT_ASSERT(a->ord == 2);
AT_ASSERT(b->ord == 3);
AT_ASSERT(c->in_edges().size() == 0);
AT_ASSERT(c->out_edges().size() == 1);
AT_ASSERT(c->out_edges().contains(d));
AT_ASSERT(d->in_edges().size() == 1);
AT_ASSERT(d->out_edges().size() == 1);
AT_ASSERT(d->in_edges().contains(c));
AT_ASSERT(d->out_edges().contains(a));
AT_ASSERT(a->in_edges().size() == 1);
AT_ASSERT(a->out_edges().size() == 1);
AT_ASSERT(a->in_edges().contains(d));
AT_ASSERT(a->out_edges().contains(b));
AT_ASSERT(b->in_edges().size() == 1);
AT_ASSERT(b->out_edges().size() == 0);
AT_ASSERT(b->in_edges().contains(a));
}
void testRemoveEdgeBasic() {
// a -> b
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
graph->addEdge(a, b);
AT_ASSERT(graph->debugNumVertices() == 2);
graph->removeEdge(a, b);
AT_ASSERT(graph->debugNumVertices() == 2);
AT_ASSERT(a->out_edges().size() == 0);
AT_ASSERT(b->in_edges().size() == 0);
}
void testRemoveVertexBasic() {
// a -> b
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
graph->addEdge(a, b);
graph->addEdge(b, c);
AT_ASSERT(graph->debugNumVertices() == 3);
graph->removeVertex(b);
AT_ASSERT(graph->debugNumVertices() == 2);
AT_ASSERT(a->out_edges().size() == 0);
AT_ASSERT(c->in_edges().size() == 0);
}
void testContractEdgeBasic() {
// a -> b -> c -> d
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
auto d = graph->newVertex("d");
graph->addEdge(a, b);
graph->addEdge(b, c);
graph->addEdge(c, d);
graph->contractEdge(b, c);
AT_ASSERT(graph->debugNumVertices() == 3);
AT_ASSERT(a->out_edges().size() == 1);
AT_ASSERT(d->in_edges().size() == 1);
AT_ASSERT(*a->out_edges().begin() == *d->in_edges().begin());
auto* contracted = *a->out_edges().begin();
AT_ASSERT(contracted->data.size() == 2);
AT_ASSERT(contracted->data[0] == "b");
AT_ASSERT(contracted->data[1] == "c");
AT_ASSERT(contracted->out_edges().size() == 1);
AT_ASSERT(contracted->in_edges().size() == 1);
AT_ASSERT(contracted->in_edges().contains(a));
AT_ASSERT(contracted->out_edges().contains(d));
}
void testContractEdgeCycleDetection() {
// a -> b -> c
// `---------^
// contractEdge(a, c) will cause a cycle
auto graph = newDynamicDAG();
auto a = graph->newVertex("a");
auto b = graph->newVertex("b");
auto c = graph->newVertex("c");
graph->addEdge(a, b);
graph->addEdge(b, c);
graph->addEdge(a, c);
AT_ASSERT(!graph->contractEdge(a, c));
}
void testDynamicDAG() {
testNewVertex();
testAddEdgeBasic();
testAddEdgeCycleDetection();
testAddEdgeReordersBasic();
testAddEdgeReordersComplicated();
testRemoveEdgeBasic();
testRemoveVertexBasic();
testContractEdgeBasic();
testContractEdgeCycleDetection();
}
void testAutogradProfiler() {
constexpr int batch_size = 4;
constexpr int input_size = 256;
constexpr int seq_len = 32;
int hidden_size = 2 * input_size;
auto input = torch::randn({seq_len, batch_size, input_size}, at::kCPU);
auto hx = torch::randn({batch_size, hidden_size}, at::kCPU);
auto cx = torch::randn({batch_size, hidden_size}, at::kCPU);
auto w_ih = t_def(torch::randn({4 * hidden_size, input_size}, at::kCPU));
auto w_hh = t_def(torch::randn({4 * hidden_size, hidden_size}, at::kCPU));
std::stringstream ss;
{
autograd::profiler::RecordProfile guard(ss);
for (size_t i = 0; i < 100; ++i) {
std::tie(hx, cx) = lstm(input[0], hx, cx, w_ih, w_hh);
}
}
std::string result = ss.str();
size_t count = 0;
for (size_t pos = 0; (pos = result.find("tanh", pos)) != std::string::npos;
count++, pos++) {
}
AT_CHECK(count == 200);
}
void testNoneSchemaMatch() {
RegisterOperators reg({
Operator(
"test::test_none() -> int?",
[](const Node* node) {
return [](Stack& stack) {
push(stack, IValue());
return 0;
};
}),
Operator(
"test::is_none(int? a) -> bool",
[](const Node* node) {
return [](Stack& stack) {
IValue a = pop(stack);
if (a.isNone()) {
push(stack, true);
} else {
push(stack, false);
}
return 0;
};
}),
});
// Constant propagation will run test_none and produce a None,
// testing that its type is set appropriately and schema matching doesn't
// fail when running is_none
auto r = std::make_shared<Graph>();
auto& g = *r;
auto opt_int = g.insert(Symbol::fromQualString("test::test_none"), {});
auto out_bool = g.insert(Symbol::fromQualString("test::is_none"), {opt_int});
g.registerOutput(out_bool);
ConstantPropagation(r);
auto nodes = r->block()->nodes();
// checking that constant propagation ran wo/failure
AT_ASSERT(std::distance(nodes.begin(), nodes.end()) == 1);
}
} // namespace
} // namespace jit
} // namespace torch
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
d35be8cadc965b5dd3e550c15310a164fce46ac3 | 1a48014b25e15eaa24fedf61277a6acd7ece49b5 | /3明明的随机数.cpp | 29f1a11f340a83364ec2c52fcdcd82783282e9cc | [] | no_license | JasonDong1310/Huawei-oj | 88b3e6608776f0241abe0f3d8117309492062d37 | e7ee66db68dbb12c955298651d86e996fe158f1b | refs/heads/master | 2022-11-23T15:46:43.655839 | 2020-07-26T08:20:20 | 2020-07-26T08:20:20 | 282,606,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | #include<iostream>
#include<algorithm>
using namespace std;
int a[1005];
int main()
{
int n;
while(cin>>n)
{
for(int i = 1; i<=n; i++) cin>>a[i];
sort(a+1,a+1+n);
int l = unique(a+1,a+1+n) - a;
for(int i = 1; i<l; i++) cout<<a[i]<<endl;
}
return 0;
}
| [
"noreply@github.com"
] | JasonDong1310.noreply@github.com |
783d53a1eecd42da6b844c22b876f2250aadc3ec | 4368f3b127b9330885c7a1789446c8af56189cdb | /Qt/QtCore/qlocale_blackberry.h | c80b6c1c3631b56e9fdf79c83227d6a8465929e0 | [
"MIT"
] | permissive | Yangff/mvuccu | 4cb57a8fb855a60c44e40f30b9c23bc66e175781 | d0dc7c84fdeea4ee3b70ba758942a3499bd7a53a | refs/heads/master | 2021-01-17T06:52:24.207080 | 2017-11-24T17:08:24 | 2017-11-24T17:08:24 | 52,864,715 | 5 | 5 | null | 2017-11-24T17:08:24 | 2016-03-01T09:30:02 | C++ | UTF-8 | C++ | false | false | 2,994 | h | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QLOCALE_BLACKBERRY_H
#define QLOCALE_BLACKBERRY_H
#include <QtCore/qsocketnotifier.h>
#include <QtCore/qreadwritelock.h>
#include <QtCore/qlocale.h>
QT_BEGIN_NAMESPACE
#ifndef QT_NO_SYSTEMLOCALE
class QBBSystemLocaleData : public QObject
{
Q_OBJECT
public:
QBBSystemLocaleData();
virtual ~QBBSystemLocaleData();
uint measurementSystem();
QVariant timeFormat(QLocale::FormatType);
QVariant dateTimeFormat(QLocale::FormatType);
QLocale languageLocale();
QLocale regionLocale();
QReadWriteLock lock;
public Q_SLOTS:
void installSocketNotifiers();
void readLanguageLocale();
void readRegionLocale();
void readMeasurementSystem();
void readHourFormat();
private:
QByteArray readPpsValue(const char *ppsObject, int ppsFd);
QString getCorrectFormat(const QString &baseFormat, QLocale::FormatType typeFormat);
QByteArray lc_language;
QByteArray lc_region;
uint m_measurementSystem;
bool is24HourFormat;
QSocketNotifier *languageNotifier;
QSocketNotifier *regionNotifier;
QSocketNotifier *measurementNotifier;
QSocketNotifier *hourNotifier;
int languageFd;
int regionFd;
int measurementFd;
int hourFd;
};
#endif // QT_NO_SYSTEMLOCALE
QT_END_NAMESPACE
#endif // QLOCALE_BLACKBERRY_H
| [
"yangff1@gmail.com"
] | yangff1@gmail.com |
aa048bc158652efd02027505144a2ad168e0be05 | 9853d6bd0920bdb895a3e795f6e06079823ef4c6 | /AladinGame/Aladin/Viewport.cpp | e1f1a7a9213c062c3cfeeb75041fa9fd97d38210 | [] | no_license | vantranguit920/Aladin | db921c8549349a927642172c1f598c96dffc6dfe | fc4e822f0b0e733b2a2daf1e4b8e12cd7734cbf2 | refs/heads/master | 2022-02-28T06:35:37.950865 | 2019-11-12T17:20:13 | 2019-11-12T17:20:13 | 217,807,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,976 | cpp | #include "Viewport.h"
#include "Object.h"
Viewport::Viewport()
{
}
Viewport::Viewport(float x, float y)
{
this->positionWorld.x = x;
this->positionWorld.y = y;
//Mặc định là kích thước game
this->width = 500.0f;
this->height = 500.0f;
}
Viewport::Viewport(float x, float y, float width, float height)
{
this->positionWorld.x = x;
this->positionWorld.y = y;
this->width = width;
this->height = height;
}
Viewport::~Viewport()
{
}
//Get set vị trí Viewport
D3DXVECTOR2 Viewport::GetPosition()
{
return positionWorld;
}
void Viewport::SetPosition(D3DXVECTOR2 position)
{
positionWorld = position;
}
void Viewport::SetPositionX(float x)
{
positionWorld.x = x;
}
void Viewport::SetPositionY(float y)
{
positionWorld.y = y;
}
//Lấy chiều dài rộng của Viewport
float Viewport::GetWidth()
{
return this->width;
}
float Viewport::GetHeight()
{
return this->height;
}
int Viewport::GetStart()
{
return this->start;
}
bool Viewport::GetInStageBoos()
{
return inStageBoss;
}
void Viewport::SetInStageBoss(bool b)
{
inStageBoss = b;
}
D3DXVECTOR2 Viewport::TransformPosition(D3DXVECTOR2 position)
{
D3DXVECTOR3* position3 = &D3DXVECTOR3(position.x, position.y, 0);
D3DXMATRIX mt;
D3DXVECTOR4 posInViewport;
//đổi ma trận chuẩn bị nhân lấy tọa độ mới
D3DXMatrixIdentity(&mt);
mt._22 = -1.0f;
mt._41 = -positionWorld.x;
mt._42 = positionWorld.y;
D3DXVec3Transform(&posInViewport, position3, &mt);
return D3DXVECTOR2(posInViewport.x, posInViewport.y);
}
//Kiểm tra 1 rect có ở trong màn hình không
bool Viewport::isContains(RECT rect)
{
if (rect.right < positionWorld.x)
return false;
if (rect.bottom > positionWorld.y)
return false;
if (rect.left > positionWorld.x + width)
return false;
if (rect.top < positionWorld.y - height)
return false;
return true;
}
//Kích thước RECT màn hình tính trong World
RECT Viewport::GetBound()
{
RECT rect;
rect.left = this->positionWorld.x;
rect.top = this->positionWorld.y;
rect.bottom = rect.top - height;
rect.right = rect.left + width;
return rect;
}
//Update theo 1 đối tượng
void Viewport::Update(float dt, Keyboard* key, D3DXVECTOR2 &posobject, D3DXVECTOR2 velocityMan, std::vector <Stage*> listStage)
{
//trục X
if (posobject.x - positionWorld.x <= width/2 )
positionWorld.x = posobject.x - width/2 ;
else if (posobject.x - positionWorld.x >= width/2)
positionWorld.x = posobject.x - width/2 ;
//trục Y
if (positionWorld.y - posobject.y <= width/2 )
positionWorld.y = posobject.y + width/2 ;
else if (positionWorld.y - posobject.y >= width/2 )
positionWorld.y = posobject.y + width/2 ;
/*if (positionWorld.x < start)
positionWorld.x = start;
else if (positionWorld.x > end - width)
positionWorld.x = end - width;
if (positionWorld.y < height + bottom)
positionWorld.y = height + bottom;
else if (positionWorld.y > top)
positionWorld.y = top;*/
} | [
"="
] | = |
55991a794666dae6b4966fe2a8e7f7bda0446cec | 2c93c789e2c7d4ad9e5104b98b0fb80ad69a2307 | /tools/Revitalize/seance/test/imports/funcs/sub_45F510.cpp | 56b5ea843548de73c272fd4e09c823c6b538db19 | [] | no_license | jkoppel/project-ironfist | 4faeaf8616084abe76696f4085776f26ff6ce212 | 0f8651d4305a4f982af8e43269dd6a8d7f86464d | refs/heads/master | 2023-05-26T09:14:29.594446 | 2023-05-11T07:11:28 | 2023-05-11T07:11:28 | 24,222,392 | 35 | 19 | null | 2023-05-11T04:52:17 | 2014-09-19T08:34:00 | Assembly | UTF-8 | C++ | false | false | 484 | cpp | {
if ( connectionSocket != -1 )
closesocket(connectionSocket);
if ( dword_4ED2E8 )
KBFree(dword_4ED2E8, (int)"F:\\h2xsrc\\Source\\Wsnetwin.cpp", word_511BEC + 7);
dword_4ED2E8 = 0;
if ( dword_4ED2EC )
KBFree(dword_4ED2EC, (int)"F:\\h2xsrc\\Source\\Wsnetwin.cpp", word_511BEC + 11);
dword_4ED2EC = 0;
WSACleanup();
dword_511780 = 0;
connectionSocket = -1;
dword_511788 = 1;
dword_51178C = 0;
dword_511790 = 0;
dword_511794 = 0;
_cfltcvt_init();
}
| [
"kertwaii@gmail.com"
] | kertwaii@gmail.com |
e299a14e2ea320ff49641b683239934d23303490 | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/gen/services/audio/public/mojom/system_info.mojom-shared.h | 8f70decb2b2a452d0394c046ddcee7c3f4a1064b | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,258 | h | // services/audio/public/mojom/system_info.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_AUDIO_PUBLIC_MOJOM_SYSTEM_INFO_MOJOM_SHARED_H_
#define SERVICES_AUDIO_PUBLIC_MOJOM_SYSTEM_INFO_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <ostream>
#include <type_traits>
#include <utility>
#include "base/compiler_specific.h"
#include "base/containers/flat_map.h"
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "services/audio/public/mojom/system_info.mojom-shared-internal.h"
#include "media/mojo/mojom/audio_parameters.mojom-shared.h"
#include "services/audio/public/mojom/audio_device_description.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
namespace audio {
namespace mojom {
} // namespace mojom
} // namespace audio
namespace mojo {
namespace internal {
} // namespace internal
} // namespace mojo
namespace audio {
namespace mojom {
// Interface base classes. They are used for type safety check.
class SystemInfoInterfaceBase {};
using SystemInfoPtrDataView =
mojo::InterfacePtrDataView<SystemInfoInterfaceBase>;
using SystemInfoRequestDataView =
mojo::InterfaceRequestDataView<SystemInfoInterfaceBase>;
using SystemInfoAssociatedPtrInfoDataView =
mojo::AssociatedInterfacePtrInfoDataView<SystemInfoInterfaceBase>;
using SystemInfoAssociatedRequestDataView =
mojo::AssociatedInterfaceRequestDataView<SystemInfoInterfaceBase>;
} // namespace mojom
} // namespace audio
namespace std {
} // namespace std
namespace mojo {
} // namespace mojo
namespace audio {
namespace mojom {
} // namespace mojom
} // namespace audio
#endif // SERVICES_AUDIO_PUBLIC_MOJOM_SYSTEM_INFO_MOJOM_SHARED_H_ | [
"xueqi@zjmedia.net"
] | xueqi@zjmedia.net |
6cbbeffbb498cb7ffd5a6b85a227e317959fc99b | 965b150758d50addcff149bfae7f37db48d62453 | /src/net/socket.cpp | a8c6415e5a91fa16d72d0926c3aac24e907e72ea | [] | no_license | C3-502/luna | 4711f4cda11a112b66fac5dcf414055731d87288 | 5d13683f038b1061054393a6e2289cee2963cb4e | refs/heads/master | 2020-12-30T18:03:13.365240 | 2017-06-10T19:55:39 | 2017-06-10T19:55:39 | 90,948,593 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | cpp | #include "socket.h"
#include "../util/common_inc.h"
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
namespace luna {
namespace socket {
int tcp_socket()
{
return socket(AF_INET, SOCK_STREAM, 0);
}
int bind(int fd, const IPv4Addr &addr)
{
struct sockaddr_in sock_addr = addr.transformToSocketAddr();
return ::bind(fd, (sockaddr*) &sock_addr, sizeof(sock_addr));
}
int listen(int fd, int backlog)
{
return ::listen(fd, backlog);
}
int recv(int fd, char *buf, uint32_t count)
{
return ::read(fd, buf, count);
}
int send(int fd, const char *msg, uint32_t count)
{
return ::write(fd, msg, count);
}
int set_nonblock(int fd)
{
int flags = fcntl(fd, F_GETFL, 0);
int ret = fcntl(fd, F_SETFL, flags | O_NONBLOCK);
if (ret < 0)
{
ERROR_LOG("fcntl");
return LUNA_RUNTIME_ERROR;
}
return LUNA_RUNTIME_OK;
}
int set_reuse_addr(int fd)
{
int optval = 1;
return ::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
&optval, static_cast<socklen_t>(sizeof optval));
}
}
}
| [
"895605504@qq.com"
] | 895605504@qq.com |
354160b2291c0a49ff87a323022a9e5bf01bdb73 | fac52aacf1a7145d46f420bb2991528676e3be3f | /SDK/AnimBP_Hunter_86_classes.h | a75ac65b3d76e82fdf9b4be2b36736df3a54f1be | [] | no_license | zH4x-SDK/zSCUM-SDK | 2342afd6ee54f4f0b14b0a0e9e3920d75bdb4fed | 711376eb272b220521fec36d84ca78fc11d4802a | refs/heads/main | 2023-07-15T16:02:22.649492 | 2021-08-27T13:44:21 | 2021-08-27T13:44:21 | 400,522,163 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,738 | h | #pragma once
// Name: SCUM, Version: 4.20.3
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// AnimBlueprintGeneratedClass AnimBP_Hunter_86.AnimBP_Hunter_85_C
// 0x0960 (0x0CE0 - 0x0380)
class UAnimBP_Hunter_85_C : public UWeaponAnimInstance
{
public:
struct FPointerToUberGraphFrame UberGraphFrame; // 0x0380(0x0008) (Transient, DuplicateTransient)
struct FAnimNode_Root AnimGraphNode_Root_31F1701D46E0E3F3EE3D98933FB192E6; // 0x0388(0x0048)
struct FAnimNode_Slot AnimGraphNode_Slot_A95CEACC47CD6D3C6CB3E597B76A7F4E; // 0x03D0(0x0070)
struct FAnimNode_SaveCachedPose AnimGraphNode_SaveCachedPose_91AB8849488134DD83BB2C9FD1EF07D4;// 0x0440(0x00E0)
struct FAnimNode_SequencePlayer AnimGraphNode_SequencePlayer_FC7BB48E4BF0507D600784A9234ACCF2;// 0x0520(0x00B0)
struct FAnimNode_Slot AnimGraphNode_Slot_040F231F4BF8E5E8138357B85F85B095; // 0x05D0(0x0070)
struct FAnimNode_Slot AnimGraphNode_Slot_6422098D46CACA858568388AC0611EE8; // 0x0640(0x0070)
struct FAnimNode_Slot AnimGraphNode_Slot_21AE88CC4FDD19B683373A9C8C500CA3; // 0x06B0(0x0070)
struct FAnimNode_BlendListByEnum AnimGraphNode_BlendListByEnum_AE289265453B18CD7EAACC99513F65A1;// 0x0720(0x00E0)
struct FAnimNode_UseCachedPose AnimGraphNode_UseCachedPose_9549960F46483C1EFF7E22AAFF4922CB;// 0x0800(0x0050)
struct FAnimNode_UseCachedPose AnimGraphNode_UseCachedPose_6816706448163841CB1F009AA84A99CC;// 0x0850(0x0050)
struct FAnimNode_UseCachedPose AnimGraphNode_UseCachedPose_FF7C045C4F38C122888DAC8385444F53;// 0x08A0(0x0050)
struct FAnimNode_BlendListByBool AnimGraphNode_BlendListByBool_6B95305F4AC89071766ECC8F395DB36B;// 0x08F0(0x00D0)
struct FAnimNode_BlendListByEnum AnimGraphNode_BlendListByEnum_4385E0354D48EE81EA3774970BD73608;// 0x09C0(0x00E0)
struct FAnimNode_Slot AnimGraphNode_Slot_305D5F6D49637286B61D34A10712281A; // 0x0AA0(0x0070)
struct FAnimNode_Slot AnimGraphNode_Slot_8D4375384E47A0829679EB9D447B6EBC; // 0x0B10(0x0070)
struct FAnimNode_Slot AnimGraphNode_Slot_DBDC0BE542597F8F5FAAD3B4AE097A4F; // 0x0B80(0x0070)
struct FAnimNode_UseCachedPose AnimGraphNode_UseCachedPose_A34D31C8476F46EEFC599990B265CF77;// 0x0BF0(0x0050)
struct FAnimNode_UseCachedPose AnimGraphNode_UseCachedPose_D0931CDA4750E7BB480F8DA51E70C0F2;// 0x0C40(0x0050)
struct FAnimNode_UseCachedPose AnimGraphNode_UseCachedPose_C716CD394DF1D93D8C62F0B1D42BFD8F;// 0x0C90(0x0050)
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("AnimBlueprintGeneratedClass AnimBP_Hunter_86.AnimBP_Hunter_85_C");
return ptr;
}
void EvaluateGraphExposedInputs_ExecuteUbergraph_AnimBP_Hunter_85_AnimGraphNode_BlendListByEnum_4385E0354D48EE81EA3774970BD73608();
void EvaluateGraphExposedInputs_ExecuteUbergraph_AnimBP_Hunter_85_AnimGraphNode_BlendListByBool_6B95305F4AC89071766ECC8F395DB36B();
void EvaluateGraphExposedInputs_ExecuteUbergraph_AnimBP_Hunter_85_AnimGraphNode_BlendListByEnum_AE289265453B18CD7EAACC99513F65A1();
void ExecuteUbergraph_AnimBP_Hunter_86(int EntryPoint);
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"zp2kshield@gmail.com"
] | zp2kshield@gmail.com |
a5f63f9af817eb7db25947d23a0b9257bc3f1ae1 | 5380c586f6129eebdc2c23c47377e1637a18ac7f | /velox/type/tests/FilterBuilder.h | f07c6e6ffa64cb3ea4179249b95b2881b6752c77 | [
"Apache-2.0"
] | permissive | amaliujia/velox | 1bd9ecd83d1c42935ed463dd6de9c8fc0b0d6357 | 648f88dae970858c870acbbb68dbc4c35207042d | refs/heads/main | 2023-08-11T02:40:28.410788 | 2021-10-01T18:16:15 | 2021-10-01T18:16:15 | 409,347,480 | 0 | 0 | Apache-2.0 | 2021-09-22T20:31:04 | 2021-09-22T20:31:04 | null | UTF-8 | C++ | false | false | 7,705 | h | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed 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.
*/
#pragma once
#include "velox/type/Filter.h"
namespace facebook::velox::common::test {
inline std::unique_ptr<common::BigintRange> lessThan(
int64_t max,
bool nullAllowed = false) {
return std::make_unique<common::BigintRange>(
std::numeric_limits<int64_t>::min(), max - 1, nullAllowed);
}
inline std::unique_ptr<common::BigintRange> lessThanOrEqual(
int64_t max,
bool nullAllowed = false) {
return std::make_unique<common::BigintRange>(
std::numeric_limits<int64_t>::min(), max, nullAllowed);
}
inline std::unique_ptr<common::BigintRange> greaterThan(
int64_t min,
bool nullAllowed = false) {
return std::make_unique<common::BigintRange>(
min + 1, std::numeric_limits<int64_t>::max(), nullAllowed);
}
inline std::unique_ptr<common::BigintRange> greaterThanOrEqual(
int64_t min,
bool nullAllowed = false) {
return std::make_unique<common::BigintRange>(
min, std::numeric_limits<int64_t>::max(), nullAllowed);
}
inline std::unique_ptr<common::DoubleRange> lessThanDouble(
double max,
bool nullAllowed = false) {
return std::make_unique<common::DoubleRange>(
std::numeric_limits<double>::lowest(),
true,
true,
max,
false,
true,
nullAllowed);
}
inline std::unique_ptr<common::DoubleRange> lessThanOrEqualDouble(
double max,
bool nullAllowed = false) {
return std::make_unique<common::DoubleRange>(
std::numeric_limits<double>::lowest(),
true,
true,
max,
false,
false,
nullAllowed);
}
inline std::unique_ptr<common::DoubleRange> greaterThanDouble(
double min,
bool nullAllowed = false) {
return std::make_unique<common::DoubleRange>(
min,
false,
true,
std::numeric_limits<double>::max(),
true,
true,
nullAllowed);
}
inline std::unique_ptr<common::DoubleRange> greaterThanOrEqualDouble(
double min,
bool nullAllowed = false) {
return std::make_unique<common::DoubleRange>(
min,
false,
false,
std::numeric_limits<double>::max(),
true,
true,
nullAllowed);
}
inline std::unique_ptr<common::DoubleRange>
betweenDouble(double min, double max, bool nullAllowed = false) {
return std::make_unique<common::DoubleRange>(
min, false, false, max, false, false, nullAllowed);
}
inline std::unique_ptr<common::FloatRange> lessThanFloat(
float max,
bool nullAllowed = false) {
return std::make_unique<common::FloatRange>(
std::numeric_limits<float>::lowest(),
true,
true,
max,
false,
true,
nullAllowed);
}
inline std::unique_ptr<common::FloatRange> lessThanOrEqualFloat(
float max,
bool nullAllowed = false) {
return std::make_unique<common::FloatRange>(
std::numeric_limits<float>::lowest(),
true,
true,
max,
false,
false,
nullAllowed);
}
inline std::unique_ptr<common::FloatRange> greaterThanFloat(
float min,
bool nullAllowed = false) {
return std::make_unique<common::FloatRange>(
min,
false,
true,
std::numeric_limits<float>::max(),
true,
true,
nullAllowed);
}
inline std::unique_ptr<common::FloatRange> greaterThanOrEqualFloat(
float min,
bool nullAllowed = false) {
return std::make_unique<common::FloatRange>(
min,
false,
false,
std::numeric_limits<float>::max(),
true,
true,
nullAllowed);
}
inline std::unique_ptr<common::FloatRange>
betweenFloat(float min, float max, bool nullAllowed = false) {
return std::make_unique<common::FloatRange>(
min, false, false, max, false, false, nullAllowed);
}
inline std::unique_ptr<common::BigintRange>
between(int64_t min, int64_t max, bool nullAllowed = false) {
return std::make_unique<common::BigintRange>(min, max, nullAllowed);
}
inline std::unique_ptr<common::BigintMultiRange> bigintOr(
std::unique_ptr<common::BigintRange> a,
std::unique_ptr<common::BigintRange> b,
bool nullAllowed = false) {
std::vector<std::unique_ptr<common::BigintRange>> filters;
filters.emplace_back(std::move(a));
filters.emplace_back(std::move(b));
return std::make_unique<common::BigintMultiRange>(
std::move(filters), nullAllowed);
}
inline std::unique_ptr<common::BigintMultiRange> bigintOr(
std::unique_ptr<common::BigintRange> a,
std::unique_ptr<common::BigintRange> b,
std::unique_ptr<common::BigintRange> c,
bool nullAllowed = false) {
std::vector<std::unique_ptr<common::BigintRange>> filters;
filters.emplace_back(std::move(a));
filters.emplace_back(std::move(b));
filters.emplace_back(std::move(c));
return std::make_unique<common::BigintMultiRange>(
std::move(filters), nullAllowed);
}
inline std::unique_ptr<common::BytesValues> equal(
const std::string& value,
bool nullAllowed = false) {
return std::make_unique<common::BytesValues>(
std::vector<std::string>{value}, nullAllowed);
}
inline std::unique_ptr<common::BigintRange> equal(
int64_t value,
bool nullAllowed = false) {
return std::make_unique<common::BigintRange>(value, value, nullAllowed);
}
inline std::unique_ptr<common::BytesRange> between(
const std::string& min,
const std::string& max,
bool nullAllowed = false) {
return std::make_unique<common::BytesRange>(
min, false, false, max, false, false, nullAllowed);
}
inline std::unique_ptr<common::BytesRange> lessThanOrEqual(
const std::string& max,
bool nullAllowed = false) {
return std::make_unique<common::BytesRange>(
"", true, true, max, false, false, nullAllowed);
}
inline std::unique_ptr<common::BytesRange> greaterThanOrEqual(
const std::string& min,
bool nullAllowed = false) {
return std::make_unique<common::BytesRange>(
min, false, false, "", true, true, nullAllowed);
}
inline std::unique_ptr<common::Filter> in(
const std::vector<int64_t>& values,
bool nullAllowed = false) {
return common::createBigintValues(values, nullAllowed);
}
inline std::unique_ptr<common::BytesValues> in(
const std::vector<std::string>& values,
bool nullAllowed = false) {
return std::make_unique<common::BytesValues>(values, nullAllowed);
}
inline std::unique_ptr<common::BoolValue> boolEqual(
bool value,
bool nullAllowed = false) {
return std::make_unique<common::BoolValue>(value, nullAllowed);
}
inline std::unique_ptr<common::IsNull> isNull() {
return std::make_unique<common::IsNull>();
}
inline std::unique_ptr<common::IsNotNull> isNotNull() {
return std::make_unique<common::IsNotNull>();
}
template <typename T>
std::unique_ptr<common::MultiRange> orFilter(
std::unique_ptr<T> a,
std::unique_ptr<T> b,
bool nullAllowed = false,
bool nanAllowed = false) {
std::vector<std::unique_ptr<common::Filter>> filters;
filters.emplace_back(std::move(a));
filters.emplace_back(std::move(b));
return std::make_unique<common::MultiRange>(
std::move(filters), nullAllowed, nanAllowed);
}
} // namespace facebook::velox::common::test
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7a12e755db6bd08e0ed5ff5eabc528c84540c4e4 | ad244dfe15d721c1b5f5fd6ff5d49a6affdbaa51 | /Source/TimeSink/TrackableGameplayAbility.h | 9b140acf71070a5aff11a7e6a0b36b26d1ec23fc | [] | no_license | Zazow/TimSink | e72af484534ebd028257c124293d3a7183f348b4 | 394a6afa9c3a2e677fc5f3ec61cbd4c0a4d643ed | refs/heads/master | 2022-10-04T03:21:08.192534 | 2020-06-04T02:36:22 | 2020-06-04T02:36:22 | 267,163,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Abilities/GameplayAbility.h"
#include "TrackableGameplayAbility.generated.h"
// custom delegate that gets called when this ability ended execution
DECLARE_DYNAMIC_MULTICAST_SPARSE_DELEGATE_OneParam(FAbilityEndedSignature, UTrackableGameplayAbility, OnAbilityEnded, bool, Cancelled);
/**
*
*/
UCLASS()
class TIMESINK_API UTrackableGameplayAbility : public UGameplayAbility
{
GENERATED_BODY()
/** Native function, called if an ability ends normally or abnormally. If bReplicate is set to true, try to replicate the ending to the client/server */
virtual void EndAbility(const FGameplayAbilitySpecHandle Handle, const FGameplayAbilityActorInfo* ActorInfo, const FGameplayAbilityActivationInfo ActivationInfo, bool bReplicateEndAbility, bool bWasCancelled) override;
public:
UPROPERTY(BlueprintAssignable)
FAbilityEndedSignature OnAbilityEnded;
};
| [
"ZiyadKAG@gmail.com"
] | ZiyadKAG@gmail.com |
4b0a0373e7f2712c511f869a260768d4de5c667c | 6d2b6527f0ee6c5c9560897a44276a43b98662ed | /src/resources/Image.cpp | 9aac2f16ce9fc4386f61883d719a5168d5c1d7cb | [] | no_license | Murloc992/TheEngine | f668f68d2321c0c1976c2c859d032a764ee44282 | d70d25c59138fbb85c74ea2f4aba9ab725956d90 | refs/heads/master | 2023-03-16T08:23:49.976323 | 2023-03-14T11:45:29 | 2023-03-14T12:07:53 | 218,316,094 | 0 | 0 | null | 2019-11-01T16:41:39 | 2019-10-29T15:10:19 | C | UTF-8 | C++ | false | false | 41 | cpp | //#include "Precomp.h"
#include "Image.h" | [
"murloc992@gmail.com"
] | murloc992@gmail.com |
e86875f7a17ac1f1255aa0dfdb35d57adfa620cc | 1f63dde39fcc5f8be29f2acb947c41f1b6f1683e | /Boss2D/addon/webrtc-jumpingyang001_for_boss/modules/rtp_rtcp/source/rtcp_packet/app_unittest.cc | 5121bcf1b7d661cd999b0a5315da1d00b7ab7f5a | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-google-patent-license-webm",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | koobonil/Boss2D | 09ca948823e0df5a5a53b64a10033c4f3665483a | e5eb355b57228a701495f2660f137bd05628c202 | refs/heads/master | 2022-10-20T09:02:51.341143 | 2019-07-18T02:13:44 | 2019-07-18T02:13:44 | 105,999,368 | 7 | 2 | MIT | 2022-10-04T23:31:12 | 2017-10-06T11:57:07 | C++ | UTF-8 | C++ | false | false | 3,454 | cc | /*
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include BOSS_WEBRTC_U_modules__rtp_rtcp__source__rtcp_packet__app_h //original-code:"modules/rtp_rtcp/source/rtcp_packet/app.h"
#include "test/gmock.h"
#include "test/gtest.h"
#include "test/rtcp_packet_parser.h"
namespace webrtc {
namespace {
using ::testing::ElementsAreArray;
using ::testing::make_tuple;
using ::webrtc::rtcp::App;
constexpr uint32_t kName = ((uint32_t)'n' << 24) | ((uint32_t)'a' << 16) |
((uint32_t)'m' << 8) | (uint32_t)'e';
constexpr uint8_t kSubtype = 0x1e;
constexpr uint32_t kSenderSsrc = 0x12345678;
constexpr uint8_t kData[] = {'t', 'e', 's', 't', 'd', 'a', 't', 'a'};
constexpr uint8_t kVersionBits = 2 << 6;
constexpr uint8_t kPaddingBit = 1 << 5;
// clang-format off
constexpr uint8_t kPacketWithoutData[] = {
kVersionBits | kSubtype, App::kPacketType, 0x00, 0x02,
0x12, 0x34, 0x56, 0x78,
'n', 'a', 'm', 'e'};
constexpr uint8_t kPacketWithData[] = {
kVersionBits | kSubtype, App::kPacketType, 0x00, 0x04,
0x12, 0x34, 0x56, 0x78,
'n', 'a', 'm', 'e',
't', 'e', 's', 't',
'd', 'a', 't', 'a'};
constexpr uint8_t kTooSmallPacket[] = {
kVersionBits | kSubtype, App::kPacketType, 0x00, 0x01,
0x12, 0x34, 0x56, 0x78};
constexpr uint8_t kPaddingSize = 1;
constexpr uint8_t kPacketWithUnalignedPayload[] = {
kVersionBits | kPaddingBit | kSubtype, App::kPacketType, 0x00, 0x03,
0x12, 0x34, 0x56, 0x78,
'n', 'a', 'm', 'e',
'd', 'a', 't', kPaddingSize};
// clang-format on
} // namespace
TEST(RtcpPacketAppTest, CreateWithoutData) {
App app;
app.SetSsrc(kSenderSsrc);
app.SetSubType(kSubtype);
app.SetName(kName);
rtc::Buffer raw = app.Build();
EXPECT_THAT(make_tuple(raw.data(), raw.size()),
ElementsAreArray(kPacketWithoutData));
}
TEST(RtcpPacketAppTest, ParseWithoutData) {
App parsed;
EXPECT_TRUE(test::ParseSinglePacket(kPacketWithoutData, &parsed));
EXPECT_EQ(kSenderSsrc, parsed.ssrc());
EXPECT_EQ(kSubtype, parsed.sub_type());
EXPECT_EQ(kName, parsed.name());
EXPECT_EQ(0u, parsed.data_size());
}
TEST(RtcpPacketAppTest, CreateWithData) {
App app;
app.SetSsrc(kSenderSsrc);
app.SetSubType(kSubtype);
app.SetName(kName);
app.SetData(kData, sizeof(kData));
rtc::Buffer raw = app.Build();
EXPECT_THAT(make_tuple(raw.data(), raw.size()),
ElementsAreArray(kPacketWithData));
}
TEST(RtcpPacketAppTest, ParseWithData) {
App parsed;
EXPECT_TRUE(test::ParseSinglePacket(kPacketWithData, &parsed));
EXPECT_EQ(kSenderSsrc, parsed.ssrc());
EXPECT_EQ(kSubtype, parsed.sub_type());
EXPECT_EQ(kName, parsed.name());
EXPECT_THAT(make_tuple(parsed.data(), parsed.data_size()),
ElementsAreArray(kData));
}
TEST(RtcpPacketAppTest, ParseFailsOnTooSmallPacket) {
App parsed;
EXPECT_FALSE(test::ParseSinglePacket(kTooSmallPacket, &parsed));
}
TEST(RtcpPacketAppTest, ParseFailsOnUnalignedPayload) {
App parsed;
EXPECT_FALSE(test::ParseSinglePacket(kPacketWithUnalignedPayload, &parsed));
}
} // namespace webrtc
| [
"slacealic@nate.com"
] | slacealic@nate.com |
bc1937cef1478cbbcfa9d07b2211cd080b577f62 | 93193479a43168c832c152c5972ba475b73d90a7 | /abstractpath.h | 299ba0eec7fdfff40eb86e17619531e2cab796d8 | [] | no_license | CJRMoore/CS246A5 | 301b30b5f8be2f6ffa10509f2b60f01d302aeaa7 | 34e757dc125fe544898fd976b35846e04138a7c5 | refs/heads/master | 2021-01-11T13:49:38.910688 | 2017-04-04T02:04:46 | 2017-04-04T02:04:46 | 86,628,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | h | #ifndef ABSTRACTPATH_H
#define ABSTRACTPATH_H
#include "subject.h"
#include "observer.h"
#include "subscriptions.h"
#include "buildertype.h"
#include "resources.h"
class Builder;
class AbstractPath: public Subject, public Observer {
protected:
const int index;
BuilderType owner;
bool validPlacement;
bool underConsideration;
ResourceType resource; // Used for path finding stuff
public:
AbstractPath(): index(-1), owner(BuilderType::None), validPlacement(false), underConsideration(false), resource(ResourceType::PARK) {};
AbstractPath(int index): index(index), owner(BuilderType::None), validPlacement(false), underConsideration(false), resource(ResourceType::PARK) {};
virtual bool hasRoad() const = 0;
virtual int getIndex() { return index; };
virtual std::vector<int> upgradeRequirements(Builder &b) = 0;
virtual void setOwner(BuilderType o) { owner = o; };
SubscriptionType subType() const override { return SubscriptionType::Path; };
};
#endif
| [
"colin.moore@rogers.com"
] | colin.moore@rogers.com |
62186e275eeeb19a623e7c4b07c026e5f048634f | da11e788e890a449ce799bea3a98b7b450df7f55 | /src/mbgl/style/layers/background_layer_impl.cpp | 4a8fe39c9a186fa19075285d3c277faad48df9b4 | [
"LicenseRef-scancode-warranty-disclaimer",
"IJG",
"Zlib",
"NCSA",
"LicenseRef-scancode-unknown-license-reference",
"blessing",
"BSD-3-Clause",
"ISC",
"Libpng",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"JSON",
"curl",
... | permissive | TanJay/mapbox-gl-native | b9125cc5931a4950dfc54434119e948abe5ba709 | 6348fe9f4acccce65d1396aa9eab79e6c44bcfc2 | refs/heads/master | 2021-01-19T20:17:30.045126 | 2017-01-31T10:24:52 | 2017-01-31T10:24:52 | 80,513,442 | 0 | 0 | NOASSERTION | 2020-05-26T19:49:27 | 2017-01-31T11:10:41 | C++ | UTF-8 | C++ | false | false | 676 | cpp | #include <mbgl/style/layers/background_layer_impl.hpp>
#include <mbgl/renderer/bucket.hpp>
namespace mbgl {
namespace style {
void BackgroundLayer::Impl::cascade(const CascadeParameters& parameters) {
paint.cascade(parameters);
}
bool BackgroundLayer::Impl::evaluate(const PropertyEvaluationParameters& parameters) {
paint.evaluate(parameters);
passes = paint.evaluated.get<BackgroundOpacity>() > 0 ? RenderPass::Translucent : RenderPass::None;
return paint.hasTransition();
}
std::unique_ptr<Bucket> BackgroundLayer::Impl::createBucket(BucketParameters&, const GeometryTileLayer&) const {
return nullptr;
}
} // namespace style
} // namespace mbgl
| [
"john.firebaugh@gmail.com"
] | john.firebaugh@gmail.com |
60a4503d18bf3550f72b7e75824edefb31096120 | eaf8a89b468cdc2544d5642eaaf8e1198dab60f3 | /competition.cpp | a0f68308be68684c9f4bbc74ea661bd9e54317b4 | [] | no_license | JsimonH/CPP | 09be558f6c30c0d240a78ee69197f2d22b17c0cf | a42be6e2a2be6f845b998b29cf2fa95f2987257c | refs/heads/master | 2023-01-24T14:56:40.375319 | 2020-12-05T15:49:04 | 2020-12-05T15:49:04 | 257,272,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | cpp | /* 组队竞赛
牛牛举办了一次编程比赛,参加比赛的有3*n个选手,每个选手都有一个水平值a_i.现在要将这些选手进行组队,一共组成n个队伍,即每个队伍3人.
牛牛发现队伍的水平值等于该队伍队员中第二高水平值。
例如:
一个队伍三个队员的水平值分别是3,3,3.那么队伍的水平值是3
一个队伍三个队员的水平值分别是3,2,3.那么队伍的水平值是3
一个队伍三个队员的水平值分别是1,5,2.那么队伍的水平值是2
为了让比赛更有看点,牛牛想安排队伍使所有队伍的水平值总和最大。
如样例所示:
如果牛牛把6个队员划分到两个队伍
如果方案为:
team1:{1,2,5}, team2:{5,5,8}, 这时候水平值总和为7.
而如果方案为:
team1:{2,5,8}, team2:{1,5,5}, 这时候水平值总和为10.
没有比总和为10更大的方案,所以输出10.
输入的第一行为一个正整数n(1 ≤ n ≤ 10^5)
第二行包括3*n个整数a_i(1 ≤ a_i ≤ 10^9),表示每个参赛选手的水平值.
输出一个整数表示所有队伍的水平值总和最大值.
*/
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int n; //有n个队伍
cin >> n;
vector<int> v(3*n); //存入每个选手的水平值
for(int i = 0; i < 3*n; ++i)
{
cin >> v[i];
}
sort(v.begin(), v.end()); //对水平值数组进行排序
int sum = 0;
for(int i = n; i <= 3*n - 2; i += 2) //将每组中间大的数相加
{
sum += v[i];
}
cout << sum << endl;
return 0;
}
| [
"noreply@github.com"
] | JsimonH.noreply@github.com |
af62e5e7f073b69f3a3928344514fc834eefbc8a | ba4db75b9d1f08c6334bf7b621783759cd3209c7 | /src_main/common/xsi/5.1/xsi_port.h | ac90cf88e28d514c7fb70b4145851ba82a12f5ec | [] | no_license | equalent/source-2007 | a27326c6eb1e63899e3b77da57f23b79637060c0 | d07be8d02519ff5c902e1eb6430e028e1b302c8b | refs/heads/master | 2020-03-28T22:46:44.606988 | 2017-03-27T18:05:57 | 2017-03-27T18:05:57 | 149,257,460 | 2 | 0 | null | 2018-09-18T08:52:10 | 2018-09-18T08:52:09 | null | WINDOWS-1252 | C++ | false | false | 5,240 | h | //*****************************************************************************
/*!
\file xsi_port.h
\brief Port class declaration.
© Copyright 1998-2002 Avid Technology, Inc. and its licensors. All rights
reserved. This file contains confidential and proprietary information of
Avid Technology, Inc., and is subject to the terms of the SOFTIMAGE|XSI
end user license agreement (or EULA).
*/
//*****************************************************************************
#if (_MSC_VER > 1000) || defined(SGI_COMPILER)
#pragma once
#endif
#ifndef __XSIPORT_H__
#define __XSIPORT_H__
#include <xsi_siobject.h>
namespace XSI {
class ProjectItem;
//*****************************************************************************
/*! \class Port xsi_port.h
\brief A port is an input or output connection to another object.
Actually, a port is more like a connection point on an operator, which may or may not be actually
connected to something (some operator ports are optional).
Use SIObject::GetName to get the name of this port.
\sa Operator, OperatorContext, UpdateContext, SIObject, InputPort, OutputPort
*/
//*****************************************************************************
class SICPPSDKDECL Port : public SIObject
{
public:
/*! Default constructor. */
Port();
/*! Default destructor. */
~Port();
/*! Constructor.
\param in_ref constant reference object.
*/
Port(const CRef& in_ref);
/*! Copy constructor.
\param in_obj constant class object.
*/
Port(const Port& in_obj);
/*! Returns true if a given class type is compatible with this API class.
\param in_ClassID class type.
\return true if the class is compatible, false otherwise.
*/
bool IsA( siClassID in_ClassID) const;
/*! Returns the type of the API class.
\return The class type.
*/
siClassID GetClassID() const;
/*! Creates an object from another object. The newly created object is set to
empty if the input object is not compatible.
\param in_obj constant class object.
\return The new Port object.
*/
Port& operator=(const Port& in_obj);
/*! Creates an object from a reference object. The newly created object is
set to empty if the input reference object is not compatible.
\param in_ref constant class object.
\return The new Port object.
*/
Port& operator=(const CRef& in_ref);
/*! Returns true if the port is connected, false otherwise
\return true if connected; false otherwise.
*/
bool IsConnected() const;
/*! Returns the port index of this port as a <link idref="Long"/> within its port group or -1 if
there is a failure.
\note This index refers to the index of the port within the port group and is different from
the index used to access the CRefArrays of InputPort or OutputPort references (available
through Operator::GetInputPorts and Operator::GetOutputPorts).
\note This index is rarely a concern when implementing Self-Installed Custom Operators, because
OperatorContext::GetInputValue is based on the CRefArray index for the InputPort and normally
there is only a single output port (see OperatorContext::GetOutputPort).
\note When the Port is an output port, returned from a call to CustomProperty::AddOutputPort, this
index may change if any input ports are added afterwards.
\return LONG > 0 success
\return -1 failure
*/
LONG GetIndex() const;
/*! Returns the type of the port, input or output.
\return The Port type.
*/
siPortType GetPortType() const;
/*! Returns a reference object for the object connected to the port.
If this function is called from the Update() context of a custom operator
it will return an empty CRef.
\retval out_pTarget the object to which the port is connected.
\return A reference to the object connected to the port.
\sa \xl Port_Target2
*/
CRef GetTarget(void) const;
/*! Returns the index of the port group to which the port belongs.
\return LONG > 0 success
\return -1 means failure
*/
LONG GetGroupIndex(void) const;
/*! Returns the name of the port group to which the port belongs.
\return The name of the port group (empty string means failure)
*/
CString GetGroupName(void) const;
/*! Returns the port group instance index for the port. There may be many
objects of the same type connected to the same port group. Each object is
connected to a port group instance, and within the port group instance there
may be many ports.
\return LONG > 0 success
\return -1 means failure
*/
LONG GetGroupInstance(void) const;
/*! Returns the mask of port flags described in ::siPortFlags.
\return The mask containing port flags
\since 4.0
*/
siPortFlags GetFlags(void) const;
/*! Returns true if the port supports branch and group connections.
\return true if the port supports branch and group connections.
\since 4.0
*/
bool GetBranchGroup() const;
/*! Returns a string containing the path to the target object.
\return The path to the target object.
\since 4.0
*/
CString GetTargetPath() const;
private:
Port * operator&() const;
Port * operator&();
};
};
#endif // __XSIPORT_H__
| [
"sean@csnxs.uk"
] | sean@csnxs.uk |
e148fc1457e182fe9eb8fbde8845c861772cf48f | 8e638b89dd3e7ed7f2709d72d76074acd20a5742 | /sketch_nov10a/sketch_nov10a.ino | 2e33a10d7aa90005cd2be27f6db279dfb775ecf0 | [] | no_license | indigoshakti47/Arduino | 57a0700166918c2a2c6b64a7b74664519895f47e | 0b3c88446da013b2799a2a20d5f08afcaa27fa9c | refs/heads/main | 2023-06-22T09:31:09.225854 | 2021-07-18T19:02:01 | 2021-07-18T19:02:01 | 387,249,316 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | ino | void setup() {
// put your setup code here, to run once:
pinMode(2,INPUT);
Serial.begin(9600);
}
void loop() {
Serial.println(digitalRead(2));
}
| [
"indigoshakti47@unseen.is"
] | indigoshakti47@unseen.is |
c6006012ba831a0f9b32f308c83ee065a00345b0 | 3333db1df422b9751cdc540c357c31ab33e2063b | /Source/Editor.h | de7c78600639f0a9de707d009cf551fda7cd7238 | [] | no_license | haskellstudio/juceStudy | 4f14d1d3edfe4075b88bd9b38c0fc8bc13804006 | b0910693ea98f8b263798571cf4497aab74819b8 | refs/heads/master | 2021-01-21T20:52:57.634628 | 2018-01-30T09:13:42 | 2018-01-30T09:13:42 | 92,286,741 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,196 | h | /*
==============================================================================
This is an automatically generated GUI class created by the Projucer!
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved.
Created with Projucer version: 5.0.2
------------------------------------------------------------------------------
The Projucer is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright (c) 2015 - ROLI Ltd.
==============================================================================
*/
#pragma once
//[Headers] -- You can add your own extra header files here --
#include "../JuceLibraryCode/JuceHeader.h"
//[/Headers]
//==============================================================================
/**
//[Comments]
An auto-generated component, created by the Projucer.
Describe your class and how it works here!
//[/Comments]
*/
class Editor : public Component
{
public:
//==============================================================================
Editor ();
~Editor();
//==============================================================================
//[UserMethods] -- You can add your own custom methods in this section.
//[/UserMethods]
void paint (Graphics& g) override;
void resized() override;
private:
//[UserVariables] -- You can add your own custom variables in this section.
CodeDocument vertexDocument, fragmentDocument;
//CodeEditorComponent* vertexEditorComp;
//CodeEditorComponent* fragmentEditorComp;
//[/UserVariables]
//==============================================================================
ScopedPointer<TabbedComponent> tabbedComponent;
ScopedPointer<Label> label;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Editor)
};
//[EndFile] You can add extra defines here...
//[/EndFile]
| [
"haskellstudio@gmail.com"
] | haskellstudio@gmail.com |
fe4b5faccf96eaeaa260f69e9af34efdfe513fbe | fbce0adf0f5de7c29ada18456bf50245f980c97f | /Heap/Heap/heap_hzh.h | 5017b80dd1d5ac32b58de55942cb7690ee9c262b | [] | no_license | gaoyuanhezhihao/Some_Data_Structure | 15d4c691db68025cd0a3d86e1352a8fac1328b2b | bae01e016fa871b144dec76b9da06e3ef080c92d | refs/heads/master | 2021-01-10T11:12:09.692705 | 2018-04-22T07:05:42 | 2018-04-22T07:05:42 | 54,189,306 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,954 | h | template <typename Comparable>
class BinaryHeap
{
public:
explicit BinaryHeap(int capacity = 100);
explicit BinaryHeap(const vector<Comparable> & items);
bool isEmpty() const;
const Comparable & findMin() const;
void insert( const Comparable & x);
void insert( Comparable && x);
void deleteMin();
void deleteMin( Comparable & minItem);
void makeEmpty();
private:
int currentSize;
vector<Comparable> array;
void buildHeap();
void percolateDown( int hole );
};
template <typename Comparable>
void BinaryHeap<Comparable>::insert(const Comparable & x)
{
if(currentSize == array.size() - 1 )
array.resize( array.size() * 2);
// Percolate up
int hole = ++ currentSize;
Comparable copy = x;
array[0] = std::move( copy );
for(; x< array[hole / 2]; hole /= 2)
array[ hole ] = std::move( array[ hole / 2] );
array[ hole ] = std::move( array[ 0 ] );
}
/**
* Remove the minimum item.
* Throws UnderflowException if empty.
*/
template <typename Comparable>
void BinaryHeap<Comparable>::deleteMin()
{
if( isEmpty())
{
std::cout << "UnderflowException"<<endl;
}
minItem = sta::move( array[ 1 ] );
array[ 1 ] = std::move( array[ currentSize-- ] );
percolateDown( 1 );
}
/**
* Internal method to percolate down in the heap.
* hole is the index at which the percolate begins.
*/
template <typename Comparable>
void BinaryHeap<Comparable>::percolate(int hole)
{
int child = 0;
Comparable tmp = array[hole];
for(;hole*2 < currentSize;hole = child)
{
child = hole * 2;
if(array[child] < array[child+1])
{
child++;
}
if(array[hole] > array[child])
{
array[hole] = std::move(array[child]);
}
else
{
break;
}
}
array[hole] = std::move(tmp);
}
template <typename Comparable>
explicit BinaryHeap<Comparable>::BinaryHeap( const vector<Comparable> & items )
: array( item.size() + 10), currentSize( item.size())
{
for( int i = 0; i < items.size(); i++)
{
array[ i+1 ] = items[ i ];
}
buildHeap();
}
| [
"gaoyuanhezhihao@139.com"
] | gaoyuanhezhihao@139.com |
74340f50dba126821c5a8a4e943da9ef7eea8a27 | 8042a4eb785265fb9124b35a6ddeead5e5b19dc4 | /greddy.cpp | e856ef6f6c7884dc33426bd91429226be0a66877 | [] | no_license | Solano96/HackerRank | 5a6cea7cccad79ce7b39820dbbd4244ce40cb3df | 456606f9f50b1bd83f1be3c7c1ebe60981a62d9f | refs/heads/master | 2020-04-22T17:20:30.734780 | 2020-02-09T23:41:59 | 2020-02-09T23:41:59 | 170,538,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 736 | cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
long long int marcsCakewalk(vector <int> calorie) {
// Complete this function
sort(calorie.begin(), calorie.end());
long long int n = 0;
for(int i = calorie.size()-1; i >= 0; i--){
long long int p = 1;
for(int j = calorie.size()-1; j > i; j--)
p*=2;
n+=p*calorie[i];
}
return n;
}
int main() {
int n;
cin >> n;
vector<int> calorie(n);
for(int calorie_i = 0; calorie_i < n; calorie_i++){
cin >> calorie[calorie_i];
}
long long int result = marcsCakewalk(calorie);
cout << result << endl;
char l;
cin >> l;
}
| [
"fransol0728@gmail.com"
] | fransol0728@gmail.com |
8b99f045590f4117ca2f92c90eaa8b3e65deaed4 | 01f1284f60393605255c5664456682d638f5035d | /081.cpp | 9a948a707228b0362512a9fd25cb4d1318402026 | [] | no_license | XKatherine/LeetCode | a174a33bc2b4b69feddcab2952a4e28f61a0d32c | fa91372ef8c6a0d66b2cf17db14a55a07bd5a8e7 | refs/heads/master | 2020-04-14T08:22:52.438849 | 2019-02-26T08:50:52 | 2019-02-26T08:50:52 | 163,734,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,476 | cpp | #include<iostream>
#include<sstream>
#include<vector>
#include<string>
using namespace std;
class Solution {
public:
bool search(vector<int>& nums, int target) {
int size = nums.size();
if(size == 0) return false;
if(size == 1) return nums[0] == target;
int point = -1;
int l = 0, r = size;
while(l < r){
int mid = (l+r)/2;
if(mid == size - 1 && nums[mid] < nums[mid-1]){
point = mid - 1;
break;
}else if(mid == size - 1){
point = -1;
break;
}if(nums[mid] > nums[mid+1]){
point = mid;
break;
}else if(nums[mid] > nums[0]){
l = mid + 1;
}else if(nums[mid] < nums[0]){
r = mid;
}else if(nums[mid] == nums[0]){
if(mid == 0){
point = -1;
break;
}else if(nums[mid] > nums[size-1]){
l = mid + 1;
}else{
bool isFirst = false;
for(int i = mid+1; i < size; i++)
if(nums[i] > nums[0])
isFirst = true;
if(isFirst) l = mid + 1;
else r = mid;
}
}
}
if(point >= 0 && point < size-1){
if(target > nums[point] || target < nums[point+1]) return false;
if(target > nums[0]){
l = 0;
r = point + 1;
}else if(target < nums[0]){
l = point + 1;
r = size;
}else return true;
}else{
l = 0;
r = size;
}
while(l < r){
int mid = (r+l)/2;
if(nums[mid] < target)
l = mid + 1;
else if(nums[mid] > target)
r = mid;
else return true;
}
return false;
}
};
int main(){
Solution s;
string line;
while(getline(cin, line)){
replace(line.begin(), line.end(), '[', ' ');
replace(line.begin(), line.end(), ']', ' ');
replace(line.begin(), line.end(), ',', ' ');
istringstream is(line);
vector<int> v;
int n;
while(is>>n) v.push_back(n);
getline(cin, line);
int target = stoi(line);
cout<<s.search(v, target)<<endl;
}
}
| [
"katherainxie@gmail.com"
] | katherainxie@gmail.com |
971fffd1770ebc60c1c08d2a7e6c305619116201 | 90047daeb462598a924d76ddf4288e832e86417c | /third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp | f091e55af28a0e466ff1df04eaeed8bdc0d5fa5b | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | C++ | false | false | 8,627 | cpp | /*
* Copyright (C) 2007-2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "bindings/core/v8/V8CSSStyleDeclaration.h"
#include <algorithm>
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/V8BindingForCore.h"
#include "core/CSSPropertyNames.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSPropertyMetadata.h"
#include "core/css/CSSStyleDeclaration.h"
#include "core/css/CSSValue.h"
#include "core/css/parser/CSSParser.h"
#include "core/dom/custom/CEReactionsScope.h"
#include "core/events/EventTarget.h"
#include "platform/wtf/ASCIICType.h"
#include "platform/wtf/PassRefPtr.h"
#include "platform/wtf/RefPtr.h"
#include "platform/wtf/StdLibExtras.h"
#include "platform/wtf/Vector.h"
#include "platform/wtf/text/StringBuilder.h"
#include "platform/wtf/text/StringConcatenate.h"
using namespace WTF;
namespace blink {
// Check for a CSS prefix.
// Passed prefix is all lowercase.
// First character of the prefix within the property name may be upper or
// lowercase.
// Other characters in the prefix within the property name must be lowercase.
// The prefix within the property name must be followed by a capital letter.
static bool HasCSSPropertyNamePrefix(const String& property_name,
const char* prefix) {
#if DCHECK_IS_ON()
DCHECK(*prefix);
for (const char* p = prefix; *p; ++p)
DCHECK(IsASCIILower(*p));
DCHECK(property_name.length());
#endif
if (ToASCIILower(property_name[0]) != prefix[0])
return false;
unsigned length = property_name.length();
for (unsigned i = 1; i < length; ++i) {
if (!prefix[i])
return IsASCIIUpper(property_name[i]);
if (property_name[i] != prefix[i])
return false;
}
return false;
}
static CSSPropertyID ParseCSSPropertyID(const String& property_name) {
unsigned length = property_name.length();
if (!length)
return CSSPropertyInvalid;
StringBuilder builder;
builder.ReserveCapacity(length);
unsigned i = 0;
bool has_seen_dash = false;
if (HasCSSPropertyNamePrefix(property_name, "webkit"))
builder.Append('-');
else if (IsASCIIUpper(property_name[0]))
return CSSPropertyInvalid;
bool has_seen_upper = IsASCIIUpper(property_name[i]);
builder.Append(ToASCIILower(property_name[i++]));
for (; i < length; ++i) {
UChar c = property_name[i];
if (!IsASCIIUpper(c)) {
if (c == '-')
has_seen_dash = true;
builder.Append(c);
} else {
has_seen_upper = true;
builder.Append('-');
builder.Append(ToASCIILower(c));
}
}
// Reject names containing both dashes and upper-case characters, such as
// "border-rightColor".
if (has_seen_dash && has_seen_upper)
return CSSPropertyInvalid;
String prop_name = builder.ToString();
return unresolvedCSSPropertyID(prop_name);
}
// When getting properties on CSSStyleDeclarations, the name used from
// Javascript and the actual name of the property are not the same, so
// we have to do the following translation. The translation turns upper
// case characters into lower case characters and inserts dashes to
// separate words.
//
// Example: 'backgroundPositionY' -> 'background-position-y'
//
// Also, certain prefixes such as 'css-' are stripped.
static CSSPropertyID CssPropertyInfo(const AtomicString& name) {
typedef HashMap<String, CSSPropertyID> CSSPropertyIDMap;
DEFINE_STATIC_LOCAL(CSSPropertyIDMap, map, ());
CSSPropertyIDMap::iterator iter = map.find(name);
if (iter != map.end())
return iter->value;
CSSPropertyID unresolved_property = ParseCSSPropertyID(name);
if (unresolved_property == CSSPropertyVariable)
unresolved_property = CSSPropertyInvalid;
map.insert(name, unresolved_property);
DCHECK(!unresolved_property ||
CSSPropertyMetadata::IsEnabledProperty(unresolved_property));
return unresolved_property;
}
void V8CSSStyleDeclaration::namedPropertyEnumeratorCustom(
const v8::PropertyCallbackInfo<v8::Array>& info) {
typedef Vector<String, numCSSProperties - 1> PreAllocatedPropertyVector;
DEFINE_STATIC_LOCAL(PreAllocatedPropertyVector, property_names, ());
static unsigned property_names_length = 0;
if (property_names.IsEmpty()) {
for (int id = firstCSSProperty; id <= lastCSSProperty; ++id) {
CSSPropertyID property_id = static_cast<CSSPropertyID>(id);
if (CSSPropertyMetadata::IsEnabledProperty(property_id))
property_names.push_back(getJSPropertyName(property_id));
}
std::sort(property_names.begin(), property_names.end(),
CodePointCompareLessThan);
property_names_length = property_names.size();
}
v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext();
v8::Local<v8::Array> properties =
v8::Array::New(info.GetIsolate(), property_names_length);
for (unsigned i = 0; i < property_names_length; ++i) {
String key = property_names.at(i);
DCHECK(!key.IsNull());
if (!V8CallBoolean(properties->CreateDataProperty(
context, i, V8String(info.GetIsolate(), key))))
return;
}
V8SetReturnValue(info, properties);
}
void V8CSSStyleDeclaration::namedPropertyQueryCustom(
const AtomicString& name,
const v8::PropertyCallbackInfo<v8::Integer>& info) {
// NOTE: cssPropertyInfo lookups incur several mallocs.
// Successful lookups have the same cost the first time, but are cached.
if (CssPropertyInfo(name)) {
V8SetReturnValueInt(info, 0);
return;
}
}
void V8CSSStyleDeclaration::namedPropertyGetterCustom(
const AtomicString& name,
const v8::PropertyCallbackInfo<v8::Value>& info) {
// Search the style declaration.
CSSPropertyID unresolved_property = CssPropertyInfo(name);
// Do not handle non-property names.
if (!unresolved_property)
return;
CSSPropertyID resolved_property = resolveCSSPropertyID(unresolved_property);
CSSStyleDeclaration* impl = V8CSSStyleDeclaration::toImpl(info.Holder());
const CSSValue* css_value =
impl->GetPropertyCSSValueInternal(resolved_property);
if (css_value) {
V8SetReturnValueStringOrNull(info, css_value->CssText(), info.GetIsolate());
return;
}
String result = impl->GetPropertyValueInternal(resolved_property);
V8SetReturnValueString(info, result, info.GetIsolate());
}
void V8CSSStyleDeclaration::namedPropertySetterCustom(
const AtomicString& name,
v8::Local<v8::Value> value,
const v8::PropertyCallbackInfo<v8::Value>& info) {
CSSStyleDeclaration* impl = V8CSSStyleDeclaration::toImpl(info.Holder());
CSSPropertyID unresolved_property = CssPropertyInfo(name);
if (!unresolved_property)
return;
CEReactionsScope ce_reactions_scope;
TOSTRING_VOID(V8StringResource<kTreatNullAsNullString>, property_value,
value);
ExceptionState exception_state(
info.GetIsolate(), ExceptionState::kSetterContext, "CSSStyleDeclaration",
getPropertyName(resolveCSSPropertyID(unresolved_property)));
impl->SetPropertyInternal(unresolved_property, String(), property_value,
false, exception_state);
V8SetReturnValue(info, value);
}
} // namespace blink
| [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
749b85cb162ee0c27f572a70c9d5641cb219804d | a4870cf80e48ced67e63aead9c5ca904ce86a43e | /HDU/2579/2579.cpp | 91849be414f426b9a875b3caccf889afd07b4c29 | [] | no_license | axyst/competitive-programming | 2d2072a906b0ef4bbf1cab4523293412db002b25 | f3c05ebc9b09cba0af30b977222ae2b246ecc041 | refs/heads/master | 2023-07-24T12:45:15.977496 | 2021-08-20T02:27:46 | 2021-08-20T02:27:46 | 123,937,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,494 | cpp | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<algorithm>
#include<queue>
#define X next.x
#define Y next.y
#define T next.time
using namespace std;
int t,r,c,k;
int vis[125][125][125];
char maze[125][125];
struct node
{
int x,y,time;
};
int dir[4][2]={{1,0},{0,1},{-1,0},{0,-1}};
node in,out;
int yes(int a,int b,int c)
{
if(maze[a][b]=='#'&&c%k!=0) return 0;
else return 1;
}
int bfs()
{
queue<node>q;
in.time=0;
vis[in.x][in.y][0]=1;
q.push(in);
while(!q.empty())
{
node u=q.front();
q.pop();
for(int i=0;i<4;i++)
{
node next;
X=u.x+dir[i][0];
Y=u.y+dir[i][1];
T=u.time+1;
//printf("%d %d\n",X,Y);
if(X<0||X>=r||Y<0||Y>=c||!yes(X,Y,T)||vis[X][Y][T%k]) continue;
if(X==out.x&&Y==out.y) return T;
q.push(next);
vis[X][Y][T%k]=1;
}
}
return -1;
}
int main()
{
scanf("%d",&t);
while(t--)
{
memset(vis,0,sizeof(vis));
scanf("%d%d%d",&r,&c,&k);
for(int i=0;i<r;i++) scanf("%s",&maze[i]);
for(int i=0;i<r;i++)
for(int j=0;j<c;j++)
{
if(maze[i][j]=='Y') in.x=i,in.y=j;
if(maze[i][j]=='G') out.x=i,out.y=j;
}
//printf("%d %d \n%d %d\n",in.x,in.y,out.x,out.y);
int ans=bfs();
if(ans!=-1) printf("%d\n",ans);
else printf("Please give me another chance!\n");
}
return 0;
} | [
"axysta@gmail.com"
] | axysta@gmail.com |
db38a2663011df311a1d7ec436e8fd5c652c3ae9 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/rttr/all/test_package/test_package.cpp | 99d52f686af40e2d4244e85cc1e2d13791f7c086 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | C++ | false | false | 265 | cpp | #include <cstdlib>
#include <iostream>
#include <vector>
#include <rttr/type>
using dblvec = std::vector<double>;
int main()
{
auto type = rttr::type::get<dblvec>();
std::cout << "type name: " << type.get_name() << std::endl;;
return EXIT_SUCCESS;
}
| [
"intelligide@hotmail.fr"
] | intelligide@hotmail.fr |
424b16f5e349565b0de3e3b602515d98ccb4a2ca | 3e2b11465d2773a89a1181f8ecd27c0a913c2ee4 | /Contest/HSV Day 2/source/xsssg666(龙实初一谢斯烁)/database.cpp | 34134662279508c7ab0358e83017fd14772940be | [
"MIT"
] | permissive | WAduck/cutekibry-s-documents | c46f42e74c58fc9178b7dbac374bde9391a29f48 | 1ab949495746d29f88daca42268fc5f5b448cefb | refs/heads/master | 2020-04-04T19:29:15.724639 | 2018-11-03T14:29:06 | 2018-11-03T14:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,219 | cpp | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
struct xss
{
char name[10];
char dq[10];
int age;
char xx[10];
}a[50000];
int main()
{
int n;
int q,w,e,r,t;
scanf("%d",&n);
q=n;
w=n;
e=n;
r=n;
t=n;
for(int i=1;i<=n;i++)
{
scanf("%s",&a[i].name);
scanf("%s",&a[i].dq);
scanf("%d",&a[i].age);
scanf("%s",&a[i].xx);
}
for(int j=1;j<=n;j++)
{
for(int k=j+1;k<=n;k++)
{
if(strcmp(a[j].dq,a[k].dq)==0&&strcmp(a[j].xx,a[k].xx)==0&&strcmp(a[j].name,a[k].name)==0&&a[j].age==a[k].age)
{
q--;
}
if(strcmp(a[j].dq,a[k].dq)==0&&strcmp(a[j].xx,a[k].xx)==0&&a[j].age==a[k].age)
{
w--;
}
if(strcmp(a[j].xx,a[k].xx)==0&&a[j].age==a[k].age&&strcmp(a[j].name,a[k].name)==0)
{
e--;
}
if(strcmp(a[j].dq,a[k].dq)==0&&strcmp(a[j].name,a[k].name)==0&&strcmp(a[j].xx,a[k].xx))
{
r--;
}if(strcmp(a[j].dq,a[k].dq)==0&&strcmp(a[j].name,a[k].name)==0&&a[j].age==a[k].age)
{
t--;
}
}
}
printf("%d %d %d %d %d",q,w,e,r,t);
return 0;
}
| [
"cutekibry@yahoo.com"
] | cutekibry@yahoo.com |
b13553aa327ae01e7748c949490813071108ed59 | 4b0c57dddf8bd98c021e0967b5d94563d15372e1 | /MatrixElement/interface/ttEventProb3Jet.hh | 21cd1ef48cdd52c32ac737f752126a805155758e | [] | no_license | aperloff/TAMUWW | fea6ed0066f3f2cef4d44c525ee843c6234460ba | c18e4b7822076bf74ee919509a6bd1f3cf780e11 | refs/heads/master | 2021-01-21T14:12:34.813887 | 2018-07-23T04:59:40 | 2018-07-23T04:59:40 | 10,922,954 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 867 | hh | #ifndef TTEVENTPROB3JET_HH
#define TTEVENTPROB3JET_HH
#include "EventProb3jet.hh"
#include "topEventProb.hh"
class ttEventProb3Jet : public EventProb3Jet, public topEventProb
{
public:
ttEventProb3Jet(Integrator& integrator, const TransferFunction& bTF,
const TransferFunction& lightTF);
virtual unsigned getProbMax() const;
protected:
virtual void changeVars(const std::vector<double>& parameters);
virtual void met();
virtual void getTotalLV(TLorentzVector& vec) const;
virtual double matrixElement() const;
virtual double phaseSpace() const;
virtual void setPartonTypes() const;
virtual void getScale(double& scale1, double& scale2) const;
virtual bool onSwitch();
virtual void setTopMassAndWidth(double mTop);
private:
TLorentzVector m_lostJet;
};
#endif
| [
""
] | |
a1cf14aafe7be33237f11e51ee35684f44eb779a | 0b0d4fb48fcc60d574e9b0ab599f0826a6cee25e | /src/main.cpp | f99a39900bea508a7252a976294c5a7c9afa1068 | [] | no_license | StormPhoenix/kaguya | fa8337cf5648a211a867d22aaad0d8385bed0386 | bab3d634a24527524c87722e2e41885c52d091d4 | refs/heads/master | 2023-05-03T07:10:29.852816 | 2021-05-19T07:04:23 | 2021-05-19T07:04:23 | 302,261,135 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,689 | cpp | #include <kaguya/Config.h>
#include <kaguya/tracer/TracerFactory.h>
#include <iostream>
#include <ext/clipp.h>
using namespace kaguya;
using namespace kaguya::tracer;
using namespace clipp;
using namespace std;
int main(int argc, char *argv[]) {
std::string sceneDir = "";
auto cli = (
value("output name", Config::filenamePrefix),
/* For input scene */
option("-scene", "--scene-directory") & value("input scene directory", sceneDir),
/* For general settings */
option("-rt", "--render-type") & value("render type", Config::renderType),
option("-st", "--sampler-type") & value("sampler type", Config::samplerType),
option("-ssp", "--sample-per-pixel") & value("sample per pixel", Config::Tracer::sampleNum),
option("-d", "--max-depth") & value("max scatter depth", Config::Tracer::maxDepth),
option("-rb", "--russian-prob") & value("russian roulette probability", Config::russianRoulette),
option("-rd", "--russian-depth") & value("russian roulette depth", Config::russianRouletteDepth),
option("-kn", "--kernel") & value("rendering kernel count", Config::Parallel::kernelCount),
option("-wf", "--write-frequency") & value("write frequency", Config::writeFrequency),
/* For stochastic progressive photon mapping settings */
option("-sr", "--initial-search-radius") &
value("initial search radius", Config::Tracer::initialRadius),
option("-srd", "--search-radius-decay") & value("search radius decay", Config::Tracer::radiusDecay),
option("-pc", "--photon-count") & value("photon count", Config::Tracer::photonCount),
/* Outputs settings */
option("-h", "--height") & value("image height", Config::Camera::height),
option("-w", "--width") & value("image width", Config::Camera::width)
);
if (!parse(argc, argv, cli)) {
cout << make_man_page(cli, argv[0]);
return 0;
}
if (sceneDir != "") {
Config::inputSceneDirs.push_back(sceneDir);
} else {
Config::innerScenes.push_back(Scene::innerSceneWithAreaLight);
Config::innerScenes.push_back(Scene::innerSceneBunnyWithPointLight);
}
if (Config::Parallel::tileSize <= 0) {
Config::Parallel::tileSize = 50;
}
Tracer *tracer = TracerFactory::newTracer();
if (tracer != nullptr) {
tracer->run();
delete tracer;
}
return 0;
} | [
"stormphoenix.hzau@hotmail.com"
] | stormphoenix.hzau@hotmail.com |
8328c89caf1eb43f823a4196a1edcfaf114260f8 | 4111b4943472b96bf4aaa04c5d61f35ec0b9011b | /test/int/sorted.cpp | e4e36e834027941f6605fe5fd1b3ca154918d615 | [
"MIT"
] | permissive | jahewson/gecode | 3862ed7ac48124bbb5d16ddd39aa2803aacaf145 | 91f3bbeafe96ec7172aeb5417f624109143415bb | refs/heads/master | 2020-05-17T01:51:26.270717 | 2013-02-11T19:40:23 | 2013-02-11T19:40:23 | 6,619,246 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,927 | cpp | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Patrick Pekczynski <pekczynski@ps.uni-sb.de>
*
* Contributing authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Patrick Pekczynski, 2005
* Christian Schulte, 2007
*
* Last modified:
* $Date: 2010-04-08 11:35:31 +0100 (Thu, 08 Apr 2010) $ by $Author: schulte $
* $Revision: 10684 $
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "test/int.hh"
namespace Test { namespace Int {
/// %Tests for sorted constraints
namespace Sorted {
/**
* \defgroup TaskTestIntSorted Sorted constraints
* \ingroup TaskTestInt
*/
//@{
/// Relation for sorting integers in increasing order
class SortIntMin {
public:
/// %Test whether \a x is less than \a y
bool operator()(const int x, const int y) {
return x<y;
}
};
/// %Test sorted without permutation variables
class NoVar : public Test {
protected:
/// Number of variables to be sorted
static const int n = 3;
public:
/// Create and register test
NoVar(void) : Test("Sorted::NoVar",2*n,0,3) {}
/// %Test whether \a xy is solution
virtual bool solution(const Assignment& xy) const {
int x[n], y[n];
for (int i=0;i<3; i++) {
x[i]=xy[i]; y[i]=xy[n+i];
}
for (int i=0; i<n-1; i++)
if (y[i]>y[i+1])
return false;
SortIntMin sim;
Gecode::Support::quicksort<int,SortIntMin>(x,n,sim);
for (int i=0; i<n; i++)
if (x[i] != y[i])
return false;
return true;
}
/// Post constraint on \a xy
virtual void post(Gecode::Space& home, Gecode::IntVarArray& xy) {
Gecode::IntVarArgs x(n), y(n);
for (int i=0; i<n; i++) {
x[i]=xy[i]; y[i]=xy[n+i];
}
Gecode::sorted(home,x,y);
}
};
/// %Test sorted with permutation variables
class PermVar : public Test {
protected:
/// Number of variables to be sorted
static const int n = 3;
public:
/// Create and register test
PermVar(void) : Test("Sorted::PermVar",3*n,0,2) {}
/// %Test whether \a xyz is solution
virtual bool solution(const Assignment& xyz) const {
int x[n], y[n], z[n];
for (int i=0; i<n; i++) {
x[i]=xyz[i]; y[i]=xyz[n+i]; z[i]=xyz[2*n+i];
}
// check for permutation
for (int i=0; i<n; i++)
for (int j=i+1; j<n; j++)
if (z[i]==z[j])
return false;
// y must to be sorted
for (int i=0; i<n-1; i++)
if (y[i]>y[i+1])
return false;
// check whether permutation is in range
for (int i=0; i<n; i++)
if ((z[i] < 0) || (z[i] >= n))
return false;
// check whether permutation info is correct
for (int i=0; i<n; i++)
if (x[i] != y[z[i]])
return false;
// check for sorting
SortIntMin sim;
Gecode::Support::quicksort<int,SortIntMin>(x,n,sim);
for (int i=0; i<n; i++)
if (x[i] != y[i])
return false;
return true;
}
/// Post constraint on \a xyz
virtual void post(Gecode::Space& home, Gecode::IntVarArray& xyz) {
Gecode::IntVarArgs x(n), y(n), z(n);
for (int i=0; i<n; i++) {
x[i]=xyz[i]; y[i]=xyz[n+i]; z[i]=xyz[2*n+i];
}
Gecode::sorted(home,x,y,z);
}
};
NoVar novar;
PermVar permvar;
//@}
}
}}
// STATISTICS: test-int
| [
"john@jahewson.com"
] | john@jahewson.com |
e432722c1e375f9d48b0a677f5febdf09ca30f3c | d50d23d7bf4de63d11ffd97bcdb0a98b8ad2e974 | /Precision/H/Precision_InterBase_Functions.inl | 0b65bcfdff8a3029cd9f1901e7b3a8173ae12bcc | [] | no_license | Daleth7/Big-Precision_Int | f0d1a62b97debfb668bf94e4fc4c4dd2e51b6616 | 6ec9a39c13a6e03618f6dcc29f4881da58574020 | refs/heads/master | 2020-05-29T13:27:18.988589 | 2014-02-16T00:37:35 | 2014-02-16T00:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | inl | #include "General_Base/Precision_Math_Shared_Functions.h"
#include <type_traits>
namespace Precision{
namespace Helpers{
template <typename Base_Return>
Base_Return convert(const Base_Return& orig, std::true_type)
{return orig;}
template <typename Base_Return, typename Base_Param>
Base_Return convert(const Base_Param& orig, std::false_type){
Base_Return
toreturn(0),
base_factor(exponentiate(Base_Return(Base_Param::base()),
static_cast<typename Base_Return::lli>(orig.count_digits())-1))
;
for(
size_t i(0);
i < orig.count_digits();
++i, base_factor /= Base_Param::base()
) toreturn += base_factor * Base_Return(orig.digit_10(i));
return toreturn;
}
}
template <typename Base_Return, typename Base_Param>
Base_Return convert(const Base_Param& orig){
return Helpers::convert<Base_Return>
(orig, typename std::is_same<Base_Return, Base_Param>::type());
}
}
| [
"i.publish.docs@gmail.com"
] | i.publish.docs@gmail.com |
d1b4863b40915d7b65087035bc861ff997fc611c | b3f58deae474db9035cd340b4e66b3e6bdafdeca | /cc/playback/display_list_raster_source.h | cf87f186996fd12eba01361f935cea184af1dcdd | [
"BSD-3-Clause"
] | permissive | quanxinglong/chromium | 0c45f232254c056e27f35e00da8472ff3ac49fd9 | 16dda055c8799052d45a593059b614ea682d4f6c | refs/heads/master | 2021-01-24T17:58:29.213579 | 2015-08-10T19:39:07 | 2015-08-10T19:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,189 | h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_
#define CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "cc/debug/rendering_stats_instrumentation.h"
#include "cc/playback/display_list_recording_source.h"
#include "cc/playback/raster_source.h"
#include "skia/ext/analysis_canvas.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPicture.h"
namespace cc {
class DisplayItemList;
class CC_EXPORT DisplayListRasterSource : public RasterSource {
public:
static scoped_refptr<DisplayListRasterSource>
CreateFromDisplayListRecordingSource(const DisplayListRecordingSource* other,
bool can_use_lcd_text);
// RasterSource overrides.
void PlaybackToCanvas(SkCanvas* canvas,
const gfx::Rect& canvas_bitmap_rect,
const gfx::Rect& canvas_playback_rect,
float contents_scale) const override;
void PlaybackToSharedCanvas(SkCanvas* canvas,
const gfx::Rect& canvas_rect,
float contents_scale) const override;
void PerformSolidColorAnalysis(
const gfx::Rect& content_rect,
float contents_scale,
RasterSource::SolidColorAnalysis* analysis) const override;
bool IsSolidColor() const override;
SkColor GetSolidColor() const override;
gfx::Size GetSize() const override;
void GatherPixelRefs(const gfx::Rect& content_rect,
float contents_scale,
std::vector<SkPixelRef*>* pixel_refs) const override;
bool CoversRect(const gfx::Rect& content_rect,
float contents_scale) const override;
bool HasRecordings() const override;
void SetShouldAttemptToUseDistanceFieldText() override;
bool ShouldAttemptToUseDistanceFieldText() const override;
void DidBeginTracing() override;
void AsValueInto(base::trace_event::TracedValue* array) const override;
skia::RefPtr<SkPicture> GetFlattenedPicture() override;
size_t GetPictureMemoryUsage() const override;
bool CanUseLCDText() const override;
scoped_refptr<RasterSource> CreateCloneWithoutLCDText() const override;
protected:
DisplayListRasterSource();
DisplayListRasterSource(const DisplayListRecordingSource* other,
bool can_use_lcd_text);
DisplayListRasterSource(const DisplayListRasterSource* other,
bool can_use_lcd_text);
~DisplayListRasterSource() override;
// These members are const as this raster source may be in use on another
// thread and so should not be touched after construction.
const scoped_refptr<DisplayItemList> display_list_;
const size_t painter_reported_memory_usage_;
const SkColor background_color_;
const bool requires_clear_;
const bool can_use_lcd_text_;
const bool is_solid_color_;
const SkColor solid_color_;
const gfx::Rect recorded_viewport_;
const gfx::Size size_;
const bool clear_canvas_with_debug_color_;
const int slow_down_raster_scale_factor_for_debug_;
// TODO(enne/vmiura): this has a read/write race between raster and compositor
// threads with multi-threaded Ganesh. Make this const or remove it.
bool should_attempt_to_use_distance_field_text_;
private:
// Called when analyzing a tile. We can use AnalysisCanvas as
// SkPicture::AbortCallback, which allows us to early out from analysis.
void RasterForAnalysis(skia::AnalysisCanvas* canvas,
const gfx::Rect& canvas_rect,
float contents_scale) const;
void RasterCommon(SkCanvas* canvas,
SkPicture::AbortCallback* callback,
const gfx::Rect& canvas_bitmap_rect,
const gfx::Rect& canvas_playback_rect,
float contents_scale) const;
DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource);
};
} // namespace cc
#endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
707dadf3ee0d26dd086fddba38efcdf7d0230773 | fb263c50fa378656e2caafd59fe8bce931e5adb5 | /ray.cpp | 339271dc2fa277d846f72b54ca3ac397e53d0810 | [] | no_license | saqibdhuka/RayTracer | 9b39c5627f5a6838bcf19e0ed4e9eb6655fbd444 | 151f93c18ebae8bae7f2b54bf276d69c65ebd962 | refs/heads/master | 2020-09-12T21:37:15.093227 | 2019-12-05T03:28:44 | 2019-12-05T03:28:44 | 222,564,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 684 | cpp | #include "ray.h"
#include <GL/gl.h>
#include <GL/freeglut.h>
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "Angel.h"
Ray :: Ray(){
origin.x = 0.0;
origin.y = 0.0;
origin.z = 0.0;
direction.x = 0.0;
direction.y = 0.0;
direction.z = -1.0;
}
Ray :: Ray(vec3 o, vec3 d){
origin.x = o.x;
origin.y = o.y;
origin.z = o.z;
direction.x = d.x;
direction.y = d.y;
direction.z = d.z;
}
void Ray::shootRay(const float &t){
glBegin(GL_LINES);
glVertex3f(origin.x, origin.y, origin.z);
glVertex3f(origin.x + (t * direction.x),
origin.y + (t * direction.y),
origin.z + (t * direction.z));
glEnd();
}
| [
"saqibdhuka@gmail.com"
] | saqibdhuka@gmail.com |
14d1f62483be5fdc08a5c718ec0e347f5585b3ff | eccfa1a8adc5595694db782c324de16ef388a867 | /robot_pkg/include/TakePhotoMode.h | 4551c25a995ec4ab81b0e1f64bb5e5103f63b755 | [] | no_license | pjueon/bitproject | 609b4de649be345376e28cbff58a4751473e45cd | 8b261e4811e1d601c745395b424b418f58ac55d7 | refs/heads/master | 2021-06-22T04:32:54.056484 | 2021-04-18T13:25:21 | 2021-04-18T13:25:21 | 211,821,190 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 958 | h | #pragma once
#ifndef TAKE_PHOTOMODE_H
#define TAKE_PHOTOMODE_H
#include "Mode.h"
#include <vector>
#include <array>
#include <utility>
#include <memory>
#include <opencv2/opencv.hpp>
#include <ros/ros.h>
class CoordinateConverter;
class TakePhotoMode : public OperatingMode {
public:
explicit TakePhotoMode(MainMachine* const);
~TakePhotoMode() override;
mode run() override;
void init() override;
void test() override;
void setInitYaw(double);
private:
double initYaw;
const std::unique_ptr<CoordinateConverter> XYConverter;
cv::Mat getPhoto();
std::array<double, 4> getYOLOBoxInfo();
void rotateTo(double angle);
void moveBackTo(double x, double y);
cv::Mat getFrontLaserScan(double frontRange, double sideRange);
cv::Vec4i getLonggestLine(const std::vector<cv::Vec4i>& lines);
void getNextInitYaw();
double angleTune(double frontRange, double sideRange);
std::pair<double, double> getBookshelfPos();
};
#endif
| [
"bluegbgb@gmail.com"
] | bluegbgb@gmail.com |
2cffcbbc4afccb4ab9077cc24de2dcf58f73f5d8 | bf8184816a1e726bf1c878a188f9d187e308df26 | /src/heapmemory_unique_legacy.cpp | feeeec637291bf094ba01191540c0539cfcad4ac | [] | no_license | PeterSommerlad/CPPCourseAdvanced | 7801b5bd4a44f9f55a7ab2f90fdbb0974f1180d9 | 7472a62894a6e01be2521bb639f729dd5675bfb0 | refs/heads/main | 2023-06-09T19:53:33.346844 | 2023-05-26T15:50:19 | 2023-05-26T15:50:19 | 470,980,344 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,398 | cpp | #include "cute.h"
#include "ide_listener.h"
#include "xml_listener.h"
#include "cute_runner.h"
#include <string>
#include <cstdlib>
#include <memory>
#include <cxxabi.h> // __cxa_demangle
std::string demangle(std::string name){
if (name.size() > 0 ){
constexpr auto freemem{ [](char *toBeFreed){
std::free(toBeFreed);
}};
std::unique_ptr<char ,decltype(freemem)> freeit {
abi::__cxa_demangle(name.c_str(),0,0,0),
freemem };
std::string result{freeit.get()};
return result;
} else {
return "unknown";
}
}
void how_cute_demangle_should_be_test() {
ASSERT_EQUAL("i",typeid(int).name());
ASSERT_EQUAL("int", demangle(typeid(int).name()));
}
struct free_deleter {
template<typename T>
void operator()(T * p) const {
std::free(const_cast<std::remove_const_t<T> *>(p));
}
};
template<typename T>
using unique_C_ptr = std::unique_ptr<T, free_deleter>;
std::string plain_demangle(char const * name) {
unique_C_ptr<char const> toBeFreed{__cxxabiv1::__cxa_demangle(name, 0, 0, 0)};
std::string result(toBeFreed.get());
return result;
}
void test_plain_demangle(){
ASSERT_EQUAL("unsigned long", plain_demangle(typeid(size_t).name()));
}
#include <cstdio>
struct FILE_ptr_closer {
void operator()(FILE * p) const {
if (p) std::fclose(p);
}
};
using unique_FILE_ptr = std::unique_ptr<FILE,FILE_ptr_closer>;
auto openFile(std::string const& name, std::string mode="r"){
return unique_FILE_ptr{fopen(name.c_str(),mode.c_str())};
}
constexpr auto filename{"test.txt"};
void create_file_for_test(){
std::ofstream file{filename};
file.put('A');
}
void testFilePtrCloser(){
create_file_for_test();
auto legacy_file{openFile(filename)};
if (legacy_file){
auto ch {std::fgetc(legacy_file.get())};
ASSERT_EQUAL('A',ch);
} else {
FAILM("could not read or create test.txt" );
}
}
bool runAllTests(int argc, char const *argv[]) {
cute::suite s { };
//TODO add your test here
s.push_back(CUTE(how_cute_demangle_should_be_test));
s.push_back(CUTE(test_plain_demangle));
s.push_back(CUTE(testFilePtrCloser));
cute::xml_file_opener xmlfile(argc, argv);
cute::xml_listener<cute::ide_listener<>> lis(xmlfile.out);
auto runner = cute::makeRunner(lis, argc, argv);
bool success = runner(s, "AllTests");
return success;
}
int main(int argc, char const *argv[]) {
return runAllTests(argc, argv) ? EXIT_SUCCESS : EXIT_FAILURE;
}
| [
"peter.cpp@sommerlad.ch"
] | peter.cpp@sommerlad.ch |
bf2e3950629cc56c11318b41810dea1e0e4797b4 | ceec3f1ea495e9673b8ef3198657c485f927380f | /cocaIrrlicht/vendor/irrlicht/source/Irrlicht/COpenGLTexture.h | 135209c2da7e81018e547822a5c0e0a343dd745c | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | harmboschloo/CocaProject | 251b138fb2e29d9d7a2f0e07fb24e85299ccb7e4 | 530476db6db41158beab47810e56c9d1820640e4 | refs/heads/master | 2020-04-05T22:51:53.812675 | 2014-07-03T09:15:53 | 2014-07-03T09:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,863 | h | // Copyright (C) 2002-2009 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __C_OPEN_GL_TEXTURE_H_INCLUDED__
#define __C_OPEN_GL_TEXTURE_H_INCLUDED__
#include "ITexture.h"
#include "IImage.h"
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_OPENGL_
#if defined(_IRR_OPENGL_USE_EXTPOINTER_)
#define GL_GLEXT_LEGACY 1
#endif
#ifdef _IRR_WINDOWS_API_
// include windows headers for HWND
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/gl.h>
#ifdef _MSC_VER
#pragma comment(lib, "OpenGL32.lib")
#endif
#elif defined(_IRR_USE_OSX_DEVICE_)
#include <OpenGL/gl.h>
#elif defined(_IRR_USE_SDL_DEVICE_)
#define NO_SDL_GLEXT
#include <SDL/SDL_video.h>
#include <SDL/SDL_opengl.h>
#else
#if defined(_IRR_OSX_PLATFORM_)
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
#endif
namespace irr
{
namespace video
{
class COpenGLDriver;
//! OpenGL texture.
class COpenGLTexture : public ITexture
{
public:
//! constructor
COpenGLTexture(IImage* surface, const core::string<c16>& name, COpenGLDriver* driver=0);
//! destructor
virtual ~COpenGLTexture();
//! lock function
virtual void* lock(bool readOnly = false);
//! unlock function
virtual void unlock();
//! Returns original size of the texture (image).
virtual const core::dimension2d<u32>& getOriginalSize() const;
//! Returns size of the texture.
virtual const core::dimension2d<u32>& getSize() const;
//! returns driver type of texture (=the driver, that created it)
virtual E_DRIVER_TYPE getDriverType() const;
//! returns color format of texture
virtual ECOLOR_FORMAT getColorFormat() const;
//! returns pitch of texture (in bytes)
virtual u32 getPitch() const;
//! return open gl texture name
GLuint getOpenGLTextureName() const;
//! return whether this texture has mipmaps
virtual bool hasMipMaps() const;
//! Regenerates the mip map levels of the texture. Useful after
//! locking and modifying the texture
virtual void regenerateMipMapLevels();
//! Is it a render target?
virtual bool isRenderTarget() const;
//! Is it a FrameBufferObject?
virtual bool isFrameBufferObject() const;
//! Bind RenderTargetTexture
virtual void bindRTT();
//! Unbind RenderTargetTexture
virtual void unbindRTT();
//! sets whether this texture is intended to be used as a render target.
void setIsRenderTarget(bool isTarget);
protected:
//! protected constructor with basic setup, no GL texture name created, for derived classes
COpenGLTexture(const core::string<c16>& name, COpenGLDriver* driver);
//! get the desired color format based on texture creation flags and the input format.
ECOLOR_FORMAT getBestColorFormat(ECOLOR_FORMAT format);
//! convert the image into an internal image with better properties for this driver.
void getImageData(IImage* image);
//! copies the texture into an OpenGL texture.
//! \param: newTexture is true if method is called from a newly created texture for the first time. Otherwise call with false to improve memory handling.
void copyTexture(bool newTexture=true);
core::dimension2d<u32> ImageSize;
core::dimension2d<u32> TextureSize;
ECOLOR_FORMAT ColorFormat;
s32 Pitch;
COpenGLDriver* Driver;
IImage* Image;
GLuint TextureName;
GLint InternalFormat;
GLenum PixelFormat;
GLenum PixelType;
bool HasMipMaps;
bool IsRenderTarget;
bool AutomaticMipmapUpdate;
bool ReadOnlyLock;
bool KeepImage;
};
//! OpenGL FBO texture.
class COpenGLFBOTexture : public COpenGLTexture
{
public:
//! FrameBufferObject constructor
COpenGLFBOTexture(const core::dimension2d<u32>& size, const core::string<c16>& name,
COpenGLDriver* driver = 0, const ECOLOR_FORMAT format = ECF_UNKNOWN);
//! destructor
virtual ~COpenGLFBOTexture();
//! Is it a FrameBufferObject?
virtual bool isFrameBufferObject() const;
//! Bind RenderTargetTexture
virtual void bindRTT();
//! Unbind RenderTargetTexture
virtual void unbindRTT();
ITexture* DepthTexture;
protected:
GLint getOpenGLFormatAndParametersFromColorFormat(
ECOLOR_FORMAT format, GLint& filtering, GLenum& colorformat, GLenum& type);
GLuint ColorFrameBuffer;
};
//! OpenGL FBO depth texture.
class COpenGLFBODepthTexture : public COpenGLFBOTexture
{
public:
//! FrameBufferObject depth constructor
COpenGLFBODepthTexture(const core::dimension2d<u32>& size, const core::string<c16>& name, COpenGLDriver* driver=0, bool useStencil=false);
//! destructor
virtual ~COpenGLFBODepthTexture();
//! Bind RenderTargetTexture
virtual void bindRTT();
//! Unbind RenderTargetTexture
virtual void unbindRTT();
bool attach(ITexture*);
protected:
GLuint DepthRenderBuffer;
GLuint StencilRenderBuffer;
bool UseStencil;
};
} // end namespace video
} // end namespace irr
#endif
#endif // _IRR_COMPILE_WITH_OPENGL_
| [
"harm@boschloo.net"
] | harm@boschloo.net |
4b7a1f62966281a17b83a7846dbf16c81817990f | bc45afc5c36d1131f19367653e85c55d9221318c | /src/utility/Mouse.hpp | 5f2713ee552d5105debfa126dcd80d57fb03be31 | [] | no_license | jshuam/opengl_game_project | 83b235851e02a4db3930ab52f2ad81234c622c10 | 7e47da8d5dc395280465818afed5f83165d91430 | refs/heads/master | 2020-05-07T16:06:35.967819 | 2019-06-26T21:38:45 | 2019-06-26T21:38:45 | 180,667,214 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | hpp | #pragma once
#include <GLFW/glfw3.h>
#include <glm/vec2.hpp>
#include <glm/vec4.hpp>
#include "Display.hpp"
class Mouse
{
public:
Mouse(const Display& display);
static bool cursorWithin(glm::vec4 bounds);
private:
static void cursorPositionCallback(GLFWwindow* window, double xPos, double yPos);
static void mouseButtonCallback(GLFWwindow* window, int button, int action, int mods);
private:
static glm::vec2 m_position;
};
| [
"jshuam0@gmail.com"
] | jshuam0@gmail.com |
a9d204b3ef2fe70aa079169c9f3bd2f29c9da720 | bbb792688508d65204f0a48e2826752f9047216d | /src/user.cpp | 637c261d0d70e7865217914e048cb1b0e3aaf60e | [] | no_license | s-stasi/SfmlAPI | 08e2204c598b2ec10c30db7a9a9204766f5b591b | c0f0b5515b91877179df8d76084bae0b5369ca54 | refs/heads/master | 2023-01-21T12:58:05.349477 | 2020-12-01T08:38:57 | 2020-12-01T08:38:57 | 288,275,871 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 887 | cpp | #include "../include/user.hpp"
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
#include <windows.h>
#include <Lmcons.h>
namespace SfmlAPI {
std::string getSystemUser()
{
TCHAR name[UNLEN];
DWORD size = UNLEN + 1;
GetUserName((TCHAR*)name, &size);
std::string uname = name;
for (size_t i = 0; i < uname.length(); i++)
{
if (uname[i] == '\n' && uname[i + 1] == '\n' && uname[i + 1] <= (int)uname.length())
{
uname.erase(i, 1);
}
}
return std::string(name);
}
}
#elif defined(unix) || (__unix) || (__unix__)
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
std::string getSystemUser()
{
register struct passwd *pw;
register uid_t uid;
int c;
uid = geteuid();
pw = getpwuid(uid);
if (pw)
{
return std::string(pw->pw_name);
}
return std::string("");
}
#else
# error "Unsupported Plattform"
#endif
| [
"samuele.stasi2002@gmail.com"
] | samuele.stasi2002@gmail.com |
22dad9002d73e6a2b01f448a69cbb9ed519c9871 | 0d71a534258dced16ba43be39a8ce5f0b2c69552 | /ofPolylineStudy/src/ofApp.h | 3a56aa5a78531920cb6cbbc2d3bf7a0ba12a6ffe | [] | no_license | kotaonaga/ofStudy | 99dbef9d0b86479193d4b0939eba23e07f6e68bb | da89b6fded8c4d95130d5b5d93ad26e0f6521003 | refs/heads/master | 2022-11-06T04:23:30.746545 | 2020-06-23T15:46:49 | 2020-06-23T15:46:49 | 265,125,995 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 831 | h | #pragma once
#include "ofMain.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
vector<ofPolyline> trail;
float x;
float prevX;
vector<float> y;
float preSpeed;
float radius, initTime, t;
float theta;
ofColor pink = ofColor(223, 146, 188);
ofColor* pinkPtr;
ofColor bay = ofColor(171, 217, 203);
ofColor* bayPtr;
};
| [
"kohtaonaga@gmail.com"
] | kohtaonaga@gmail.com |
1dfd2248adb321c934bfe6de7ff79e1772952354 | 90f0920619a9b59d2fca8c8dfca1bf2c43d151fb | /future.hpp | e7fee95ab3b3a482e4e11eefc739ce60d9eb94b1 | [] | no_license | delgor/Core | 04ba8f1b439d13f789171d1c32e98ea5e594ab5e | b78ee3bc9cdb45a0cf5914daf44c701c3ac9bb1a | refs/heads/master | 2021-01-21T15:43:07.089745 | 2014-05-25T13:55:03 | 2014-05-25T14:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,071 | hpp | /* Copyright (c) 2014, The Nuria Project
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source
* distribution.
*/
#ifndef NURIA_FUTURE_HPP
#define NURIA_FUTURE_HPP
#include "essentials.hpp"
#include <QVariant>
namespace Nuria {
class GenericFutureWatcher;
class FuturePrivate;
template< typename T > class Future;
/** \internal */
class NURIA_CORE_EXPORT FutureBase {
public:
FutureBase (const FutureBase &other);
FutureBase (FuturePrivate *dptr);
~FutureBase ();
/** Assignment operator for Future<>. */
FutureBase &operator= (const FutureBase &other);
/** Comparison operator. */
bool operator== (const FutureBase &other) const;
/** Returns \c true when the task has been finished. */
bool isFinished () const;
/** Returns the expected type id of the result. */
int type () const;
/** Waits for the task to finish. */
void waitForFinished () const;
private:
template< typename T > friend class Future;
friend class GenericFutureWatcher;
FutureBase (int type);
const QVariant &variant () const;
void setVariant (const QVariant &v);
void registerWatcher (GenericFutureWatcher *watcher);
void unregisterWatcher (GenericFutureWatcher *watcher);
FuturePrivate *d;
};
template< >
class Future< QVariant > : public FutureBase {
public:
Future () : FutureBase (QMetaType::QVariant) {}
Future (const QVariant &result) : FutureBase (QMetaType::QVariant)
{ setVariant (result); }
template< typename T >
Future (const Future< T > &other) : FutureBase (other.d) {}
Future (FuturePrivate *d) : FutureBase (d) {}
/**
* Returns the result of the task.
* If the task is not yet completed, the method will lock.
*/
inline QVariant value () const
{ return variant (); }
/** Same as value(). */
inline operator QVariant () const
{ return variant (); }
/**
* Used by the callee to set a value. Setting a value will mark the
* task as being complete.
*/
inline void setValue (const QVariant &val)
{ setVariant (val); }
/** Assignment operator. */
inline Future< QVariant > &operator= (const QVariant &rhs)
{ setVariant (rhs); return *this; }
/** Returns this. */
Future< QVariant > toGeneric () const
{ return *this; }
};
template< >
class Future< void > : public FutureBase {
public:
Future () : FutureBase (0) {}
Future (bool finished) : FutureBase (0)
{ if (finished) { setVariant (true); } }
/** Returns a Future<QVariant> instance. */
Future< QVariant > toGeneric () const
{ return Future< QVariant > (*this); }
};
/**
* \brief The Future class provides a QFuture-esque interface for tasks which
* may take some time to complete.
*
* The purpose of this class is to have an easy-to-use interface for actions
* which may take some time to complete. These tasks may reside in a different
* thread or may take action on a remote computer. It is ment to enhance APIs
* which rely heavily on asynchronous tasks to make them easier to use. Instead
* of having a lot of signals, this class would allow the callee to directly
* communicate with the caller.
*
* This class also has a specialization for \a void and \a QVariant.
*
* This class is thread-safe.
*/
template< typename T >
class Future : public FutureBase {
public:
Future () : FutureBase (qMetaTypeId< T > ()) {}
/**
* Constructs a Future instance which is already finished.
*/
Future (const T &result) : FutureBase ()
{ setVariant (QVariant::fromValue (result)); }
/**
* Returns the result of the task.
* If the task is not yet completed, the method will lock.
*/
inline T value () const
{ return qvariant_cast< T > (variant ()); }
/** Same as value(). */
inline operator T () const
{ return qvariant_cast< T > (variant ()); }
/**
* Used by the callee to set a value. Setting a value will mark the
* task as being complete.
*/
inline void setValue (const T &val)
{ setVariant (QVariant::fromValue (val)); }
/** Assignment operator. */
inline Future< T > &operator= (const T &rhs)
{ setVariant (QVariant::fromValue (rhs)); return *this; }
/**
* Returns a generic future.
*/
Future< QVariant > toGeneric () const
{ return Future< QVariant > (*this); }
};
}
Q_DECLARE_METATYPE(Nuria::Future< QVariant >)
#endif // NURIA_FUTURE_HPP
| [
"stefan.merettig@nuriaproject.org"
] | stefan.merettig@nuriaproject.org |
dcc9a10cd9c9dd3fc86726416bafc40141f3b8d0 | 7df3082cf65e016c7fbeafe5aaaac9a3e5e78413 | /Software-design-and-development/HW3_Cyclic decimal_92_95/HW3.cpp | 35c1276fbfa426fd175f91db5166b872839ba3ff | [] | no_license | ppguo/Software-design-and-development | 194ba0fa6d2f25fe4e9cc3e82b771740560f4b46 | c5b55c7b5b97a78062448e8800b5b6cb6c75deda | refs/heads/main | 2023-04-01T00:14:50.426654 | 2021-04-08T13:08:39 | 2021-04-08T13:08:39 | 344,127,090 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,296 | cpp | #include <iostream>
#include <vector>
using namespace std;
void calculate_and_print_Decimal(int n, int d) {
vector<int> r;/*记录余数*/
vector<int> decimal_part;/*记录小数部分*/
int k = -1;/*k用于指示相同的余数第一次出现的坐标*/
//一直循环,直到余数为0,或出现重复的余数
while (n && k<0) {
r.push_back(n);
decimal_part.push_back(n * 10 / d);
n = n * 10 % d;
if (n) {
for (int i = 0; i < r.size(); i++) {
if (r[i] == n) {
k = i;
break;
}
}
}
}
//余数为0,打印已有小数
if (!n) {
for (auto i : decimal_part) {
cout << i;
}
cout << "\n";
}
//否则输出循环节
else {
for (int i = 0; i < k; i++)
cout << decimal_part[i];
cout << '(';
for (int i = k; i < decimal_part.size(); i++)
cout << decimal_part[i];
cout << ")\n";
}
}
int main() {
cout << "Please input n and d \n" ;
cout << "input 0 to finish \n";
while (true) {
int n, d, r;
int Int_part;
cin >> n;
if (!n)
break;
cin >> d;
Int_part = n / d;
r = n % d;
cout << Int_part;
//如果余数不为0,则计算小数部分
if (r) {
cout << '.';
calculate_and_print_Decimal(r, d);
}
else cout << "/n";
}
return 0;
} | [
"noreply@github.com"
] | ppguo.noreply@github.com |
eb822a73dba9ef70e9420083969cdb2b2a8c08de | b2ff198ae01c51bbcb081be2176b99a060ef383f | /algorithm/convert-bst-to-greater-tree.cpp | 8e30c69cf7aec18f27e675429417b67eaa3ba038 | [] | no_license | ericwannn/leetcode-solutions | 40ddd52d90b11eb35a068c2c4d18eb8509dd9415 | 7200fc8e510b28f091cdd971f90d0f59ccfc1605 | refs/heads/master | 2021-08-15T20:39:45.610496 | 2018-09-18T06:11:57 | 2018-09-18T06:11:57 | 131,783,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | /*https://leetcode.com/problems/convert-bst-to-greater-tree/description/
* Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST.
*
*
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
private:
int sum = 0;
public:
TreeNode* convertBST(TreeNode* root)
{
if(root)
{
root->right = convertBST(root->right);
root->val += sum;
sum = root->val;
root->left = convertBST(root->left);
}
return root;
}
};
| [
"ericwannn@foxmail.com"
] | ericwannn@foxmail.com |
5dbef3c7a577d73f352ddfc7d3ee0d6dde03acbd | bd5177319836c8d56fef474f35d915ecbaf1eadd | /QT_interface/mainwindow.cpp | 9f0d872d24c6e3da84c81f6b35612e54aebf8869 | [] | no_license | onorinbejasus/Combustion_Code | 5564cfd931a41e86529f3e139ba5894b61864016 | 7d95af4d30f4ccaf56723e91ae0fed0490aba32c | refs/heads/master | 2021-01-13T02:24:27.538872 | 2013-09-03T16:12:23 | 2013-09-03T16:12:23 | 9,334,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | cpp | #include "mainwindow.hh"
#include "ui_mainwindow.h"
#include "FatalError.hh"
#include "Streamline.hh"
#include "AllocArray.hh"
#include "VectorFieldRenderer.hh"
#include "Parameters.hh"
#include "VolumeRenderer.hh"
#include "VolumeRenderer.hh"
#include "Parameters.hh"
#include "Vector.hh"
#include "point.hh"
#include "open_gl.hh"
#include "enums.hh"
#include "glwidget.h"
extern Streamline streamlines ; //streamlines object.
extern VolumeRenderer volRenderer ; //volume renderer
extern VectorFieldRenderer vectorField ; //vector field renderer
extern InteractionMode CurrIM;
extern bool magnifying;
float value = 0;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::Change(){
if(ui->radioButton->isChecked()){
CurrIM = SelectMode;
}else{
CurrIM =ExploreMode;
}
}
void MainWindow::Zoom(){
volRenderer.ChangeProjectorLocation((value - ui->horizontalSlider->value())*10) ;
volRenderer.SetProjectionResolution(true, true) ;
value = ui->horizontalSlider->value();
ui->widget_2->paintGL();
}
void MainWindow::Modes(){
if(ui->checkBox->checkState() == Qt::Checked){ // glyphs
vectorField.bVisible = true;
}
if(ui->checkBox_2->checkState() == Qt::Checked){ // volume
}
if(ui->checkBox_3->checkState() == Qt::Checked){
streamlines.bVisible = true;
}
if(ui->checkBox_4->checkState() == Qt::Checked){
magnifying = true;
}
if(ui->checkBox->checkState() != Qt::Checked){
vectorField.bVisible = false;
}
if(ui->checkBox_3->checkState() != Qt::Checked){
streamlines.bVisible = false;
}
if(ui->checkBox_4->checkState() != Qt::Checked){
magnifying = false;
}
ui->widget_2->paintGL();
}
| [
"tbl8@pitt.edu"
] | tbl8@pitt.edu |
e9962bb5461fac3d84675ea85df9771a697e9ae1 | f2cfa4ea8d0ec66eb722fba47b13181ac003f228 | /GameServer/Npc.cpp | 2f82f3ae9ea412908b50fa8ab3cda7a03a8e31f7 | [] | no_license | Mortgy/KODevelopers-1534 | a2b0cbfbd706245b8f486568d9f2ff65385c05a2 | cd3c07dd310baee59702c78ca165c177464ec161 | refs/heads/master | 2021-05-22T18:30:24.818341 | 2017-12-09T05:58:19 | 2017-12-09T05:58:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,905 | cpp | #include "stdafx.h"
#include "Map.h"
#include "MagicInstance.h"
#include "../shared/DateTime.h"
using namespace std;
CNpc::CNpc() : Unit(UnitNPC)
{
Initialize();
}
CNpc::~CNpc()
{
}
/**
* @brief Initializes this object.
*/
void CNpc::Initialize()
{
Unit::Initialize();
m_sSid = 0;
m_sPid = 0; // MONSTER(NPC) Picture ID
m_sSize = 100; // MONSTER(NPC) Size
m_strName.clear(); // MONSTER(NPC) Name
m_iMaxHP = 0; // �ִ� HP
m_iHP = 0; // ���� HP
m_byState = 0; // ������ (NPC) �����̻�
m_tNpcType = 0; // NPC Type
// 0 : Normal Monster
// 1 : NPC
// 2 : �� �Ա�,�ⱸ NPC
// 3 : ������
m_iSellingGroup = 0;
//m_dwStepDelay = 0;
m_byDirection = 0; // npc�� ����,,
m_iWeapon_1 = 0;
m_iWeapon_2 = 0;
m_NpcState = NPC_LIVE;
m_byGateOpen = true;
m_byObjectType = NORMAL_OBJECT;
m_byTrapNumber = 0;
m_oSocketID = -1;
m_bEventRoom = 0;
}
/**
* @brief Adds the NPC to the region.
*
* @param new_region_x The new region x coordinate.
* @param new_region_z The new region z coordinate.
*/
void CNpc::AddToRegion(int16 new_region_x, int16 new_region_z)
{
GetRegion()->Remove(this);
SetRegion(new_region_x, new_region_z);
GetRegion()->Add(this);
}
/**
* @brief Sends the movement packet for the NPC.
*
* @param fPosX The position x coordinate.
* @param fPosY The position y coordinate.
* @param fPosZ The position z coordinate.
* @param fSpeed The speed.
*/
void CNpc::MoveResult(float fPosX, float fPosY, float fPosZ, float fSpeed)
{
Packet result(WIZ_NPC_MOVE);
SetPosition(fPosX, fPosY, fPosZ);
RegisterRegion();
result << GetID() << GetSPosX() << GetSPosZ() << GetSPosY() << uint16(1);
SendToRegion(&result);
}
/**
* @brief Constructs an in/out packet for the NPC.
*
* @param result The packet buffer the constructed packet will be stored in.
* @param bType The type (in or out).
*/
void CNpc::GetInOut(Packet & result, uint8 bType)
{
result.Initialize(WIZ_NPC_INOUT);
result << bType << GetID();
if (bType != INOUT_OUT)
GetNpcInfo(result);
if (bType == INOUT_IN)
OnRespawn();
}
/**
* @brief Constructs and sends an in/out packet for the NPC.
*
* @param bType The type (in or out).
* @param fX The x coordinate.
* @param fZ The z coordinate.
* @param fY The y coordinate.
*/
void CNpc::SendInOut(uint8 bType, float fX, float fZ, float fY)
{
if (GetRegion() == nullptr)
{
SetRegion(GetNewRegionX(), GetNewRegionZ());
if (GetRegion() == nullptr)
return;
}
if (bType == INOUT_OUT)
{
GetRegion()->Remove(this);
}
else
{
GetRegion()->Add(this);
SetPosition(fX, fY, fZ);
}
Packet result;
GetInOut(result, bType);
SendToRegion(&result);
}
/**
* @brief Gets NPC information for use in various NPC packets.
*
* @param pkt The packet the information will be stored in.
*/
void CNpc::GetNpcInfo(Packet & pkt)
{
pkt.SByte();
pkt << GetProtoID()
<< m_sPid
<< GetType()
<< m_iSellingGroup
<< m_sSize
<< m_iWeapon_1 << m_iWeapon_2
<< GetName()
<< uint8(isMonster() ? 0 : GetNation())
<< GetLevel()
<< GetSPosX() << GetSPosZ() << GetSPosY()
<< uint32(isGateOpen())
<< m_byObjectType
<< uint16(0) << uint16(0) // unknown
<< int8(m_byDirection);
}
/**
* @brief Sends a gate status.
*
* @param ObjectType object type
* @param bFlag The flag (open or shut).
* @param bSendAI true to update the AI server.
*/
void CNpc::SendGateFlag(uint8 bFlag /*= -1*/, bool bSendAI /*= true*/)
{
uint8 objectType = OBJECT_FLAG_LEVER;
if(isDead())
return;
_OBJECT_EVENT * pObjectEvent = GetMap()->GetObjectEvent(GetProtoID());
if (pObjectEvent)
objectType = (uint8)pObjectEvent->sType;
Packet result(WIZ_OBJECT_EVENT, objectType);
// If there's a flag to set, set it now.
if (bFlag >= 0)
m_byGateOpen = (bFlag == 1);
// Tell everyone nearby our new status.
result << uint8(1) << GetID() << m_byGateOpen;
SendToRegion(&result);
// Tell the AI server our new status
if (bSendAI)
{
result.Initialize(AG_NPC_GATE_OPEN);
result << GetID() << GetProtoID() << m_byGateOpen;
Send_AIServer(&result);
}
}
/**
* @brief Changes an NPC's hitpoints.
*
* @param amount The amount to adjust the HP by.
* @param pAttacker The attacker.
* @param bSendToAI true to update the AI server.
*/
void CNpc::HpChange(int amount, Unit *pAttacker /*= nullptr*/, bool bSendToAI /*= true*/)
{
uint16 tid = (pAttacker != nullptr ? pAttacker->GetID() : -1);
// Implement damage/HP cap.
if (amount < -MAX_DAMAGE)
amount = -MAX_DAMAGE;
else if (amount > MAX_DAMAGE)
amount = MAX_DAMAGE;
// Glorious copypasta.
if (amount < 0 && -amount > m_iHP)
m_iHP = 0;
else if (amount >= 0 && m_iHP + amount > m_iMaxHP)
m_iHP = m_iMaxHP;
else
m_iHP += amount;
// NOTE: This will handle the death notification/looting.
if (bSendToAI)
SendHpChangeToAI(tid, amount);
if (pAttacker != nullptr
&& pAttacker->isPlayer())
TO_USER(pAttacker)->SendTargetHP(0, GetID(), amount);
}
void CNpc::HpChangeMagic(int amount, Unit *pAttacker /*= nullptr*/, AttributeType attributeType /*= AttributeNone*/)
{
uint16 tid = (pAttacker != nullptr ? pAttacker->GetID() : -1);
// Implement damage/HP cap.
if (amount < -MAX_DAMAGE)
amount = -MAX_DAMAGE;
else if (amount > MAX_DAMAGE)
amount = MAX_DAMAGE;
HpChange(amount, pAttacker, false);
SendHpChangeToAI(tid, amount, attributeType);
}
void CNpc::SendHpChangeToAI(uint16 sTargetID, int amount, AttributeType attributeType /*= AttributeNone*/)
{
Packet result(AG_NPC_HP_CHANGE);
result << GetID() << sTargetID << m_iHP << amount << uint8(attributeType);
Send_AIServer(&result);
}
/**
* @brief Changes an NPC's mana.
*
* @param amount The amount to adjust the mana by.
*/
void CNpc::MSpChange(int amount)
{
#if 0 // TODO: Implement this
// Glorious copypasta.
// TODO: Make this behave unsigned.
m_iMP += amount;
if (m_iMP < 0)
m_iMP = 0;
else if (m_iMP > m_iMaxMP)
m_iMP = m_iMaxMP;
Packet result(AG_USER_SET_MP);
result << GetID() << m_iMP;
Send_AIServer(&result);
#endif
}
bool CNpc::CastSkill(Unit * pTarget, uint32 nSkillID)
{
if (pTarget == nullptr)
return false;
MagicInstance instance;
instance.bSendFail = false;
instance.nSkillID = nSkillID;
instance.sCasterID = GetID();
instance.sTargetID = pTarget->GetID();
instance.Run();
return (instance.bSkillSuccessful);
}
float CNpc::GetRewardModifier(uint8 byLevel)
{
int iLevelDifference = GetLevel() - byLevel;
if (iLevelDifference <= -14)
return 0.2f;
else if (iLevelDifference <= -8 && iLevelDifference >= -13)
return 0.5f;
else if (iLevelDifference <= -2 && iLevelDifference >= -7)
return 0.8f;
return 1.0f;
}
float CNpc::GetPartyRewardModifier(uint32 nPartyLevel, uint32 nPartyMembers)
{
int iLevelDifference = GetLevel() - (nPartyLevel / nPartyMembers);
if (iLevelDifference >= 8)
return 1.3f;// was 2.0f edited byBrate
else if (iLevelDifference >= 5)
return 1.2f;// was 1.5f edited byBrate
else if (iLevelDifference >= 2)
return 1.1f;// was 1.2f edited byBrate
return 1.0f;
}
/**
* @brief Executes the death action.
*
* @param pKiller The killer.
*/
void CNpc::OnDeath(Unit *pKiller)
{
if (m_NpcState == NPC_DEAD)
return;
ASSERT(GetMap() != nullptr);
ASSERT(GetRegion() != nullptr);
m_NpcState = NPC_DEAD;
m_sACPercent = 100;
if (m_byObjectType == SPECIAL_OBJECT)
{
_OBJECT_EVENT *pEvent = GetMap()->GetObjectEvent(GetProtoID());
if (pEvent != nullptr)
pEvent->byLife = 0;
}
Unit::OnDeath(pKiller);
OnDeathProcess(pKiller);
GetRegion()->Remove(TO_NPC(this));
SetRegion();
}
/**
* @brief Executes the death process.
*
* @param pKiller The killer.
*/
void CNpc::OnDeathProcess(Unit *pKiller)
{
if (TO_NPC(this) == nullptr && !pKiller->isPlayer())
return;
CUser * pUser = TO_USER(pKiller);
if (pUser == nullptr || !pUser->isInGame() )
return;
if (!m_bMonster)
{
switch (m_tNpcType)
{
case NPC_BIFROST_MONUMENT:
pUser->BifrostProcess(pUser);
break;
case NPC_PVP_MONUMENT:
PVPMonumentProcess(pUser);
break;
case NPC_BDW_MONUMENT:
pUser->BorderDefanceWarProcess(pUser);
case NPC_BATTLE_MONUMENT:
BattleMonumentProcess(pUser);
break;
case NPC_HUMAN_MONUMENT:
NationMonumentProcess(pUser);
break;
case NPC_KARUS_MONUMENT:
NationMonumentProcess(pUser);
break;
case NPC_DESTROYED_ARTIFACT:
pUser->CastleSiegeWarProcess(pUser);
break;
}
}
else if (m_bMonster)
{
if (GetProtoID() == 700 || GetProtoID() == 750 || GetProtoID() == 701 || GetProtoID() == 751)
{
if (pUser->CheckExistEvent(STARTER_SEED_QUEST, 1))
{
_QUEST_HELPER * pQuestHelper ;
if (pUser->GetNation() == ELMORAD)
pQuestHelper = g_pMain->m_QuestHelperArray.GetData(5005);
else
pQuestHelper = g_pMain->m_QuestHelperArray.GetData(5002);
pUser->QuestV2RunEvent(pQuestHelper,pQuestHelper->nEventTriggerIndex);
//pUser->GiveItem(707011641,1);//Dark-armor
//pUser->GiveItem(707013618,1);//Dark-helmet
}
}
else if (g_pMain->m_MonsterRespawnListArray.GetData(GetProtoID()) != nullptr)
{
if (pUser->isInPKZone() || GetZoneID() == ZONE_JURAD_MOUNTAIN)
g_pMain->SpawnEventNpc(g_pMain->m_MonsterRespawnListArray.GetData(GetProtoID())->sSid, true, GetZoneID(), GetX(), GetY(), GetZ(), g_pMain->m_MonsterRespawnListArray.GetData(GetProtoID())->sCount);
}
else if (m_tNpcType == NPC_CHAOS_STONE && pUser->isInPKZone())
{
ChaosStoneProcess(pUser,5);
}
else if(m_tNpcType == NPC_BDW_MONUMENT && pUser->GetZoneID() == ZONE_BORDER_DEFENSE_WAR)
{
pUser->BorderDefanceWarProcess(pUser);
}
if (g_pMain->m_bForgettenTempleIsActive && GetZoneID() == ZONE_FORGOTTEN_TEMPLE)
g_pMain->m_ForgettenTempleMonsterList.erase(m_sNid);
if (pUser->isInParty())
{
_PARTY_GROUP *pParty = g_pMain->GetPartyPtr(pUser->GetPartyID());
if (pParty != nullptr)
{
for (int i = 0; i < 8; i++)
{
if (pParty->uid[i] >= 0)
{
CUser * pUserRange = g_pMain->GetUserPtr(pParty->uid[i]);
if (!isInRangeSlow(pUserRange, 50.0f) || pUserRange == nullptr)
continue;
CUser * pUserParty = g_pMain->GetUserPtr(pParty->uid[i]);
pUserParty->QuestV2MonsterCountAdd(GetProtoID());
}
}
}
}
else
pUser->QuestV2MonsterCountAdd(GetProtoID());
}
DateTime time;
string pKillerPartyUsers;
if (pUser->isInParty())
{
CUser *pPartyUser;
_PARTY_GROUP *pParty = g_pMain->GetPartyPtr(pUser->GetPartyID());
if (pParty)
{
for (int i = 0; i < MAX_PARTY_USERS; i++)
{
pPartyUser = g_pMain->GetUserPtr(pParty->uid[i]);
if (pPartyUser)
pKillerPartyUsers += string_format("%s,",pPartyUser->GetName().c_str());
}
}
if (!pKillerPartyUsers.empty())
pKillerPartyUsers = pKillerPartyUsers.substr(0,pKillerPartyUsers.length() - 1);
}
if (pKillerPartyUsers.empty())
g_pMain->WriteDeathNpcLogFile(string_format("[ %s - %d:%d:%d ] Killer=%s,SID=%d,Target=%s,Zone=%d,X=%d,Z=%d\n",m_bMonster ? "MONSTER" : "NPC",time.GetHour(),time.GetMinute(),time.GetSecond(),pKiller->GetName().c_str(),GetProtoID(),GetName().c_str(),GetZoneID(),uint16(GetX()),uint16(GetZ())));
else
g_pMain->WriteDeathNpcLogFile(string_format("[ %s - %d:%d:%d ] Killer=%s,KillerParty=%s,SID=%d,Target=%s,Zone=%d,X=%d,Z=%d\n",m_bMonster ? "MONSTER" : "NPC",time.GetHour(),time.GetMinute(),time.GetSecond(),pKiller->GetName().c_str(),pKillerPartyUsers.c_str(),GetProtoID(),GetName().c_str(),GetZoneID(),uint16(GetX()),uint16(GetZ())));
}
/**
* @brief Executes the Npc respawn.
*/
void CNpc::OnRespawn()
{
if (g_pMain->m_byBattleOpen == NATION_BATTLE
&& (GetProtoID() == ELMORAD_MONUMENT_SID
|| GetProtoID() == ASGA_VILLAGE_MONUMENT_SID
|| GetProtoID() == RAIBA_VILLAGE_MONUMENT_SID
|| GetProtoID() == DODO_CAMP_MONUMENT_SID
|| GetProtoID() == LUFERSON_MONUMENT_SID
|| GetProtoID() == LINATE_MONUMENT_SID
|| GetProtoID() == BELLUA_MONUMENT_SID
|| GetProtoID() == LAON_CAMP_MONUMENT_SID))
{
_MONUMENT_INFORMATION * pData = new _MONUMENT_INFORMATION();
pData->sSid = GetProtoID();
pData->sNid = m_sNid;
pData->RepawnedTime = int32(UNIXTIME);
if (GetProtoID() == DODO_CAMP_MONUMENT_SID || GetProtoID() == LAON_CAMP_MONUMENT_SID)
g_pMain->m_bMiddleStatueNation = m_bNation;
if (!g_pMain->m_NationMonumentInformationArray.PutData(pData->sSid, pData))
delete pData;
}
else if (g_pMain->m_bForgettenTempleIsActive && GetZoneID() == ZONE_FORGOTTEN_TEMPLE)
g_pMain->m_ForgettenTempleMonsterList.insert(std::make_pair(m_sNid, GetProtoID()));
}
/**
* @brief Executes the death process.
*
* @param pUser The User.
* @param MonsterCount The Respawn boss count.
*/
void CNpc::ChaosStoneProcess(CUser *pUser, uint16 MonsterCount)
{
if (pUser == nullptr)
return;
Packet resultmer;
g_pMain->SendNotice<COMMAND_CHAT>("[Chaos Stone] opened the Gates of Chaos",GetZoneID(), Nation::ALL);
std::vector<uint32> MonsterSpawned;
std::vector<uint32> MonsterSpawnedFamily;
bool bLoopBack = true;
for (uint8 i = 0; i < MonsterCount;i++)
{
uint32 nMonsterNum = myrand(0, g_pMain->m_MonsterSummonListZoneArray.GetSize());
_MONSTER_SUMMON_LIST_ZONE * pMonsterSummonListZone = g_pMain->m_MonsterSummonListZoneArray.GetData(nMonsterNum);
if (pMonsterSummonListZone != nullptr)
{
if (pMonsterSummonListZone->ZoneID == GetZoneID())
{
if (std::find(MonsterSpawned.begin(),MonsterSpawned.end(),nMonsterNum) == MonsterSpawned.end())
{
if (std::find(MonsterSpawnedFamily.begin(),MonsterSpawnedFamily.end(),pMonsterSummonListZone->byFamily) == MonsterSpawnedFamily.end())
{
g_pMain->SpawnEventNpc(pMonsterSummonListZone->sSid, true,GetZoneID(), GetX(), GetY(), GetZ(), 1, CHAOS_STONE_MONSTER_RESPAWN_RADIUS, CHAOS_STONE_MONSTER_LIVE_TIME);
MonsterSpawned.push_back(nMonsterNum);
MonsterSpawnedFamily.push_back(pMonsterSummonListZone->byFamily);
bLoopBack = false;
}
}
}
}
if (bLoopBack)
i--;
else
bLoopBack = true;
}
}
/*
* @brief Executes the pvp monument process.
*
* @param pUser The User.
*/
void CNpc::PVPMonumentProcess(CUser *pUser)
{
if (pUser == nullptr)
return;
std::string sKillMonuPvP;
std::string sKillMonuEvent;
std::string sMonuNation;
Packet result(WIZ_CHAT, uint8(MONUMENT_NOTICE));
result << uint8(FORCE_CHAT) << pUser->GetNation() << pUser->GetName().c_str();
g_pMain->Send_Zone(&result, GetZoneID(), nullptr, Nation::ALL);
if (pUser->GetNation() == KARUS)
sMonuNation = "Karus";
else
sMonuNation = "Human";
sKillMonuPvP = string_format("%s has destroyed the %s. %s nation get +5 NPs per kill!",pUser->GetName().c_str(),GetName().c_str(),sMonuNation.c_str());
sKillMonuEvent = string_format("%s has destroyed the %s. %s nation get +10 NPs per kill!",pUser->GetName().c_str(),GetName().c_str(),sMonuNation.c_str());
if (GetZoneID() == ZONE_RONARK_LAND)
{
g_pMain->m_nPVPMonumentNation[GetZoneID()] = pUser->GetNation();
g_pMain->SendAnnouncement(sKillMonuPvP.c_str());
}
g_pMain->NpcUpdate(GetProtoID(), m_bMonster, pUser->GetNation(), pUser->GetNation() == KARUS ? MONUMENT_KARUS_SPID : MONUMENT_ELMORAD_SPID);
/*pUser->GiveItem(BLUE_TREASURE_CHEST,1);*/
}
/*
* @brief Executes the battle monument process.
*
* @param pUser The User.
*/
void CNpc::BattleMonumentProcess(CUser *pUser)
{
if (pUser && g_pMain->m_byBattleOpen == NATION_BATTLE)
{
g_pMain->NpcUpdate(GetProtoID(), m_bMonster, pUser->GetNation(), pUser->GetNation() == KARUS ? MONUMENT_KARUS_SPID : MONUMENT_ELMORAD_SPID);
g_pMain->Announcement(DECLARE_BATTLE_MONUMENT_STATUS, Nation::ALL, m_byTrapNumber, pUser);
if (pUser->GetNation() == KARUS)
{
g_pMain->m_sKarusMonumentPoint +=2;
g_pMain->m_sKarusMonuments++;
if (g_pMain->m_sElmoMonuments != 0)
g_pMain->m_sElmoMonuments--;
if (g_pMain->m_sKarusMonuments >= 7){
g_pMain->m_sKarusMonumentPoint +=10;
Packet result(WIZ_MAP_EVENT);
result << uint8(3) << uint8(1) << short(15);
g_pMain->Send_Zone(&result,ZONE_BATTLE4);
}
if (g_pMain->m_sKilledElmoNpc == 3 && g_pMain->m_sKarusMonuments >= 7)
g_pMain->BattleZoneResult(pUser->GetNation());
}
else
{
g_pMain->m_sElmoMonumentPoint += 2;
g_pMain->m_sElmoMonuments++;
if (g_pMain->m_sKarusMonuments != 0)
g_pMain->m_sKarusMonuments--;
if (g_pMain->m_sElmoMonuments >= 7){
g_pMain->m_sElmoMonumentPoint +=10;
Packet result(WIZ_MAP_EVENT);
result << uint8(3) << uint8(2) << short(15);
g_pMain->Send_Zone(&result,ZONE_BATTLE4);
}
if (g_pMain->m_sKilledKarusNpc == 3 && g_pMain->m_sElmoMonuments >= 7)
g_pMain->BattleZoneResult(pUser->GetNation());
}
g_pMain->NereidsMonumentEvent(m_byTrapNumber,pUser->GetNation(),nullptr);
}
}
//void CNpc::BorderDefanceWarProcess(CUser *pUser)
//{
// if (pUser == nullptr)
// return;
//
// if (pUser->GetZoneID() != ZONE_BORDER_DEFENSE_WAR)
// return;
//
// if (pUser->GetEventRoom() < 1)
// return;
//
// if (pUser->GetNation() == ELMORAD){
// g_pMain->pTempleEvent.KarusDeathCount[pUser->GetEventRoom()] += 61;
// }else{
// g_pMain->pTempleEvent.ElmoDeathCount[pUser->GetEventRoom()] += 61;
// }
//
// Packet resultmer;
// std::string bufferpro;
//
// if (GetNation() == 1)
// bufferpro = string_format("[Event Message] Border Defance War finished. Karus nation has won. You will teleport in 20 seconds.",g_pMain->pTempleEvent.ElMoradUserCount,g_pMain->pTempleEvent.KarusUserCount,g_pMain->m_nTempleEventRemainSeconds);
// else
// bufferpro = string_format("[Event Message] Border Defance War finished. Human nation has won. You will teleport in 20 seconds.",g_pMain->pTempleEvent.ElMoradUserCount,g_pMain->pTempleEvent.KarusUserCount,g_pMain->m_nTempleEventRemainSeconds);
// ChatPacket::Construct(&resultmer, 7, &bufferpro);
//
// g_pMain->Send_All(&resultmer,nullptr,Nation::ALL,0,true,GetEventRoom());
//
// g_pMain->TempleEventFinish(pUser->GetEventRoom());
//
//
//}
/*
* @brief Executes the nation monument process.
*
* @param pUser The User.
*/
void CNpc::NationMonumentProcess(CUser *pUser)
{
if (pUser && g_pMain->m_byBattleOpen == NATION_BATTLE)
{
g_pMain->NpcUpdate(GetProtoID(), m_bMonster, pUser->GetNation());
g_pMain->Announcement(DECLARE_NATION_MONUMENT_STATUS, Nation::ALL, GetProtoID(), pUser);
uint16 sSid = 0;
foreach_stlmap (itr, g_pMain->m_NationMonumentInformationArray)
if (itr->second->sSid == (pUser->GetNation() == KARUS ? GetProtoID() + 10000 : GetProtoID() - 10000))
sSid = itr->second->sSid;
if (sSid != 0)
g_pMain->m_NationMonumentInformationArray.DeleteData(sSid);
}
else
{
g_pMain->NpcUpdate(GetProtoID(), m_bMonster, pUser->GetNation());
uint16 sSid = 0;
foreach_stlmap (itr, g_pMain->m_NationMonumentInformationArray)
if (itr->second->sSid == (pUser->GetNation() == KARUS ? GetProtoID() + 10000 : GetProtoID() - 10000))
sSid = itr->second->sSid;
if (sSid != 0)
g_pMain->m_NationMonumentInformationArray.DeleteData(sSid);
}
}
| [
"staticforcepowerdev@gmail.com"
] | staticforcepowerdev@gmail.com |
c3d8baae55541bbfba8ddc3a87a723b2b484c683 | 91a640a9acd31bdcc6e6d4e3da9c018ddfe7e48d | /WhiteBoxTesting/UnitTest2/UnitTest2/Method.h | 90f23ff69433a4172ebc5622c8efc9005c5444a8 | [] | no_license | b-mc-c/Threading-projects | f3ab5f6b5b96494be6cb82f845b393828381b56b | c6517fe71bb04b4c3aa341ade161b83e8df714f6 | refs/heads/master | 2021-01-10T13:21:43.929559 | 2016-04-26T09:17:11 | 2016-04-26T09:17:11 | 50,577,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,301 | h | #pragma warning( disable : 4959 )
#include <math.h>
#define pi 3.14159265358979323846
#define earthRadiusKm 6371.0
class Calculator
{
public:
Calculator(){}
double static deg2rad(double deg) {
return (deg * pi / 180);
}
//// This function converts radians to decimal degrees
double static rad2deg(double rad) {
return (rad * 180 / pi);
}
/**
* Returns the distance between two points on the Earth.
* Direct translation from http://en.wikipedia.org/wiki/Haversine_formula
* @param lat1d Latitude of the first point in degrees
* @param lon1d Longitude of the first point in degrees
* @param lat2d Latitude of the second point in degrees
* @param lon2d Longitude of the second point in degrees
* @return The distance between the two points in kilometers
*/
static double getDistance(double lat1d, double lon1d, double lat2d, double lon2d) {
double lat1r, lon1r, lat2r, lon2r, u, v;
lat1r = deg2rad(lat1d);
lon1r = deg2rad(lon1d);
lat2r = deg2rad(lat2d);
lon2r = deg2rad(lon2d);
u = sin((lat2r - lat1r) / 2);
v = sin((lon2r - lon1r) / 2);
return 2.0 *earthRadiusKm * asin(sqrt(u * u + cos(lat1r) * cos(lat2r) * v * v));
}
static float Increase(float num, float toAdd, float max)
{
num = num + toAdd;
if (num > max)
{
num = max;
}
return num;
}
}; | [
"breen.mac.cana@gmail.com"
] | breen.mac.cana@gmail.com |
e97cdc08d86ff38bfab6f6fcd53741117ff600da | b857ba4267d8bafda5312272f050e966e4e32a25 | /Source/Cross/Common/MoCommon/TLinkOutput.cpp | a8e0fb3f725ec724740537ffbee3337cf10be52f | [] | no_license | favedit/MoCross3d | 8ce6fc7f92e4716dde95b19020347b24f7c2e469 | b5b87bef0baa744625b348d7519509ba6f4e6f1e | refs/heads/master | 2021-01-10T12:12:19.301253 | 2016-04-04T15:06:03 | 2016-04-04T15:06:03 | 54,264,397 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 10,661 | cpp | #include "MoCmStream.h"
MO_NAMESPACE_BEGIN
//============================================================
// <T>构造字节数据流。</T>
//============================================================
TLinkOutput::TLinkOutput(TAny* pOutputData, TInt outputCapacity){
_pMemory = (TByte*)pOutputData;
_capacity = outputCapacity;
_position = 0;
_length = 0;
}
//============================================================
// <T>关联内存。</T>
//============================================================
void TLinkOutput::Link(TAny* pOutputData, TInt outputCapacity){
_pMemory = (TByte*)pOutputData;
_capacity = outputCapacity;
_position = 0;
_length = 0;
}
//============================================================
// <T>获得当前位置。</T>
//
// @return 当前位置
//============================================================
TInt TLinkOutput::Position(){
return _position;
}
//============================================================
// <T>获得长度。</T>
//
// @return 长度
//============================================================
TInt TLinkOutput::Length(){
return _length;
}
//============================================================
// <T>获得容量。</T>
//
// @return 容量
//============================================================
TInt TLinkOutput::Capacity(){
return _capacity;
}
//============================================================
// <T>获得内存指针。</T>
//
// @return 内存指针
//============================================================
TByteC* TLinkOutput::MemoryC(){
return _pMemory;
}
//============================================================
// <T>获得内存指针。</T>
//
// @return 内存指针
//============================================================
TByte* TLinkOutput::Memory(){
return _pMemory;
}
//============================================================
// <T>获得当前位置的内存指针。</T>
//
// @return 内存指针
//============================================================
TByte* TLinkOutput::PositionMemory(){
return (_pMemory + _position);
}
//============================================================
// <T>将流位置移动一段位置。</T>
//
// @param length 长度
//============================================================
void TLinkOutput::Skip(TInt length){
_position += length;
}
//============================================================
// <T>设置数据长度。</T>
//============================================================
TBool TLinkOutput::SetLength(TInt inputLength){
if(inputLength > _capacity){
return EFalse;
}
if(_length < inputLength){
_length = inputLength;
}
return ETrue;
}
//============================================================
// <T>写入数据。</T>
//
// @param pData 数据
// @param length 长度
// @return 写入长度
//============================================================
TInt TLinkOutput::Write(TAnyC* pData, TInt length){
TBool result = SetLength(_position + length);
if(result){
TByte* pMemory = (TByte*)(_pMemory + _position);
MO_LIB_MEMORY_COPY(pMemory, _capacity, pData, length);
_position += length;
return length;
}
return -1;
}
//============================================================
// <T>写入一个布尔值。</T>
//============================================================
void TLinkOutput::WriteBool(TBool value){
TBool result = SetLength(_position + sizeof(TByte));
if(result){
*(TByte*)(_pMemory + _position) = value;
_position += sizeof(TByte);
}
}
//============================================================
// <T>写入一个整数。</T>
//============================================================
void TLinkOutput::WriteInt(TInt value){
TBool result = SetLength(_position + sizeof(TInt));
if(result){
*(TInt*)(_pMemory + _position) = value;
_position += sizeof(TInt);
}
}
//============================================================
// <T>写入一个一字节整数。</T>
//============================================================
void TLinkOutput::WriteInt8(TInt8 value){
TBool result = SetLength(_position + sizeof(TInt8));
if(result){
*(TInt8*)(_pMemory + _position) = value;
_position += sizeof(TInt8);
}
}
//============================================================
// <T>写入一个二字节整数。</T>
//============================================================
void TLinkOutput::WriteInt16(TInt16 value){
TBool result = SetLength(_position + sizeof(TInt16));
if(result){
*(TInt16*)(_pMemory + _position) = value;
_position += sizeof(TInt16);
}
}
//============================================================
// <T>写入一个四字节整数。</T>
//============================================================
void TLinkOutput::WriteInt32(TInt32 value){
TBool result = SetLength(_position + sizeof(TInt32));
if(result){
*(TInt32*)(_pMemory + _position) = value;
_position += sizeof(TInt32);
}
}
//============================================================
// <T>写入一个八字节整数。</T>
//============================================================
void TLinkOutput::WriteInt64(TInt64 value){
TBool result = SetLength(_position + sizeof(TInt64));
if(result){
*(TInt64*)(_pMemory + _position) = value;
_position += sizeof(TInt64);
}
}
//============================================================
// <T>写入一个一字节无符号整数。</T>
//============================================================
void TLinkOutput::WriteUint(TUint value){
TBool result = SetLength(_position + sizeof(TUint));
if(result){
*(TUint*)(_pMemory + _position) = value;
_position += sizeof(TUint);
}
}
//============================================================
// <T>写入一个一字节无符号整数。</T>
//============================================================
void TLinkOutput::WriteUint8(TUint8 value){
TBool result = SetLength(_position + sizeof(TUint8));
if(result){
*(TUint8*)(_pMemory + _position) = value;
_position += sizeof(TUint8);
}
}
//============================================================
// <T>写入一个二字节无符号整数。</T>
//============================================================
void TLinkOutput::WriteUint16(TUint16 value){
TBool result = SetLength(_position + sizeof(TUint16));
if(result){
*(TUint16*)(_pMemory + _position) = value;
_position += sizeof(TUint16);
}
}
//============================================================
// <T>写入一个四字节无符号整数。</T>
//============================================================
void TLinkOutput::WriteUint32(TUint32 value){
TBool result = SetLength(_position + sizeof(TUint32));
if(result){
*(TUint32*)(_pMemory + _position) = value;
_position += sizeof(TUint32);
}
}
//============================================================
// <T>写入一个八字节无符号整数。</T>
//============================================================
void TLinkOutput::WriteUint64(TUint64 value){
TBool result = SetLength(_position + sizeof(TUint64));
if(result){
*(TUint64*)(_pMemory + _position) = value;
_position += sizeof(TUint64);
}
}
//============================================================
// <T>写入一个四字节浮点数。</T>
//============================================================
void TLinkOutput::WriteFloat(TFloat value){
TBool result = SetLength(_position + sizeof(TFloat));
if(result){
*(TFloat*)(_pMemory + _position) = value;
_position += sizeof(TFloat);
}
}
//============================================================
// <T>写入一个八字节浮点数。</T>
//============================================================
void TLinkOutput::WriteDouble(TDouble value){
TBool result = SetLength(_position + sizeof(TDouble));
if(result){
*(TDouble*)(_pMemory + _position) = value;
_position += sizeof(TDouble);
}
}
//============================================================
// <T>写入一个8位字符串。</T>
//============================================================
void TLinkOutput::WriteString8(TChar8C* pValue, TInt length){
if(length < 0){
length = RString8::Length(pValue);
}
TBool result = SetLength(_position + sizeof(TUint16) + length);
if(result){
*(TUint16*)(_pMemory + _position) = length;
_position += sizeof(TUint16);
MO_LIB_MEMORY_COPY(_pMemory + _position, _capacity - _position, pValue, length);
_position += length;
}
}
//============================================================
// <T>写入一个16位字符串。</T>
//============================================================
void TLinkOutput::WriteString16(TChar16C* pValue, TInt length){
if(length < 0){
length = RString16::Length(pValue);
}
TBool result = SetLength(_position + sizeof(TUint16) + length);
if(result){
*(TUint16*)(_pMemory + _position) = length;
_position += sizeof(TUint16);
MO_LIB_MEMORY_COPY(_pMemory + _position, _capacity - _position, pValue, length);
_position += length;
}
}
//============================================================
// <T>写入一个32位字符串。</T>
//============================================================
void TLinkOutput::WriteString32(TChar32C* pValue, TInt length){
if(length < 0){
length = RChar32s::Length(pValue);
}
TBool result = SetLength(_position + sizeof(TUint16) + length);
if(result){
*(TUint16*)(_pMemory + _position) = length;
_position += sizeof(TUint16);
MO_LIB_MEMORY_COPY(_pMemory + _position, _capacity - _position, pValue, length);
_position += length;
}
}
//============================================================
// <T>写入一个字符串。</T>
//============================================================
void TLinkOutput::WriteString(TCharC* pValue, TInt length){
if(length < 0){
length = RString::Length(pValue);
}
TBool result = SetLength(_position + sizeof(TUint16) + length);
if(result){
*(TUint16*)(_pMemory + _position) = length;
_position += sizeof(TUint16);
MO_LIB_MEMORY_COPY(_pMemory + _position, _capacity - _position, pValue, length);
_position += length;
}
}
//============================================================
// <T>重置。</T>
//============================================================
void TLinkOutput::Reset(){
_position = 0;
_length = 0;
}
MO_NAMESPACE_END
| [
"favedit@hotmail.com"
] | favedit@hotmail.com |
150a554c3118b2f8a71c8183fe8ff98e6ca6e878 | e1ed9b621f4932fa2bc566bc6ddb5611b7531395 | /src/alpha/mesdialog/mesdialog/mesdialog.cpp | 3a0eed7e1d6fe8dd0dbccd99157bd0d06cc6e0ae | [] | no_license | Midiman/ikemen | e4ff289afe00dd6b7ec58b3449251ae0d37113cd | b3d0281376ddbb3c56204a6f598ccb22d0e0d081 | refs/heads/master | 2020-06-09T01:29:28.897165 | 2013-01-31T05:37:18 | 2013-01-31T05:37:18 | 33,284,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,427 | cpp |
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"zlib1.lib")
#include <windows.h>
#include <process.h>
#include <stdint.h>
#include <comdef.h>
#include <zlib.h>
static const unsigned char ASCII_FLAG = 0x01; /* bit 0 set: file probably ascii text */
static const unsigned char HEAD_CRC = 0x02; /* bit 1 set: header CRC present */
static const unsigned char EXTRA_FIELD = 0x04; /* bit 2 set: extra field present */
static const unsigned char ORIG_NAME = 0x08; /* bit 3 set: original file name present */
static const unsigned char COMMENT = 0x10; /* bit 4 set: file comment present */
static const unsigned char RESERVED = 0xE0; /* bits 5..7: reserved */
#include "LockSingler.h"
void* (__stdcall *sszrefnewfunc)(intptr_t);
void (__stdcall *sszrefdeletefunc)(void*);
#include "../../../dll/ssz/ssz/sszdef.h"
#include "../../../dll/ssz/ssz/typeid.h"
#include "../../../dll/ssz/ssz/arrayandref.hpp"
#include "../../../dll/ssz/ssz/pluginutil.hpp"
HINSTANCE ghInstance;
LockSingler g_mtx;
std::wstring g_sharedstring;
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
ghInstance = hinstDLL;
g_sharedstring = L'\0';
break;
case DLL_PROCESS_DETACH:
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
}
return TRUE;
}
TUserFunc(bool, YesNo, Reference r)
{
return
MessageBox(
NULL, pu->refToWstr(r).c_str(), L"メッセージ", MB_YESNO) == IDYES;
}
template<typename T> std::wstring XToStr(T x)
{
_variant_t comvar;
comvar = x;
return (LPTSTR)(_bstr_t)comvar;
}
TUserFunc(void, DoubleToStr, double dbl, Reference *r)
{
std::wstring str = XToStr(dbl);
int foo = -1;
for(int i = 0; i < (int)str.size(); i++){
if(str[i] == L',') str[i] = L'.';
if(str[i] == L'.'){
foo = 0;
}else if((str[i] == L'E' || str[i] == L'e') && foo < 0){
foo = i;
}
}
if(foo > 0){
std::wstring tmp;
tmp.append(str.data(), str.data()+foo);
tmp += L".0";
tmp.append(str.data()+foo, str.data()+str.size());
str = tmp;
}
pu->setSSZFunc();
pu->wstrToRef(*r, str);
}
TUserFunc(void, VeryUnsafeCopy, intptr_t size, void *src, void *dst)
{
memcpy(dst, src, size);
}
TUserFunc(bool, GetClipboardStr, Reference *r)
{
pu->setSSZFunc();
HANDLE hText;
wchar_t *pText;
OpenClipboard(NULL);
hText = GetClipboardData(CF_UNICODETEXT);
if(hText == NULL) return false;
pText = (wchar_t*)GlobalLock(hText);
pu->wstrToRef(*r, pText);
GlobalUnlock(hText);
CloseClipboard();
return true;
}
TUserFunc(intptr_t, TazyuuCheck, Reference name)
{
HANDLE hMutex;
SECURITY_ATTRIBUTES securityatt;
securityatt.nLength = sizeof(securityatt);
securityatt.lpSecurityDescriptor = NULL;
securityatt.bInheritHandle = FALSE;
hMutex = CreateMutex(&securityatt, FALSE, pu->refToWstr(name).c_str());
if(GetLastError() == ERROR_ALREADY_EXISTS){
CloseHandle(hMutex);
hMutex = NULL;
}
return (intptr_t)hMutex;
}
TUserFunc(void, CloseTazyuuHandle, intptr_t mutex)
{
ReleaseMutex((HANDLE)mutex);
CloseHandle((HANDLE)mutex);
}
TUserFunc(void, GetInifileString, Reference* pstr, Reference def, Reference key, Reference app, Reference file)
{
pu->setSSZFunc();
wchar_t* pws;
std::wstring tmp1 = pu->refToWstr(file);
pws = _wfullpath(NULL, tmp1.c_str(), 0);
if(pws != NULL){
tmp1 = pws;
free(pws);
}
std::wstring tmp5;
tmp5.resize(256);
GetPrivateProfileString(
pu->refToWstr(app).c_str(), pu->refToWstr(key).c_str(),
pu->refToWstr(def).c_str(),
(wchar_t*)tmp5.data(), tmp5.size(), tmp1.c_str());
pu->wstrToRef(*pstr, tmp5.c_str());
}
TUserFunc(int32_t, GetInifileInt, int32_t def, Reference key, Reference app, Reference file)
{
wchar_t* pws;
std::wstring tmp1 = pu->refToWstr(file);
pws = _wfullpath(NULL, tmp1.c_str(), 0);
if(pws != NULL){
tmp1 = pws;
free(pws);
}
return
GetPrivateProfileInt(
pu->refToWstr(app).c_str(), pu->refToWstr(key).c_str(),
def, tmp1.c_str());
}
TUserFunc(bool, WriteInifileString, Reference str, Reference key, Reference app, Reference file)
{
wchar_t* pws;
std::wstring tmp1 = pu->refToWstr(file);
pws = _wfullpath(NULL, tmp1.c_str(), 0);
if(pws != NULL){
tmp1 = pws;
free(pws);
}
return
WritePrivateProfileString(
pu->refToWstr(app).c_str(), pu->refToWstr(key).c_str(),
pu->refToWstr(str).c_str(), tmp1.c_str()) != 0;
}
int HeadCheck(const char *const buf, intptr_t len)
{
int i = 0;
if(len < 10 || buf[i++] != '\x1f' || buf[i++] != '\x8b'){
return -1;
}
int method = buf[i++];
int flags = buf[i++];
if(method != Z_DEFLATED || (flags & RESERVED) != 0){
return -1;
}
i += 6;
if(flags & EXTRA_FIELD){
int len = (unsigned char)buf[i++];
len += ((int)(unsigned char)buf[i++] << 8);
i += len;
}
if(flags & ORIG_NAME){
while(i < len) if(buf[i++] == 0) break;
}
if(flags & COMMENT){
while(i < len) if(buf[i++] == 0) break;
}
if(flags & HEAD_CRC){
i += 2;
}
if(i > len) return -1;
return i;
}
TUserFunc(bool, UnCompress, Reference src, Reference *dst)
{
pu->setSSZFunc();
z_stream z;
intptr_t hsize;
char outbuf[4096];
int status;
std::string mainbuf;
if(src.len() == 0) return false;
if((hsize = HeadCheck((char*)src.atpos(), src.len())) < 0) hsize = 0;
z.zalloc = Z_NULL;
z.zfree = Z_NULL;
z.opaque = Z_NULL;
z.next_in = Z_NULL;
z.avail_in = 0;
if(hsize > 0){
if(inflateInit2(&z, -MAX_WBITS) != Z_OK) return false;
}else{
if(inflateInit(&z) != Z_OK) return false;
}
z.next_in = (BYTE *)src.atpos()+hsize;
z.avail_in = (uInt)(src.len()-hsize);
z.next_out = (BYTE *)outbuf;
z.avail_out = (uInt)sizeof(outbuf);
do{
if(z.avail_out == 0){
mainbuf.append(outbuf, sizeof(outbuf));
z.next_out = (Bytef*)outbuf;
z.avail_out = sizeof(outbuf);
}
status = inflate(&z, Z_NO_FLUSH);
}while(status == Z_OK);
if(status != Z_STREAM_END){
inflateEnd(&z);
return false;
}
mainbuf.append(outbuf, sizeof(outbuf) - z.avail_out);
inflateEnd(&z);
dst->releaseanddelete();
dst->refnew(mainbuf.size(), sizeof(int8_t));
if(dst->len() > 0) memcpy(dst->atpos(), mainbuf.data(), mainbuf.size());
return true;
}
TUserFunc(void, UbytesToStr, Reference src, Reference *dst, UINT cp)
{
pu->setSSZFunc();
dst->releaseanddelete();
if(src.len() == 0) return;
dst->refnew(MultiByteToWideChar(cp, 0, (LPCSTR)src.atpos(), (int)src.len(), NULL, 0), sizeof(wchar_t));
if(dst->len() > 0) MultiByteToWideChar(cp, 0, (LPCSTR)src.atpos(), (int)src.len(), (wchar_t*)dst->atpos(), (int)dst->len()/sizeof(wchar_t));
}
TUserFunc(void, StrToUbytes, Reference src, Reference *dst, UINT cp)
{
pu->setSSZFunc();
dst->releaseanddelete();
if(src.len() == 0) return;
dst->refnew(WideCharToMultiByte(cp, 0, (wchar_t*)src.atpos(), (int)src.len()/sizeof(wchar_t), NULL, 0, NULL, NULL), sizeof(uint8_t));
if(dst->len() > 0) WideCharToMultiByte(cp, 0, (wchar_t*)src.atpos(), (int)src.len()/sizeof(wchar_t), (LPSTR)dst->atpos(), (int)dst->len(), NULL, NULL);
}
TUserFunc(void, AsciiToLocal, Reference src, Reference *dst)
{
pu->setSSZFunc();
dst->releaseanddelete();
if(src.len() == 0) return;
std::string tmp;
intptr_t i, l = src.len()/sizeof(wchar_t);
for(i = 0; i < l; i++) tmp += (char)((wchar_t*)src.atpos())[i];
dst->refnew(MultiByteToWideChar(CP_THREAD_ACP, 0, tmp.data(), tmp.size(), NULL, 0), sizeof(wchar_t));
if(dst->len() > 0) MultiByteToWideChar(CP_THREAD_ACP, 0, tmp.data(), tmp.size(), (wchar_t*)dst->atpos(), (int)dst->len()/sizeof(wchar_t));
}
TUserFunc(void, SetSharedString, Reference str)
{
AutoLocker al(&g_mtx);
g_sharedstring = pu->refToWstr(str);
}
TUserFunc(void, GetSharedString, Reference *str)
{
pu->setSSZFunc();
AutoLocker al(&g_mtx);
pu->wstrToRef(*str, g_sharedstring.c_str());
}
#include "mydll.h"
// Data Structures
typedef struct tagXFERBUFFER2
{
wchar_t* lpszTitle;
LPTSTR* lpszBuffer;
int* length;
}XFERBUFFER2;
//Prototyping
BOOL WINAPI InputBoxDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
int WINAPI WEP(int nShutDownFlag);
/*******************************************/
/* THE FOLLOWING FUNCTION (WEP) IS */
/* NEEDED FOR EVERY .DLL */
/*******************************************/
int WINAPI WEP(int nShutDownFlag)
{
return 1;
}
/*******************************************/
/* THE FOLLOWING FUNCTION (MyInputBox) IS*/
/* WHAT THE FOXPRO .PRG CALLS*/
/*******************************************/
/*******************************************/
INT_PTR WINAPI MyInputBox(HWND hWndParent, const wchar_t* lpszTitle, LPTSTR *Buffer, int *Length)
{
DLGPROC lpfnInputBoxDlgProc;
XFERBUFFER2 XferBuffer;
INT_PTR Result;
XferBuffer.lpszTitle = (wchar_t*)lpszTitle;
XferBuffer.lpszBuffer = Buffer;
XferBuffer.length = Length;
lpfnInputBoxDlgProc = (DLGPROC)MakeProcInstance((FARPROC)InputBoxDlgProc,
ghInstance);
Result=DialogBoxParam(ghInstance,L"INPUTDIALOG",
hWndParent,lpfnInputBoxDlgProc,(LPARAM)&XferBuffer);
FreeProcInstance((FARPROC)lpfnInputBoxDlgProc);
return Result;
}
/*******************************************/
BOOL WINAPI InputBoxDlgProc(HWND hDlg, UINT message,WPARAM wParam, LPARAM lParam)
{
static XFERBUFFER2 *XferBuffer;
switch(message)
{
case WM_INITDIALOG :
{
XferBuffer = (XFERBUFFER2*)lParam;
SetWindowText(hDlg, XferBuffer->lpszTitle);
return TRUE;
}
case WM_COMMAND :
{
switch(wParam)
{
case IDOK :
{
int NumChars;
*XferBuffer->length = GetWindowTextLength(GetDlgItem(hDlg,IDD_EDIT));
*XferBuffer->lpszBuffer = new wchar_t[*XferBuffer->length + 1];
NumChars=GetDlgItemText(hDlg,IDD_EDIT,
*XferBuffer->lpszBuffer,
*XferBuffer->length + 1);
EndDialog(hDlg,NumChars);
break;
}
case IDCANCEL :
{
EndDialog(hDlg, 0);
break;
}
}
}
}
return FALSE;
}
TUserFunc(void, InputStr, Reference *pr, Reference title)
{
pu->setSSZFunc();
wchar_t* str;
int len;
len = -1;
str = NULL;
MyInputBox(NULL, pu->refToWstr(title).c_str(), &str, &len);
if(len >= 0){
pu->wstrToRef(*pr, str);
}else{
pr->releaseanddelete();
}
}
| [
"SUEHIRO1000@gmail.com@34fca844-09ac-11df-9859-c12d74d802c5"
] | SUEHIRO1000@gmail.com@34fca844-09ac-11df-9859-c12d74d802c5 |
dc8c895324bbc9b5a8cc0f79cb41e2e201ffc9b1 | 5495e5e423dbfadb8a23eb2621b79e71970e84c1 | /soundclass.cpp | c2f7efdad94c53b08fb1d538a0ad96d1b80a8a72 | [] | no_license | ChardAllen/GameTake2 | 0ea9555ecb8ac3e64c63a7befe605109544124b0 | 1cb4eefd23f4b7550f1b9bf48aa75a6a63a833f7 | refs/heads/master | 2021-01-10T19:58:36.211644 | 2015-04-16T00:20:54 | 2015-04-16T00:20:54 | 34,256,284 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,040 | cpp | ///////////////////////////////////////////////////////////////////////////////
// Filename: soundclass.cpp
///////////////////////////////////////////////////////////////////////////////
#include "soundclass.h"
SoundClass::SoundClass()
{
m_DirectSound = 0;
m_primaryBuffer = 0;
m_secondaryBuffer1 = 0;
}
SoundClass::SoundClass(const SoundClass& other)
{
}
SoundClass::~SoundClass()
{
}
bool SoundClass::Initialize(HWND hwnd)
{
bool result;
// Initialize direct sound and the primary sound buffer.
result = InitializeDirectSound(hwnd);
if(!result)
{
return false;
}
// Load a wave audio file onto a secondary buffer.
result = LoadWaveFile("Sounds/117614__soundmary__door-close.wav", &m_secondaryBuffer1);
if(!result)
{
return false;
}
// Play the wave file now that it has been loaded.
result = PlayWaveFile();
if(!result)
{
return false;
}
return true;
}
void SoundClass::Shutdown()
{
// Release the secondary buffer.
ShutdownWaveFile(&m_secondaryBuffer1);
// Shutdown the Direct Sound API.
ShutdownDirectSound();
return;
}
bool SoundClass::InitializeDirectSound(HWND hwnd)
{
HRESULT result;
DSBUFFERDESC bufferDesc;
WAVEFORMATEX waveFormat;
// Initialize the direct sound interface pointer for the default sound device.
result = DirectSoundCreate8(NULL, &m_DirectSound, NULL);
if(FAILED(result))
{
return false;
}
// Set the cooperative level to priority so the format of the primary sound buffer can be modified.
result = m_DirectSound->SetCooperativeLevel(hwnd, DSSCL_PRIORITY);
if(FAILED(result))
{
return false;
}
// Setup the primary buffer description.
bufferDesc.dwSize = sizeof(DSBUFFERDESC);
bufferDesc.dwFlags = DSBCAPS_PRIMARYBUFFER | DSBCAPS_CTRLVOLUME;
bufferDesc.dwBufferBytes = 0;
bufferDesc.dwReserved = 0;
bufferDesc.lpwfxFormat = NULL;
bufferDesc.guid3DAlgorithm = GUID_NULL;
// Get control of the primary sound buffer on the default sound device.
result = m_DirectSound->CreateSoundBuffer(&bufferDesc, &m_primaryBuffer, NULL);
if(FAILED(result))
{
return false;
}
// Setup the format of the primary sound bufffer.
// In this case it is a .WAV file recorded at 44,100 samples per second in 16-bit stereo (cd audio format).
waveFormat.wFormatTag = WAVE_FORMAT_PCM;
waveFormat.nSamplesPerSec = 44100;
waveFormat.wBitsPerSample = 16;
waveFormat.nChannels = 2;
waveFormat.nBlockAlign = (waveFormat.wBitsPerSample / 8) * waveFormat.nChannels;
waveFormat.nAvgBytesPerSec = waveFormat.nSamplesPerSec * waveFormat.nBlockAlign;
waveFormat.cbSize = 0;
// Set the primary buffer to be the wave format specified.
result = m_primaryBuffer->SetFormat(&waveFormat);
if(FAILED(result))
{
return false;
}
return true;
}
void SoundClass::ShutdownDirectSound()
{
// Release the primary sound buffer pointer.
if(m_primaryBuffer)
{
m_primaryBuffer->Release();
m_primaryBuffer = 0;
}
// Release the direct sound interface pointer.
if(m_DirectSound)
{
m_DirectSound->Release();
m_DirectSound = 0;
}
return;
}
bool SoundClass::LoadWaveFile(char* filename, IDirectSoundBuffer8** secondaryBuffer)
{
int error;
FILE* filePtr;
unsigned int count;
WaveHeaderType waveFileHeader;
WAVEFORMATEX waveFormat;
DSBUFFERDESC bufferDesc;
HRESULT result;
IDirectSoundBuffer* tempBuffer;
unsigned char* waveData;
unsigned char* bufferPtr;
unsigned long bufferSize;
// Open the wave file in binary.
error = fopen_s(&filePtr, filename, "rb");
if(error != 0)
{
return false;
}
// Read in the wave file header.
count = fread(&waveFileHeader, sizeof(waveFileHeader), 1, filePtr);
if(count != 1)
{
return false;
}
// Check that the chunk ID is the RIFF format.
if((waveFileHeader.chunkId[0] != 'R') || (waveFileHeader.chunkId[1] != 'I') ||
(waveFileHeader.chunkId[2] != 'F') || (waveFileHeader.chunkId[3] != 'F'))
{
return false;
}
// Check that the file format is the WAVE format.
if((waveFileHeader.format[0] != 'W') || (waveFileHeader.format[1] != 'A') ||
(waveFileHeader.format[2] != 'V') || (waveFileHeader.format[3] != 'E'))
{
return false;
}
// Check that the sub chunk ID is the fmt format.
if((waveFileHeader.subChunkId[0] != 'f') || (waveFileHeader.subChunkId[1] != 'm') ||
(waveFileHeader.subChunkId[2] != 't') || (waveFileHeader.subChunkId[3] != ' '))
{
return false;
}
// Check that the audio format is WAVE_FORMAT_PCM.
if(waveFileHeader.audioFormat != WAVE_FORMAT_PCM)
{
return false;
}
// Check that the wave file was recorded in stereo format.
if(waveFileHeader.numChannels != 2)
{
return false;
}
// Check that the wave file was recorded at a sample rate of 44.1 KHz.
if(waveFileHeader.sampleRate != 44100)
{
return false;
}
// Ensure that the wave file was recorded in 16 bit format.
if(waveFileHeader.bitsPerSample != 16)
{
return false;
}
// Set the wave format of secondary buffer that this wave file will be loaded onto.
waveFormat.wFormatTag = WAVE_FORMAT_PCM;
waveFormat.nSamplesPerSec = 44100;
waveFormat.wBitsPerSample = 16;
waveFormat.nChannels = 2;
waveFormat.nBlockAlign = (waveFormat.wBitsPerSample / 8) * waveFormat.nChannels;
waveFormat.nAvgBytesPerSec = waveFormat.nSamplesPerSec * waveFormat.nBlockAlign;
waveFormat.cbSize = 0;
// Set the buffer description of the secondary sound buffer that the wave file will be loaded onto.
bufferDesc.dwSize = sizeof(DSBUFFERDESC);
bufferDesc.dwFlags = DSBCAPS_CTRLVOLUME;
bufferDesc.dwBufferBytes = waveFileHeader.dataSize;
bufferDesc.dwReserved = 0;
bufferDesc.lpwfxFormat = &waveFormat;
bufferDesc.guid3DAlgorithm = GUID_NULL;
// Create a temporary sound buffer with the specific buffer settings.
result = m_DirectSound->CreateSoundBuffer(&bufferDesc, &tempBuffer, NULL);
if(FAILED(result))
{
return false;
}
// Test the buffer format against the direct sound 8 interface and create the secondary buffer.
result = tempBuffer->QueryInterface(IID_IDirectSoundBuffer8, (void**)&*secondaryBuffer);
if(FAILED(result))
{
return false;
}
// Release the temporary buffer.
tempBuffer->Release();
tempBuffer = 0;
// Move to the beginning of the wave data which starts at the end of the data chunk header.
fseek(filePtr, sizeof(WaveHeaderType), SEEK_SET);
// Create a temporary buffer to hold the wave file data.
waveData = new unsigned char[waveFileHeader.dataSize];
if(!waveData)
{
return false;
}
// Read in the wave file data into the newly created buffer.
count = fread(waveData, 1, waveFileHeader.dataSize, filePtr);
if(count != waveFileHeader.dataSize)
{
return false;
}
// Close the file once done reading.
error = fclose(filePtr);
if(error != 0)
{
return false;
}
// Lock the secondary buffer to write wave data into it.
result = (*secondaryBuffer)->Lock(0, waveFileHeader.dataSize, (void**)&bufferPtr, (DWORD*)&bufferSize, NULL, 0, 0);
if(FAILED(result))
{
return false;
}
// Copy the wave data into the buffer.
memcpy(bufferPtr, waveData, waveFileHeader.dataSize);
// Unlock the secondary buffer after the data has been written to it.
result = (*secondaryBuffer)->Unlock((void*)bufferPtr, bufferSize, NULL, 0);
if(FAILED(result))
{
return false;
}
// Release the wave data since it was copied into the secondary buffer.
delete [] waveData;
waveData = 0;
return true;
}
void SoundClass::ShutdownWaveFile(IDirectSoundBuffer8** secondaryBuffer)
{
// Release the secondary sound buffer.
if(*secondaryBuffer)
{
(*secondaryBuffer)->Release();
*secondaryBuffer = 0;
}
return;
}
bool SoundClass::PlayWaveFile()
{
HRESULT result;
// Set position at the beginning of the sound buffer.
result = m_secondaryBuffer1->SetCurrentPosition(0);
if(FAILED(result))
{
return false;
}
// Set volume of the buffer to 100%.
result = m_secondaryBuffer1->SetVolume(DSBVOLUME_MAX);
if(FAILED(result))
{
return false;
}
// Play the contents of the secondary sound buffer.
result = m_secondaryBuffer1->Play(0, 0, 0);
if(FAILED(result))
{
return false;
}
return true;
} | [
"allenrichi@hotmail.co.uk"
] | allenrichi@hotmail.co.uk |
2a17501b7c8a74414b73c57510a9e7cfb6a2d257 | 533ec5afedd8ad4d9d2d4e37deb94ed636c5798d | /Bai_Thuc_Hanh/Bai_so_5/4.cpp | b68c2872afed555218b9feddd8e28e4ccfb31b12 | [] | no_license | viettrungIT3/OOP_cpp | 8b93b230830d6f9782f164ab5f60521d0d0a1c2c | 58d4277da79e5ae19d4e9c6b609f449b67ee4120 | refs/heads/master | 2023-06-25T10:00:23.190528 | 2021-07-26T15:43:52 | 2021-07-26T15:43:52 | 294,263,665 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,326 | cpp | #include <bits/stdc++.h>
using namespace std;
class ELECTRONIC
{
protected:
int congSuat;
int dienAp;
public:
ELECTRONIC( int congSuat, int dienAp) {
this.congSuat = congSuat;
this.dienAp = dienAp;
}
};
class MAYGIAT : public ELECTRONIC
{
private:
int dungTich;
string loai;
public:
MAYGIAT(/* args */);
void Xuat();
};
MAYGIAT::MAYGIAT( int congSuat, int dienAp, int dungTich, string loai) : ELECTRONIC( congSuat, dienAp)
{
this.dungTich = dungTich;
this.loai = loai;
}
void MAYGIAT::Xuat()
{
cout<<"MAY GIAT: "<<endl;
cout<<"Cong suat: "<<congSuat<<endl;
cout<<"Dien ap: "<<dienAp<<endl;
cout<<"Dung tich: "<<dungTich<<endl;
cout<<"Loai: "<<loai<<endl;
}
class TULANH : public ELECTRONIC
{
private:
int dungTich;
string soNgan;
public:
TULANH(/* args */);
void Xuat();
};
TULANH::TULANH( int congSuat, int dienAp, int dungTich, string soNgan) : ELECTRONIC( congSuat, dienAp)
{
this.dungTich = dungTich;
this.soNgan = soNgan;
}
void TULANH::Xuat()
{
cout<<"MAY GIAT: "<<endl;
cout<<"Cong suat: "<<congSuat<<endl;
cout<<"Dien ap: "<<dienAp<<endl;
cout<<"Dung tich: "<<dungTich<<endl;
cout<<"soNgan: "<<soNgan<<endl;
}
int main(int argc, char const *argv[])
{
/* code */
return 0;
}
| [
"65119701+viettrungIT3@users.noreply.github.com"
] | 65119701+viettrungIT3@users.noreply.github.com |
512a594e430cf33f75e091d1a1a3a64e31584edf | e0c3b35ecbd6fb4c3395f9bacf08d68e5104ada5 | /lib/Display/display.cpp | 43a3d774270f59541d7797d79136e27cb172cdf5 | [] | no_license | Manninee/Esp32-Tank-Controller | 15e648c9574ae01778fc7abade8df97d9b015ef1 | 46348030241b2d5bc7f15c282c6afad7635a1ad3 | refs/heads/master | 2020-04-21T09:15:35.344991 | 2019-02-06T17:22:46 | 2019-02-06T17:22:46 | 169,442,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cpp | #include "display.hh"
Display::Display(uint8_t sda, uint8_t scl):
display_(new SSD1306Wire(0x3c, sda, scl))
{}
void Display::init()
{
display_->init();
display_->setContrast(255);
display_->setFont(ArialMT_Plain_16);
//display_->setFont(ArialMT_Plain_10);
display_->clear();
display_->display();
}
void Display::drawJoystickValues(const double& roll, const double& pitch)
{
clearPart(0, 0, 128, 16);
display_->drawString(0, 0, "X=" + String(roll));
display_->drawString(64, 0, "Y=" + String(pitch));
display_->display();
}
void Display::drawLatency(const int16_t latency)
{
String text = "";
if(latency < 0)
text = "-----";
else if(latency > 1000)
text = ">1s";
else
text = String(latency) + "ms";
clearPart(0, 47, 64, 16);
display_->drawString(0, 47, text);
display_->display();
}
void Display::drawBattery(const int16_t voltage)
{
clearPart(64, 47, 64, 16);
String text = "";
if(voltage > 0)
text = String((double)((double)voltage / 100)) + "V";
else
text = "----V";
display_->drawString(64, 47, text);
display_->display();
}
void Display::clearPart(const uint8_t& x0, const uint8_t& y0,
const uint8_t& width, const uint8_t& height)
{
display_->setColor(BLACK);
display_->fillRect(x0, y0, width, height);
display_->setColor(WHITE);
display_->display();
} | [
"eetu.manninen@tuni.fi"
] | eetu.manninen@tuni.fi |
e230d6b41ac4dbefba6dd18d746a86b96e53c230 | 3ee3d4a1319933c57a220c28b3be008273442a39 | /untitled/mainwindow.h | 4865baa5512edc2245914c31559a497f25ade153 | [] | no_license | PeterZhouSZ/Sketchware | 525240af0dbcb6e417aff03afb668f26d2d3ed8d | 5f5ff28f3bc615bc38985acfc42116e3daecd550 | refs/heads/master | 2020-04-24T09:55:57.615710 | 2017-06-06T05:20:06 | 2017-06-06T05:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
static MainWindow & getInstance();
private:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
Ui::MainWindow *ui;
static MainWindow * mw_Instance;
};
#endif // MAINWINDOW_H
| [
"guaiguaip@gmail.com"
] | guaiguaip@gmail.com |
664816bf24e9a342b9b0f396b5ff448fdebf2370 | b3c7c840fa2a70577ea874d4565eb4a9118ca3a0 | /all/native/geometry/VectorTileFeatureCollection.cpp | 9cc2ac18d83f73b8c1e983bb8ed6eba0987d8f97 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CartoDB/mobile-sdk | dc016fb7a24826276e2c3908002cc65c08c39a07 | 7fabb2b40a1cd1d32328dbcb1c17cd96e5ea076a | refs/heads/master | 2023-03-09T22:07:20.650899 | 2023-02-17T09:49:31 | 2023-02-17T09:49:31 | 60,150,702 | 190 | 73 | BSD-3-Clause | 2022-11-08T10:56:23 | 2016-06-01T06:20:09 | C | UTF-8 | C++ | false | false | 541 | cpp | #include "VectorTileFeatureCollection.h"
namespace carto {
VectorTileFeatureCollection::VectorTileFeatureCollection(const std::vector<std::shared_ptr<VectorTileFeature> >& features) :
FeatureCollection(features.begin(), features.end())
{
}
VectorTileFeatureCollection::~VectorTileFeatureCollection() {
}
std::shared_ptr<VectorTileFeature> VectorTileFeatureCollection::getFeature(int index) const {
return std::static_pointer_cast<VectorTileFeature>(FeatureCollection::getFeature(index));
}
}
| [
"mark.tehver@gmail.com"
] | mark.tehver@gmail.com |
3c916c67a9833341973837a6d3e4777688b25b41 | ce348db4e164bab99136df8809f375e5ea61f715 | /pyada/test/unittest/test_Forest.cpp | caf6090407e8925b3693048b8e355fd22d062684 | [
"MIT"
] | permissive | tadeze/pyad | ecc883727d055fcc3d9a23ff2f3011ee97704cdb | ef3b4312989597d8d4a01194c0a03e2beca5bfb5 | refs/heads/master | 2022-03-30T18:28:26.014797 | 2020-01-23T20:27:33 | 2020-01-23T20:27:33 | 58,245,056 | 0 | 0 | null | 2019-10-25T21:42:42 | 2016-05-07T02:16:44 | C++ | UTF-8 | C++ | false | false | 2,065 | cpp | /*
* test_Forest.cpp
*
* Created on: May 4, 2016
* Author: tadeze
*/
#include "forest.hpp"
#include "gtest/gtest.h"
#include "isolation_forest.hpp"
#include "common_util.hpp"
class ForestTest : public ::testing::Test {
protected:
std::shared_ptr<Forest> ff;
std::vector<std::vector<double> > data ;
std::shared_ptr<util::dataset> dataset;
int ntree,nsample,maxheight;
bool rsample,stopheight;
int DIM = 4;
int NROW = 1000;
virtual void SetUp() {
ntree=100;
nsample=50;
maxheight=0;
rsample=false;
stopheight=false;
//Forest(int _ntree,util::dataset* _dataset,int _nsample,int _maxheight, bool _stopheight,bool _rsample)
//Let read data from
//std::string filename("./synth2d.dt");
// std::string filename = common::filename();
// data= util::readcsv((char*) &filename[0],',',true);
//ff = new FacadeForest();
std::vector<std::vector<double> > data = util::syntheticData(DIM, NROW);
dataset = common::makeDataset(data);
ff = std::make_shared<IsolationForest>(ntree,dataset,nsample,maxheight,stopheight,rsample);
}
virtual void TearDown()
{
//delete dataset;
//delete ff;
}
};
TEST_F(ForestTest, createForest){
ff->fixedTreeForest();
ASSERT_EQ(ff->nsample,nsample);
ASSERT_EQ(ff->ntree,ntree);
ASSERT_FALSE(ff->rsample);
ASSERT_EQ(ff->maxheight,maxheight);
}
/*
TEST_F(ForestTest,serialize)
{
// ASSERT_EQ(9,9);
// Test serialization of the Forest.
ff->fixedTreeForest();
json jj = ff->to_json();
ASSERT_EQ(jj["ntree"],ff->ntree);
ASSERT_EQ(jj["nsample"],ff->nsample);
std::ofstream ll("forest.json");
ll<<jj;
ll.close();
}
TEST_F(ForestTest,deserialize){
Forest* forest;
IsolationForest iff;
forest = ⇔
std::ifstream in("forest.json");
//json jj;
//in>>jj;
forest->from_json(in);
ASSERT_EQ(forest->ntree,ntree);
ASSERT_EQ(forest->nsample,nsample);
//just take two random node and check they are equal
}*/
//Test remaining module in child
| [
"tadesse.habte@gmail.com"
] | tadesse.habte@gmail.com |
32d227f22f7c4c4f1353a9d3fb421045a78fd8a6 | f6690aaeba28ba2a6efb711fd59498e3c07085eb | /Game/Game/ColorConst.h | 943c99abd281be227438aba43605ee5a0ed48d72 | [] | no_license | marina10miyauchi/MusicGame | 22aa2935f280a16483dc8cbc138a90e3056711ef | fee3a89ea024c13f4a6cdc886fba0d94bb8ea693 | refs/heads/master | 2022-12-13T21:33:32.857311 | 2020-09-15T00:53:18 | 2020-09-15T00:53:18 | 277,695,343 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 318 | h | #pragma once
#include<DxLib.h>
//初期設定定番カラー
//複雑なカラーは除く
class ColorConst {
public:
static unsigned int White;
static unsigned int Black;
static unsigned int Red;
static unsigned int Blue;
static unsigned int Green;
static unsigned int Yellow;
static unsigned int Purple;
}; | [
"mari01miya@gmail.com"
] | mari01miya@gmail.com |
e024bd3553465694f314f13739f06f6500e2e728 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/1c/8729f0f38b20c0/main.cpp | ece04e55f9c7e06158bed4a27d96bd4fc73643c5 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,751 | cpp | #include <iostream>
#include <memory>
#include <string>
#include <vector>
// Packet
// - shared storage
// - ~Packet: checks unique -> move to pool
// Storage:
// Pool:
// - be careful for lifetime!
// -
#define TRACE std::cout << __FILE__ << ":" << __LINE__ << ":0: trace: " << __PRETTY_FUNCTION__ << std::endl;
struct Storage
{
typedef void (*RecycleFunction)(void*, Storage&&);
Storage(void* inPool, RecycleFunction inRecycleFunction) : mPool(inPool), mRecycleFunction(inRecycleFunction) {}
Storage(const Storage&) = delete;
Storage(Storage&& rhs) :
mPool(rhs.mPool),
mRecycleFunction(rhs.mRecycleFunction),
mData(std::move(rhs.mData))
{
rhs.mPool = nullptr;
rhs.mRecycleFunction = nullptr;
}
void recycle()
{
if (mRecycleFunction)
{
auto r = mRecycleFunction; mRecycleFunction = nullptr;
auto p = mPool; mPool = nullptr;
r(p, std::move(*this));
}
}
void* mPool;
RecycleFunction mRecycleFunction;
std::string mData;
};
struct Packet
{
Packet(std::shared_ptr<Storage> storage) : mStorage(std::move(storage)) {}
~Packet()
{
if (mStorage && mStorage.unique())
{
mStorage->recycle();
}
}
void push(const char* s)
{
mStorage->mData += s;
}
const char* data() const
{
return mStorage->mData.data();
}
std::shared_ptr<Storage> mStorage;
};
struct Sender
{
static void Recycle(void* sender, Storage&& storage)
{
std::cout << "Recycle " << storage.mData << ". New FreeList size: " << (static_cast<Sender*>(sender)->mFreeList.size() + 1) << std::endl;
storage.mRecycleFunction = nullptr;
storage.mData.clear();
static_cast<Sender*>(sender)->mFreeList.push_back(std::move(storage));
}
~Sender()
{
mFreeList.clear();
}
void send(const char* s)
{
if (mFreeList.empty())
{
std::cout << "Grow FreeList" << std::endl;
mFreeList.push_back(Storage(this, &Sender::Recycle));
}
Packet packet(std::make_shared<Storage>(std::move(mFreeList.back())));
mFreeList.pop_back();
packet.mStorage->mPool = this;
packet.mStorage->mRecycleFunction = &Sender::Recycle;
packet.push(s);
std::cout << "Sending " << packet.data() << std::endl;
}
std::vector<Storage> mFreeList;
};
int main()
{
Sender s;
s.send("a");
s.send("b");
s.send("c");
s.send("d");
s.send("e");
s.send("f");
s.send("g");
s.send("h");
}
| [
"francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df"
] | francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df |
d3c76a757041c5991c7c57dd9747ddb9c3d06937 | 727c574f0b5d84ae485b852ccf318063cc51772e | /ZOJ/ACM answer/ZJU Online Judge/Before2004.4.1/ZJU_1654.CPP | 5b0da4ed62ba994b2998ae6d6172884009fa7a34 | [] | no_license | cowtony/ACM | 36cf2202e3878a3dac1f15265ba8f902f9f67ac8 | 307707b2b2a37c58bc2632ef872dfccdee3264ce | refs/heads/master | 2023-09-01T01:21:28.777542 | 2023-08-04T03:10:23 | 2023-08-04T03:10:23 | 245,681,952 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,504 | cpp | #include <iostream.h>
#include <stdio.h>
int n , m;
char G[51][51];
int test(int x0 , int y0){
int x , y;
int ret = -3;
x = x0 , y = y0;
while(x < n && G[x][y] != '#'){
if(G[x][y] =='o') ret++;
x++;
}
x = x0 , y = y0;
while(x >= 0 && G[x][y] != '#'){
if(G[x][y] =='o') ret++;
x--;
}
x = x0 , y = y0;
while(y >= 0 && G[x][y] != '#'){
if(G[x][y] =='o') ret++;
y--;
}
x = x0 , y = y0;
while(y < m && G[x][y] != '#'){
if(G[x][y] =='o') ret++;
y++;
}
return ret;
}
void paint(int x0 , int y0){
int x , y;
x = x0 , y = y0;
while(x < n && G[x][y] != '#'){
G[x][y] = 'X';
x++;
}
x = x0 , y = y0;
while(x >= 0 && G[x][y] != '#'){
G[x][y] = 'X';
x--;
}
x = x0 , y = y0;
while(y >= 0 && G[x][y] != '#'){
G[x][y] = 'X';
y--;
}
x = x0 , y = y0;
while(y < m && G[x][y] != '#'){
G[x][y] = 'X';
y++;
}
}
int main(){
// freopen("in.txt","r",stdin);
int T , CaseNo;
int Count;
int i , j , min , x , y , ret;
cin >> CaseNo;
for(T = 1; T <= CaseNo; T++){
cout << "Case :" << T << endl;
cin >> n >> m;
for(i=0; i<n; i++)
cin >> G[i];
Count = 0;
// '#', '*', or 'o' which represent Wall, Grass, and Empty
while(true){
min = 1000000;
for(i=0; i<n; i++)
for(j=0; j<n; j++)
if(G[i][j] == 'o'){
ret = test(i , j);
if (ret < min)
{
min = ret;
x = i ; y = j;
}
}
if(min == 1000000) break;
paint( x , y );
Count++;
}
cout << Count << endl;
}
return 0;
}
| [
"cowtony@163.com"
] | cowtony@163.com |
b249df7ec12ab9f565e1d65c501381cf7c318123 | f348d772e01974cff1c1796246fa0f275c32f538 | /QuadTree/openGL/Line Loop.cpp | 773203c923a96d00d045949c2527223bbf6a60fb | [] | no_license | DannyJamieson/AI-PortFolio | f2479983345ebe0516cdec2ce35ff02af030f275 | 4e387aba6ead9c65bd18207e371d50ef19822334 | refs/heads/master | 2021-01-02T09:11:59.635840 | 2017-08-02T21:27:14 | 2017-08-02T21:27:14 | 99,161,914 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,825 | cpp | /*/ include the GLUT header file so we can access all the GLUT calls
#include <glut.h>
// Create a method to hold all our drawing calls
// This function must be declared before the MAIN call so that MAIN knows it exists
// NOTE: read the contents of MAIN first, before reading the DISPLAY method. It will make more sense that way !
void display(void)
{
// glClear sets the colour of the window to the colour previously define by
// glClearColor, glClearIndex, glClearDepth, glClearStencil, and glClearAccum
glClear(GL_COLOR_BUFFER_BIT);
// et the colour of any future objects we create
// This colour will remain the active draw colour until we change it
glColor3f(1.0, 0.0, 0.0);
///////////////////////////////////////////////////
//draw a line - START
///////////////////////////////////////////////////
//Start to crete a line primitive
glBegin(GL_LINE_LOOP);
// Now add in the vertices of the line
glVertex2i(10, 10);
glVertex2i(200, 200);
glVertex2i(20, 200);
glVertex2i(25, 72);
glVertex2i(20, 70);
glEnd(); //declare that the line is now finished primitive
///////////////////////////////////////////////////
//draw a line - END
///////////////////////////////////////////////////
// Now process all the OpenGL commands as quickly as possible
glFlush();
}
// Create our windows applciation
void main(int argc, char *argv[])
{
//Start the GLUT windowing system
glutInit(&argc, argv);
// Define settings for the display
// GLUT_SINGLE = use a single rerfesh buffer
// GLUT_RGB = use the RGB colour space
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
// Set the dimensions of all future windows.
glutInitWindowSize(500, 500);
// Set the position of the window. Origin is top left of screen
glutInitWindowPosition(100, 100);
// Create a window with a title
glutCreateWindow("My Line Loop");
// Set the background colour of the window to white (red, green, blue, alpha)
// RGB values in range of 0 to 1
// Alpha channel used to blend two overlapping objects
glClearColor(1.0, 1.0, 1.0, 0.0);
// OpenGL assumes you are working with 3D graphcis by default
// If we want to work in just 2D we have to tell OpenGL that we want to do this
// We therefore tell OpenGL to 'project' the image onto a 2D plane.
glMatrixMode(GL_PROJECTION);
// Now setup the coordinate system for the projected image
// (x min, x max, y min, y max)
// Bottom left = (0,0) top right = (250,250)
gluOrtho2D(0.0, 250.0, 0.0, 250.0);
// Process the 'display' method and pass the results to DisplayFunc
// which will pass the results to the display window, ready to be displayed.
glutDisplayFunc(display);
// The contents of the display window are not drawn immediately.
// The following function displays the content.
// This must be the last function in the program
glutMainLoop();
}
*/ | [
"danj1066@hotmail.co.uk"
] | danj1066@hotmail.co.uk |
e1bdd5213d9eb75a624296f1c388d57fcf0ec76a | 43a2fbc77f5cea2487c05c7679a30e15db9a3a50 | /Cpp/External/SDK/BP_Wheel_classes.h | 456d22ffe4420f692ed77d996adbebaca03f6031 | [] | no_license | zH4x/SoT-Insider-SDK | 57e2e05ede34ca1fd90fc5904cf7a79f0259085c | 6bff738a1b701c34656546e333b7e59c98c63ad7 | refs/heads/main | 2023-06-09T23:10:32.929216 | 2021-07-07T01:34:27 | 2021-07-07T01:34:27 | 383,638,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,886 | h | #pragma once
// Name: SoT-Insider, Version: 1.102.2382.0
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass BP_Wheel.BP_Wheel_C
// 0x0119 (FullSize[0x09F1] - InheritedSize[0x08D8])
class ABP_Wheel_C : public AWheel
{
public:
struct FPointerToUberGraphFrame UberGraphFrame; // 0x08D8(0x0008) (ZeroConstructor, Transient, DuplicateTransient)
class USkeletalMeshComponent* Wheel; // 0x08E0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData, NonTransactional, NoDestructor)
class USphereComponent* ProjectileCollision; // 0x08E8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData, NonTransactional, NoDestructor)
class UInteractableComponent* Interactable; // 0x08F0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData, NonTransactional, NoDestructor)
struct FObjectMessagingHandle Wheel_Centered; // 0x08F8(0x0048) (Edit, BlueprintVisible, DisableEditOnInstance)
struct FObjectMessagingHandle Wheel_Movement_Started; // 0x0940(0x0048) (Edit, BlueprintVisible, DisableEditOnInstance)
struct FObjectMessagingHandle Wheel_Movement_Stopped; // 0x0988(0x0048) (Edit, BlueprintVisible, DisableEditOnInstance)
struct FWwiseEmitter AudioEmitter; // 0x09D0(0x0020) (Edit, BlueprintVisible, DisableEditOnInstance)
bool ShipWheelTurning; // 0x09F0(0x0001) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData, NoDestructor)
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass BP_Wheel.BP_Wheel_C");
return ptr;
}
struct FDockableInfo GetDockableInfo();
struct FVector GetClosestInteractionPoint(const struct FVector& ReferencePosition, float* OutInteractionPointRadius);
class USkeletalMeshComponent* GetWheelMesh();
void UserConstructionScript();
void Receive_Animation_State(const struct FRotator& WheelRotation, float WheelAnimationTime, TEnumAsByte<EWheel_EWheel> EWheel, float Direction, float WheelRate);
void StickInput(float StickInputX);
void Update_Athena_Character(class AAthenaCharacter* AthenaCharacter);
void CapstanRotationSpeed(float RotationSpeed);
void DockingInterface(const struct FBP_Docking& Docking);
void CapstanForce(float IndividualForce, const struct FTransform& LH_IK, const struct FTransform& RH_IK, class AActor* Actor);
void IK_Limb_Update_Transform(TEnumAsByte<EIKLimbName_EIKLimbName> LimbId, const struct FTransform& TransformUpdate);
void IK_Limb_Blend_Timing(TEnumAsByte<EIKLimbName_EIKLimbName> LimbId, float BlendIn, float BlendOut);
void IK_Limb_Update_Strength(TEnumAsByte<EIKLimbName_EIKLimbName> LimbId, float LocationStrength, float RotationStrength);
void IK_Limb_Active(TEnumAsByte<EIKLimbName_EIKLimbName> LimbId, bool Active, TEnumAsByte<Animation_ELimbIKSpace> CoordinateSpace);
void IK_Limb_Stretch(float ArmStretch, float SpineStretch, float LegStretch);
void RequestStateChange(class AActor* Controller);
void ExecuteUbergraph_BP_Wheel(int EntryPoint);
void AfterRead();
void BeforeDelete();
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"Massimo.linker@gmail.com"
] | Massimo.linker@gmail.com |
617b446c7da159e626f49bd3135b18fbae9a4f09 | 1633bbc1123b468cc63c998abdc40c0be3bd4c4a | /codeforces/problem_set/868B.cpp | 8f5d1d7b7e58b024e0902ae138b51fc6c1c7deb7 | [] | no_license | devang191/algorithms_competitions | 936258469655ffa8ae17f2451d7c300e4e18e693 | 3b47e87570b6a43bd22790566ff6bc9a3351e4a9 | refs/heads/master | 2020-03-27T20:20:05.548560 | 2017-10-24T04:18:27 | 2017-10-24T04:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | #include <bitset>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <iterator>
#include <unordered_map>
#if DEBUG
#include "prettyprint.hpp"
#define print_container(c) cout << c << endl;
#endif
using namespace std;
int main () {
int h, m, s, t1, t2;
scanf("%d %d %d %d %d", &h, &m, &s, &t1, &t2);
h = h * 10 + 1;
m = m * 2 + 1;
s = s * 2 + 1;
t1 = t1 * 10;
t2 = t2 * 10;
vector<int> nums = {h, m, s, t1, t2};
stable_sort(nums.begin(), nums.end());
for (int i = 0; i < nums.size(); i++) {
if (nums[i] % 2 == 0 && nums[(i + 1) % nums.size()] % 2 == 0) {
printf("YES");
return 0;
}
}
printf("NO");
return 0;
}
| [
"maxnelso@gmail.com"
] | maxnelso@gmail.com |
f7885d5f960b56d3e1ee11615abf8c4f9143affe | e9357e6a6f8d239abca7a3bee19cdf85a5591dae | /クォンタムアクセラレータ/クォタムアクセラレータ/ES Game Library/MyClass/ObstacleP/ObstacleP.cpp | bf26bf503fdad78a15e3749dd3c8d2d449bacc18 | [] | no_license | nakajima21/-break_accelerator | ca86df7fd0f272171e0d1bf97b855bafe54ccc11 | b122d2c1591387a35feb95e9798ba20f074e761e | refs/heads/master | 2023-04-03T17:47:32.921890 | 2021-01-19T05:10:26 | 2021-01-19T05:10:26 | 301,629,201 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,022 | cpp | #include "ObstacleP.h"
void ObstacleP::Init()
{
model = GraphicsDevice.CreateModelFromFile(_T("model3D//‰ü’ù”Å_//hako_P.X"));
model->SetMaterial(this->SetMaterial());
position = CsvPoitionDataBase.GetCsvPosition('P');
p_hitbox = new HitBox();
p_hitbox->Settags("ObstacleP");
this->ChildObj_AddList((ChildObjRef)p_hitbox);
this->AttackType = DAMAGE;
}
void ObstacleP::Update()
{
}
void ObstacleP::Draw3D()
{
Vector3 player_position = PlayerDataBase.GetPlayerPosition();
auto obstacle_itr = this->position.begin();
while (obstacle_itr != this->position.end()) {
this->transform.position = *obstacle_itr;
float distance = this->transform.position.z - player_position.z;
if (distance <= DRAWOBSTACLERANGE) {
this->OnCollsion(distance,Vector3(0.0f, 0.5f, 0.0f));
this->model->SetPosition(this->transform.position);
this->model->Draw();
}
if (distance <= REMOVEOBSTACLERANGE) {
obstacle_itr = this->position.erase(obstacle_itr);
continue;
};
obstacle_itr++;
}
}
| [
"sou38608@gmail.com"
] | sou38608@gmail.com |
7df6928f33ce8db630ba04319722417241a03d7f | 5012f1a7f9d746c117f04ff56f7ebe6d5fc9128f | /1.Server/2.Midware/KFPlugin/KFFtp/dllmain.cpp | 48c76338e25c14d957f672b5988e3470ac056b34 | [
"Apache-2.0"
] | permissive | hw233/KFrame | c9badd576ab7c75f4e5aea2cfb3b20f6f102177f | a7e300c301225d0ba3241abcf81e871d8932f326 | refs/heads/master | 2023-05-11T07:50:30.349114 | 2019-01-25T08:20:11 | 2019-01-25T08:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cpp | #include "KFFtpPlugin.h"
#include "KFLibrary.h"
__KF_EXPORT__ __KF_PLUGIN_ENRTY__( KFrame::KFFtpPlugin );
__KF_EXPORT__ __KF_PLUGIN_LEAVE__( KFrame::KFFtpPlugin );
//////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////// | [
"lori227@qq.com"
] | lori227@qq.com |
5545f4020010ab771e03fb3be0ed74b13b492333 | 627e8ff9a43076931c5bfbde739191d3b6915e68 | /visitpy/visitpy/PyExportDBAttributes.h | e252519b8ba74c3627f79a3a02d9b6579bdefe99 | [] | no_license | visit-vis/VisIt29RC_Trunk | 3db3aed5aefe26b8ce11cbf9050d410626bb6e17 | 13d7d392b8a2d47e925b472d2582e51393e6b0ea | refs/heads/master | 2021-01-10T19:48:28.778844 | 2015-07-01T05:44:04 | 2015-07-01T05:44:04 | 33,211,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,566 | h | /*****************************************************************************
*
* Copyright (c) 2000 - 2015, Lawrence Livermore National Security, LLC
* Produced at the Lawrence Livermore National Laboratory
* LLNL-CODE-442911
* All rights reserved.
*
* This file is part of VisIt. For details, see https://visit.llnl.gov/. The
* full copyright notice is contained in the file COPYRIGHT located at the root
* of the VisIt distribution or at http://www.llnl.gov/visit/copyright.html.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
* - Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the disclaimer (as noted below) in the
* documentation and/or other materials provided with the distribution.
* - Neither the name of the LLNS/LLNL nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL LAWRENCE LIVERMORE NATIONAL SECURITY,
* LLC, THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
*****************************************************************************/
#ifndef PY_EXPORTDBATTRIBUTES_H
#define PY_EXPORTDBATTRIBUTES_H
#include <Python.h>
#include <ExportDBAttributes.h>
#include <visitpy_exports.h>
//
// Functions exposed to the VisIt module.
//
#define EXPORTDBATTRIBUTES_NMETH 16
void VISITPY_API PyExportDBAttributes_StartUp(ExportDBAttributes *subj, void *data);
void VISITPY_API PyExportDBAttributes_CloseDown();
VISITPY_API PyMethodDef * PyExportDBAttributes_GetMethodTable(int *nMethods);
bool VISITPY_API PyExportDBAttributes_Check(PyObject *obj);
VISITPY_API ExportDBAttributes * PyExportDBAttributes_FromPyObject(PyObject *obj);
VISITPY_API PyObject * PyExportDBAttributes_New();
VISITPY_API PyObject * PyExportDBAttributes_Wrap(const ExportDBAttributes *attr);
void VISITPY_API PyExportDBAttributes_SetParent(PyObject *obj, PyObject *parent);
void VISITPY_API PyExportDBAttributes_SetDefaults(const ExportDBAttributes *atts);
std::string VISITPY_API PyExportDBAttributes_GetLogString();
std::string VISITPY_API PyExportDBAttributes_ToString(const ExportDBAttributes *, const char *);
VISITPY_API PyObject * PyExportDBAttributes_getattr(PyObject *self, char *name);
int VISITPY_API PyExportDBAttributes_setattr(PyObject *self, char *name, PyObject *args);
VISITPY_API extern PyMethodDef PyExportDBAttributes_methods[EXPORTDBATTRIBUTES_NMETH];
#endif
| [
"brugger@18c085ea-50e0-402c-830e-de6fd14e8384"
] | brugger@18c085ea-50e0-402c-830e-de6fd14e8384 |
116061d641f0cb4a4d28a8104dfbc9505707a6f5 | de56c5ccceed47a808a8c20e5ac1ccaf972f4c48 | /biblio/edit.cpp | 6444ce7f37154bdba8f823df028f87147db83551 | [] | no_license | BobbyDarkbean/SpecialistQt5ExerciseBiblio | d6a42f594fe44c8bddb39844a8605881a37fb027 | 63b25686da045a009feeab7501f1fd02da40d06a | refs/heads/master | 2016-09-06T06:07:21.317678 | 2015-03-18T23:21:37 | 2015-03-18T23:21:37 | 31,556,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 296 | cpp | #include "edit.h"
namespace Biblio {
Edit::Edit(QWidget *parent) :
QTextEdit(parent)
{
setProperty("modeName", "Edit");
}
Edit::~Edit() { }
void Edit::onCancelMode(bool *ok)
{
QString s = toPlainText();
if (ok)
*ok = s.simplified().isEmpty();
}
} // namespace Biblio
| [
"monsieurbobah@yandex.ru"
] | monsieurbobah@yandex.ru |
cd79bbd4038b977b05313048c8c66c241cc68d3e | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm13.0.0/mlir/lib/Conversion/SPIRVToLLVM/ConvertLaunchFuncToLLVMCalls.cpp | 354a0a62934b3eccb436e20cb190bd65fb5d56fd | [
"LLVM-exception",
"Apache-2.0"
] | permissive | LEA0317/LLVM-VideoCore4 | d08ba6e6f26f7893709d3285bdbd67442b3e1651 | 7ae2304339760685e8b5556aacc7e9eee91de05c | refs/heads/master | 2022-06-22T15:15:52.112867 | 2022-06-09T08:45:24 | 2022-06-09T08:45:24 | 189,765,789 | 1 | 0 | NOASSERTION | 2019-06-01T18:31:29 | 2019-06-01T18:31:29 | null | UTF-8 | C++ | false | false | 13,225 | cpp | //===- ConvertLaunchFuncToLLVMCalls.cpp - MLIR GPU launch to LLVM pass ----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file implements passes to convert `gpu.launch_func` op into a sequence
// of LLVM calls that emulate the host and device sides.
//
//===----------------------------------------------------------------------===//
#include "../PassDetail.h"
#include "mlir/Conversion/LLVMCommon/LoweringOptions.h"
#include "mlir/Conversion/LLVMCommon/Pattern.h"
#include "mlir/Conversion/LLVMCommon/TypeConverter.h"
#include "mlir/Conversion/MemRefToLLVM/MemRefToLLVM.h"
#include "mlir/Conversion/SPIRVToLLVM/SPIRVToLLVM.h"
#include "mlir/Conversion/SPIRVToLLVM/SPIRVToLLVMPass.h"
#include "mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h"
#include "mlir/Dialect/GPU/GPUDialect.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/Transforms/DialectConversion.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/FormatVariadic.h"
using namespace mlir;
static constexpr const char kSPIRVModule[] = "__spv__";
//===----------------------------------------------------------------------===//
// Utility functions
//===----------------------------------------------------------------------===//
/// Returns the string name of the `DescriptorSet` decoration.
static std::string descriptorSetName() {
return llvm::convertToSnakeFromCamelCase(
stringifyDecoration(spirv::Decoration::DescriptorSet));
}
/// Returns the string name of the `Binding` decoration.
static std::string bindingName() {
return llvm::convertToSnakeFromCamelCase(
stringifyDecoration(spirv::Decoration::Binding));
}
/// Calculates the index of the kernel's operand that is represented by the
/// given global variable with the `bind` attribute. We assume that the index of
/// each kernel's operand is mapped to (descriptorSet, binding) by the map:
/// i -> (0, i)
/// which is implemented under `LowerABIAttributesPass`.
static unsigned calculateGlobalIndex(spirv::GlobalVariableOp op) {
IntegerAttr binding = op->getAttrOfType<IntegerAttr>(bindingName());
return binding.getInt();
}
/// Copies the given number of bytes from src to dst pointers.
static void copy(Location loc, Value dst, Value src, Value size,
OpBuilder &builder) {
MLIRContext *context = builder.getContext();
auto llvmI1Type = IntegerType::get(context, 1);
Value isVolatile = builder.create<LLVM::ConstantOp>(
loc, llvmI1Type, builder.getBoolAttr(false));
builder.create<LLVM::MemcpyOp>(loc, dst, src, size, isVolatile);
}
/// Encodes the binding and descriptor set numbers into a new symbolic name.
/// The name is specified by
/// {kernel_module_name}_{variable_name}_descriptor_set{ds}_binding{b}
/// to avoid symbolic conflicts, where 'ds' and 'b' are descriptor set and
/// binding numbers.
static std::string
createGlobalVariableWithBindName(spirv::GlobalVariableOp op,
StringRef kernelModuleName) {
IntegerAttr descriptorSet =
op->getAttrOfType<IntegerAttr>(descriptorSetName());
IntegerAttr binding = op->getAttrOfType<IntegerAttr>(bindingName());
return llvm::formatv("{0}_{1}_descriptor_set{2}_binding{3}",
kernelModuleName.str(), op.sym_name().str(),
std::to_string(descriptorSet.getInt()),
std::to_string(binding.getInt()));
}
/// Returns true if the given global variable has both a descriptor set number
/// and a binding number.
static bool hasDescriptorSetAndBinding(spirv::GlobalVariableOp op) {
IntegerAttr descriptorSet =
op->getAttrOfType<IntegerAttr>(descriptorSetName());
IntegerAttr binding = op->getAttrOfType<IntegerAttr>(bindingName());
return descriptorSet && binding;
}
/// Fills `globalVariableMap` with SPIR-V global variables that represent kernel
/// arguments from the given SPIR-V module. We assume that the module contains a
/// single entry point function. Hence, all `spv.GlobalVariable`s with a bind
/// attribute are kernel arguments.
static LogicalResult getKernelGlobalVariables(
spirv::ModuleOp module,
DenseMap<uint32_t, spirv::GlobalVariableOp> &globalVariableMap) {
auto entryPoints = module.getOps<spirv::EntryPointOp>();
if (!llvm::hasSingleElement(entryPoints)) {
return module.emitError(
"The module must contain exactly one entry point function");
}
auto globalVariables = module.getOps<spirv::GlobalVariableOp>();
for (auto globalOp : globalVariables) {
if (hasDescriptorSetAndBinding(globalOp))
globalVariableMap[calculateGlobalIndex(globalOp)] = globalOp;
}
return success();
}
/// Encodes the SPIR-V module's symbolic name into the name of the entry point
/// function.
static LogicalResult encodeKernelName(spirv::ModuleOp module) {
StringRef spvModuleName = module.sym_name().getValue();
// We already know that the module contains exactly one entry point function
// based on `getKernelGlobalVariables()` call. Update this function's name
// to:
// {spv_module_name}_{function_name}
auto entryPoint = *module.getOps<spirv::EntryPointOp>().begin();
StringRef funcName = entryPoint.fn();
auto funcOp = module.lookupSymbol<spirv::FuncOp>(funcName);
std::string newFuncName = spvModuleName.str() + "_" + funcName.str();
if (failed(SymbolTable::replaceAllSymbolUses(funcOp, newFuncName, module)))
return failure();
SymbolTable::setSymbolName(funcOp, newFuncName);
return success();
}
//===----------------------------------------------------------------------===//
// Conversion patterns
//===----------------------------------------------------------------------===//
namespace {
/// Structure to group information about the variables being copied.
struct CopyInfo {
Value dst;
Value src;
Value size;
};
/// This pattern emulates a call to the kernel in LLVM dialect. For that, we
/// copy the data to the global variable (emulating device side), call the
/// kernel as a normal void LLVM function, and copy the data back (emulating the
/// host side).
class GPULaunchLowering : public ConvertOpToLLVMPattern<gpu::LaunchFuncOp> {
using ConvertOpToLLVMPattern<gpu::LaunchFuncOp>::ConvertOpToLLVMPattern;
LogicalResult
matchAndRewrite(gpu::LaunchFuncOp launchOp, ArrayRef<Value> operands,
ConversionPatternRewriter &rewriter) const override {
auto *op = launchOp.getOperation();
MLIRContext *context = rewriter.getContext();
auto module = launchOp->getParentOfType<ModuleOp>();
// Get the SPIR-V module that represents the gpu kernel module. The module
// is named:
// __spv__{kernel_module_name}
// based on GPU to SPIR-V conversion.
StringRef kernelModuleName = launchOp.getKernelModuleName();
std::string spvModuleName = kSPIRVModule + kernelModuleName.str();
auto spvModule = module.lookupSymbol<spirv::ModuleOp>(spvModuleName);
if (!spvModule) {
return launchOp.emitOpError("SPIR-V kernel module '")
<< spvModuleName << "' is not found";
}
// Declare kernel function in the main module so that it later can be linked
// with its definition from the kernel module. We know that the kernel
// function would have no arguments and the data is passed via global
// variables. The name of the kernel will be
// {spv_module_name}_{kernel_function_name}
// to avoid symbolic name conflicts.
StringRef kernelFuncName = launchOp.getKernelName();
std::string newKernelFuncName = spvModuleName + "_" + kernelFuncName.str();
auto kernelFunc = module.lookupSymbol<LLVM::LLVMFuncOp>(newKernelFuncName);
if (!kernelFunc) {
OpBuilder::InsertionGuard guard(rewriter);
rewriter.setInsertionPointToStart(module.getBody());
kernelFunc = rewriter.create<LLVM::LLVMFuncOp>(
rewriter.getUnknownLoc(), newKernelFuncName,
LLVM::LLVMFunctionType::get(LLVM::LLVMVoidType::get(context),
ArrayRef<Type>()));
rewriter.setInsertionPoint(launchOp);
}
// Get all global variables associated with the kernel operands.
DenseMap<uint32_t, spirv::GlobalVariableOp> globalVariableMap;
if (failed(getKernelGlobalVariables(spvModule, globalVariableMap)))
return failure();
// Traverse kernel operands that were converted to MemRefDescriptors. For
// each operand, create a global variable and copy data from operand to it.
Location loc = launchOp.getLoc();
SmallVector<CopyInfo, 4> copyInfo;
auto numKernelOperands = launchOp.getNumKernelOperands();
auto kernelOperands = operands.take_back(numKernelOperands);
for (auto operand : llvm::enumerate(kernelOperands)) {
// Check if the kernel's operand is a ranked memref.
auto memRefType = launchOp.getKernelOperand(operand.index())
.getType()
.dyn_cast<MemRefType>();
if (!memRefType)
return failure();
// Calculate the size of the memref and get the pointer to the allocated
// buffer.
SmallVector<Value, 4> sizes;
SmallVector<Value, 4> strides;
Value sizeBytes;
getMemRefDescriptorSizes(loc, memRefType, {}, rewriter, sizes, strides,
sizeBytes);
MemRefDescriptor descriptor(operand.value());
Value src = descriptor.allocatedPtr(rewriter, loc);
// Get the global variable in the SPIR-V module that is associated with
// the kernel operand. Construct its new name and create a corresponding
// LLVM dialect global variable.
spirv::GlobalVariableOp spirvGlobal = globalVariableMap[operand.index()];
auto pointeeType =
spirvGlobal.type().cast<spirv::PointerType>().getPointeeType();
auto dstGlobalType = typeConverter->convertType(pointeeType);
if (!dstGlobalType)
return failure();
std::string name =
createGlobalVariableWithBindName(spirvGlobal, spvModuleName);
// Check if this variable has already been created.
auto dstGlobal = module.lookupSymbol<LLVM::GlobalOp>(name);
if (!dstGlobal) {
OpBuilder::InsertionGuard guard(rewriter);
rewriter.setInsertionPointToStart(module.getBody());
dstGlobal = rewriter.create<LLVM::GlobalOp>(
loc, dstGlobalType,
/*isConstant=*/false, LLVM::Linkage::Linkonce, name, Attribute(),
/*alignment=*/0);
rewriter.setInsertionPoint(launchOp);
}
// Copy the data from src operand pointer to dst global variable. Save
// src, dst and size so that we can copy data back after emulating the
// kernel call.
Value dst = rewriter.create<LLVM::AddressOfOp>(loc, dstGlobal);
copy(loc, dst, src, sizeBytes, rewriter);
CopyInfo info;
info.dst = dst;
info.src = src;
info.size = sizeBytes;
copyInfo.push_back(info);
}
// Create a call to the kernel and copy the data back.
rewriter.replaceOpWithNewOp<LLVM::CallOp>(op, kernelFunc,
ArrayRef<Value>());
for (CopyInfo info : copyInfo)
copy(loc, info.src, info.dst, info.size, rewriter);
return success();
}
};
class LowerHostCodeToLLVM
: public LowerHostCodeToLLVMBase<LowerHostCodeToLLVM> {
public:
void runOnOperation() override {
ModuleOp module = getOperation();
// Erase the GPU module.
for (auto gpuModule :
llvm::make_early_inc_range(module.getOps<gpu::GPUModuleOp>()))
gpuModule.erase();
// Specify options to lower Standard to LLVM and pull in the conversion
// patterns.
LowerToLLVMOptions options(module.getContext());
options.emitCWrappers = true;
auto *context = module.getContext();
RewritePatternSet patterns(context);
LLVMTypeConverter typeConverter(context, options);
populateMemRefToLLVMConversionPatterns(typeConverter, patterns);
populateStdToLLVMConversionPatterns(typeConverter, patterns);
patterns.add<GPULaunchLowering>(typeConverter);
// Pull in SPIR-V type conversion patterns to convert SPIR-V global
// variable's type to LLVM dialect type.
populateSPIRVToLLVMTypeConversion(typeConverter);
ConversionTarget target(*context);
target.addLegalDialect<LLVM::LLVMDialect>();
if (failed(applyPartialConversion(module, target, std::move(patterns))))
signalPassFailure();
// Finally, modify the kernel function in SPIR-V modules to avoid symbolic
// conflicts.
for (auto spvModule : module.getOps<spirv::ModuleOp>())
(void)encodeKernelName(spvModule);
}
};
} // namespace
std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
mlir::createLowerHostCodeToLLVMPass() {
return std::make_unique<LowerHostCodeToLLVM>();
}
| [
"kontoshi0317@gmail.com"
] | kontoshi0317@gmail.com |
71e597292d624f0c320b443bb17a5b6f806bda1f | f61bd4560fa248cdd081a0e4c932f0de5f5d59c4 | /src/MusicBox.hpp | b50c139383510f3b2dcae7771a7631886dea585d | [] | no_license | igagis/soberi3 | 79d6e7d652a517a700242390471d5843e1e9ef8c | d5f24921a999053e7c52960ea400eb40dde370ac | refs/heads/master | 2021-01-10T10:19:00.953350 | 2016-03-31T10:06:10 | 2016-03-31T10:06:10 | 55,140,096 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 792 | hpp | /*
* File: MusicBox.hpp
* Author: ivan
*
* Created on September 13, 2010, 2:26 PM
*/
#pragma once
#include <gst/gst.h>
#include <ting/Singleton.hpp>
#include <ting/Thread.hpp>
class MusicBox : public ting::Singleton<MusicBox>{
ting::Mutex mutex;
GstElement* pipeline;
std::string fileName;
ting::Inited<bool, false> isMuted;
public:
MusicBox();
~MusicBox();
void Play(const std::string& fileName);
void Stop();
void Pause();
void Resume();
inline void SetUnpaused(bool unpaused){
if(unpaused){
this->Resume();
}else{
this->Pause();
}
}
void SetUnmuted(bool unmuted);
inline void SetMuted(bool muted){
this->SetUnmuted(!muted);
}
void Rewind();
private:
static gboolean BusCallback(GstBus *bus, GstMessage *msg, void *userData);
};
| [
"igagis@gmail.com"
] | igagis@gmail.com |
9709317beacb3e205cf0dc12fc6a78c2e578fb14 | a8be0fffac66e1dd9a29f816825a262e049d6c10 | /C++/237. Delete Node in a Linked List.h | 1c22b8864b4badc5cf46eb834e525d2d38bdcef6 | [] | no_license | swave2015/swave-LeetCode | b740bd1b2902c9e132500599f6275bd7d449fa85 | 7e81608bdb708347fa44dd1bb34a1cda32cc67bc | refs/heads/master | 2021-01-09T10:01:26.885095 | 2020-04-04T23:14:13 | 2020-04-04T23:14:13 | 242,259,259 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | #include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
public:
void deleteNode(ListNode* node) {
if(node == NULL) {
return;
} else if (node->next == NULL) {
delete node;
node = NULL;
return;
}
node->val = node->next->val;
ListNode* delNode = node->next;
node->next = delNode->next;
delete delNode;
return;
}
}; | [
"caoxiaohang@yeah.net"
] | caoxiaohang@yeah.net |
69ad4bf253d5f138de512ca7f5f21e29791efc9c | 3aabc2a6de308456967161419fc4e2d3c612bace | /tests/fiber/test_packaged_task_post.cpp | 99f42a34e81dae1c0e87683d484eab905388d979 | [
"Apache-2.0",
"BSL-1.0"
] | permissive | victor-smirnov/dumbo | 4f7322f04777198442ff09ecc927bdf02fc7eaf6 | 57fe7f765c69490a9bda6619bcab8fcca0e1d2d9 | refs/heads/master | 2021-01-11T01:09:10.322459 | 2017-04-02T15:40:12 | 2017-04-02T15:40:12 | 71,056,780 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,046 | cpp | // (C) Copyright 2008-10 Anthony Williams
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <utility>
#include <memory>
#include <stdexcept>
#include <string>
#include <boost/test/unit_test.hpp>
#include <dumbo/v1/fiber/all.hpp>
int gi = 7;
struct my_exception : public std::runtime_error {
my_exception() :
std::runtime_error("my_exception") {
}
};
struct A {
A() = default;
A( A const&) = delete;
A( A &&) = default;
A & operator=( A const&) = delete;
A & operator=( A &&) = default;
int value;
};
struct B {
bool bset{ false };
B() = default;
B( bool set) :
bset{ set } {
gi = 3;
}
~B() {
if ( bset) {
gi = -1;
}
}
B( B && other) :
bset{ other.bset } {
other.bset = false;
}
B & operator=( B && other) {
if ( this == & other) return * this;
bset = other.bset;
other.bset = false;
return * this;
}
B( B const&) = delete;
B & operator=( B const&) = delete;
};
void fn1( dumbo::v1::fibers::promise< int > * p, int i) {
dumbo::v1::this_fiber::yield();
p->set_value( i);
}
void fn2() {
dumbo::v1::fibers::promise< int > p;
dumbo::v1::fibers::future< int > f( p.get_future() );
dumbo::v1::this_fiber::yield();
dumbo::v1::fibers::fiber( dumbo::v1::fibers::launch::post, fn1, & p, 7).detach();
dumbo::v1::this_fiber::yield();
BOOST_CHECK( 7 == f.get() );
}
int fn3() {
return 3;
}
void fn4() {
}
int fn5() {
boost::throw_exception( my_exception() );
return 3;
}
void fn6() {
boost::throw_exception( my_exception() );
}
int & fn7() {
return gi;
}
int fn8( int i) {
return i;
}
A fn9() {
A a;
a.value = 3;
return std::move( a);
}
A fn10() {
boost::throw_exception( my_exception() );
return A();
}
B fn11( bool set) {
B b( set);
return b;
}
// packaged_task
void test_packaged_task_create() {
// default constructed packaged_task is not valid
dumbo::v1::fibers::packaged_task< int() > t1;
BOOST_CHECK( ! t1.valid() );
// packaged_task from function
dumbo::v1::fibers::packaged_task< int() > t2( fn3);
BOOST_CHECK( t2.valid() );
}
// packaged_task
void test_packaged_task_create_move() {
// default constructed packaged_task is not valid
dumbo::v1::fibers::packaged_task< A() > t1;
BOOST_CHECK( ! t1.valid() );
// packaged_task from function
dumbo::v1::fibers::packaged_task< A() > t2( fn9);
BOOST_CHECK( t2.valid() );
}
void test_packaged_task_create_void() {
// default constructed packaged_task is not valid
dumbo::v1::fibers::packaged_task< void() > t1;
BOOST_CHECK( ! t1.valid() );
// packaged_task from function
dumbo::v1::fibers::packaged_task< void() > t2( fn4);
BOOST_CHECK( t2.valid() );
}
void test_packaged_task_move() {
dumbo::v1::fibers::packaged_task< int() > t1( fn3);
BOOST_CHECK( t1.valid() );
// move construction
dumbo::v1::fibers::packaged_task< int() > t2( std::move( t1) );
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
// move assignment
t1 = std::move( t2);
BOOST_CHECK( t1.valid() );
BOOST_CHECK( ! t2.valid() );
}
void test_packaged_task_move_move() {
dumbo::v1::fibers::packaged_task< A() > t1( fn9);
BOOST_CHECK( t1.valid() );
// move construction
dumbo::v1::fibers::packaged_task< A() > t2( std::move( t1) );
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
// move assignment
t1 = std::move( t2);
BOOST_CHECK( t1.valid() );
BOOST_CHECK( ! t2.valid() );
}
void test_packaged_task_move_void() {
dumbo::v1::fibers::packaged_task< void() > t1( fn4);
BOOST_CHECK( t1.valid() );
// move construction
dumbo::v1::fibers::packaged_task< void() > t2( std::move( t1) );
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
// move assignment
t1 = std::move( t2);
BOOST_CHECK( t1.valid() );
BOOST_CHECK( ! t2.valid() );
}
void test_packaged_task_swap() {
dumbo::v1::fibers::packaged_task< int() > t1( fn3);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::packaged_task< int() > t2;
BOOST_CHECK( ! t2.valid() );
// swap
t1.swap( t2);
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
}
void test_packaged_task_swap_move() {
dumbo::v1::fibers::packaged_task< A() > t1( fn9);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::packaged_task< A() > t2;
BOOST_CHECK( ! t2.valid() );
// swap
t1.swap( t2);
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
}
void test_packaged_task_swap_void() {
dumbo::v1::fibers::packaged_task< void() > t1( fn4);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::packaged_task< void() > t2;
BOOST_CHECK( ! t2.valid() );
// swap
t1.swap( t2);
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
}
void test_packaged_task_reset() {
{
dumbo::v1::fibers::packaged_task< int() > p( fn3);
dumbo::v1::fibers::future< int > f( p.get_future() );
BOOST_CHECK( p.valid() );
p();
BOOST_CHECK( 3 == f.get() );
// reset
p.reset();
p();
f = p.get_future();
BOOST_CHECK( 3 == f.get() );
}
{
dumbo::v1::fibers::packaged_task< int() > p;
bool thrown = false;
try {
p.reset();
} catch ( dumbo::v1::fibers::packaged_task_uninitialized const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
}
void test_packaged_task_reset_destruction() {
gi = 0;
dumbo::v1::fibers::packaged_task< B( bool) > p( fn11);
BOOST_CHECK( p.valid() );
BOOST_CHECK( 0 == gi);
p( true);
BOOST_CHECK( 3 == gi);
// reset
p.reset();
BOOST_CHECK( -1 == gi);
p( false);
BOOST_CHECK( 3 == gi);
// reset
p.reset();
BOOST_CHECK( 3 == gi);
}
void test_packaged_task_reset_move() {
{
dumbo::v1::fibers::packaged_task< A() > p( fn9);
dumbo::v1::fibers::future< A > f( p.get_future() );
BOOST_CHECK( p.valid() );
p();
BOOST_CHECK( 3 == f.get().value);
// reset
p.reset();
p();
f = p.get_future();
BOOST_CHECK( 3 == f.get().value);
}
{
dumbo::v1::fibers::packaged_task< A() > p;
bool thrown = false;
try {
p.reset();
} catch ( dumbo::v1::fibers::packaged_task_uninitialized const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
}
void test_packaged_task_reset_void() {
{
dumbo::v1::fibers::packaged_task< void() > p( fn4);
dumbo::v1::fibers::future< void > f( p.get_future() );
BOOST_CHECK( p.valid() );
p();
f.get();
// reset
p.reset();
p();
f = p.get_future();
f.get();
}
{
dumbo::v1::fibers::packaged_task< void() > p;
bool thrown = false;
try {
p.reset();
} catch ( dumbo::v1::fibers::packaged_task_uninitialized const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
}
void test_packaged_task_get_future() {
dumbo::v1::fibers::packaged_task< int() > t1( fn3);
BOOST_CHECK( t1.valid() );
// retrieve future
dumbo::v1::fibers::future< int > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// retrieve future a second time
bool thrown = false;
try {
f1 = t1.get_future();
} catch ( dumbo::v1::fibers::future_already_retrieved const&) {
thrown = true;
}
BOOST_CHECK( thrown);
// move construction
dumbo::v1::fibers::packaged_task< int() > t2( std::move( t1) );
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
// retrieve future from uninitialized
thrown = false;
try {
f1 = t1.get_future();
} catch ( dumbo::v1::fibers::packaged_task_uninitialized const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
void test_packaged_task_get_future_move() {
dumbo::v1::fibers::packaged_task< A() > t1( fn9);
BOOST_CHECK( t1.valid() );
// retrieve future
dumbo::v1::fibers::future< A > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// retrieve future a second time
bool thrown = false;
try {
f1 = t1.get_future();
} catch ( dumbo::v1::fibers::future_already_retrieved const&) {
thrown = true;
}
BOOST_CHECK( thrown);
// move construction
dumbo::v1::fibers::packaged_task< A() > t2( std::move( t1) );
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
// retrieve future from uninitialized
thrown = false;
try {
f1 = t1.get_future();
} catch ( dumbo::v1::fibers::packaged_task_uninitialized const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
void test_packaged_task_get_future_void() {
dumbo::v1::fibers::packaged_task< void() > t1( fn4);
BOOST_CHECK( t1.valid() );
// retrieve future
dumbo::v1::fibers::future< void > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// retrieve future a second time
bool thrown = false;
try {
f1 = t1.get_future();
} catch ( dumbo::v1::fibers::future_already_retrieved const&) {
thrown = true;
}
BOOST_CHECK( thrown);
// move construction
dumbo::v1::fibers::packaged_task< void() > t2( std::move( t1) );
BOOST_CHECK( ! t1.valid() );
BOOST_CHECK( t2.valid() );
// retrieve future from uninitialized
thrown = false;
try {
f1 = t1.get_future();
} catch ( dumbo::v1::fibers::packaged_task_uninitialized const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
void test_packaged_task_exec() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< int() > t1( fn3);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< int > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// exec
t1();
BOOST_CHECK( 3 == f1.get() );
// exec a second time
bool thrown = false;
try {
t1();
} catch ( dumbo::v1::fibers::promise_already_satisfied const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
void test_packaged_task_exec_move() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< A() > t1( fn9);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< A > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// exec
t1();
BOOST_CHECK( 3 == f1.get().value);
// exec a second time
bool thrown = false;
try {
t1();
} catch ( dumbo::v1::fibers::promise_already_satisfied const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
void test_packaged_task_exec_param() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< int( int) > t1( fn8);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< int > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// exec
t1( 3);
BOOST_CHECK( 3 == f1.get() );
// exec a second time
bool thrown = false;
try {
t1( 7);
} catch ( dumbo::v1::fibers::promise_already_satisfied const&) {
thrown = true;
}
BOOST_CHECK( thrown);
//TODO: packaged_task returns a moveable-only as return type
}
void test_packaged_task_exec_ref() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< int&() > t1( fn7);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< int& > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// exec
t1();
int & i = f1.get();
BOOST_CHECK( &gi == &i);
// exec a second time
bool thrown = false;
try {
t1();
} catch ( dumbo::v1::fibers::promise_already_satisfied const&) {
thrown = true;
}
BOOST_CHECK( thrown);
//TODO: packaged_task returns a moveable-only as return type
}
void test_packaged_task_exec_void() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< void() > t1( fn4);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< void > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// set void
t1();
f1.get();
// exec a second time
bool thrown = false;
try {
t1();
} catch ( dumbo::v1::fibers::promise_already_satisfied const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
void test_packaged_task_exception() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< int() > t1( fn5);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< int > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// exec
t1();
bool thrown = false;
try {
f1.get();
} catch ( my_exception const&) {
thrown = true;
}
BOOST_CHECK( thrown);
dumbo::v1::fibers::packaged_task< int() > t2( fn5);
BOOST_CHECK( t2.valid() );
dumbo::v1::fibers::future< int > f2 = t2.get_future();
BOOST_CHECK( f2.valid() );
// exec
t2();
BOOST_CHECK( f2.get_exception_ptr() );
thrown = false;
try
{ std::rethrow_exception( f2.get_exception_ptr() ); }
catch ( my_exception const&)
{ thrown = true; }
BOOST_CHECK( thrown);
}
void test_packaged_task_exception_move() {
// promise takes a moveable as return type
dumbo::v1::fibers::packaged_task< A() > t1( fn10);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< A > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// exec
t1();
bool thrown = false;
try {
f1.get();
} catch ( my_exception const&) {
thrown = true;
}
BOOST_CHECK( thrown);
dumbo::v1::fibers::packaged_task< A() > t2( fn10);
BOOST_CHECK( t2.valid() );
dumbo::v1::fibers::future< A > f2 = t2.get_future();
BOOST_CHECK( f2.valid() );
// exec
t2();
BOOST_CHECK( f2.get_exception_ptr() );
thrown = false;
try
{ std::rethrow_exception( f2.get_exception_ptr() ); }
catch ( my_exception const&)
{ thrown = true; }
BOOST_CHECK( thrown);
}
void test_packaged_task_exception_void() {
// promise takes a copyable as return type
dumbo::v1::fibers::packaged_task< void() > t1( fn6);
BOOST_CHECK( t1.valid() );
dumbo::v1::fibers::future< void > f1 = t1.get_future();
BOOST_CHECK( f1.valid() );
// set void
t1();
bool thrown = false;
try {
f1.get();
} catch ( my_exception const&) {
thrown = true;
}
BOOST_CHECK( thrown);
dumbo::v1::fibers::packaged_task< void() > t2( fn6);
BOOST_CHECK( t2.valid() );
dumbo::v1::fibers::future< void > f2 = t2.get_future();
BOOST_CHECK( f2.valid() );
// exec
t2();
BOOST_CHECK( f2.get_exception_ptr() );
thrown = false;
try {
std::rethrow_exception( f2.get_exception_ptr() );
} catch ( my_exception const&) {
thrown = true;
}
BOOST_CHECK( thrown);
}
boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[]) {
boost::unit_test_framework::test_suite* test =
BOOST_TEST_SUITE("Boost.Fiber: packaged_task test suite");
test->add(BOOST_TEST_CASE(test_packaged_task_create));
test->add(BOOST_TEST_CASE(test_packaged_task_create_move));
test->add(BOOST_TEST_CASE(test_packaged_task_create_void));
test->add(BOOST_TEST_CASE(test_packaged_task_move));
test->add(BOOST_TEST_CASE(test_packaged_task_move_move));
test->add(BOOST_TEST_CASE(test_packaged_task_move_void));
test->add(BOOST_TEST_CASE(test_packaged_task_swap));
test->add(BOOST_TEST_CASE(test_packaged_task_swap_move));
test->add(BOOST_TEST_CASE(test_packaged_task_swap_void));
test->add(BOOST_TEST_CASE(test_packaged_task_reset));
test->add(BOOST_TEST_CASE(test_packaged_task_reset_destruction));
test->add(BOOST_TEST_CASE(test_packaged_task_reset_move));
test->add(BOOST_TEST_CASE(test_packaged_task_reset_void));
test->add(BOOST_TEST_CASE(test_packaged_task_get_future));
test->add(BOOST_TEST_CASE(test_packaged_task_get_future_move));
test->add(BOOST_TEST_CASE(test_packaged_task_get_future_void));
test->add(BOOST_TEST_CASE(test_packaged_task_exec));
test->add(BOOST_TEST_CASE(test_packaged_task_exec_move));
test->add(BOOST_TEST_CASE(test_packaged_task_exec_param));
test->add(BOOST_TEST_CASE(test_packaged_task_exec_ref));
test->add(BOOST_TEST_CASE(test_packaged_task_exec_void));
test->add(BOOST_TEST_CASE(test_packaged_task_exception));
test->add(BOOST_TEST_CASE(test_packaged_task_exception_move));
test->add(BOOST_TEST_CASE(test_packaged_task_exception_void));
return test;
}
| [
"aist11@gmail.com"
] | aist11@gmail.com |
16fb55e3ce9d8a0812e9d62e647fdc392cf4122f | 76b7e459b143c8481b044c60a68c768a0848b8f6 | /IME++/2019/Homeworks/H0/CF1102C.cpp | d7258704aaf221859e97a70913bfeede490fdcff | [] | no_license | hsnavarro/imepp | f3b195e5ed4e453eac9b73d5a77b39f44917435f | eb90580caea91b48e7d541db92531ba3fd2b82c1 | refs/heads/master | 2021-11-28T07:25:05.778476 | 2021-09-10T02:20:32 | 2021-09-10T02:20:32 | 145,646,296 | 0 | 1 | null | 2021-09-10T02:20:33 | 2018-08-22T02:40:54 | C++ | UTF-8 | C++ | false | false | 259 | cpp | #include <bits/stdc++.h>
using namespace std;
int n, d, r, cnt, a, aux;
int main(){
ios_base::sync_with_stdio(0), cin.tie(0);
cin >> n >> d >> r;
aux = n;
while(aux--) cin >> a, cnt += (a <= d);
cout << (d > r ? n : (cnt+1)/2) << endl;
} | [
"ricksnavarro@gmail.com"
] | ricksnavarro@gmail.com |
e2f57fd15c4fcd4261e7ff022b1cb08f391b7c0d | 1ae555d3088dc123836060371fc520bf0ff13e52 | /codeforces/Edu83/c3.cpp | 19c42ee34bcc4b122abd7a8c9a831a6ef54b59ef | [] | no_license | knagakura/procon | a87b9a1717674aeb5ee3da0301d465e95c758fde | c6ac49dbaaa908ff13cb0d9af439efe5439ec691 | refs/heads/master | 2022-01-31T19:46:33.535685 | 2022-01-23T11:59:02 | 2022-01-23T11:59:02 | 161,764,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,476 | cpp | #include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0;i<int(N);++i)
#define rep1(i,N) for(int i=1;i<int(N);++i)
#define all(a) (a).begin(),(a).end()
#define print(v) { cerr<<#v<<": [ "; for(auto _ : v) cerr<<_<<", "; cerr<<"]"<<endl; }
#define printpair(v) { cerr<<#v<<": [ "; for(auto _ : v) cerr<<"{"<<_.first<<","<<_.second<<"}"<<", "; cerr<<"]"<<endl; }
#define dump(x) cerr<<#x<<": "<<x<<endl;
#define bit(k) (1LL<<(k))
#define Yes "Yes"
#define No "No"
#define YES "YES"
#define NO "NO"
typedef long long ll;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
const int INF = (ll)1e9;
const ll INFLL = (ll)1e18+1;
const ll MOD = (ll)1e9+7;
const double PI = acos(-1.0);
/*
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const string dir = "DRUL";
*/
int N,K;
void solve(){
cin>>N>>K;
vector<ll> a(N);
vector<bool> ans(N, false);
rep(i,N){
cin>>a[i];
if(a[i] == 0)ans[i] = true;
}
int cnt1 = 0;
rep(i,N){
if((a[i] % K) != 1 && (a[i] % K) != 0){
cout<<NO<<endl;
return;
}
else if(a[i] % K == 1){
cnt1++;
}
}
if(cnt1 > 1){
cout<<NO<<endl;
return;
}
//1 mod Kが一個だけ
//他はすべて 0 mod K;
//K^x のxを格納するリスト
vector<int> list;
rep(i,N){
if(a[i] % K == 1){
a[i]-= 1;
list.push_back(0);
}
int cnt = 0;
while(a[i]>1){
//cerr<<a[i]<<endl;
while(a[i] % K == 0 && a[i] > 1){
//cerr<<a[i]<<endl;
cnt++;
a[i] /= K;
}
list.push_back(cnt);
if(a[i] == 1)break;
else if(a[i] % K == 1){
a[i]-=1;
continue;
}
else{
cout<<NO<<endl;
return;
}
}
}
//print(list);
set<int> s;
rep(i,list.size()){
s.insert(list[i]);
}
if(s.size() == list.size()){
cout<<YES<<endl;
}
else cout<<NO<<endl;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
int q;
cin>>q;
while(q--){
solve();
}
} | [
"knagakura@bs.s.u-tokyo.ac.jp"
] | knagakura@bs.s.u-tokyo.ac.jp |
2bd58c4e4b08288e84b7bf97da43af87c437df96 | 19e17f70820e38aab23005a0a9eb253c0d76883a | /Tek2/CPP_Pool/Day08/ex02/Droid.hpp | 27a39be8527ba6b0753bb47bd97465e03fadd84d | [] | no_license | Emile442/Epitech | b50e16175229cfef56a9e554294c26eb0ab1383b | 6a12c0ca515252408173cec6fc2acc673909645b | refs/heads/master | 2023-01-03T11:29:51.542089 | 2020-10-31T19:41:02 | 2020-10-31T19:41:02 | 308,955,803 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | hpp | /*
** EPITECH PROJECT, 2020
** cpp_d08_2019
** File description:
** Droid
*/
#ifndef DROID_HPP_
#define DROID_HPP_
#include <string>
#include <iostream>
#include "DroidMemory.hpp"
class Droid {
public:
Droid(std::string serial, size_t energy = 50, const size_t attack = 25, const size_t toughness = 15, std::string* status = new std::string("Standing by"));
Droid(const Droid &ref);
Droid &operator=(const Droid &ref);
~Droid();
std::string getId() const;
void setId(std::string serial);
size_t getEnergy() const;
void setEnergy(size_t energy);
size_t getAttack() const;
size_t getToughness() const;
std::string &getStatus() const;
void setStatus(std::string* serial);
bool operator==(const Droid &ref) const;
bool operator!=(const Droid &ref) const;
Droid& operator<<(size_t &);
DroidMemory* getBattleData() const;
void setBattleData(DroidMemory* battleData);
bool operator()(std::string const * task, size_t exp);
private:
std::string _serial;
size_t _energy;
const size_t _attack;
const size_t _toughness;
std::string* _status;
DroidMemory* _battleData;
};
std::ostream & operator<<(std::ostream&, Droid const &ref);
#endif /* !DROID_HPP_ */
| [
"emile.lepetit@gmail.com"
] | emile.lepetit@gmail.com |
a220266c34b7fcac5dd91ed6f6c414eb32a3c550 | b01ae19d6bce9229b83d0165601719ae53ae2ed0 | /ios/versioned-react-native/ABI46_0_0/ReactNative/ReactCommon/react/bridging/tests/ABI46_0_0BridgingTest.h | 46d95d8f38086550834b17b9fd604143e88dff8c | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Abhishek12345679/expo | 1655f4f71afbee0e8ef4680e43586168f75e1914 | 8257de135f6d333860a73676509332c9cde04ba5 | refs/heads/main | 2023-02-20T19:46:17.694860 | 2022-11-21T15:48:20 | 2022-11-21T15:48:20 | 568,898,209 | 1 | 0 | MIT | 2022-11-21T16:39:42 | 2022-11-21T16:39:41 | null | UTF-8 | C++ | false | false | 2,095 | h | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <gtest/gtest.h>
#include <hermes/hermes.h>
#include <ABI46_0_0React/bridging/ABI46_0_0Bridging.h>
#define ABI46_0_0EXPECT_JSI_THROW(expr) ABI46_0_0EXPECT_THROW((expr), ABI46_0_0facebook::jsi::JSIException)
namespace ABI46_0_0facebook::ABI46_0_0React {
class TestCallInvoker : public CallInvoker {
public:
void invokeAsync(std::function<void()> &&fn) override {
queue_.push_back(std::move(fn));
}
void invokeSync(std::function<void()> &&) override {
FAIL() << "JSCallInvoker does not support invokeSync()";
}
private:
friend class BridgingTest;
std::list<std::function<void()>> queue_;
};
class BridgingTest : public ::testing::Test {
protected:
BridgingTest()
: invoker(std::make_shared<TestCallInvoker>()),
runtime(hermes::makeHermesRuntime(
::hermes::vm::RuntimeConfig::Builder()
// Make promises work with Hermes microtasks.
.withVMExperimentFlags(1 << 14 /* JobQueue */)
.build())),
rt(*runtime) {}
~BridgingTest() {
LongLivedObjectCollection::get().clear();
}
void TearDown() override {
flushQueue();
// After flushing the invoker queue, we shouldn't leak memory.
ABI46_0_0EXPECT_EQ(0, LongLivedObjectCollection::get().size());
}
jsi::Value eval(const std::string &js) {
return rt.global().getPropertyAsFunction(rt, "eval").call(rt, js);
}
jsi::Function function(const std::string &js) {
return eval(("(" + js + ")").c_str()).getObject(rt).getFunction(rt);
}
void flushQueue() {
while (!invoker->queue_.empty()) {
invoker->queue_.front()();
invoker->queue_.pop_front();
rt.drainMicrotasks(); // Run microtasks every cycle.
}
}
std::shared_ptr<TestCallInvoker> invoker;
std::unique_ptr<jsi::Runtime> runtime;
jsi::Runtime &rt;
};
} // namespace ABI46_0_0facebook::ABI46_0_0React
| [
"noreply@github.com"
] | Abhishek12345679.noreply@github.com |
e17b9e63aacdbe84af4c034e4d408784764facc3 | aae0a5370a64339f2caa8db5e53982fdd6e6f49d | /Holodryha_Andrii_OOP2/OOP_Lab2.cpp | 917b19ff2499fd70b53cfbca4d6040458b2dab66 | [] | no_license | AndriiSokil/OPP_Lab2 | 63b7a9c9990e4e00fb4fa7b37d3d0de85721c469 | e074eb17586b64b81397b2e68fc949ba34bea4be | refs/heads/main | 2023-03-21T22:58:34.072558 | 2021-03-14T18:41:28 | 2021-03-14T18:41:28 | 347,720,237 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,515 | cpp | #include <iostream>
using namespace std;
class Data {
private:
int* day;
int* month;
int* year;
public:
//Конструктор
Data() {
day = new int;
month = new int;
year = new int;
*day = *month = *year = 0;
}
Data(int userday, int usermonth, int useryear)
{
this->day = new int;
this->month = new int;
this->year = new int;
*day = userday;
*month = usermonth;
*year = useryear;
}
//Конструктор копіювання
Data(const Data& obj)
{
this->day = new int;
this->day = obj.day;
this->month = new int;
this->month = obj.day;
this->year = new int;
this->year = obj.day;
}
//Деструктор
~Data() {
delete[] day;
delete[] month;
delete[] year;
}
// Data print function
void ShowData() {
setlocale(LC_ALL, "Ukrainian");
string months[13] = {
{"Error 404"},
{"Сiчень"},
{"Лютий"},
{"Березень"},
{"Квiтень"},
{"Травень"},
{"Червень"},
{"Липень"},
{"Серпень"},
{"Вересень"},
{"Жовтень"},
{"Листопад"},
{"Грудень"},
};
cout << *day << " ";
cout << months[*month] << " ";
cout << *year << " р.\n";
if (*day < 10) {
cout << '0';
}
cout << *day << ".";
if (*month < 9) {
cout << '0';
}
cout << *month << ".";
cout << *year << endl;
}
//Функції повернення значень дня , місяця і року.
int Getday() { return *day; }
int Getmonth() { return *month; }
int Getyear() { return *year; }
//Функції зміни дати
void Setday() {
setlocale(LC_ALL, "Ukrainian");
int newday;
cout << "Введiть день(вiд 1 до 31)\n";
cin >> newday;
if (newday >= 0 && newday <= 31) {
*day = newday;
}
else cout << "Wrong data\n";
}
void Setmonth() {
setlocale(LC_ALL, "Ukrainian");
int newmonth;
cout << "Введiть мiсяць (вiд 1 до 12)\n";
cin >> newmonth;
if (newmonth >= 1 && newmonth < 13) {
*month = newmonth;
}
else cout << "Wrong data\n";
}
void Setyear() {
setlocale(LC_ALL, "Ukrainian");
int newyear;
cout << "Введiть рiк\n";
cin >> newyear;
if (newyear >= 0 && newyear < 9999) {
*year = newyear;
}
else cout << "Wrong data\n";
}
};
int main() {
int choice;
Data Data1;
Data Data2(02, 03, 2021);
setlocale(LC_ALL, "Ukrainian");
cout << "Привiт! \n Варiанти:\n 1 -> Встановити нову дату\n 2 -> Показати дату\n 0 -> Вихiд\n";
do {
cout << "Введiть номер потрiбної опцiї\n";
cin >> choice;
switch (choice) {
case 1:Data1.Setday();
Data1.Setmonth();
Data1.Setyear();
break;
case 2: Data1.ShowData();
}
} while (choice != 0);
return 0;
} | [
"noreply@github.com"
] | AndriiSokil.noreply@github.com |
2492a410c2a8d7480803bd89756707946650b0fd | 66ad77f8981fc13e5687190db2c50d68e408fba5 | /course_quizes/src/ukf.cpp | 29fc36621a66c2f36d0251f4c1a8de5caa95a62b | [] | no_license | emoyers/SFND_Unscented_Kalman_Filter | 5a344c6e2375c5eae36dc5bf7accf673deae1b17 | 2aa62c80ca39ee8ec834969fff19d52e45134e42 | refs/heads/master | 2023-07-07T09:01:05.845204 | 2023-06-27T06:07:36 | 2023-06-27T06:07:36 | 257,939,931 | 0 | 0 | null | 2020-04-22T15:20:26 | 2020-04-22T15:20:25 | null | UTF-8 | C++ | false | false | 19,812 | cpp | #include "ukf.h"
#include <iostream>
using Eigen::MatrixXd;
using Eigen::VectorXd;
UKF::UKF() {
Init();
}
UKF::~UKF() {
}
void UKF::Init() {
}
/**
* Programming assignment functions:
*/
void UKF::GenerateSigmaPoints(MatrixXd* Xsig_out) {
// set state dimension
int n_x = 5;
// define spreading parameter
double lambda = 3 - n_x;
// set example state
VectorXd x = VectorXd(n_x);
x << 5.7441,
1.3800,
2.2049,
0.5015,
0.3528;
// set example covariance matrix
MatrixXd P = MatrixXd(n_x, n_x);
P << 0.0043, -0.0013, 0.0030, -0.0022, -0.0020,
-0.0013, 0.0077, 0.0011, 0.0071, 0.0060,
0.0030, 0.0011, 0.0054, 0.0007, 0.0008,
-0.0022, 0.0071, 0.0007, 0.0098, 0.0100,
-0.0020, 0.0060, 0.0008, 0.0100, 0.0123;
// create sigma point matrix
MatrixXd Xsig = MatrixXd(n_x, 2 * n_x + 1);
// calculate square root of P
MatrixXd A = P.llt().matrixL();
/**
* Student part begin
*/
const double squared_const = sqrt((lambda + n_x));
A = A * squared_const;
// First sigma point
Xsig.col(0) = x;
// Next five sigma points
Xsig.block(0, 1, n_x, n_x) = A.colwise() + x;
// Next five sigma points
Xsig.block(0, 1 + n_x, n_x, n_x) = (-A).colwise() + x;
// print result
std::cout << "Xsig = " << std::endl << Xsig << std::endl;
// write result
*Xsig_out = Xsig;
}
/**
* expected result:
* Xsig =
* 5.7441 5.85768 5.7441 5.7441 5.7441 5.7441 5.63052 5.7441 5.7441 5.7441 5.7441
* 1.38 1.34566 1.52806 1.38 1.38 1.38 1.41434 1.23194 1.38 1.38 1.38
* 2.2049 2.28414 2.24557 2.29582 2.2049 2.2049 2.12566 2.16423 2.11398 2.2049 2.2049
* 0.5015 0.44339 0.631886 0.516923 0.595227 0.5015 0.55961 0.371114 0.486077 0.407773 0.5015
* 0.3528 0.299973 0.462123 0.376339 0.48417 0.418721 0.405627 0.243477 0.329261 0.22143 0.286879
*/
void UKF::AugmentedSigmaPoints(MatrixXd* Xsig_out) {
// set state dimension
int n_x = 5;
// set augmented dimension
int n_aug = 7;
// Process noise standard deviation longitudinal acceleration in m/s^2
double std_a = 0.2;
// Process noise standard deviation yaw acceleration in rad/s^2
double std_yawdd = 0.2;
// define spreading parameter
double lambda = 3 - n_aug;
// set example state
VectorXd x = VectorXd(n_x);
x << 5.7441,
1.3800,
2.2049,
0.5015,
0.3528;
// create example covariance matrix
MatrixXd P = MatrixXd(n_x, n_x);
P << 0.0043, -0.0013, 0.0030, -0.0022, -0.0020,
-0.0013, 0.0077, 0.0011, 0.0071, 0.0060,
0.0030, 0.0011, 0.0054, 0.0007, 0.0008,
-0.0022, 0.0071, 0.0007, 0.0098, 0.0100,
-0.0020, 0.0060, 0.0008, 0.0100, 0.0123;
// create augmented mean vector
VectorXd x_aug = VectorXd(7);
// create augmented state covariance
MatrixXd P_aug = MatrixXd(7, 7);
// create sigma point matrix
MatrixXd Xsig_aug = MatrixXd(n_aug, 2 * n_aug + 1);
/**
* Student part begin
*/
MatrixXd Q(2,2);
Q << std_a*std_a, 0,
0, std_yawdd*std_yawdd;
// create augmented mean state
x_aug.block(0, 0, n_x, 1) = x;
// create augmented covariance matrix
P_aug.block(0, 0, n_x, n_x) = P;
P_aug.block(n_x, n_x, 2, 2) = Q;
// create square root matrix
MatrixXd A = P_aug.llt().matrixL();
const double squared_const = sqrt((lambda + n_aug));
A = A * squared_const;
// create augmented sigma points
//First sigma point
Xsig_aug.col(0) = x_aug;
// Next five sigma points
Xsig_aug.block(0, 1, n_aug, n_aug) = A.colwise() + x_aug;
// Next five sigma points
Xsig_aug.block(0, 1 + n_aug, n_aug, n_aug) = (-A).colwise() + x_aug;
/**
* Student part end
*/
// print result
std::cout << "Xsig_aug = " << std::endl << Xsig_aug << std::endl;
// write result
*Xsig_out = Xsig_aug;
}
/**
* expected result:
* Xsig_aug =
* 5.7441 5.85768 5.7441 5.7441 5.7441 5.7441 5.7441 5.7441 5.63052 5.7441 5.7441 5.7441 5.7441 5.7441 5.7441
* 1.38 1.34566 1.52806 1.38 1.38 1.38 1.38 1.38 1.41434 1.23194 1.38 1.38 1.38 1.38 1.38
* 2.2049 2.28414 2.24557 2.29582 2.2049 2.2049 2.2049 2.2049 2.12566 2.16423 2.11398 2.2049 2.2049 2.2049 2.2049
* 0.5015 0.44339 0.631886 0.516923 0.595227 0.5015 0.5015 0.5015 0.55961 0.371114 0.486077 0.407773 0.5015 0.5015 0.5015
* 0.3528 0.299973 0.462123 0.376339 0.48417 0.418721 0.3528 0.3528 0.405627 0.243477 0.329261 0.22143 0.286879 0.3528 0.3528
* 0 0 0 0 0 0 0.34641 0 0 0 0 0 0 -0.34641 0
* 0 0 0 0 0 0 0 0.34641 0 0 0 0 0 0 -0.34641
*/
void UKF::SigmaPointPrediction(MatrixXd* Xsig_out) {
// set state dimension
int n_x = 5;
// set augmented dimension
int n_aug = 7;
// create example sigma point matrix
MatrixXd Xsig_aug = MatrixXd(n_aug, 2 * n_aug + 1);
Xsig_aug <<
5.7441, 5.85768, 5.7441, 5.7441, 5.7441, 5.7441, 5.7441, 5.7441, 5.63052, 5.7441, 5.7441, 5.7441, 5.7441, 5.7441, 5.7441,
1.38, 1.34566, 1.52806, 1.38, 1.38, 1.38, 1.38, 1.38, 1.41434, 1.23194, 1.38, 1.38, 1.38, 1.38, 1.38,
2.2049, 2.28414, 2.24557, 2.29582, 2.2049, 2.2049, 2.2049, 2.2049, 2.12566, 2.16423, 2.11398, 2.2049, 2.2049, 2.2049, 2.2049,
0.5015, 0.44339, 0.631886, 0.516923, 0.595227, 0.5015, 0.5015, 0.5015, 0.55961, 0.371114, 0.486077, 0.407773, 0.5015, 0.5015, 0.5015,
0.3528, 0.299973, 0.462123, 0.376339, 0.48417, 0.418721, 0.3528, 0.3528, 0.405627, 0.243477, 0.329261, 0.22143, 0.286879, 0.3528, 0.3528,
0, 0, 0, 0, 0, 0, 0.34641, 0, 0, 0, 0, 0, 0, -0.34641, 0,
0, 0, 0, 0, 0, 0, 0, 0.34641, 0, 0, 0, 0, 0, 0, -0.34641;
// create matrix with predicted sigma points as columns
MatrixXd Xsig_pred = MatrixXd(n_x, 2 * n_aug + 1);
double delta_t = 0.1; // time diff in sec
// Predicting sigma points
double px, py, vel, yaw, yaw_rate, noise_px, noise_py,
noise_vel, noise_yaw, noise_yaw_rate, noise_acc,
noise_yaw_rate_dot = 0.0;
for(uint8_t i=0u; i<Xsig_pred.cols(); i++)
{
px = Xsig_aug(0,i);
py = Xsig_aug(1,i);
vel = Xsig_aug(2,i);
yaw = Xsig_aug(3,i);
yaw_rate = Xsig_aug(4,i);
noise_acc = Xsig_aug(5,i);
noise_yaw_rate_dot = Xsig_aug(6,i);
noise_px = 0.5 * delta_t * delta_t * cos(yaw) * noise_acc;
noise_py = 0.5 * delta_t * delta_t * sin(yaw) * noise_acc;
noise_vel = delta_t * noise_acc;
noise_yaw = 0.5 * delta_t * delta_t * noise_yaw_rate_dot;
noise_yaw_rate = delta_t * noise_yaw_rate_dot;
// avoid division by zero
if(yaw_rate <= std::numeric_limits<double>::epsilon())
{
Xsig_pred(0,i) = px + vel * cos(yaw) * delta_t + noise_px;
Xsig_pred(1,i) = py + vel * sin(yaw) * delta_t + noise_py;
Xsig_pred(2,i) = vel + noise_vel;
Xsig_pred(3,i) = yaw + noise_yaw;
Xsig_pred(4,i) = noise_yaw_rate;
}
else
{
Xsig_pred(0,i) = px + (vel/yaw_rate) * (sin(yaw + yaw_rate * delta_t) - sin(yaw)) + noise_px;
Xsig_pred(1,i) = py + (vel/yaw_rate) * (-cos(yaw + yaw_rate * delta_t) + cos(yaw)) + noise_py;
Xsig_pred(2,i) = vel + noise_vel;
Xsig_pred(3,i) = yaw + yaw_rate * delta_t + noise_yaw;
Xsig_pred(4,i) = yaw_rate + noise_yaw_rate;
}
}
// print result
std::cout << "Xsig_pred = " << std::endl << Xsig_pred << std::endl;
// write result
*Xsig_out = Xsig_pred;
}
/*
* expected result:
* Xsig_pred =
* 5.93553 6.06251 5.92217 5.9415 5.92361 5.93516 5.93705 5.93553 5.80832 5.94481 5.92935 5.94553 5.93589 5.93401 5.93553
* 1.48939 1.44673 1.66484 1.49719 1.508 1.49001 1.49022 1.48939 1.5308 1.31287 1.48182 1.46967 1.48876 1.48855 1.48939
* 2.2049 2.28414 2.24557 2.29582 2.2049 2.2049 2.23954 2.2049 2.12566 2.16423 2.11398 2.2049 2.2049 2.17026 2.2049
* 0.53678 0.473387 0.678098 0.554557 0.643644 0.543372 0.53678 0.538512 0.600173 0.395462 0.519003 0.429916 0.530188 0.53678 0.535048
* 0.3528 0.299973 0.462123 0.376339 0.48417 0.418721 0.3528 0.387441 0.405627 0.243477 0.329261 0.22143 0.286879 0.3528 0.318159
*/
void UKF::PredictMeanAndCovariance(VectorXd* x_out, MatrixXd* P_out) {
// set state dimension
int n_x = 5;
// set augmented dimension
int n_aug = 7;
// define spreading parameter
double lambda = 3 - n_aug;
// create example matrix with predicted sigma points
MatrixXd Xsig_pred = MatrixXd(n_x, 2 * n_aug + 1);
Xsig_pred <<
5.9374, 6.0640, 5.925, 5.9436, 5.9266, 5.9374, 5.9389, 5.9374, 5.8106, 5.9457, 5.9310, 5.9465, 5.9374, 5.9359, 5.93744,
1.48, 1.4436, 1.660, 1.4934, 1.5036, 1.48, 1.4868, 1.48, 1.5271, 1.3104, 1.4787, 1.4674, 1.48, 1.4851, 1.486,
2.204, 2.2841, 2.2455, 2.2958, 2.204, 2.204, 2.2395, 2.204, 2.1256, 2.1642, 2.1139, 2.204, 2.204, 2.1702, 2.2049,
0.5367, 0.47338, 0.67809, 0.55455, 0.64364, 0.54337, 0.5367, 0.53851, 0.60017, 0.39546, 0.51900, 0.42991, 0.530188, 0.5367, 0.535048,
0.352, 0.29997, 0.46212, 0.37633, 0.4841, 0.41872, 0.352, 0.38744, 0.40562, 0.24347, 0.32926, 0.2214, 0.28687, 0.352, 0.318159;
// create vector for weights
VectorXd weights = VectorXd(2*n_aug+1);
// create vector for predicted state
VectorXd x = VectorXd(n_x);
// create covariance matrix for prediction
MatrixXd P = MatrixXd(n_x, n_x);
// set weights
weights(0) = lambda / (lambda + n_aug);
for(uint8_t i = 1u; i<weights.size(); i++)
{
weights(i) = 0.5 / (lambda + n_aug);
}
// predict state mean
MatrixXd weights_x_X = Xsig_pred.array().rowwise() * weights.transpose().array();
x = weights_x_X.rowwise().sum();
// predict state covariance matrix
MatrixXd Xsig_pred_minus_x = Xsig_pred.colwise() - x;
P.fill(0.0);
for (int i = 0; i < Xsig_pred_minus_x.cols(); ++i) { // iterate over sigma points
// angle normalization
while (Xsig_pred_minus_x(3, i)> M_PI) Xsig_pred_minus_x(3, i)-=2.*M_PI;
while (Xsig_pred_minus_x(3, i)<-M_PI) Xsig_pred_minus_x(3, i)+=2.*M_PI;
P += weights(i) * Xsig_pred_minus_x.col(i) * Xsig_pred_minus_x.col(i).transpose() ;
}
// print result
std::cout << "Predicted state" << std::endl;
std::cout << x << std::endl;
std::cout << "Predicted covariance matrix" << std::endl;
std::cout << P << std::endl;
// write result
*x_out = x;
*P_out = P;
}
/*
* expected result x:
* x =
* 5.93637
* 1.4905
* 2.20528
* 0.536853
* 0.353577
*
* expected result p:
* P =
* 0.00543425 -0.0024053 0.00341576 -0.00348196 -0.00299378
* -0.0024053 0.010845 0.0014923 0.00980182 0.00791091
* 0.00341576 0.0014923 0.00580129 0.000778632 0.000792973
* -0.00348196 0.00980182 0.000778632 0.0119238 0.0112491
* -0.00299378 0.00791091 0.000792973 0.0112491 0.0126972
*/
void UKF::PredictRadarMeasurement(VectorXd* z_out, MatrixXd* S_out) {
// set state dimension
int n_x = 5;
// set augmented dimension
int n_aug = 7;
// set measurement dimension, radar can measure r, phi, and r_dot
int n_z = 3;
// define spreading parameter
double lambda = 3 - n_aug;
// set vector for weights
VectorXd weights = VectorXd(2*n_aug+1);
double weight_0 = lambda/(lambda+n_aug);
double weight = 0.5/(lambda+n_aug);
weights(0) = weight_0;
for (int i=1; i<2*n_aug+1; ++i) {
weights(i) = weight;
}
// radar measurement noise standard deviation radius in m
double std_radr = 0.3;
// radar measurement noise standard deviation angle in rad
double std_radphi = 0.0175;
// radar measurement noise standard deviation radius change in m/s
double std_radrd = 0.1;
// create example matrix with predicted sigma points
MatrixXd Xsig_pred = MatrixXd(n_x, 2 * n_aug + 1);
Xsig_pred <<
5.9374, 6.0640, 5.925, 5.9436, 5.9266, 5.9374, 5.9389, 5.9374, 5.8106, 5.9457, 5.9310, 5.9465, 5.9374, 5.9359, 5.93744,
1.48, 1.4436, 1.660, 1.4934, 1.5036, 1.48, 1.4868, 1.48, 1.5271, 1.3104, 1.4787, 1.4674, 1.48, 1.4851, 1.486,
2.204, 2.2841, 2.2455, 2.2958, 2.204, 2.204, 2.2395, 2.204, 2.1256, 2.1642, 2.1139, 2.204, 2.204, 2.1702, 2.2049,
0.5367, 0.47338, 0.67809, 0.55455, 0.64364, 0.54337, 0.5367, 0.53851, 0.60017, 0.39546, 0.51900, 0.42991, 0.530188, 0.5367, 0.535048,
0.352, 0.29997, 0.46212, 0.37633, 0.4841, 0.41872, 0.352, 0.38744, 0.40562, 0.24347, 0.32926, 0.2214, 0.28687, 0.352, 0.318159;
// create matrix for sigma points in measurement space
MatrixXd Zsig = MatrixXd(n_z, 2 * n_aug + 1);
// mean predicted measurement
VectorXd z_pred = VectorXd(n_z);
// measurement covariance matrix S
MatrixXd S = MatrixXd(n_z,n_z);
MatrixXd R = MatrixXd(n_z,n_z);
// transform sigma points into measurement space
double px, py, vel, yaw, yaw_rate = 0.0;
for (uint8_t i = 0u; i<Xsig_pred.cols(); i++)
{
px = Xsig_pred(0, i);
py = Xsig_pred(1, i);
vel = Xsig_pred(2, i);
yaw = Xsig_pred(3, i);
yaw_rate = Xsig_pred(4, i);
Zsig(0, i) = sqrt(px*px + py*py);
Zsig(1, i) = atan2(py, px);
Zsig(2, i) = (px * cos(yaw) * vel + py * sin(yaw) * vel) / Zsig(0, i);
}
// calculate mean predicted measurement
// predict state mean
MatrixXd weights_x_X = Zsig.array().rowwise() * weights.transpose().array();
z_pred = weights_x_X.rowwise().sum();
// calculate innovation covariance matrix S
MatrixXd Zsig_minus_x = Zsig.colwise() - z_pred;
S.fill(0.0);
for (int i = 0; i < Zsig_minus_x.cols(); ++i) { // iterate over sigma points
// angle normalization
while (Zsig_minus_x(1, i)> M_PI) Zsig_minus_x(1, i)-=2.*M_PI;
while (Zsig_minus_x(1, i)<-M_PI) Zsig_minus_x(1, i)+=2.*M_PI;
S += weights(i) * Zsig_minus_x.col(i) * Zsig_minus_x.col(i).transpose() ;
}
R(0, 0) = std_radr * std_radr;
R(1, 1) = std_radphi * std_radphi;
R(2, 2) = std_radrd * std_radrd;
S = S + R;
// print result
std::cout << "z_pred: " << std::endl << z_pred << std::endl;
std::cout << "S: " << std::endl << S << std::endl;
// write result
*z_out = z_pred;
*S_out = S;
}
/*
* expected result z_out:
* z_pred =
* 6.12155
* 0.245993
* 2.10313
*
* expected result s_out:
* S =
* 0.0946171 -0.000139448 0.00407016
* -0.000139448 0.000617548 -0.000770652
* 0.00407016 -0.000770652 0.0180917
*/
void UKF::UpdateState(VectorXd* x_out, MatrixXd* P_out) {
// set state dimension
int n_x = 5;
// set augmented dimension
int n_aug = 7;
// set measurement dimension, radar can measure r, phi, and r_dot
int n_z = 3;
// define spreading parameter
double lambda = 3 - n_aug;
// set vector for weights
VectorXd weights = VectorXd(2*n_aug+1);
double weight_0 = lambda/(lambda+n_aug);
double weight = 0.5/(lambda+n_aug);
weights(0) = weight_0;
for (int i=1; i<2*n_aug+1; ++i) {
weights(i) = weight;
}
// create example matrix with predicted sigma points in state space
MatrixXd Xsig_pred = MatrixXd(n_x, 2 * n_aug + 1);
Xsig_pred <<
5.9374, 6.0640, 5.925, 5.9436, 5.9266, 5.9374, 5.9389, 5.9374, 5.8106, 5.9457, 5.9310, 5.9465, 5.9374, 5.9359, 5.93744,
1.48, 1.4436, 1.660, 1.4934, 1.5036, 1.48, 1.4868, 1.48, 1.5271, 1.3104, 1.4787, 1.4674, 1.48, 1.4851, 1.486,
2.204, 2.2841, 2.2455, 2.2958, 2.204, 2.204, 2.2395, 2.204, 2.1256, 2.1642, 2.1139, 2.204, 2.204, 2.1702, 2.2049,
0.5367, 0.47338, 0.67809, 0.55455, 0.64364, 0.54337, 0.5367, 0.53851, 0.60017, 0.39546, 0.51900, 0.42991, 0.530188, 0.5367, 0.535048,
0.352, 0.29997, 0.46212, 0.37633, 0.4841, 0.41872, 0.352, 0.38744, 0.40562, 0.24347, 0.32926, 0.2214, 0.28687, 0.352, 0.318159;
// create example vector for predicted state mean
VectorXd x = VectorXd(n_x);
x <<
5.93637,
1.49035,
2.20528,
0.536853,
0.353577;
// create example matrix for predicted state covariance
MatrixXd P = MatrixXd(n_x,n_x);
P <<
0.0054342, -0.002405, 0.0034157, -0.0034819, -0.00299378,
-0.002405, 0.01084, 0.001492, 0.0098018, 0.00791091,
0.0034157, 0.001492, 0.0058012, 0.00077863, 0.000792973,
-0.0034819, 0.0098018, 0.00077863, 0.011923, 0.0112491,
-0.0029937, 0.0079109, 0.00079297, 0.011249, 0.0126972;
// create example matrix with sigma points in measurement space
MatrixXd Zsig = MatrixXd(n_z, 2 * n_aug + 1);
Zsig <<
6.1190, 6.2334, 6.1531, 6.1283, 6.1143, 6.1190, 6.1221, 6.1190, 6.0079, 6.0883, 6.1125, 6.1248, 6.1190, 6.1188, 6.12057,
0.24428, 0.2337, 0.27316, 0.24616, 0.24846, 0.24428, 0.24530, 0.24428, 0.25700, 0.21692, 0.24433, 0.24193, 0.24428, 0.24515, 0.245239,
2.1104, 2.2188, 2.0639, 2.187, 2.0341, 2.1061, 2.1450, 2.1092, 2.0016, 2.129, 2.0346, 2.1651, 2.1145, 2.0786, 2.11295;
// create example vector for mean predicted measurement
VectorXd z_pred = VectorXd(n_z);
z_pred <<
6.12155,
0.245993,
2.10313;
// create example matrix for predicted measurement covariance
MatrixXd S = MatrixXd(n_z,n_z);
S <<
0.0946171, -0.000139448, 0.00407016,
-0.000139448, 0.000617548, -0.000770652,
0.00407016, -0.000770652, 0.0180917;
// create example vector for incoming radar measurement
VectorXd z = VectorXd(n_z);
z <<
5.9214, // rho in m
0.2187, // phi in rad
2.0062; // rho_dot in m/s
// create matrix for cross correlation Tc
MatrixXd Tc = MatrixXd(n_x, n_z);
/**
* Student part begin
*/
// calculate cross correlation matrix
MatrixXd Xsig_pred_minus_x = Xsig_pred.colwise() - x;
MatrixXd Zsig_minus_x = Zsig.colwise() - z_pred;
Tc.fill(0.0);
if(Xsig_pred_minus_x.cols() == Zsig_minus_x.cols())
{
for (int i = 0; i < Xsig_pred_minus_x.cols(); ++i) { // iterate over sigma points
// angle normalization
while (Xsig_pred_minus_x(3, i)> M_PI) Xsig_pred_minus_x(3, i)-=2.*M_PI;
while (Xsig_pred_minus_x(3, i)<-M_PI) Xsig_pred_minus_x(3, i)+=2.*M_PI;
while (Zsig_minus_x(1, i)> M_PI) Zsig_minus_x(1, i)-=2.*M_PI;
while (Zsig_minus_x(1, i)<-M_PI) Zsig_minus_x(1, i)+=2.*M_PI;
Tc += weights(i) * Xsig_pred_minus_x.col(i) * Zsig_minus_x.col(i).transpose() ;
}
}
// calculate Kalman gain K;
MatrixXd K = Tc * S.inverse();
// update state mean and covariance matrix
x = x + K * (z - z_pred);
P = P - K * S * K.transpose();
/**
* Student part end
*/
// print result
std::cout << "Updated state x: " << std::endl << x << std::endl;
std::cout << "Updated state covariance P: " << std::endl << P << std::endl;
// write result
*x_out = x;
*P_out = P;
}
/*
* expected result x:
* x =
* 5.92276
* 1.41823
* 2.15593
* 0.489274
* 0.321338
*
* expected result P:
* P =
* 0.00361579 -0.000357881 0.00208316 -0.000937196 -0.00071727
* -0.000357881 0.00539867 0.00156846 0.00455342 0.00358885
* 0.00208316 0.00156846 0.00410651 0.00160333 0.00171811
* -0.000937196 0.00455342 0.00160333 0.00652634 0.00669436
* -0.00071719 0.00358884 0.00171811 0.00669426 0.00881797
*/
| [
"emoyersb@gmail.com"
] | emoyersb@gmail.com |
737c7567fdb923ee18ce4df5a65c2543fea1b420 | 4510da837f58a607262b9a776a16a11282fea9c8 | /labs/lab7/People/People/IWorker.h | a556b1a19e341579c6aa98f3fc226baaa457e905 | [] | no_license | AnyaGl/oop | 14605f8cd86eaa3a89c9b7bf07b01c934561ee56 | 33879160095cd87334917802b46ca18c41a19c1d | refs/heads/master | 2021-01-04T08:11:58.314839 | 2020-07-09T07:39:07 | 2020-07-09T07:39:07 | 240,459,917 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 209 | h | #pragma once
#include "IPerson.h"
#include <string>
class IWorker : public IPerson
{
public:
virtual std::string GetSpeciality() const = 0;
virtual void SetSpeciality(const std::string& speciality) = 0;
};
| [
"gladysheva_2000@inbox.ru"
] | gladysheva_2000@inbox.ru |
131f7d2de5197ddaa9e90f97b65b207db31ffddb | fb7817c071c37fed603e1b46df1327175ee031b1 | /App/Lib/Bal/Include/math/balMathCommonVector_inl.h | 0ab551a6197640db6e0bc75ccdf98549e1ee5275 | [
"MIT"
] | permissive | belmayze/bal | af22ecf42ae1491843c4e84f74af75be92b64ed3 | 710a96d011855fdab4e4b6962a2ba5b6b6b35aae | refs/heads/master | 2021-08-18T04:04:42.151990 | 2021-07-03T22:29:42 | 2021-07-03T22:29:42 | 240,271,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,264 | h | /*!
* @file balMathCommonVector_inl.h
* @brief
* @author belmayze
*
* Copyright (c) 2020 belmayze. All rights reserved.
*/
#pragma once
// bal
#include <math/balMathCommonVector.h>
// ----------------------------------------------------------------------------
namespace bal {
// ----------------------------------------------------------------------------
// Vector2
// ----------------------------------------------------------------------------
inline float MathCommonVector2::setNormalize()
{
float length = calcLength();
float length_inv = 1.f / length;
m[0] *= length_inv; m[1] *= length_inv;
return length;
}
// ----------------------------------------------------------------------------
inline float MathCommonVector2::calcLengthSq() const
{
return m[0] * m[0] + m[1] * m[1];
}
// ----------------------------------------------------------------------------
inline float MathCommonVector2::calcLength() const
{
return Math::Sqrt(m[0] * m[0] + m[1] * m[1]);
}
// ----------------------------------------------------------------------------
inline MathCommonVector2 MathCommonVector2::calcNormalize() const
{
MathCommonVector2 v = *this;
v.setNormalize();
return v;
}
// ----------------------------------------------------------------------------
inline float MathCommonVector2::calcDot(const MathCommonVector2& v) const
{
return m[0] * v.m[0] + m[1] * v.m[1];
}
// ----------------------------------------------------------------------------
inline float MathCommonVector2::calcCross(const MathCommonVector2& v) const
{
return m[0] * v.m[1] - m[1] * v.m[0];
}
// ----------------------------------------------------------------------------
// Vector3
// ----------------------------------------------------------------------------
inline float MathCommonVector3::setNormalize()
{
float length = calcLength();
float length_inv = 1.f / length;
m[0] *= length_inv; m[1] *= length_inv; m[2] *= length_inv;
return length;
}
// ----------------------------------------------------------------------------
inline float MathCommonVector3::calcLengthSq() const
{
return m[0] * m[0] + m[1] * m[1] + m[2] * m[2];
}
// ----------------------------------------------------------------------------
inline float MathCommonVector3::calcLength() const
{
return Math::Sqrt(m[0] * m[0] + m[1] * m[1] + m[2] * m[2]);
}
// ----------------------------------------------------------------------------
inline MathCommonVector3 MathCommonVector3::calcNormalize() const
{
MathCommonVector3 v = *this;
v.setNormalize();
return v;
}
// ----------------------------------------------------------------------------
inline float MathCommonVector3::calcDot(const MathCommonVector3& v) const
{
return m[0] * v.m[0] + m[1] * v.m[1] + m[2] * v.m[2];
}
// ----------------------------------------------------------------------------
inline MathCommonVector3 MathCommonVector3::calcCross(const MathCommonVector3& v) const
{
return MathCommonVector3(
m[1] * v.m[2] - m[2] * v.m[1],
m[2] * v.m[0] - m[0] * v.m[2],
m[0] * v.m[1] - m[1] * v.m[0]
);
}
// ----------------------------------------------------------------------------
}
| [
"belmayze@users.noreply.github.com"
] | belmayze@users.noreply.github.com |
c0579b3303f0c6f48223c2c96053c9ed399d75e1 | 1e8d2568eb80e0149cdb9ba998e93bfd10032095 | /TP/lab04/lista/lista_encadeada.cpp | 774972c1a08377ce5130630d295d852a6e6cb7cd | [] | no_license | Robertorosmaninho/PDS2 | 3356bbafdd33f11031645ae02c1121789b88301d | 9195c83b52bd4c6b1e2b1c80e33c82d79cd1b86c | refs/heads/master | 2020-04-07T21:35:53.629585 | 2019-02-02T22:37:37 | 2019-02-02T22:37:37 | 158,733,346 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | #include <iostream>
#include "lista_encadeada.h"
#include "node.h"
ListaEncadeada::ListaEncadeada(){
}
ListaEncadeada::~ListaEncadeada(){
Node *aux,*aux_prox;
if(_inicio!=nullptr){
aux=_inicio;
aux_prox=aux->get_prox();
while(aux_prox!=nullptr){
delete aux;
aux=aux_prox;
aux_prox=aux_prox->get_prox();
}
}
}
void ListaEncadeada::insere_node(float value){
Node* n = new Node(value);
this->insere_node(n);
}
void ListaEncadeada::insere_node(Node* n){
Node *aux,*aux_prox;
if(_inicio==nullptr){
_inicio=n;
}
else{
aux=_inicio;
aux_prox=aux->get_prox();
while(aux_prox!=nullptr){
aux=aux_prox;
aux_prox=aux_prox->get_prox();
}
aux->set_prox(n);
}
}
void ListaEncadeada::imprime_lista(){
Node *aux=_inicio;
while(aux!=nullptr){
aux=aux->get_prox();
std::cout<<aux->get_value()<<std::endl;
}
std::cout<<std::endl;
}
| [
"robertogrosmaninho@outlook.com"
] | robertogrosmaninho@outlook.com |
760e8023a784daa6837f698639858f1e3e09cb77 | dcf535c491af36d04f8d6869e6f50ed19c17a650 | /src/util/Logging.cpp | 561e77686e9fe8cc76c52af765a21afa29e341c4 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | jiaoxie83847573p/epcblock | c786cc1568e8a45034fd676187e492fe621f1d09 | 12a2430b4a7ec554aa810127475fe32a711603a2 | refs/heads/master | 2020-03-21T15:23:05.633174 | 2018-06-26T09:58:18 | 2018-06-26T09:58:18 | 138,709,198 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,836 | cpp | // Copyright 2014 epc Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "util/Logging.h"
#include "main/Application.h"
#include "util/types.h"
/*
Levels:
TRACE
DEBUG
FATAL
ERROR
WARNING
INFO
*/
namespace epc
{
namespace
{
static const std::vector<std::string> kLoggers = {
"Fs", "SCP", "Bucket", "Database", "History", "Process", "Ledger",
"Overlay", "Herder", "Tx", "LoadGen", "Work", "Invariant"};
}
el::Configurations Logging::gDefaultConf;
void
Logging::setFmt(std::string const& peerID, bool timestamps)
{
std::string datetime;
if (timestamps)
{
datetime = "%datetime{%Y-%M-%dT%H:%m:%s.%g}";
}
const std::string shortFmt =
datetime + " " + peerID + " [%logger %level] %msg";
const std::string longFmt = shortFmt + " [%fbase:%line]";
gDefaultConf.setGlobally(el::ConfigurationType::Format, shortFmt);
gDefaultConf.set(el::Level::Error, el::ConfigurationType::Format, longFmt);
gDefaultConf.set(el::Level::Trace, el::ConfigurationType::Format, longFmt);
gDefaultConf.set(el::Level::Fatal, el::ConfigurationType::Format, longFmt);
el::Loggers::reconfigureAllLoggers(gDefaultConf);
}
void
Logging::init()
{
// el::Loggers::addFlag(el::LoggingFlag::HierarchicalLogging);
el::Loggers::addFlag(el::LoggingFlag::DisableApplicationAbortOnFatalLog);
for (auto const& logger : kLoggers)
{
el::Loggers::getLogger(logger);
}
gDefaultConf.setToDefault();
gDefaultConf.setGlobally(el::ConfigurationType::ToStandardOutput, "true");
gDefaultConf.setGlobally(el::ConfigurationType::ToFile, "false");
setFmt("<startup>");
}
void
Logging::setLoggingToFile(std::string const& filename)
{
gDefaultConf.setGlobally(el::ConfigurationType::ToFile, "true");
gDefaultConf.setGlobally(el::ConfigurationType::Filename, filename);
el::Loggers::reconfigureAllLoggers(gDefaultConf);
}
el::Level
Logging::getLogLevel(std::string const& partition)
{
el::Logger* logger = el::Loggers::getLogger(partition);
if (logger->typedConfigurations()->enabled(el::Level::Trace))
return el::Level::Trace;
if (logger->typedConfigurations()->enabled(el::Level::Debug))
return el::Level::Debug;
if (logger->typedConfigurations()->enabled(el::Level::Info))
return el::Level::Info;
if (logger->typedConfigurations()->enabled(el::Level::Warning))
return el::Level::Warning;
if (logger->typedConfigurations()->enabled(el::Level::Error))
return el::Level::Error;
if (logger->typedConfigurations()->enabled(el::Level::Fatal))
return el::Level::Fatal;
return el::Level::Unknown;
}
bool
Logging::logDebug(std::string const& partition)
{
auto lev = Logging::getLogLevel(partition);
return lev == el::Level::Debug || lev == el::Level::Trace;
}
bool
Logging::logTrace(std::string const& partition)
{
auto lev = Logging::getLogLevel(partition);
return lev == el::Level::Trace;
}
// Trace < Debug < Info < Warning < Error < Fatal < None
void
Logging::setLogLevel(el::Level level, const char* partition)
{
el::Configurations config = gDefaultConf;
if (level == el::Level::Debug)
config.set(el::Level::Trace, el::ConfigurationType::Enabled, "false");
else if (level == el::Level::Info)
{
config.set(el::Level::Trace, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Debug, el::ConfigurationType::Enabled, "false");
}
else if (level == el::Level::Warning)
{
config.set(el::Level::Trace, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Debug, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Info, el::ConfigurationType::Enabled, "false");
}
else if (level == el::Level::Error)
{
config.set(el::Level::Trace, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Debug, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Info, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Warning, el::ConfigurationType::Enabled, "false");
}
else if (level == el::Level::Fatal)
{
config.set(el::Level::Trace, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Debug, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Info, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Warning, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Error, el::ConfigurationType::Enabled, "false");
}
else if (level == el::Level::Unknown)
{
config.set(el::Level::Trace, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Debug, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Info, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Warning, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Error, el::ConfigurationType::Enabled, "false");
config.set(el::Level::Fatal, el::ConfigurationType::Enabled, "false");
}
if (partition)
el::Loggers::reconfigureLogger(partition, config);
else
el::Loggers::reconfigureAllLoggers(config);
}
std::string
Logging::getStringFromLL(el::Level level)
{
switch (level)
{
case el::Level::Global:
return "Global";
case el::Level::Trace:
return "Trace";
case el::Level::Debug:
return "Debug";
case el::Level::Fatal:
return "Fatal";
case el::Level::Error:
return "Error";
case el::Level::Warning:
return "Warning";
case el::Level::Verbose:
return "Verbose";
case el::Level::Info:
return "Info";
case el::Level::Unknown:
return "Unknown";
}
return "????";
}
// default "info" if unrecognized
el::Level
Logging::getLLfromString(std::string const& levelName)
{
if (iequals(levelName, "trace"))
{
return el::Level::Trace;
}
if (iequals(levelName, "debug"))
{
return el::Level::Debug;
}
if (iequals(levelName, "warning"))
{
return el::Level::Warning;
}
if (iequals(levelName, "fatal"))
{
return el::Level::Fatal;
}
if (iequals(levelName, "error"))
{
return el::Level::Error;
}
if (iequals(levelName, "none"))
{
return el::Level::Unknown;
}
return el::Level::Info;
}
void
Logging::rotate()
{
el::Loggers::getLogger("default")->reconfigure();
for (auto const& logger : kLoggers)
{
el::Loggers::getLogger(logger)->reconfigure();
}
}
}
| [
"40593460+jiaoxie83847573p@users.noreply.github.com"
] | 40593460+jiaoxie83847573p@users.noreply.github.com |
13e6d2cce446a6447c65fd036b5e4bd573c3f4bd | d2c0ebb859fae2cd66fa73c14bd56eca58c7b41b | /hookflash-libs/boost/boost/libs/units/test/test_output.cpp | 442735a683809321b2bfc6e5e45381186449277f | [
"BSL-1.0",
"BSD-2-Clause-Views"
] | permissive | ilin-in/OP | 4ad6ab6c1f018cb0b90db4e34651aa3328df191d | bf3e87d90008e2a4106ee70360fbe15b0d694e77 | refs/heads/master | 2020-04-08T11:29:44.234718 | 2012-12-29T00:50:35 | 2012-12-29T00:50:35 | 7,470,505 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,858 | cpp | // Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2009 Steven Watanabe
// Copyright Paul A. Bristow 2010
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/**
\file test_output.cpp
\brief
Test unit and quantity printing
\details
Tests for output from various units, name, symbol and raw formats, and automatic prefixing in engineering and binary units.
**/
#include <boost/units/quantity.hpp>
#include <boost/units/io.hpp>
#include <boost/units/unit.hpp>
#include <boost/units/scale.hpp>
#include <boost/units/scaled_base_unit.hpp>
#include <boost/units/make_scaled_unit.hpp>
#include <boost/units/base_unit.hpp>
#include <boost/units/make_system.hpp>
#include <boost/units/absolute.hpp>
#include <boost/units/physical_dimensions/length.hpp>
#include <boost/units/physical_dimensions/time.hpp>
#include <boost/units/physical_dimensions/velocity.hpp>
#include <boost/units/physical_dimensions/volume.hpp>
#include <boost/units/physical_dimensions/acceleration.hpp>
#include <boost/units/physical_dimensions/area.hpp>
#include <boost/regex.hpp>
#include <sstream>
#include <boost/config.hpp>
#include <limits>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
struct meter_base_unit : boost::units::base_unit<meter_base_unit, boost::units::length_dimension, 1> {
static const char* name() { return("meter"); }
static const char* symbol() { return("m"); }
};
struct second_base_unit : boost::units::base_unit<second_base_unit, boost::units::time_dimension, 2> {
static const char* name() { return("second"); }
static const char* symbol() { return("s"); }
};
struct byte_base_unit : boost::units::base_unit<byte_base_unit, boost::units::dimensionless_type, 3> {
static const char* name() { return("byte"); }
static const char* symbol() { return("b"); }
};
typedef boost::units::make_system<meter_base_unit, second_base_unit>::type my_system;
typedef boost::units::unit<boost::units::length_dimension, my_system> length;
typedef boost::units::unit<boost::units::velocity_dimension, my_system> velocity;
typedef boost::units::make_scaled_unit<length, boost::units::scale<10, boost::units::static_rational<3> > >::type scaled_length;
typedef boost::units::make_scaled_unit<velocity, boost::units::scale<10, boost::units::static_rational<3> > >::type scaled_velocity1;
typedef boost::units::scaled_base_unit<second_base_unit, boost::units::scale<10, boost::units::static_rational<-3> > > millisecond_base_unit;
typedef boost::units::make_system<meter_base_unit, millisecond_base_unit>::type scaled_system;
typedef boost::units::unit<boost::units::time_dimension, scaled_system> scaled_time;
typedef boost::units::unit<boost::units::velocity_dimension, scaled_system> scaled_velocity2;
typedef boost::units::unit<boost::units::area_dimension, my_system> area;
typedef boost::units::make_scaled_unit<area, boost::units::scale<10, boost::units::static_rational<3> > >::type scaled_area;
typedef boost::units::make_scaled_unit<scaled_length, boost::units::scale<2, boost::units::static_rational<10> > >::type double_scaled_length;
typedef boost::units::scaled_base_unit<meter_base_unit, boost::units::scale<100, boost::units::static_rational<1> > > scaled_length_base_unit;
namespace boost {
namespace units {
template<>
struct base_unit_info<scaled_length_base_unit> {
static const char* symbol() { return("scm"); }
static const char* name() { return("scaled_meter"); }
};
}
}
typedef boost::units::scaled_base_unit<scaled_length_base_unit, boost::units::scale<10, boost::units::static_rational<3> > > double_scaled_length_base_unit;
typedef double_scaled_length_base_unit::unit_type double_scaled_length2;
typedef boost::units::reduce_unit<boost::units::unit<boost::units::volume_dimension, my_system> >::type custom1;
std::string name_string(const custom1&) { return("custom1"); }
std::string symbol_string(const custom1&) { return("c1"); }
typedef boost::units::reduce_unit<boost::units::unit<boost::units::acceleration_dimension, my_system> >::type custom2;
const char* name_string(const custom2&) { return("custom2"); }
const char* symbol_string(const custom2&) { return("c2"); }
typedef boost::units::make_scaled_unit<custom1, boost::units::scale<10, boost::units::static_rational<3> > >::type scaled_custom1;
typedef boost::units::make_scaled_unit<custom2, boost::units::scale<10, boost::units::static_rational<3> > >::type scaled_custom2;
#ifndef BOOST_NO_CWCHAR
#define BOOST_UNITS_TEST_OUTPUT(v, expected) \
{ \
std::ostringstream ss; \
ss FORMATTERS << v; \
BOOST_CHECK_EQUAL(ss.str(), expected); \
} \
{ \
std::wostringstream ss; \
ss FORMATTERS << v; \
BOOST_CHECK(ss.str() == BOOST_PP_CAT(L, expected)); \
}
#define BOOST_UNITS_TEST_OUTPUT_REGEX(v, expected) \
{ \
std::ostringstream ss; \
ss FORMATTERS << v; \
boost::regex r(expected); \
BOOST_CHECK_MESSAGE(boost::regex_match(ss.str(), r), \
ss.str() + " does not match " + expected); \
} \
{ \
std::wostringstream ss; \
ss FORMATTERS << v; \
boost::wregex r(BOOST_PP_CAT(L, expected)); \
BOOST_CHECK(boost::regex_match(ss.str(), r)); \
}
#else
#define BOOST_UNITS_TEST_OUTPUT(v, expected) \
{ \
std::ostringstream ss; \
ss FORMATTERS << v; \
BOOST_CHECK_EQUAL(ss.str(), expected); \
}
#define BOOST_UNITS_TEST_OUTPUT_REGEX(v, expected) \
{ \
std::ostringstream ss; \
ss FORMATTERS << v; \
boost::regex r(expected); \
BOOST_CHECK_MESSAGE(boost::regex_match(ss.str(), r), \
ss.str() + " does not match " + expected); \
}
#endif
BOOST_AUTO_TEST_CASE(test_output_unit_symbol)
{ // base units using default symbol_format (no format specified) and no auto prefixing.
#define FORMATTERS
BOOST_UNITS_TEST_OUTPUT(meter_base_unit::unit_type(), "m");
BOOST_UNITS_TEST_OUTPUT(velocity(), "m s^-1");
BOOST_UNITS_TEST_OUTPUT(scaled_length(), "km");
BOOST_UNITS_TEST_OUTPUT(scaled_velocity1(), "k(m s^-1)");
BOOST_UNITS_TEST_OUTPUT(millisecond_base_unit::unit_type(), "ms");
BOOST_UNITS_TEST_OUTPUT(scaled_time(), "ms");
BOOST_UNITS_TEST_OUTPUT(scaled_velocity2(), "m ms^-1");
BOOST_UNITS_TEST_OUTPUT(area(), "m^2");
BOOST_UNITS_TEST_OUTPUT(scaled_area(), "k(m^2)");
BOOST_UNITS_TEST_OUTPUT(double_scaled_length(), "Kikm");
BOOST_UNITS_TEST_OUTPUT(double_scaled_length2(), "kscm");
BOOST_UNITS_TEST_OUTPUT(custom1(), "c1");
BOOST_UNITS_TEST_OUTPUT(custom2(), "c2");
BOOST_UNITS_TEST_OUTPUT(scaled_custom1(), "kc1");
BOOST_UNITS_TEST_OUTPUT(scaled_custom2(), "kc2");
BOOST_UNITS_TEST_OUTPUT(boost::units::absolute<meter_base_unit::unit_type>(), "absolute m");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_unit_raw)
{ // raw format specified
#define FORMATTERS << boost::units::raw_format
BOOST_UNITS_TEST_OUTPUT(meter_base_unit::unit_type(), "m");
BOOST_UNITS_TEST_OUTPUT(velocity(), "m s^-1");
BOOST_UNITS_TEST_OUTPUT(scaled_length(), "km");
BOOST_UNITS_TEST_OUTPUT(scaled_velocity1(), "k(m s^-1)");
BOOST_UNITS_TEST_OUTPUT(millisecond_base_unit::unit_type(), "ms");
BOOST_UNITS_TEST_OUTPUT(scaled_time(), "ms");
BOOST_UNITS_TEST_OUTPUT(scaled_velocity2(), "m ms^-1");
BOOST_UNITS_TEST_OUTPUT(area(), "m^2");
BOOST_UNITS_TEST_OUTPUT(scaled_area(), "k(m^2)");
BOOST_UNITS_TEST_OUTPUT(double_scaled_length(), "Kikm");
BOOST_UNITS_TEST_OUTPUT(double_scaled_length2(), "kscm");
// when using raw format, we ignore the user defined overloads
BOOST_UNITS_TEST_OUTPUT(custom1(), "m^3");
BOOST_UNITS_TEST_OUTPUT(custom2(), "m s^-2");
BOOST_UNITS_TEST_OUTPUT(scaled_custom1(), "k(m^3)");
BOOST_UNITS_TEST_OUTPUT(scaled_custom2(), "k(m s^-2)");
BOOST_UNITS_TEST_OUTPUT(boost::units::absolute<meter_base_unit::unit_type>(), "absolute m");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_unit_name)
{ // name format specified.
#define FORMATTERS << boost::units::name_format
BOOST_UNITS_TEST_OUTPUT(meter_base_unit::unit_type(), "meter");
BOOST_UNITS_TEST_OUTPUT(velocity(), "meter second^-1");
BOOST_UNITS_TEST_OUTPUT(scaled_length(), "kilometer");
BOOST_UNITS_TEST_OUTPUT(scaled_velocity1(), "kilo(meter second^-1)");
BOOST_UNITS_TEST_OUTPUT(millisecond_base_unit::unit_type(), "millisecond");
BOOST_UNITS_TEST_OUTPUT(scaled_time(), "millisecond");
BOOST_UNITS_TEST_OUTPUT(scaled_velocity2(), "meter millisecond^-1");
BOOST_UNITS_TEST_OUTPUT(area(), "meter^2");
BOOST_UNITS_TEST_OUTPUT(scaled_area(), "kilo(meter^2)");
BOOST_UNITS_TEST_OUTPUT(double_scaled_length(), "kibikilometer");
BOOST_UNITS_TEST_OUTPUT(double_scaled_length2(), "kiloscaled_meter");
BOOST_UNITS_TEST_OUTPUT(custom1(), "custom1");
BOOST_UNITS_TEST_OUTPUT(custom2(), "custom2");
BOOST_UNITS_TEST_OUTPUT(scaled_custom1(), "kilocustom1");
BOOST_UNITS_TEST_OUTPUT(scaled_custom2(), "kilocustom2");
BOOST_UNITS_TEST_OUTPUT(boost::units::absolute<meter_base_unit::unit_type>(), "absolute meter");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_quantity_symbol)
{ // quantity symbols using default format.
#define FORMATTERS
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 m");
BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 m s^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_length(), "1.5 km");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity1(), "1.5 k(m s^-1)");
BOOST_UNITS_TEST_OUTPUT(1.5*millisecond_base_unit::unit_type(), "1.5 ms");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_time(), "1.5 ms");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity2(), "1.5 m ms^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*area(), "1.5 m^2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_area(), "1.5 k(m^2)");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length(), "1.5 Kikm");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length2(), "1.5 kscm");
BOOST_UNITS_TEST_OUTPUT(1.5*custom1(), "1.5 c1");
BOOST_UNITS_TEST_OUTPUT(1.5*custom2(), "1.5 c2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom1(), "1.5 kc1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom2(), "1.5 kc2");
BOOST_UNITS_TEST_OUTPUT(1.5*boost::units::absolute<meter_base_unit::unit_type>(), "1.5 absolute m");
BOOST_UNITS_TEST_OUTPUT(pow(2., 10) * byte_base_unit::unit_type(), "1024 b");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_quantity_raw)
{ // quantity symbols using raw format.
#define FORMATTERS << boost::units::raw_format
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 m");
BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 m s^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_length(), "1.5 km");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity1(), "1.5 k(m s^-1)");
BOOST_UNITS_TEST_OUTPUT(1.5*millisecond_base_unit::unit_type(), "1.5 ms");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_time(), "1.5 ms");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity2(), "1.5 m ms^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*area(), "1.5 m^2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_area(), "1.5 k(m^2)");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length(), "1.5 Kikm");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length2(), "1.5 kscm");
// when using raw format, we ignore the user defined overloads
BOOST_UNITS_TEST_OUTPUT(1.5*custom1(), "1.5 m^3");
BOOST_UNITS_TEST_OUTPUT(1.5*custom2(), "1.5 m s^-2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom1(), "1.5 k(m^3)");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom2(), "1.5 k(m s^-2)");
BOOST_UNITS_TEST_OUTPUT(1.5*boost::units::absolute<meter_base_unit::unit_type>(), "1.5 absolute m");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_quantity_name)
{ // // quantity symbols using name format.
#define FORMATTERS << boost::units::name_format
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 meter");
BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 meter second^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_length(), "1.5 kilometer");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity1(), "1.5 kilo(meter second^-1)");
BOOST_UNITS_TEST_OUTPUT(1.5*millisecond_base_unit::unit_type(), "1.5 millisecond");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_time(), "1.5 millisecond");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity2(), "1.5 meter millisecond^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*area(), "1.5 meter^2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_area(), "1.5 kilo(meter^2)");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length(), "1.5 kibikilometer");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length2(), "1.5 kiloscaled_meter");
BOOST_UNITS_TEST_OUTPUT(1.5*custom1(), "1.5 custom1");
BOOST_UNITS_TEST_OUTPUT(1.5*custom2(), "1.5 custom2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom1(), "1.5 kilocustom1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom2(), "1.5 kilocustom2");
BOOST_UNITS_TEST_OUTPUT(1.5*boost::units::absolute<meter_base_unit::unit_type>(), "1.5 absolute meter");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_autoprefixed_quantity_name)
{ // Engineering autoprefix, with name format.
#define FORMATTERS << boost::units::name_format << boost::units::engineering_prefix
// Single base unit like meter.
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 meter");
BOOST_UNITS_TEST_OUTPUT(1500.0*meter_base_unit::unit_type(), "1.5 kilometer");
BOOST_UNITS_TEST_OUTPUT(1.5e7*meter_base_unit::unit_type(), "15 megameter");
BOOST_UNITS_TEST_OUTPUT(1.5e-3*meter_base_unit::unit_type(), "1.5 millimeter");
BOOST_UNITS_TEST_OUTPUT(1.5e-9*meter_base_unit::unit_type(), "1.5 nanometer");
BOOST_UNITS_TEST_OUTPUT(1.5e-8*meter_base_unit::unit_type(), "15 nanometer");
BOOST_UNITS_TEST_OUTPUT(1.5e-10*meter_base_unit::unit_type(), "150 picometer");
BOOST_UNITS_TEST_OUTPUT(0.0000000012345 * meter_base_unit::unit_type(), "1.2345 nanometer");
// Too small or large for a multiple name.
BOOST_UNITS_TEST_OUTPUT_REGEX(9.99999e-25 * meter_base_unit::unit_type(), "9\\.99999e-0?25 meter"); // Just too small for multiple.
BOOST_UNITS_TEST_OUTPUT_REGEX(1e+28 * meter_base_unit::unit_type(), "1e\\+0?28 meter"); // Just too large for multiple.
BOOST_UNITS_TEST_OUTPUT_REGEX(1.5e-25 * meter_base_unit::unit_type(), "1\\.5e-0?25 meter"); // Too small for multiple.
BOOST_UNITS_TEST_OUTPUT_REGEX(1.5e+28 * meter_base_unit::unit_type(), "1\\.5e\\+0?28 meter"); // Too large for multiple.
// Too 'biggest or too smallest'.
BOOST_UNITS_TEST_OUTPUT_REGEX(std::numeric_limits<float>::max()*meter_base_unit::unit_type(), "3\\.40282e\\+0?38 meter");
BOOST_UNITS_TEST_OUTPUT_REGEX(std::numeric_limits<float>::min()*meter_base_unit::unit_type(), "1\\.17549e-0?38 meter");
BOOST_UNITS_TEST_OUTPUT(std::numeric_limits<double>::max()*meter_base_unit::unit_type(), "1.79769e+308 meter");
BOOST_UNITS_TEST_OUTPUT(std::numeric_limits<double>::min()*meter_base_unit::unit_type(), "2.22507e-308 meter");
// Infinity and NaN
BOOST_UNITS_TEST_OUTPUT_REGEX(std::numeric_limits<float>::infinity()*meter_base_unit::unit_type(), "(1\\.#INF|inf) meter");
BOOST_UNITS_TEST_OUTPUT_REGEX(-std::numeric_limits<float>::infinity()*meter_base_unit::unit_type(), "-(1\\.#INF|inf) meter");
BOOST_UNITS_TEST_OUTPUT_REGEX(std::numeric_limits<double>::quiet_NaN()*meter_base_unit::unit_type(), "(1\\.#QNAN|nan) meter");
BOOST_UNITS_TEST_OUTPUT_REGEX(-std::numeric_limits<double>::quiet_NaN()*meter_base_unit::unit_type(), "-?(1\\.#IND|nan) meter");
BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 meter second^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_length(), "1.5 kilometer");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity1(), "1.5 kilo(meter second^-1)");
BOOST_UNITS_TEST_OUTPUT(1.5*millisecond_base_unit::unit_type(), "1.5 millisecond");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_time(), "1.5 millisecond");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity2(), "1.5 meter millisecond^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*area(), "1.5 meter^2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_area(), "1.5 kilo(meter^2)");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length(), "1.536 megameter"); // 1.5 * 2^10 = 1.5 * 1024 = 1.536
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length2(), "1.5 kiloscaled_meter");
BOOST_UNITS_TEST_OUTPUT(1.5*custom1(), "1.5 custom1");
BOOST_UNITS_TEST_OUTPUT(1.5*custom2(), "1.5 custom2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom1(), "1.5 kilocustom1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom2(), "1.5 kilocustom2");
BOOST_UNITS_TEST_OUTPUT(1.5*boost::units::absolute<meter_base_unit::unit_type>(), "1.5 absolute meter");
BOOST_UNITS_TEST_OUTPUT(pow(2., 10) * byte_base_unit::unit_type(), "1.024 kilobyte");
BOOST_UNITS_TEST_OUTPUT(1.5, "1.5"); // scalar.
BOOST_UNITS_TEST_OUTPUT(1567., "1567"); // scalars are *not* autoprefixed.
BOOST_UNITS_TEST_OUTPUT(0.00015, "0.00015"); // scalars are *not* autoprefixed.
BOOST_UNITS_TEST_OUTPUT(-1.5, "-1.5"); // scalar.
BOOST_UNITS_TEST_OUTPUT(-1567., "-1567"); // scalars are *not* autoprefixed.
BOOST_UNITS_TEST_OUTPUT(-0.00015, "-0.00015"); // scalars are *not* autoprefixed.
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_autoprefixed_quantity_symbol)
{ // Engineering autoprefix, with symbol format.
#define FORMATTERS << boost::units::symbol_format << boost::units::engineering_prefix
// Single base unit like m.
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 m");
BOOST_UNITS_TEST_OUTPUT(1500.0*meter_base_unit::unit_type(), "1.5 km");
BOOST_UNITS_TEST_OUTPUT(1.5e7*meter_base_unit::unit_type(), "15 Mm");
BOOST_UNITS_TEST_OUTPUT(1.5e-3*meter_base_unit::unit_type(), "1.5 mm");
BOOST_UNITS_TEST_OUTPUT(1.5e-9*meter_base_unit::unit_type(), "1.5 nm");
BOOST_UNITS_TEST_OUTPUT(1.5e-8*meter_base_unit::unit_type(), "15 nm");
BOOST_UNITS_TEST_OUTPUT(1.5e-10*meter_base_unit::unit_type(), "150 pm");
// Too small or large for a multiple name.
BOOST_UNITS_TEST_OUTPUT_REGEX(9.99999e-25 * meter_base_unit::unit_type(), "9\\.99999e-0?25 m"); // Just too small for multiple.
BOOST_UNITS_TEST_OUTPUT_REGEX(1e+28 * meter_base_unit::unit_type(), "1e\\+0?28 m"); // Just too large for multiple.
BOOST_UNITS_TEST_OUTPUT_REGEX(1.5e-25 * meter_base_unit::unit_type(), "1\\.5e-0?25 m"); // Too small for multiple.
BOOST_UNITS_TEST_OUTPUT_REGEX(1.5e+28 * meter_base_unit::unit_type(), "1\\.5e\\+0?28 m"); // Too large for multiple.
//
BOOST_UNITS_TEST_OUTPUT_REGEX(std::numeric_limits<float>::max()*meter_base_unit::unit_type(), "3\\.40282e\\+0?38 m");
BOOST_UNITS_TEST_OUTPUT_REGEX(std::numeric_limits<float>::min()*meter_base_unit::unit_type(), "1\\.17549e-0?38 m");
BOOST_UNITS_TEST_OUTPUT(std::numeric_limits<double>::max()*meter_base_unit::unit_type(), "1.79769e+308 m");
BOOST_UNITS_TEST_OUTPUT(std::numeric_limits<double>::min()*meter_base_unit::unit_type(), "2.22507e-308 m");
BOOST_UNITS_TEST_OUTPUT(1.5*velocity(), "1.5 m s^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_length(), "1.5 km");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity1(), "1.5 k(m s^-1)");
BOOST_UNITS_TEST_OUTPUT(1.5*millisecond_base_unit::unit_type(), "1.5 ms");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_time(), "1.5 ms");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_velocity2(), "1.5 m ms^-1");
BOOST_UNITS_TEST_OUTPUT(1.5*area(), "1.5 m^2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_area(), "1.5 k(m^2)");
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length(), "1.536 Mm"); // 1.5 * 2^10 = 1.5 * 1024 = 1.536
BOOST_UNITS_TEST_OUTPUT(1.5*double_scaled_length2(), "1.5 kscm");
BOOST_UNITS_TEST_OUTPUT(1.5*custom1(), "1.5 c1");
BOOST_UNITS_TEST_OUTPUT(1.5*custom2(), "1.5 c2");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom1(), "1.5 kc1");
BOOST_UNITS_TEST_OUTPUT(1.5*scaled_custom2(), "1.5 kc2");
BOOST_UNITS_TEST_OUTPUT(1.5*boost::units::absolute<meter_base_unit::unit_type>(), "1.5 absolute m");
BOOST_UNITS_TEST_OUTPUT(pow(2., 10) * byte_base_unit::unit_type(), "1.024 kb");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_auto_binary_prefixed_quantity_symbol)
{ // Binary prefix with symbol format.
#define FORMATTERS << boost::units::symbol_format << boost::units::binary_prefix
BOOST_UNITS_TEST_OUTPUT(1024 * byte_base_unit::unit_type(), "1 Kib");
BOOST_UNITS_TEST_OUTPUT(pow(2., 20) * byte_base_unit::unit_type(), "1 Mib");
BOOST_UNITS_TEST_OUTPUT(pow(2., 30) * byte_base_unit::unit_type(), "1 Gib");
BOOST_UNITS_TEST_OUTPUT(pow(2., 40) * byte_base_unit::unit_type(), "1 Tib");
BOOST_UNITS_TEST_OUTPUT(pow(2., 50) * byte_base_unit::unit_type(), "1 Pib");
BOOST_UNITS_TEST_OUTPUT(pow(2., 60) * byte_base_unit::unit_type(), "1 Eib");
BOOST_UNITS_TEST_OUTPUT(42, "42"); // integer scalar.
BOOST_UNITS_TEST_OUTPUT(-42, "-42"); // integer scalar.
BOOST_UNITS_TEST_OUTPUT(1567, "1567"); // scalars are *not* autoprefixed.
BOOST_UNITS_TEST_OUTPUT(-1567, "-1567"); // scalars are *not* autoprefixed.
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_auto_binary_prefixed_quantity_name)
{ // Binary prefix with name format.
// http://physics.nist.gov/cuu/Units/binary.html
// 1998 the International Electrotechnical Commission (IEC) approved
// IEC 60027-2, Second edition, 2000-11, Letter symbols to be used in electrical technology
// - Part 2: Telecommunications and electronics.
#define FORMATTERS << boost::units::name_format << boost::units::binary_prefix
BOOST_UNITS_TEST_OUTPUT(2048 * byte_base_unit::unit_type(), "2 kibibyte");
BOOST_UNITS_TEST_OUTPUT(pow(2., 32) *byte_base_unit::unit_type(), "4 gibibyte");
BOOST_UNITS_TEST_OUTPUT(pow(2., 41) *byte_base_unit::unit_type(), "2 tebibyte"); // http://en.wikipedia.org/wiki/Tebibyte
BOOST_UNITS_TEST_OUTPUT(pow(2., 50) *byte_base_unit::unit_type(), "1 pebibyte");
BOOST_UNITS_TEST_OUTPUT(pow(2., 60) *byte_base_unit::unit_type(), "1 exbibyte");
BOOST_UNITS_TEST_OUTPUT(2048, "2048"); // scalars are *not* autoprefixed.
BOOST_UNITS_TEST_OUTPUT(-4096, "-4096"); // scalars are *not* autoprefixed.
#undef FORMATTERS
}
// Tests on using more than one format or prefix - only the last specified should be used.
// (This may indicate a programming mistake, but it is ignored).
BOOST_AUTO_TEST_CASE(test_output_quantity_name_duplicate)
{ // Ensure that if more than one format specified, only the last is used.
#define FORMATTERS << boost::units::symbol_format << boost::units::name_format
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 meter");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_quantity_symbol_duplicate)
{ // Ensure that if more than one format specified, only the last is used.
#define FORMATTERS << boost::units::name_format << boost::units::symbol_format
BOOST_UNITS_TEST_OUTPUT(1.5*meter_base_unit::unit_type(), "1.5 m");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_auto_binary_prefixed_quantity_name_duplicate)
{ // Ensure that if more than one auto prefix specified, only the last is used.
#define FORMATTERS << boost::units::name_format << boost::units::binary_prefix << boost::units::engineering_prefix
BOOST_UNITS_TEST_OUTPUT(2048 * byte_base_unit::unit_type(), "2.048 kilobyte");
#undef FORMATTERS
}
BOOST_AUTO_TEST_CASE(test_output_auto_binary_prefixed_quantity_symbol_duplicate)
{ // Ensure that if more than one auto prefix specified, only the last is used.
#define FORMATTERS << boost::units::symbol_format << boost::units::engineering_prefix << boost::units::binary_prefix
BOOST_UNITS_TEST_OUTPUT(2048 * byte_base_unit::unit_type(), "2 Kib");
#undef FORMATTERS
}
| [
"robin@hookflash.com"
] | robin@hookflash.com |
a6fc485a4fcd01afb897cb79c04fd7a16cbc2cf5 | f4fc41dec97dc89afbb9f787369c1f78afa63e11 | /cpp01/ex06/Weapon.hpp | c85e5cae69428c1c0b8c758c387d0ea517248309 | [] | no_license | Likilee/cpp_module | c6347509c78df8ae286b3146b8e3732f546eb120 | af0ae4714a3c92e0f900acfabc9b23b2160b3331 | refs/heads/master | 2023-04-25T17:56:58.921336 | 2021-05-06T07:16:43 | 2021-05-06T07:16:43 | 358,129,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 246 | hpp | #ifndef WEAPON_HPP
# define WEAPON_HPP
# include <string>
class Weapon
{
private:
std::string _type;
public:
Weapon();
Weapon(std::string type);
~Weapon();
const std::string &getType() const;
void setType(std::string type);
};
#endif
| [
"gnsdlrl@daum.net"
] | gnsdlrl@daum.net |
7a7365d1958d2bfe6c3c7362054e709d33748a70 | 9b615dd4021ffe5960137b8a393afa246b121e36 | /StrangeTales/Objeto.cpp | be3674e7baba73b5b218cb5561844f616f430ea9 | [] | no_license | ReeVicente/StrangerTales | 38798ffb689c1b36672a3365b27453093b66260e | 8c510873d34def1f4d6bf9b2e867e5e4aea2ac85 | refs/heads/master | 2020-03-22T16:12:42.611793 | 2018-07-12T02:12:47 | 2018-07-12T02:12:47 | 140,311,023 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 325 | cpp | #include "stdafx.h"
#include <string>
#include <iostream>
#include "Objeto.h"
Objeto::Objeto(std::string nome, std::string mensagem) {
this->nome = nome;
this->mensagem = mensagem;
}
bool Objeto::Interagir() {
std::cout << this->mensagem << std::endl;
return temItem;
}
std::string Objeto::getNome() {
return nome;
}
| [
"renanvicentecosta@gmail.com"
] | renanvicentecosta@gmail.com |
5f4410f4742c08a15cfab92f43c0afb46da83abe | e45aa8d976841d3dda6d146810ed84c32f46f279 | /2018/25/constellations.cpp | 3a1e30f1ae33746394ee108d4951385308dbbda6 | [] | no_license | drbitboy/AdventOCode | 9b9ef968d569ae676d612b070ba010a73f2a9719 | 8c42bdd31d6f3ba00ba5fd44a4dcf5b16a1629a7 | refs/heads/master | 2020-09-02T13:05:12.292311 | 2019-12-25T05:37:32 | 2019-12-25T05:37:32 | 219,228,179 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,870 | cpp | ////////////////////////////////////////////////////////////////////////
// Formation of constellations using four-dimensional manhattan distance
////////////////////////////////////////////////////////////////////////
#include <bits/stdc++.h>
using namespace std;
#define nl '\n'
////////////////////////////////////////////////////////////////////////
// Four-dimensional point class, with connections for constellations
//
// 1) A constellation is a group of FOURDs where each FOURD has a
// manhattan distance of three or less with at least one other
// FOURD in the constellation
//
// 2) sort_index: arbitrary per-FOURD-unique value with which to
// compare FOURDs
//
// 3) Invariant: the pOriginator will point to the FOURD with the
// smallest sort_index in a constellation of FOURDs
//
// 4.1) Invariant: pOriginator->pOriginator == pOriginator i.e the
// constellation originator's pOriginator will point
// to itself
//
// 5) Invariant: *(pOriginator->psetp) will be the set of all pFOURDs
// in that originator's constellation;
//
// 6) All non-originator FOURDs will have psetp == NULL
class FOURD {
public:
static const int MMHD = 3; // Maximum manhattan distance for forming
// a constellation; item (1) above
int fours[4]; // The four coordinates
bool failed; // Flag to note that fscanf failed
set<FOURD*>* psetp; // If not null, set of FOURDs in constellation
FOURD* pOriginator; // Originator of constellation
int sort_index; // An ordering index
FOURD(int N, FILE* fin=stdin);
~FOURD() { if (psetp) delete psetp; }
// Manhattan distance between two FOURD objects
int operator-(FOURD& that) {
int rtn = 0;
for (int i=0; rtn<=MMHD && i<4; ++i) {
rtn += abs(fours[i] - that.fours[i]);
}
return rtn;
}
bool merge(FOURD* that);
};
typedef FOURD *pFOURD, **ppFOURD;
typedef set<FOURD*> SF, *pSF, **ppSF;
typedef SF::iterator SFIT;
////////////////////////////////////////////////////////////////////////
// Merge FOURD constellations if manhattan distance is <= MMHD
bool FOURD::merge(FOURD* that) {
// Do not test two FOURDs already in the same constellation
// Do n0t merge two FOURDs that are farther than MMH apart
if (this->pOriginator == that->pOriginator) return false;
if ( (*this - *that) > MMHD ) return false;
// To here, this and that are in different constellations and are also
// within Manhattan distance FOURD.MMHD of each other
// Find new originator and mergee; Invariant (3) above
pFOURD pNew_originator;
pFOURD pMergee;
if (this->pOriginator->sort_index < this->pOriginator->sort_index) {
pNew_originator = this->pOriginator;
pMergee = that->pOriginator;
} else {
pNew_originator = that->pOriginator;
pMergee = this->pOriginator;
}
// Set ->pOriginator in all mergee's psetp elements
for (SFIT sfit = pMergee->psetp->begin()
; sfit != pMergee->psetp->end()
; ++sfit
) { (*sfit)->pOriginator = pNew_originator; }
// Copy mergee's set elements to new originator
// - Invariant 5 above
pNew_originator->psetp->insert(pMergee->psetp->begin()
, pMergee->psetp->end()
);
// Delete mergee set memory allocation and reset pointer to same
// - Invariant 6 above
delete pMergee->psetp;
pMergee->psetp = 0;
return true;
}
////////////////////////////////////////////////////////////////////////
// FOURD Constructor
FOURD::FOURD(int si_, FILE* fin) {
char c;
// Read four coordinate values, separated by commas, no spaces before commas
failed = 7 > fscanf(fin, "%d%c%d%c%d%c%d%c", fours+0, &c, fours+1, &c, fours+2, &c, fours+3, &c);
if (!failed) { // If successful:
psetp = new SF(); // - Set of pFOURDs
psetp->insert(this); // - Insert this i.e. 1-point constellation
// - Invariant (5)
pOriginator = this; // - This is originator of said constellation
// - Invariant (4)
sort_index = si_; // - Use supplied sort index
} else {
psetp = 0; // - If input failed, ensure pointer is nul so des
}
}
////////////////////////////////////////////////////////////////////////
// [ostream operator<<] overides, for debugging
ostream& operator<<(ostream& out, FOURD& fourd) {
for (int i=0; i<4; ++i) {
out << (i ? "," : "") << fourd.fours[i];
}
return out;
}
ostream& operator<<(ostream& out, pFOURD pfourd) {
for (int i=0; i<4; ++i) {
out << (i ? ',' : '[') << pfourd->fours[i];
}
out << ']' ;
return out;
}
////////////////////////////////////////////////////////////////////////
// The main program
int main(int argc, char** argv) {
// Allocate 1500 pointers for FOURDs
ppFOURD ppfourd = new pFOURD[1500];
int N;
for (N = 0; N<1500; ++N) {
// Scan one line from stdin, allocate and populate FOURD
// - N is used for sort_index; Item (2) above
ppfourd[N] = new FOURD(N);
if (ppfourd[N]->failed) {
// Clean up on failure and exit loop
// - Assume failure was caused by end of input file
delete ppfourd[N];
break;
}
}
ppFOURD ppfourdend = ppfourd + N; // End of array of pFOURDs
// Each FOURD is its own constellation
// Invariant 7) Nconstellations will keep track of number of
// constellations
int Nconstellations = N;
for (ppFOURD ppouter = ppfourd; ppouter < ppfourdend; ++ppouter) {
for (ppFOURD ppinner = ppouter; ++ppinner < ppfourdend; ) {
if ((*ppouter)->merge(*ppinner)) --Nconstellations;
}
;
}
cout << N << " points comprise "
<< Nconstellations << " constellations"
<< nl;
return 0;
}
| [
"BrianTCarcich@gmail.com"
] | BrianTCarcich@gmail.com |
ed87ec72cc4da5eeaea568830799a999c0e6e1f0 | 4780d63d0fa0585d4ea3e06de06852560558b85e | /Classes/FightScene/DlgMenu/FightPauseMenu.h | badfa27db538a28682eefb543cc3a20738ce6532 | [] | no_license | haoliumilan/AgainstSango | 22b0a7307e9206c4339e932ab458dafc0718294a | fc76863fce0b147bd9b58bf8be054a97609bd566 | refs/heads/master | 2021-01-09T20:45:17.689034 | 2016-07-05T07:36:55 | 2016-07-05T07:36:55 | 62,615,642 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | h | //
// FightPauseMenu.h
// AgainstWar
//
// Created by 海桅 王 on 12-6-12.
// Copyright (c) 2012年 OneClick Co.,Ltd. All rights reserved.
//
#ifndef AgainstWar_FightPauseMenu_h
#define AgainstWar_FightPauseMenu_h
#include "cocos2d.h"
#include "SettingLayer.h"
using namespace cocos2d;
class Dialog2;
class TextNode;
class FightPauseMenuRet :public CCObject{
public:
int iBtnSel;
};
class FightPauseMenu:public CCLayer {
CCObject *m_listener;
SEL_CallFuncO m_selctor;
FightPauseMenuRet iRet;
private:
CCLayerColor *coverLayer;
SettingLayer *settingLayer;
TextNode * titleLabel;
Dialog2 *exitBackground;
CCMenu *menu2;
public:
CCMenu *menu1;
FightPauseMenu(CCObject *target,SEL_CallFuncO selector);
virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
void callBackMenu(CCObject *pSender);
void exitCallBack(CCObject *pSender);
void setCallBack(CCObject *pSender);
void setTitleString(const char* titleStr);
virtual void onExit();
};
#endif
| [
"haoliumilan@sina.com"
] | haoliumilan@sina.com |
da6dab1cc8a5eb8343760323e6b1ef89c95190c3 | 64920237a769821bb39a0cfcca87ab9cc9766d1f | /AC_Phase_Control-4/AC_Phase_Control-4.ino | 0089c1f95af53de7210605ab0595922bf9083a93 | [] | no_license | Reverse-Lab/Arduino-Test | 6c196544d59ac0ec287de1bf3703a24576220c0c | 6ead9b5308dd6da9dabfbc22a0264506058326fd | refs/heads/master | 2023-03-20T19:03:32.576103 | 2021-03-17T13:31:53 | 2021-03-17T13:31:53 | 278,634,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,017 | ino | /*
AC Voltage dimmer with Zero cross detection
Author: Charith Fernanado Adapted by DIY_bloke
License: Creative Commons Attribution Share-Alike 3.0 License.
Attach the Zero cross pin of the module to Arduino External Interrupt pin
Select the correct Interrupt # from the below table
(the Pin numbers are digital pins, NOT physical pins:
digital pin 2 [INT0]=physical pin 4 and digital pin 3 [INT1]= physical pin 5)
check: <a href="http://arduino.cc/en/Reference/attachInterrupt">interrupts</a>
Pin | Interrrupt # | Arduino Platform
---------------------------------------
2 | 0 | All -But it is INT1 on the Leonardo
3 | 1 | All -But it is INT0 on the Leonardo
18 | 5 | Arduino Mega Only
19 | 4 | Arduino Mega Only
20 | 3 | Arduino Mega Only
21 | 2 | Arduino Mega Only
0 | 0 | Leonardo
1 | 3 | Leonardo
7 | 4 | Leonardo
The Arduino Due has no standard interrupt pins as an iterrupt can be attached to almosty any pin.
In the program pin 2 is chosen
*/
int AC_LOAD = 11; // Output to Opto Triac pin
int dimming = 128; // Dimming level (0-128) 0 = ON, 128 = OFF
uint8_t pos=0;
const int grayPin[8]={3,4,5,6,7,8,9,10};
void grayPinSet(){
for(int8_t i=0;i<8;i++)
{
pinMode(grayPin[i], INPUT);
}
}
void setup()
{
pinMode(AC_LOAD, OUTPUT);// Set AC Load pin as output
Serial.begin(115200);
grayPinSet();
enc_update();
attachInterrupt(0, zero_crosss_int, RISING); // Choose the zero cross interrupt # from the table above
}
//the interrupt function must take no parameters and return nothing
void zero_crosss_int() //function to be fired at the zero crossing to dim the light
{
// Firing angle calculation : 1 full 50Hz wave =1/50=20ms (200us)
// Every zerocrossing thus: (50Hz)-> 10ms (1/2 Cycle)
// For 60Hz => 8.33ms (10.000/120)
// 10ms=10000us
// (10000us - 10us) / 128 = 75 (Approx) For 60Hz =>65
int dimtime = (65*pos); // For 60Hz =>65
delayMicroseconds(dimtime); // Wait till firing the TRIAC
digitalWrite(AC_LOAD, HIGH); // Fire the TRIAC
delayMicroseconds(8.335); // triac On propogation delay
// (for 60Hz use 8.33) Some Triacs need a longer period
digitalWrite(AC_LOAD, LOW); // No longer trigger the TRIAC (the next zero crossing will swith it off) TRIAC
}
void enc_update()
{
int i;
int enc[8];
for(i=0;i<8;i++){
enc[i] = 1 - digitalRead(grayPin[i]);
Serial.print(enc[i]);
}Serial.print(", ");
uint8_t pos=0;
pos= (enc[7]<<7);
for(i=6;i>=0;i--)
{
if( (enc[i]+bitRead(pos,i+1))==0 || (enc[i]+bitRead(pos,i+1))==2 )
{
pos|=(0<<i);
}else if( (enc[i]+bitRead(pos,i+1))==1)
{
pos|=(1<<i);
}
}
Serial.print(pos,BIN);Serial.print(", ");
Serial.print(pos,DEC);Serial.print(", ");Serial.print(pos*1.40625);
Serial.println();
delay(10);
}
void loop() {
enc_update();
}
| [
"65438732+Reverse-Lab@users.noreply.github.com"
] | 65438732+Reverse-Lab@users.noreply.github.com |
b65a3609a3b15a86669b7f2373830fc39f334dff | 8143fa90a6f60933b24ec33d849fa813c5e74cb4 | /spatial-database/Models/RegionFactory.cpp | bcb69ae93a1c89dcf9cf10e6f265f98cc17f4d74 | [] | no_license | JeremyLWright/sandbox | 0497ae89c5cb1d3d6420f3ac3ef582c11e2eaaac | d241ba91350da255e1e3024bf83b0f95d33ffa2d | refs/heads/master | 2016-09-11T02:54:39.591611 | 2014-05-02T00:48:26 | 2014-05-02T00:48:26 | 35,886,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | #include "RegionFactory.h"
using namespace SpatialDB;
RegionFactory::RegionFactory()
{
simulated_id = 0;
this->_spatial_instance = SpatialModel::get_instance();
}
const Region& RegionFactory::get_region(Point A, Point B, Point C, Point D)
{
//Create a region in the Spatial model, and return the created Region.
return this->_spatial_instance->create(A, B, C, D);
}
| [
"jeremy@codestrokes.com"
] | jeremy@codestrokes.com |
c88e297b18eb418b650c141610b7511846d7de65 | 8945e68f51134d91549ec620f5c9fc0c37903e08 | /arduino/Library/BLE/utility/error_handling.cpp | 146443e1c86e43567257ce5ccd052f677df37972 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alicialink/ble-ios | 2ee04fa6a9440d68187f808cf1f81e1cb6b2d4cc | 8c745f7b419a5c22ff3029fbc093d86058b27652 | refs/heads/master | 2021-01-16T23:22:59.641624 | 2016-08-16T18:09:07 | 2016-08-16T18:09:07 | 65,841,584 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,650 | cpp | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
* $LastChangedRevision$
*/
#include "lib_aci.h"
//#include "lib_traces.h"
#include "app.h"
void radio_evt_error(void)
{
lib_aci_error_descriptor_t error_description;
lib_aci_interpret_error(&error_description);
switch (error_description.error_code)
{
case ERROR_CMD_RESPONSE_ERROR :
// LIB_TRACES_LOG_INFO_1VAR(INFO_CODE_ERR_HANDLING_SUBCODE1, error_description.error_sub_code1);
// LIB_TRACES_LOG_INFO_1VAR(INFO_CODE_ERR_HANDLING_SUBCODE2, error_description.error_sub_code2);
switch(error_description.error_sub_code2)
{
case ACI_STATUS_EXTENDED :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_EXTENDED);
break;
case ACI_STATUS_ERROR_UNKNOWN :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_UNKNOWN);
break;
case ACI_STATUS_ERROR_INTERNAL :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INTERNAL);
break;
case ACI_STATUS_ERROR_CMD_UNKNOWN :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_CMD_UNKNOWN);
break;
case ACI_STATUS_ERROR_DEVICE_STATE_INVALID :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_DEVICE_STATE_INVALID);
break;
case ACI_STATUS_ERROR_INVALID_LENGTH :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INVALID_LENGTH);
break;
case ACI_STATUS_ERROR_INVALID_PARAMETER :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INVALID_PARAMETER);
break;
case ACI_STATUS_ERROR_BUSY :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_BUSY);
break;
case ACI_STATUS_ERROR_INVALID_DATA :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INVALID_DATA);
break;
case ACI_STATUS_ERROR_CRC_MISMATCH :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_CRC_MISMATCH);
break;
case ACI_STATUS_ERROR_UNSUPPORTED_SETUP_FORMAT:
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_UNSUPPORTED_SETUP_FORMAT);
break;
case ACI_STATUS_ERROR_INVALID_SEQ_NO :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INVALID_SEQ_NO);
break;
case ACI_STATUS_ERROR_SETUP_LOCKED :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_SETUP_LOCKED);
break;
case ACI_STATUS_ERROR_LOCK_FAILED :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_LOCK_FAILED);
break;
case ACI_STATUS_ERROR_BOND_REQUIRED :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_BOND_REQUIRED);
break;
case ACI_STATUS_ERROR_REJECTED :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_REJECTED);
break;
case ACI_STATUS_ERROR_DATA_SIZE :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_DATA_SIZE);
break;
case ACI_STATUS_ERROR_PIPE_INVALID :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_PIPE_INVALID);
break;
case ACI_STATUS_ERROR_CREDIT_NOT_AVAILABLE :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_CREDIT_NOT_AVAILABLE);
break;
case ACI_STATUS_ERROR_PEER_ATT_ERROR :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_PEER_ATT_ERROR);
break;
case ACI_STATUS_ERROR_ADVT_TIMEOUT :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_ADVT_TIMEOUT);
break;
case ACI_STATUS_ERROR_PEER_SMP_ERROR :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_PEER_SMP_ERROR);
break;
case ACI_STATUS_ERROR_PIPE_TYPE_INVALID :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_PIPE_TYPE_INVALID);
break;
case ACI_STATUS_ERROR_PIPE_STATE_INVALID :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_PIPE_STATE_INVALID);
break;
case ACI_STATUS_ERROR_INVALID_KEY_SIZE :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INVALID_KEY_SIZE);
break;
case ACI_STATUS_ERROR_INVALID_KEY_DATA :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ACI_STATUS_ERROR_INVALID_KEY_DATA);
break;
}
break;
case ERROR_RADIO_EVT_ERROR :
// LIB_TRACES_LOG_ERROR(ERROR_CODE_ERR_HANDLING_RADIO_ERROR);
break;
case ERROR_RADIO_EVT_UNKNOWN :
// LIB_TRACES_LOG_ERROR_1VAR(ERROR_CODE_ERR_HANDLING_RADIO_EVT_UNKNOWN, error_description.error_sub_code1);
break;
case ERROR_CMD_RESPONSE_WRONG_CMD :
// LIB_TRACES_LOG_ERROR_1VAR(ERROR_CODE_ERR_HANDLING_RADIO_CMD_RESPONSE_WRONG_CMD_RCVD, error_description.error_sub_code1);
//LIB_TRACES_LOG_ERROR_1VAR(ERROR_CODE_ERR_HANDLING_RADIO_CMD_RESPONSE_WRONG_CMD_EXPECTED, error_description.error_sub_code2);
break;
case ERROR_CMD_RESPONSE_TOO_SHORT :
// LIB_TRACES_LOG_ERROR_1VAR(ERROR_CODE_ERR_HANDLING_RADIO_CMD_RESPONSE_TOO_SHORT, error_description.error_sub_code1);
break;
default:
// LIB_TRACES_LOG_ERROR_1VAR(ERROR_CODE_ERR_HANDLING_ERROR_DEFAULT, error_description.error_code);
/*Start the setup procedure again to try to recover*/
app_state = APP_SETUP;
on_process_app();
}
}
| [
"amfkey@gmail.com"
] | amfkey@gmail.com |
d3e4cfc9f21efd21f721b07abd4077c506c66a78 | ca04a2ea63e047d29c3c55e3086a9a67dadfbff3 | /Source/servers/Shared/Utility/LogManager.cpp | 5cd01023ea803a9e719a6bb9714185af87ccd256 | [] | no_license | brucelevis/HMX-Server | 0eebb7d248c578d6c930c15670927acaf4f13c3d | 7b9e21c0771ee42db2842bb17d85d219c8e668d7 | refs/heads/master | 2020-08-03T17:37:44.209223 | 2016-06-13T08:49:39 | 2016-06-13T08:49:39 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,579 | cpp | //
// logManager.cpp
// test
//
// Created by fox on 13-1-9.
//
//
#include "LogManager.h"
#include "Utility.h"
LogManagerMgr::LogManagerMgr()
{
m_pLogServer = NULL;
}
LogManagerMgr::~LogManagerMgr()
{
}
void LogManagerMgr::Init(ServerSession* pServerSession,int32 nServerType,int32 nStartTimes)
{
ASSERT(pServerSession);
m_pLogServer = pServerSession;
m_nServerType = nServerType;
m_nStartTimes = nStartTimes;
}
void LogManagerMgr::Normal(const char* str , ...)
{
boost::mutex::scoped_lock lock( gMutex );
va_list va;
static char sstr[255];
static char sbuf[255];
memset( sstr , 0 , 255 );
memset( sbuf , 0 , 255 );
va_start( va , str );
vsprintf( sstr , str , va );
va_end(va);
printf( "LOG:%s \n", sstr );
lock.unlock();
SaveToDb(LOG_LEVEL_NORMAL,sstr);
}
void LogManagerMgr::Info(const char* str , ...)
{
boost::mutex::scoped_lock lock( gMutex );
va_list va;
static char sstr[255];
static char sbuf[255];
memset( sstr , 0 , 255 );
memset( sbuf , 0 , 255 );
va_start( va , str );
vsprintf( sstr , str , va );
va_end(va);
printf( "LOG:%s \n", sstr );
lock.unlock();
SaveToDb(LOG_LEVEL_INFO,sstr);
}
void LogManagerMgr::Warring(const char* str , ...)
{
boost::mutex::scoped_lock lock( gMutex );
va_list va;
static char sstr[255];
static char sbuf[255];
memset( sstr , 0 , 255 );
memset( sbuf , 0 , 255 );
va_start( va , str );
vsprintf( sstr , str , va );
va_end(va);
printf( "LOG:%s \n", sstr );
lock.unlock();
SaveToDb(LOG_LEVEL_WARRING,sstr);
}
void LogManagerMgr::Error(const char* str , ...)
{
boost::mutex::scoped_lock lock( gMutex );
va_list va;
static char sstr[255];
static char sbuf[255];
memset( sstr , 0 , 255 );
memset( sbuf , 0 , 255 );
va_start( va , str );
vsprintf( sstr , str , va );
va_end(va);
printf( "LOG:%s \n", sstr );
lock.unlock();
SaveToDb(LOG_LEVEL_ERROR,sstr);
}
void LogManagerMgr::SaveToDb(ELogLevel eLevel,const char* detail)
{
S2LogMsg sMsg;
sMsg.nServerType = m_nServerType;
sMsg.nStartTimes = m_nStartTimes;
sMsg.nLevel = eLevel;
strcpy(sMsg.arrDetail,detail);
sMsg.nRowNum = 0;
sMsg.nTime = Utility::NowTime();
if(m_pLogServer)
{
if(m_vecRecordTmp.size())
{
std::vector<S2LogMsg>::iterator it = m_vecRecordTmp.begin();
for (; it != m_vecRecordTmp.end();++it)
{
m_pLogServer->SendMsg(&(*it),(*it).GetLength());
}
m_vecRecordTmp.clear();
}
m_pLogServer->SendMsg(&sMsg,sMsg.GetLength());
}
else
{
// 缓存下来,下次再存
m_vecRecordTmp.push_back(sMsg);
printf("LOG Server ISNOT OPEN!\n");
}
}
| [
"huangzuduan@qq.com"
] | huangzuduan@qq.com |
76371dac56c2eee4d17457148f9c19d2468873d9 | 24498f05a7f1573b1a668683cf54a4861b96978d | /D/g_buffer.h | 294224f974e7e8433c57f20cb2312d8d55e752ac | [] | no_license | dimroman/D | 83f9cf1f30766ca857c1c1625a7d5eec98d5ea41 | 7f4b64d08413c3bcebdda69ceb791ed2d1999b7b | refs/heads/master | 2021-01-12T05:19:18.639227 | 2017-01-10T15:11:26 | 2017-01-10T15:11:26 | 77,908,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,422 | h | #ifndef RENDER_TARGET_H_INCLUDED
#define RENDER_TARGET_H_INCLUDED
#include "texture2d.h"
#include "d3dx12.h"
#include "vertex_buffer.h"
#include "sampler.h"
#include "defines.h"
enum { render_targets_count = 4, };
class graphics;
class g_buffer
{
public:
void initialize(ID3D12Device* const device, ID3D12GraphicsCommandList* command_list, graphics* const heaps_owner, DXGI_FORMAT const formats[render_targets_count]);
void clear(ID3D12GraphicsCommandList* command_list, int const current_frame_index);
void draw(int const current_frame_index, ID3D12GraphicsCommandList* command_list, D3D12_GPU_DESCRIPTOR_HANDLE const& scene_constant_buffer, D3D12_GPU_DESCRIPTOR_HANDLE const& shadow_map, D3D12_GPU_DESCRIPTOR_HANDLE const& depth_buffer);
inline D3D12_CPU_DESCRIPTOR_HANDLE render_target_resource(int const current_frame_index, int const id) const { return m_textures[current_frame_index*render_targets_count + id].cpu_handle(D3D12_DESCRIPTOR_HEAP_TYPE_RTV); }
private:
ComPtr<ID3D12RootSignature> m_root_signature;
ComPtr<ID3D12PipelineState> m_pipeline_state;
D3D12_RESOURCE_BARRIER m_start_transitions[frames_count*render_targets_count];
D3D12_RESOURCE_BARRIER m_end_transitions[frames_count*render_targets_count];
texture2d m_textures[render_targets_count*frames_count];
D3D12_CLEAR_VALUE m_clear_values[render_targets_count];
sampler m_clamp_sampler;
};
#endif // #ifndef RENDER_TARGET_H_INCLUDED | [
"dim.roman@gmail.com"
] | dim.roman@gmail.com |
62fd03ce545a8f9093c42c696a1af342bac8168e | 3f72913d81eb53a34d865d58ff4fc2022832e56d | /src/Scene_CharSelect.cpp | a510510413569f3d650d09848cef1b29fb19bb9f | [] | no_license | anastasiucristian/gamesproject | ca120df01594a6a8807ff87a5fd8878163b036ca | bb4e533accd820c7cc4a8758bd239333a81498ad | refs/heads/master | 2020-04-21T12:33:27.061770 | 2019-04-26T11:51:34 | 2019-04-26T11:51:34 | 169,566,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | #include "Scene.h"
Scene_CharacterSelect::Scene_CharacterSelect() : Scene()
{
}
Scene_CharacterSelect::~Scene_CharacterSelect()
{
}
void Scene_CharacterSelect::Render(sf::RenderWindow &window)
{
//Render the background from the Base Scene class
Scene::Render(window);
}
//Setup the Menu here:
void Scene_CharacterSelect::Load(sf::RenderWindow &window)
{
Scene::Load(window);
//Set Background Texture:
sf::Texture * background_tex = new sf::Texture();
background_tex->loadFromFile(SPRITE_DEFAULT);
setBackground(*background_tex);
}
void Scene_CharacterSelect::Update(sf::RenderWindow &window)
{
Scene::Update(window);
} | [
"markpereira2208@gmail.com"
] | markpereira2208@gmail.com |
8129f7b9c7f91dd5bc699fdfe3f9241d533f6928 | ec3a754ac21137a04250ef7dc9e5152e94fb7bd3 | /damBreakFine/0.65/phiAlpha | 971fd33d7b723a74fea315172789fc4f4d7cc3fa | [] | no_license | johnathoncobabe/425 | 2336a62cd0f575b777cd549a886a15b5799b6c72 | e1ee61fb87a1078683d71a1d15131713c435cfae | refs/heads/master | 2021-01-10T10:00:11.128510 | 2015-10-02T17:54:40 | 2015-10-02T17:54:40 | 43,466,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,435 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "0.65";
object phiAlpha;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
leftWall
{
type calculated;
value uniform 0;
}
rightWall
{
type calculated;
value uniform 0;
}
lowerWall
{
type calculated;
value uniform 0;
}
atmosphere
{
type calculated;
value uniform 0;
}
defaultFaces
{
type empty;
value nonuniform 0();
}
}
// ************************************************************************* //
| [
"johnathoncobabe@gmail.com"
] | johnathoncobabe@gmail.com | |
eda2acf8d03c23ad016f361550365c1349d08831 | 84c0f3189fa4dfcf1f0490576abfe5c52759fc4e | /Elya_Karapetyan/Homeworks/C++/20_27.04/HashMap/hashMap.hpp | a3fb88076df33c55c6cc2c8916e0fe9c67df1ebf | [] | no_license | Araksya-Hambaryan/ITC-9 | bfb2741c52f5de208d3637e33ed3bb547dd0971a | c44b4603a9ddd4395bac86808b3c42217ea60879 | refs/heads/master | 2023-02-11T16:11:30.324645 | 2021-05-16T18:45:13 | 2021-05-16T18:45:13 | 127,136,193 | 1 | 7 | null | 2023-01-26T03:22:51 | 2018-03-28T12:22:48 | Java | UTF-8 | C++ | false | false | 547 | hpp | #ifndef HASH_MAP_HPP
#define HASH_MAP_HPP
#include "vector.hpp"
class HashMap {
public:
HashMap();
//Hashmap(const HashMap& object);
~HashMap();
int getSize() const;
bool isEmpty() const;
bool add(const std::string key, const int value);
bool remove(const std::string key, int& value);
bool getValueByKey(std::string key, int& value);
bool getKeyByValue(std::string& key, int value);
void clear();
void print() const;
private:
Vector m_table;
int hash(const std::string key) const;
};
#endif
| [
"elya@Elya"
] | elya@Elya |
f382f3799cf307f7f8a72e759e4f2a1ccf0cde40 | 902aab58f902a488a4f0f0e8e0d6b0bab8334240 | /InProgress/te_gurney/case/0.07/phi | 74ca710ccbe525cdaeda68a43e006ef9a764f69b | [] | no_license | Foadsf/OpenFOAM_Tutorials_ | d32d5ef6583f276018f2314a78fe66c730c47109 | 4b914e5112863f2660e15b899dfddfc0ec04f90c | refs/heads/master | 2021-09-12T08:19:21.666536 | 2018-01-24T17:31:13 | 2018-01-24T17:31:13 | 118,747,914 | 1 | 0 | null | 2018-01-24T10:10:08 | 2018-01-24T10:10:08 | null | UTF-8 | C++ | false | false | 280,738 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "0.07";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
internalField nonuniform List<scalar>
23326
(
-1.29995e-05
0.000116359
-0.000103359
-2.21701e-05
0.000130956
-0.000121786
-2.78616e-05
0.000144189
-0.000138498
-3.15473e-05
0.00015862
-0.000154934
-3.4664e-05
0.000170088
-0.000166971
-3.68799e-05
0.000181213
-0.000178997
-3.84314e-05
0.000190633
-0.000189081
-3.92796e-05
0.000198194
-0.000197346
-3.97726e-05
0.000203769
-0.000203277
-3.99448e-05
0.000207977
-0.000207806
-3.99949e-05
0.000211062
-0.000211012
0.000213256
-3.99796e-05
-0.000213272
-7.17071e-06
0.00012353
-1.41006e-05
0.000137886
-2.02665e-05
0.000150355
-2.48635e-05
0.000163217
-2.8606e-05
0.00017383
-3.13859e-05
0.000183993
-3.33654e-05
0.000192612
-3.47169e-05
0.000199546
-3.56149e-05
0.000204667
-3.61958e-05
0.000208558
-3.65505e-05
0.000211416
0.000213473
-3.67675e-05
-5.76535e-06
0.000129295
-1.11666e-05
0.000143287
-1.6279e-05
0.000155468
-2.0491e-05
0.000167429
-2.41179e-05
0.000177457
-2.69727e-05
0.000186847
-2.91259e-05
0.000194765
-3.06974e-05
0.000201117
-3.18821e-05
0.000205852
-3.27429e-05
0.000209419
-3.33496e-05
0.000212023
0.000213977
-3.38533e-05
-4.84618e-06
0.000134141
-9.49631e-06
0.000147937
-1.38678e-05
0.000159839
-1.75714e-05
0.000171132
-2.08536e-05
0.000180739
-2.35444e-05
0.000189538
-2.57112e-05
0.000196932
-2.73689e-05
0.000202775
-2.86627e-05
0.000207146
-2.9695e-05
0.000210451
-3.04997e-05
0.000212828
0.000214667
-3.11896e-05
-3.9523e-06
0.000138093
-8.0569e-06
0.000152042
-1.19421e-05
0.000163724
-1.52953e-05
0.000174486
-1.82725e-05
0.000183716
-2.08131e-05
0.000192079
-2.28759e-05
0.000198995
-2.45353e-05
0.000204434
-2.5914e-05
0.000208524
-2.69872e-05
0.000211524
-2.79308e-05
0.000213771
0.000215446
-2.87103e-05
-3.2756e-06
0.000141369
-6.89419e-06
0.000155661
-1.03618e-05
0.000167192
-1.34148e-05
0.000177539
-1.61891e-05
0.000186491
-1.85178e-05
0.000194408
-2.04875e-05
0.000200964
-2.21413e-05
0.000206088
-2.34831e-05
0.000209866
-2.4631e-05
0.000212672
-2.56118e-05
0.000214752
0.000216309
-2.64741e-05
-2.80694e-06
0.000144176
-6.01681e-06
0.00015887
-9.11996e-06
0.000170295
-1.19155e-05
0.000180334
-1.44207e-05
0.000188996
-1.66161e-05
0.000196603
-1.84821e-05
0.00020283
-2.00453e-05
0.000207651
-2.13989e-05
0.00021122
-2.25675e-05
0.000213841
-2.36026e-05
0.000215787
0.00021724
-2.45337e-05
-2.45784e-06
0.000146634
-5.33932e-06
0.000161752
-8.131e-06
0.000173087
-1.06443e-05
0.000182847
-1.29637e-05
0.000191315
-1.50032e-05
0.000198643
-1.67673e-05
0.000204595
-1.82594e-05
0.000209143
-1.95904e-05
0.000212551
-2.07616e-05
0.000215012
-2.17925e-05
0.000216818
0.000218172
-2.2725e-05
-2.18044e-06
0.000148814
-4.79378e-06
0.000164365
-7.32638e-06
0.000175619
-9.64852e-06
0.00018517
-1.17655e-05
0.000193432
-1.36341e-05
0.000200511
-1.52913e-05
0.000206252
-1.67516e-05
0.000210603
-1.80154e-05
0.000213815
-1.91494e-05
0.000216146
-2.01749e-05
0.000217843
0.00021916
-2.11631e-05
-1.94674e-06
0.000150761
-4.3254e-06
0.000166744
-6.64358e-06
0.000177937
-8.77277e-06
0.000187299
-1.07481e-05
0.000195408
-1.24906e-05
0.000202254
-1.40258e-05
0.000207787
-1.53855e-05
0.000211963
-1.663e-05
0.000215059
-1.77396e-05
0.000217256
-1.8757e-05
0.000218861
0.00022009
-1.96867e-05
-1.75286e-06
0.000152514
-3.93928e-06
0.00016893
-6.06619e-06
0.000180064
-8.03478e-06
0.000189267
-9.84882e-06
0.000197222
-1.14714e-05
0.000203876
-1.29199e-05
0.000209235
-1.42133e-05
0.000213256
-1.53896e-05
0.000216236
-1.64663e-05
0.000218332
-1.74979e-05
0.000219892
0.000221
-1.84075e-05
-1.58215e-06
0.000154096
-3.59148e-06
0.00017094
-5.5534e-06
0.000182026
-7.40594e-06
0.00019112
-9.06764e-06
0.000198883
-1.05893e-05
0.000205398
-1.19511e-05
0.000210597
-1.31807e-05
0.000214486
-1.43053e-05
0.00021736
-1.53479e-05
0.000219375
-1.62858e-05
0.00022083
0.00022191
-1.71963e-05
-1.4387e-06
0.000155535
-3.29182e-06
0.000172793
-5.11982e-06
0.000183854
-6.82717e-06
0.000192827
-8.40495e-06
0.000200461
-9.8295e-06
0.000206822
-1.10902e-05
0.000211858
-1.22627e-05
0.000215659
-1.33162e-05
0.000218414
-1.43109e-05
0.00022037
-1.52323e-05
0.000221752
0.000222712
-1.60336e-05
-1.31515e-06
0.00015685
-3.05376e-06
0.000174531
-4.7415e-06
0.000185542
-6.32061e-06
0.000194406
-7.79572e-06
0.000201936
-9.11132e-06
0.000208138
-1.03317e-05
0.000213078
-1.14208e-05
0.000216748
-1.24566e-05
0.00021945
-1.34382e-05
0.000221351
-1.43569e-05
0.00022267
0.000223643
-1.52884e-05
-1.20089e-06
0.000158051
-2.80434e-06
0.000176135
-4.4063e-06
0.000187144
-5.88818e-06
0.000195888
-7.25101e-06
0.000203299
-8.51581e-06
0.000209403
-9.64465e-06
0.000214207
-1.07119e-05
0.000217815
-1.16527e-05
0.00022039
-1.25593e-05
0.000222258
-1.34324e-05
0.000223544
0.000224432
-1.42214e-05
-1.10162e-06
0.000159152
-2.60321e-06
0.000177636
-4.08962e-06
0.00018863
-5.47699e-06
0.000197276
-6.76311e-06
0.000204585
-7.9336e-06
0.000210573
-9.00692e-06
0.00021528
-9.99223e-06
0.0002188
-1.0948e-05
0.000221346
-1.18503e-05
0.00022316
-1.26825e-05
0.000224376
0.000225205
-1.34549e-05
-1.01332e-06
0.000160166
-2.40275e-06
0.000179026
-3.7955e-06
0.000190023
-5.11002e-06
0.00019859
-6.32038e-06
0.000205795
-7.42797e-06
0.000211681
-8.44454e-06
0.000216297
-9.41773e-06
0.000219773
-1.03029e-05
0.000222231
-1.11241e-05
0.000223982
-1.19294e-05
0.000225181
0.000225973
-1.26981e-05
-9.21335e-07
0.000161087
-2.23523e-06
0.00018034
-3.55606e-06
0.000191344
-4.79596e-06
0.00019983
-5.94114e-06
0.000206941
-6.99495e-06
0.000212735
-7.9591e-06
0.000217261
-8.808e-06
0.000220622
-9.66241e-06
0.000223086
-1.04739e-05
0.000224793
-1.12502e-05
0.000225957
0.000226716
-1.19928e-05
-8.52203e-07
0.000161939
-2.0883e-06
0.000181576
-3.31143e-06
0.000192567
-4.48511e-06
0.000201004
-5.54504e-06
0.000208001
-6.54195e-06
0.000213732
-7.44004e-06
0.000218159
-8.32747e-06
0.00022151
-9.11647e-06
0.000223875
-9.89565e-06
0.000225572
-1.06194e-05
0.000226681
0.000227438
-1.13411e-05
-7.89348e-07
0.000162729
-1.9318e-06
0.000182718
-3.1119e-06
0.000193747
-4.20135e-06
0.000202093
-5.23411e-06
0.000209033
-6.15695e-06
0.000214654
-7.03529e-06
0.000219038
-7.83233e-06
0.000222307
-8.6141e-06
0.000224656
-9.30761e-06
0.000226266
-1.00229e-05
0.000227396
0.000228096
-1.06812e-05
-7.32341e-07
0.000163461
-1.80815e-06
0.000183794
-2.90461e-06
0.000194844
-3.94124e-06
0.00020313
-4.89195e-06
0.000209984
-5.79503e-06
0.000215557
-6.60743e-06
0.00021985
-7.37223e-06
0.000223072
-8.09567e-06
0.00022538
-8.81426e-06
0.000226984
-9.47331e-06
0.000228055
0.000228746
-1.01234e-05
-6.54416e-07
0.000164115
-1.67107e-06
0.000184811
-2.71456e-06
0.000195887
-3.71838e-06
0.000204134
-4.62571e-06
0.000210891
-5.43879e-06
0.000216371
-6.21467e-06
0.000220626
-6.94474e-06
0.000223802
-7.66817e-06
0.000226103
-8.33958e-06
0.000227656
-8.99468e-06
0.000228711
0.000229367
-9.61572e-06
-6.12819e-07
0.000164728
-1.56965e-06
0.000185768
-2.558e-06
0.000196876
-3.4678e-06
0.000205043
-4.33392e-06
0.000211757
-5.12812e-06
0.000217165
-5.87297e-06
0.000221371
-6.57033e-06
0.000224499
-7.23986e-06
0.000226773
-7.88764e-06
0.000228304
-8.50762e-06
0.000229331
0.00022997
-9.11096e-06
-5.51242e-07
0.000165279
-1.45278e-06
0.000186669
-2.39131e-06
0.000197814
-3.25616e-06
0.000205908
-4.07867e-06
0.00021258
-4.83964e-06
0.000217926
-5.54937e-06
0.00022208
-6.22069e-06
0.00022517
-6.83923e-06
0.000227391
-7.43025e-06
0.000228895
-8.03732e-06
0.000229938
0.000230556
-8.62237e-06
-5.06467e-07
0.000165786
-1.33964e-06
0.000187502
-2.23311e-06
0.000198708
-3.08132e-06
0.000206756
-3.8408e-06
0.000213339
-4.56776e-06
0.000218653
-5.22038e-06
0.000222733
-5.83986e-06
0.00022579
-6.45523e-06
0.000228007
-7.05606e-06
0.000229495
-7.60773e-06
0.000230489
0.00023113
-8.18257e-06
-4.74743e-07
0.000166261
-1.25818e-06
0.000188286
-2.08521e-06
0.000199535
-2.89443e-06
0.000207566
-3.61834e-06
0.000214063
-4.28702e-06
0.000219321
-4.91073e-06
0.000223357
-5.526e-06
0.000226405
-6.09572e-06
0.000228576
-6.64314e-06
0.000230043
-7.21171e-06
0.000231058
0.000231655
-7.73667e-06
-4.1711e-07
0.000166678
-1.15668e-06
0.000189025
-1.94279e-06
0.000200321
-2.68963e-06
0.000208313
-3.40528e-06
0.000214779
-4.04362e-06
0.00021996
-4.64019e-06
0.000223953
-5.20603e-06
0.000226971
-5.74952e-06
0.00022912
-6.30269e-06
0.000230596
-6.78371e-06
0.000231539
0.000232154
-7.28183e-06
-3.66309e-07
0.000167044
-1.08767e-06
0.000189747
-1.83353e-06
0.000201067
-2.52332e-06
0.000209002
-3.17907e-06
0.000215435
-3.7909e-06
0.000220571
-4.38596e-06
0.000224548
-4.90123e-06
0.000227486
-5.42356e-06
0.000229642
-5.93171e-06
0.000231104
-6.45585e-06
0.000232063
0.000232608
-6.91042e-06
-3.38159e-07
0.000167382
-9.93838e-07
0.000190403
-1.68348e-06
0.000201756
-2.38558e-06
0.000209704
-2.99051e-06
0.00021604
-3.57072e-06
0.000221152
-4.09007e-06
0.000225068
-4.63986e-06
0.000228036
-5.11244e-06
0.000230115
-5.60488e-06
0.000231597
-6.0581e-06
0.000232516
0.000233113
-6.56297e-06
-2.87741e-07
0.00016767
-8.87224e-07
0.000191002
-1.58547e-06
0.000202454
-2.20823e-06
0.000210327
-2.808e-06
0.00021664
-3.33815e-06
0.000221682
-3.86097e-06
0.00022559
-4.33028e-06
0.000228505
-4.81467e-06
0.000230599
-5.2551e-06
0.000232037
-5.7433e-06
0.000233004
0.000233541
-6.17159e-06
-2.64031e-07
0.000167934
-8.48227e-07
0.000191586
-1.44424e-06
0.00020305
-2.06234e-06
0.000210945
-2.60688e-06
0.000217184
-3.13874e-06
0.000222214
-3.614e-06
0.000226066
-4.09195e-06
0.000228983
-4.52508e-06
0.000231032
-4.97752e-06
0.00023249
-5.36879e-06
0.000233396
0.000233975
-5.80263e-06
-2.30579e-07
0.000168165
-7.48599e-07
0.000192104
-1.35889e-06
0.000203661
-1.8969e-06
0.000211483
-2.44311e-06
0.00021773
-2.92444e-06
0.000222695
-3.4009e-06
0.000226542
-3.80399e-06
0.000229386
-4.25005e-06
0.000231479
-4.65624e-06
0.000232896
-5.07841e-06
0.000233818
0.000234335
-5.43864e-06
-2.02549e-07
0.000168367
-6.71024e-07
0.000192573
-1.22671e-06
0.000204216
-1.78795e-06
0.000212045
-2.28324e-06
0.000218226
-2.74184e-06
0.000223154
-3.14516e-06
0.000226946
-3.58414e-06
0.000229825
-3.98146e-06
0.000231876
-4.37299e-06
0.000233287
-4.7598e-06
0.000234205
0.000234714
-5.1388e-06
-1.42967e-07
0.00016851
-6.2172e-07
0.000193051
-1.1489e-06
0.000204744
-1.63318e-06
0.000212529
-2.10411e-06
0.000218696
-2.5404e-06
0.00022359
-2.95077e-06
0.000227356
-3.34203e-06
0.000230217
-3.72391e-06
0.000232258
-4.07074e-06
0.000233634
-4.43966e-06
0.000234573
0.000235108
-4.83338e-06
-1.535e-07
0.000168664
-5.52072e-07
0.00019345
-1.0251e-06
0.000205217
-1.53432e-06
0.000213038
-1.95437e-06
0.000219117
-2.34256e-06
0.000223978
-2.7331e-06
0.000227746
-3.10902e-06
0.000230592
-3.44355e-06
0.000232592
-3.80167e-06
0.000233992
-4.15743e-06
0.000234929
0.000235432
-4.48094e-06
-9.01769e-08
0.000168754
-4.84675e-07
0.000193844
-9.53962e-07
0.000205686
-1.36142e-06
0.000213445
-1.7863e-06
0.000219541
-2.18038e-06
0.000224372
-2.55008e-06
0.000228116
-2.87813e-06
0.000230921
-3.19585e-06
0.00023291
-3.5334e-06
0.00023433
-3.83246e-06
0.000235228
0.000235759
-4.15991e-06
-7.45533e-08
0.000168828
-4.15374e-07
0.000194185
-8.36339e-07
0.000206107
-1.27005e-06
0.000213879
-1.64728e-06
0.000219919
-1.9945e-06
0.000224719
-2.31958e-06
0.000228441
-2.62848e-06
0.000231229
-2.95891e-06
0.00023324
-3.28042e-06
0.000234651
-3.5698e-06
0.000235518
0.000236032
-3.84301e-06
-4.61579e-08
0.000168874
-3.55024e-07
0.000194494
-7.46287e-07
0.000206498
-1.13197e-06
0.000214265
-1.48781e-06
0.000220274
-1.84136e-06
0.000225073
-2.15036e-06
0.00022875
-2.44491e-06
0.000231524
-2.73034e-06
0.000233526
-3.01315e-06
0.000234934
-3.2925e-06
0.000235797
0.000236305
-3.5647e-06
-9.84811e-09
0.000168884
-2.92212e-07
0.000194777
-6.60142e-07
0.000206866
-1.02315e-06
0.000214628
-1.35866e-06
0.00022061
-1.64085e-06
0.000225355
-1.95764e-06
0.000229067
-2.2369e-06
0.000231803
-2.51044e-06
0.000233799
-2.75573e-06
0.00023518
-3.04261e-06
0.000236084
0.000236621
-3.35865e-06
1.48524e-08
0.000168869
-2.36128e-07
0.000195028
-5.7779e-07
0.000207208
-9.17112e-07
0.000214967
-1.23269e-06
0.000220926
-1.52377e-06
0.000225646
-1.76981e-06
0.000229313
-2.00472e-06
0.000232038
-2.26007e-06
0.000234055
-2.50878e-06
0.000235428
-2.73781e-06
0.000236313
0.000236832
-2.94953e-06
2.33045e-08
0.000168846
-1.80416e-07
0.000195231
-4.95657e-07
0.000207523
-7.87864e-07
0.000215259
-1.0833e-06
0.000221221
-1.32787e-06
0.000225891
-1.58421e-06
0.000229569
-1.83091e-06
0.000232285
-2.04509e-06
0.000234269
-2.28813e-06
0.000235671
-2.50959e-06
0.000236535
0.000237078
-2.7555e-06
5.4291e-08
0.000168792
-1.19472e-07
0.000195405
-3.86423e-07
0.00020779
-6.85632e-07
0.000215559
-9.35048e-07
0.00022147
-1.19115e-06
0.000226147
-1.40294e-06
0.000229781
-1.60572e-06
0.000232488
-1.83386e-06
0.000234497
-2.02975e-06
0.000235867
-2.2517e-06
0.000236757
0.000237272
-2.44532e-06
7.67696e-08
0.000168715
-8.94411e-08
0.000195571
-3.35202e-07
0.000208036
-5.85776e-07
0.000215809
-8.17573e-07
0.000221702
-1.02789e-06
0.000226357
-1.22462e-06
0.000229978
-1.44115e-06
0.000232704
-1.62512e-06
0.000234681
-1.80861e-06
0.000236051
-1.99372e-06
0.000236942
0.000237457
-2.17826e-06
1.09056e-07
0.000168606
-1.00717e-08
0.00019569
-2.30687e-07
0.000208256
-4.6064e-07
0.000216039
-6.74503e-07
0.000221916
-8.68179e-07
0.000226551
-1.0492e-06
0.000230159
-1.22285e-06
0.000232878
-1.39338e-06
0.000234852
-1.56276e-06
0.00023622
-1.7291e-06
0.000237108
0.00023762
-1.89251e-06
1.31612e-07
0.000168474
4.15258e-08
0.00019578
-1.51881e-07
0.00020845
-3.63304e-07
0.000216251
-5.60433e-07
0.000222113
-7.11992e-07
0.000226702
-8.7726e-07
0.000230324
-1.03644e-06
0.000233037
-1.19338e-06
0.000235009
-1.35055e-06
0.000236377
-1.51214e-06
0.00023727
0.000237792
-1.68384e-06
1.36234e-07
0.000168338
9.13886e-08
0.000195825
-7.68913e-08
0.000208618
-2.43869e-07
0.000216418
-4.2302e-07
0.000222292
-5.84998e-07
0.000226864
-7.35743e-07
0.000230475
-8.52456e-07
0.000233154
-9.94625e-07
0.000235151
-1.10797e-06
0.000236491
-1.24359e-06
0.000237405
0.000237887
-1.3393e-06
1.82985e-07
0.000168155
1.38896e-07
0.000195869
1.79217e-08
0.000208739
-1.53292e-07
0.000216589
-2.88704e-07
0.000222428
-4.33851e-07
0.00022701
-5.41555e-07
0.000230583
-6.7197e-07
0.000233284
-7.73245e-07
0.000235252
-9.04494e-07
0.000236622
-1.0139e-06
0.000237515
0.000238038
-1.16425e-06
1.88513e-07
0.000167967
1.85169e-07
0.000195873
6.19208e-08
0.000208862
-6.83442e-08
0.000216719
-1.83996e-07
0.000222543
-2.85254e-07
0.000227111
-4.05743e-07
0.000230703
-4.94157e-07
0.000233373
-5.82042e-07
0.00023534
-6.7057e-07
0.00023671
-7.85732e-07
0.00023763
0.000238115
-8.63234e-07
2.11693e-07
0.000167755
2.06884e-07
0.000195878
1.53823e-07
0.000208915
4.31439e-08
0.00021683
-7.78861e-08
0.000222664
-1.64533e-07
0.000227197
-2.15762e-07
0.000230754
-3.1861e-07
0.000233475
-3.93386e-07
0.000235415
-4.70681e-07
0.000236788
-5.54192e-07
0.000237713
0.000238212
-6.50957e-07
2.35684e-07
0.000167519
2.81915e-07
0.000195831
2.22282e-07
0.000208975
1.34866e-07
0.000216917
8.00807e-08
0.000222719
-2.00392e-08
0.000227298
-8.36304e-08
0.000230818
-1.16634e-07
0.000233508
-1.7795e-07
0.000235476
-2.68844e-07
0.000236879
-3.00361e-07
0.000237745
0.000238261
-3.48837e-07
2.40597e-07
0.000167279
3.28876e-07
0.000195743
2.89272e-07
0.000209015
2.19105e-07
0.000216987
1.53744e-07
0.000222785
1.24503e-07
0.000227327
7.4459e-08
0.000230868
2.63733e-08
0.000233557
5.37361e-09
0.000235497
-1.88171e-08
0.000236903
-7.6563e-08
0.000237803
0.000238317
-1.33052e-07
2.84603e-07
0.000166994
3.744e-07
0.000195653
3.80008e-07
0.000209009
3.29677e-07
0.000217038
3.07093e-07
0.000222807
2.66049e-07
0.000227368
2.58224e-07
0.000230876
2.23088e-07
0.000233592
1.84597e-07
0.000235536
1.40264e-07
0.000236947
1.12222e-07
0.000237831
0.000238401
2.80615e-08
2.85386e-07
0.000166709
4.19732e-07
0.000195519
4.21044e-07
0.000209008
4.1373e-07
0.000217045
4.07066e-07
0.000222814
4.08124e-07
0.000227367
3.86177e-07
0.000230898
3.92764e-07
0.000233585
3.68625e-07
0.00023556
3.69456e-07
0.000236946
3.69525e-07
0.000237831
0.000238394
3.77177e-07
3.12785e-07
0.000166396
4.66939e-07
0.000195365
5.11971e-07
0.000208963
5.23341e-07
0.000217034
5.05459e-07
0.000222832
5.21504e-07
0.000227351
5.41899e-07
0.000230877
5.62679e-07
0.000233564
5.80353e-07
0.000235542
5.94799e-07
0.000236932
5.75651e-07
0.00023785
0.000238397
5.72206e-07
3.35528e-07
0.00016606
5.1147e-07
0.000195189
5.78096e-07
0.000208896
6.06168e-07
0.000217005
6.31307e-07
0.000222806
6.62511e-07
0.00022732
6.97026e-07
0.000230843
7.30431e-07
0.000233531
7.61841e-07
0.000235511
7.87403e-07
0.000236906
8.10345e-07
0.000237827
0.000238372
8.35236e-07
3.58994e-07
0.000165701
5.57211e-07
0.000194991
6.42755e-07
0.00020881
6.88979e-07
0.000216959
7.56811e-07
0.000222739
8.01857e-07
0.000227274
8.50074e-07
0.000230795
8.96902e-07
0.000233484
9.66807e-07
0.000235441
1.00262e-06
0.000236871
1.0295e-06
0.0002378
0.000238358
1.04392e-06
3.59895e-07
0.000165342
6.01067e-07
0.000194749
7.07515e-07
0.000208704
7.97782e-07
0.000216869
8.5392e-07
0.000222682
9.14059e-07
0.000227214
1.00365e-06
0.000230705
1.09153e-06
0.000233396
1.11814e-06
0.000235414
1.1951e-06
0.000236794
1.24028e-06
0.000237755
0.000238277
1.32131e-06
4.05541e-07
0.000164936
6.45494e-07
0.000194509
7.97526e-07
0.000208552
8.79931e-07
0.000216787
9.52878e-07
0.00022261
1.08247e-06
0.000227085
1.15843e-06
0.000230629
1.23041e-06
0.000233324
1.32561e-06
0.000235319
1.38323e-06
0.000236736
1.47802e-06
0.00023766
0.000238279
1.47544e-06
4.0741e-07
0.000164529
6.92284e-07
0.000194225
8.63808e-07
0.00020838
9.88737e-07
0.000216662
1.10462e-06
0.000222494
1.16755e-06
0.000227022
1.28413e-06
0.000230513
1.40051e-06
0.000233208
1.50973e-06
0.00023521
1.61607e-06
0.00023663
1.69812e-06
0.000237578
0.000238155
1.82232e-06
4.3122e-07
0.000164098
7.13332e-07
0.000193943
9.03585e-07
0.00020819
1.0462e-06
0.000216519
1.17726e-06
0.000222363
1.33637e-06
0.000226863
1.46865e-06
0.00023038
1.59698e-06
0.00023308
1.72256e-06
0.000235084
1.83812e-06
0.000236514
1.9439e-06
0.000237472
0.000238058
2.04065e-06
4.41165e-07
0.000163656
7.84844e-07
0.000193599
9.95497e-07
0.00020798
1.15598e-06
0.000216359
1.30451e-06
0.000222214
1.4495e-06
0.000226718
1.59506e-06
0.000230235
1.73717e-06
0.000232938
1.90012e-06
0.000234921
2.02919e-06
0.000236385
2.15195e-06
0.00023735
0.000237934
2.27679e-06
4.82221e-07
0.000163174
8.30077e-07
0.000193251
1.06217e-06
0.000207747
1.26659e-06
0.000216154
1.42822e-06
0.000222052
1.58908e-06
0.000226557
1.77578e-06
0.000230048
1.93028e-06
0.000232783
2.04924e-06
0.000234802
2.21518e-06
0.000236219
2.33738e-06
0.000237227
0.000237809
2.46209e-06
4.85893e-07
0.000162688
8.76179e-07
0.000192861
1.12645e-06
0.000207497
1.32288e-06
0.000215958
1.52794e-06
0.000221847
1.73024e-06
0.000226355
1.90107e-06
0.000229877
2.09616e-06
0.000232588
2.28371e-06
0.000234615
2.40657e-06
0.000236096
2.58188e-06
0.000237052
0.000237654
2.73664e-06
5.10503e-07
0.000162178
8.97008e-07
0.000192474
1.22049e-06
0.000207174
1.43349e-06
0.000215745
1.65491e-06
0.000221626
1.84297e-06
0.000226167
2.05834e-06
0.000229662
2.23849e-06
0.000232408
2.43621e-06
0.000234417
2.62472e-06
0.000235908
2.79684e-06
0.00023688
0.000237536
2.91467e-06
5.17817e-07
0.00016166
9.69314e-07
0.000192023
1.26147e-06
0.000206882
1.51889e-06
0.000215487
1.75612e-06
0.000221389
1.98749e-06
0.000225935
2.21526e-06
0.000229434
2.43481e-06
0.000232188
2.62141e-06
0.000234231
2.85116e-06
0.000235678
3.02154e-06
0.00023671
0.000237312
3.24604e-06
5.4501e-07
0.000161115
9.94853e-07
0.000191573
1.32949e-06
0.000206547
1.63296e-06
0.000215184
1.85786e-06
0.000221164
2.13313e-06
0.00022566
2.3455e-06
0.000229222
2.57435e-06
0.000231959
2.8426e-06
0.000233962
3.02521e-06
0.000235496
3.24734e-06
0.000236487
0.000237171
3.38834e-06
5.78898e-07
0.000160536
1.04434e-06
0.000191107
1.42034e-06
0.000206171
1.70132e-06
0.000214903
1.99093e-06
0.000220874
2.24402e-06
0.000225407
2.51491e-06
0.000228951
2.79118e-06
0.000231683
3.00822e-06
0.000233745
3.2575e-06
0.000235246
3.48002e-06
0.000236265
0.000236916
3.73473e-06
5.8454e-07
0.000159951
1.07913e-06
0.000190613
1.47683e-06
0.000205773
1.79219e-06
0.000214588
2.09802e-06
0.000220569
2.37201e-06
0.000225133
2.66798e-06
0.000228655
2.92778e-06
0.000231423
3.20548e-06
0.000233468
3.47213e-06
0.00023498
3.69295e-06
0.000236044
0.000236702
3.90735e-06
6.05669e-07
0.000159346
1.13693e-06
0.000190082
1.53751e-06
0.000205373
1.91458e-06
0.00021421
2.21899e-06
0.000220264
2.53144e-06
0.00022482
2.81818e-06
0.000228368
3.143e-06
0.000231099
3.37816e-06
0.000233233
3.65934e-06
0.000234699
3.93262e-06
0.000235771
0.000236422
4.2126e-06
6.25625e-07
0.00015872
1.18048e-06
0.000189527
1.62015e-06
0.000204933
1.96976e-06
0.000213861
2.31018e-06
0.000219924
2.66864e-06
0.000224462
2.96455e-06
0.000228072
3.28009e-06
0.000230783
3.58392e-06
0.000232929
3.87638e-06
0.000234406
4.14768e-06
0.0002355
0.000236201
4.36861e-06
6.63156e-07
0.000158057
1.21675e-06
0.000188973
1.70505e-06
0.000204445
2.09597e-06
0.00021347
2.43068e-06
0.000219589
2.77771e-06
0.000224115
3.14088e-06
0.000227709
3.47025e-06
0.000230454
3.78762e-06
0.000232611
4.09448e-06
0.000234099
4.39306e-06
0.000235201
0.000235897
4.69765e-06
6.40818e-07
0.000157416
1.27991e-06
0.000188334
1.76372e-06
0.000203961
2.17437e-06
0.000213059
2.5765e-06
0.000219187
2.91204e-06
0.000223779
3.2919e-06
0.000227329
3.63481e-06
0.000230111
3.99219e-06
0.000232254
4.28397e-06
0.000233808
4.61617e-06
0.000234869
0.000235612
4.9012e-06
7.11325e-07
0.000156705
1.28858e-06
0.000187757
1.79622e-06
0.000203453
2.25143e-06
0.000212604
2.67163e-06
0.000218767
3.07561e-06
0.000223376
3.44247e-06
0.000226962
3.79827e-06
0.000229755
4.16911e-06
0.000231883
4.52479e-06
0.000233452
4.83581e-06
0.000234558
0.000235325
5.12278e-06
6.96781e-07
0.000156008
1.40506e-06
0.000187049
1.93438e-06
0.000202924
2.41024e-06
0.000212128
2.82169e-06
0.000218355
3.24149e-06
0.000222956
3.62289e-06
0.000226581
4.0201e-06
0.000229358
4.37699e-06
0.000231526
4.74852e-06
0.00023308
5.08227e-06
0.000234224
0.000234934
5.47276e-06
7.17685e-07
0.00015529
1.39553e-06
0.000186371
1.96634e-06
0.000202353
2.43426e-06
0.00021166
2.91756e-06
0.000217872
3.32575e-06
0.000222548
3.77539e-06
0.000226131
4.15886e-06
0.000228974
4.55611e-06
0.000231129
4.90999e-06
0.000232727
5.27038e-06
0.000233864
0.000234613
5.5916e-06
7.75637e-07
0.000154515
1.46226e-06
0.000185684
2.05762e-06
0.000201758
2.57104e-06
0.000211147
3.01272e-06
0.00021743
3.49454e-06
0.000222066
3.90505e-06
0.000225721
4.3298e-06
0.00022855
4.76838e-06
0.000230691
5.16557e-06
0.000232329
5.58412e-06
0.000233445
0.00023425
5.94692e-06
7.72207e-07
0.000153743
1.49769e-06
0.000184959
2.11521e-06
0.00020114
2.68087e-06
0.000210581
3.1706e-06
0.000216941
3.63325e-06
0.000221603
4.1186e-06
0.000225236
4.55793e-06
0.00022811
4.95485e-06
0.000230294
5.36215e-06
0.000231922
5.74806e-06
0.000233059
0.000233875
6.1233e-06
7.64369e-07
0.000152978
1.5404e-06
0.000184183
2.20399e-06
0.000200477
2.75985e-06
0.000210025
3.2938e-06
0.000216407
3.7847e-06
0.000221112
4.24714e-06
0.000224773
4.70111e-06
0.000227656
5.17341e-06
0.000229821
5.6237e-06
0.000231472
6.03481e-06
0.000232648
0.000233462
6.44829e-06
8.27215e-07
0.000152151
1.60452e-06
0.000183405
2.26957e-06
0.000199812
2.8717e-06
0.000209423
3.39838e-06
0.00021588
3.92645e-06
0.000220584
4.41071e-06
0.000224289
4.94143e-06
0.000227126
5.36107e-06
0.000229402
5.83096e-06
0.000231002
6.2706e-06
0.000232209
0.000233094
6.63792e-06
8.36827e-07
0.000151314
1.64199e-06
0.0001826
2.36221e-06
0.000199091
2.95094e-06
0.000208835
3.53151e-06
0.000215299
4.0768e-06
0.000220039
4.57707e-06
0.000223789
5.08998e-06
0.000226613
5.62219e-06
0.00022887
6.06963e-06
0.000230555
6.51651e-06
0.000231762
0.000232584
7.02711e-06
8.52076e-07
0.000150462
1.72122e-06
0.000181731
2.42186e-06
0.000198391
3.07563e-06
0.000208181
3.66683e-06
0.000214708
4.22942e-06
0.000219476
4.77234e-06
0.000223246
5.27367e-06
0.000226111
5.81318e-06
0.00022833
6.31716e-06
0.000230051
6.79561e-06
0.000231284
0.000232178
7.20143e-06
8.81787e-07
0.00014958
1.73394e-06
0.000180879
2.52615e-06
0.000197599
3.1928e-06
0.000207514
3.82917e-06
0.000214072
4.34582e-06
0.00021896
4.94216e-06
0.000222649
5.48441e-06
0.000225569
6.00854e-06
0.000227806
6.51223e-06
0.000229547
6.99105e-06
0.000230805
0.000231665
7.50405e-06
8.98959e-07
0.000148681
1.77871e-06
0.000179999
2.58504e-06
0.000196792
3.27356e-06
0.000206826
3.90425e-06
0.000213441
4.53915e-06
0.000218325
5.11508e-06
0.000222073
5.69914e-06
0.000224985
6.21036e-06
0.000227295
6.75536e-06
0.000229002
7.25029e-06
0.00023031
0.000231206
7.70975e-06
9.23377e-07
0.000147758
1.84761e-06
0.000179075
2.65653e-06
0.000195983
3.39261e-06
0.00020609
4.0576e-06
0.000212776
4.69939e-06
0.000217683
5.31899e-06
0.000221454
5.8935e-06
0.000224411
6.47662e-06
0.000226712
6.98834e-06
0.00022849
7.58233e-06
0.000229716
0.000230676
8.11145e-06
9.50387e-07
0.000146808
1.89648e-06
0.000178129
2.73004e-06
0.00019515
3.52862e-06
0.000205291
4.18673e-06
0.000212118
4.82182e-06
0.000217048
5.49955e-06
0.000220776
6.09044e-06
0.00022382
6.66197e-06
0.00022614
7.26665e-06
0.000227886
7.7913e-06
0.000229191
0.0002302
8.26774e-06
9.81594e-07
0.000145826
1.95253e-06
0.000177158
2.86802e-06
0.000194234
3.58814e-06
0.000204571
4.30593e-06
0.0002114
5.0268e-06
0.000216327
5.61448e-06
0.000220188
6.31649e-06
0.000223118
6.9305e-06
0.000225526
7.53923e-06
0.000227277
8.07836e-06
0.000228652
0.000229611
8.66722e-06
9.98422e-07
0.000144828
2.0052e-06
0.000176151
2.92889e-06
0.000193311
3.71242e-06
0.000203787
4.49424e-06
0.000210618
5.15221e-06
0.000215669
5.86709e-06
0.000219474
6.49172e-06
0.000222493
7.12008e-06
0.000224898
7.72597e-06
0.000226671
8.29927e-06
0.000228079
0.000229053
8.8573e-06
1.02132e-06
0.000143806
2.05373e-06
0.000175119
2.98205e-06
0.000192382
3.88056e-06
0.000202889
4.60171e-06
0.000209897
5.36435e-06
0.000214906
6.05605e-06
0.000218782
6.68116e-06
0.000221868
7.3704e-06
0.000224209
7.99524e-06
0.000226046
8.64336e-06
0.000227431
0.000228508
9.18808e-06
1.04352e-06
0.000142763
2.1073e-06
0.000174055
3.0838e-06
0.000191406
3.94344e-06
0.000202029
4.77216e-06
0.000209069
5.53844e-06
0.00021414
6.24933e-06
0.000218071
6.9354e-06
0.000221182
7.60044e-06
0.000223544
8.27091e-06
0.000225376
8.89257e-06
0.000226809
0.000227881
9.51989e-06
1.06852e-06
0.000141694
2.20005e-06
0.000172923
3.20047e-06
0.000190405
4.09381e-06
0.000201136
4.92821e-06
0.000208234
5.68991e-06
0.000213378
6.44556e-06
0.000217315
7.19458e-06
0.000220433
7.90231e-06
0.000222836
8.56099e-06
0.000224717
9.22793e-06
0.000226142
0.000227235
9.87416e-06
1.09246e-06
0.000140602
2.21525e-06
0.000171801
3.24803e-06
0.000189373
4.18348e-06
0.0002002
5.01654e-06
0.000207401
5.86987e-06
0.000212525
6.61801e-06
0.000216567
7.36451e-06
0.000219687
8.08483e-06
0.000222116
8.74841e-06
0.000224054
9.3921e-06
0.000225499
0.000226682
9.94492e-06
1.11375e-06
0.000139488
2.26969e-06
0.000170645
3.37963e-06
0.000188263
4.34065e-06
0.000199239
5.22298e-06
0.000206519
6.02846e-06
0.00021172
6.82221e-06
0.000215774
7.61405e-06
0.000218895
8.37531e-06
0.000221354
9.09226e-06
0.000223337
9.77144e-06
0.000224819
0.000225946
1.0508e-05
1.17477e-06
0.000138313
2.36209e-06
0.000169457
3.46644e-06
0.000187158
4.4557e-06
0.00019825
5.36326e-06
0.000205611
6.21691e-06
0.000210866
7.05754e-06
0.000214933
7.8659e-06
0.000218086
8.579e-06
0.000220641
9.36086e-06
0.000222555
1.00614e-05
0.000224119
0.000225253
1.07542e-05
1.15333e-06
0.00013716
2.41625e-06
0.000168194
3.55278e-06
0.000186022
4.58067e-06
0.000197222
5.57965e-06
0.000204612
6.40862e-06
0.000210037
7.26867e-06
0.000214073
8.10081e-06
0.000217254
8.87848e-06
0.000219864
9.62932e-06
0.000221804
1.03805e-05
0.000223368
0.000224529
1.11039e-05
1.21823e-06
0.000135942
2.4698e-06
0.000166943
3.6437e-06
0.000184848
4.74862e-06
0.000196117
5.65494e-06
0.000203706
6.62881e-06
0.000209063
7.51316e-06
0.000213189
8.31417e-06
0.000216453
9.13614e-06
0.000219042
9.92971e-06
0.000221011
1.06832e-05
0.000222614
0.000223833
1.13792e-05
1.2314e-06
0.00013471
2.52214e-06
0.000165652
3.73089e-06
0.000183639
4.82488e-06
0.000195023
5.88191e-06
0.000202649
6.80556e-06
0.000208139
7.71251e-06
0.000212282
8.58606e-06
0.00021558
9.45392e-06
0.000218174
1.0245e-05
0.00022022
1.10438e-05
0.000221816
0.000223023
1.18547e-05
1.28326e-06
0.000133427
2.61568e-06
0.00016432
3.86671e-06
0.000182388
4.99924e-06
0.000193891
6.03511e-06
0.000201613
7.01192e-06
0.000207163
7.96831e-06
0.000211325
8.86258e-06
0.000214685
9.72535e-06
0.000217311
1.05561e-05
0.000219389
1.13472e-05
0.000221024
0.000222327
1.20423e-05
1.27355e-06
0.000132154
2.67343e-06
0.00016292
3.95885e-06
0.000181103
5.1278e-06
0.000192722
6.24897e-06
0.000200492
7.24945e-06
0.000206162
8.15285e-06
0.000210422
9.12101e-06
0.000213717
9.97844e-06
0.000216454
1.08299e-05
0.000218537
1.1656e-05
0.000220198
0.000221449
1.25348e-05
1.36843e-06
0.000130785
2.72858e-06
0.00016156
4.05332e-06
0.000179778
5.31049e-06
0.000191465
6.36581e-06
0.000199437
7.4482e-06
0.00020508
8.42199e-06
0.000209448
9.36196e-06
0.000212777
1.0292e-05
0.000215524
1.12152e-05
0.000217614
1.20443e-05
0.000219369
0.000220721
1.27722e-05
1.35053e-06
0.000129435
2.82826e-06
0.000160082
4.19636e-06
0.00017841
5.44314e-06
0.000190218
6.6353e-06
0.000198244
7.6524e-06
0.000204063
8.72526e-06
0.000208375
9.68966e-06
0.000211813
1.06181e-05
0.000214595
1.15165e-05
0.000216716
1.24461e-05
0.00021844
0.000219872
1.3295e-05
1.40229e-06
0.000128032
2.88351e-06
0.000158601
4.29123e-06
0.000177002
5.58106e-06
0.000188928
6.75974e-06
0.000197066
7.91104e-06
0.000202911
8.95775e-06
0.000207328
9.94608e-06
0.000210825
1.09751e-05
0.000213566
1.18359e-05
0.000215855
1.27364e-05
0.000217539
0.000218987
1.36208e-05
1.42721e-06
0.000126605
2.94005e-06
0.000157088
4.44161e-06
0.000175501
5.76931e-06
0.0001876
6.98934e-06
0.000195846
8.12311e-06
0.000201778
9.18444e-06
0.000206267
1.02333e-05
0.000209776
1.12047e-05
0.000212595
1.22152e-05
0.000214844
1.31018e-05
0.000216653
0.000218132
1.39573e-05
1.45071e-06
0.000125154
3.04948e-06
0.000155489
4.54384e-06
0.000174006
5.91555e-06
0.000186229
7.17315e-06
0.000194588
8.39547e-06
0.000200555
9.50218e-06
0.00020516
1.05626e-05
0.000208715
1.15845e-05
0.000211573
1.25994e-05
0.00021383
1.35509e-05
0.000215701
0.000217224
1.44589e-05
1.50514e-06
0.000123649
3.10809e-06
0.000153886
4.64651e-06
0.000172468
6.11573e-06
0.000184759
7.4125e-06
0.000193291
8.62155e-06
0.000199346
9.76292e-06
0.000204019
1.08971e-05
0.000207581
1.19526e-05
0.000210517
1.29882e-05
0.000212794
1.39381e-05
0.000214751
0.000216274
1.48876e-05
1.5656e-06
0.000122084
3.21319e-06
0.000152239
4.8001e-06
0.000170881
6.26534e-06
0.000183294
7.6621e-06
0.000191895
8.85232e-06
0.000198156
1.00851e-05
0.000202786
1.12059e-05
0.00020646
1.22705e-05
0.000209453
1.32994e-05
0.000211765
1.43575e-05
0.000213693
0.000215376
1.52559e-05
1.5832e-06
0.0001205
3.27474e-06
0.000150547
4.96254e-06
0.000169193
6.4739e-06
0.000181783
7.85951e-06
0.000190509
9.14457e-06
0.000196871
1.03562e-05
0.000201575
1.15132e-05
0.000205303
1.26841e-05
0.000208282
1.37424e-05
0.000210707
1.47929e-05
0.000212643
0.000214302
1.58671e-05
1.64863e-06
0.000118852
3.38629e-06
0.000148809
5.07289e-06
0.000167507
6.63289e-06
0.000180223
8.06235e-06
0.00018908
9.44779e-06
0.000195486
1.06969e-05
0.000200326
1.18857e-05
0.000204115
1.30194e-05
0.000207148
1.41315e-05
0.000209595
1.51939e-05
0.00021158
0.000213308
1.61877e-05
1.66478e-06
0.000117187
3.44978e-06
0.000147024
5.18602e-06
0.00016577
6.85217e-06
0.000178557
8.33141e-06
0.0001876
9.70245e-06
0.000194114
1.10478e-05
0.00019898
1.22689e-05
0.000202893
1.34385e-05
0.000205979
1.45987e-05
0.000208435
1.56434e-05
0.000210536
0.00021231
1.66416e-05
1.6793e-06
0.000115508
3.56394e-06
0.00014514
5.41002e-06
0.000163924
7.02083e-06
0.000176946
8.6068e-06
0.000186014
1.00229e-05
0.000192698
1.135e-05
0.000197653
1.26108e-05
0.000201633
1.38716e-05
0.000204718
1.49753e-05
0.000207331
1.61486e-05
0.000209362
0.000211218
1.7241e-05
1.7876e-06
0.00011372
3.68259e-06
0.000143245
5.48006e-06
0.000162127
7.25626e-06
0.00017517
8.83651e-06
0.000184434
1.03546e-05
0.00019118
1.16657e-05
0.000196342
1.30234e-05
0.000200275
1.42611e-05
0.00020348
1.5505e-05
0.000206087
1.66271e-05
0.00020824
0.000210179
1.76653e-05
1.81082e-06
0.000111909
3.75535e-06
0.0001413
5.71533e-06
0.000160167
7.49469e-06
0.00017339
9.12952e-06
0.000182799
1.06401e-05
0.00018967
1.21136e-05
0.000194869
1.34482e-05
0.00019894
1.47245e-05
0.000202204
1.59418e-05
0.00020487
1.71097e-05
0.000207072
0.000208952
1.83376e-05
1.8403e-06
0.000110069
3.8864e-06
0.000139254
5.85127e-06
0.000158202
7.68744e-06
0.000171554
9.38017e-06
0.000181107
1.09978e-05
0.000188052
1.24565e-05
0.00019341
1.38347e-05
0.000197562
1.52046e-05
0.000200834
1.64533e-05
0.000203621
1.76356e-05
0.00020589
0.000207878
1.87094e-05
1.94397e-06
0.000108125
3.96466e-06
0.000137233
6.04404e-06
0.000156123
7.94576e-06
0.000169652
9.75154e-06
0.000179301
1.13097e-05
0.000186494
1.28742e-05
0.000191845
1.42983e-05
0.000196138
1.56484e-05
0.000199484
1.69392e-05
0.00020233
1.82299e-05
0.000204599
0.000206669
1.94388e-05
1.96999e-06
0.000106155
4.09251e-06
0.000135111
6.19015e-06
0.000154025
8.21089e-06
0.000167632
1.00245e-05
0.000177487
1.17531e-05
0.000184765
1.3253e-05
0.000190346
1.47768e-05
0.000194614
1.61733e-05
0.000198087
1.75693e-05
0.000200934
1.87943e-05
0.000203374
0.000205389
2.00746e-05
2.00301e-06
0.000104152
4.28293e-06
0.000132831
6.44678e-06
0.000151861
8.48645e-06
0.000165592
1.03639e-05
0.00017561
1.20959e-05
0.000183033
1.37617e-05
0.00018868
1.52761e-05
0.0001931
1.67081e-05
0.000196655
1.8068e-05
0.000199575
1.94094e-05
0.000202033
0.000204217
2.05813e-05
2.10298e-06
0.000102049
4.32096e-06
0.000130613
6.611e-06
0.000149571
8.71709e-06
0.000163486
1.06615e-05
0.000173665
1.25113e-05
0.000181183
1.4174e-05
0.000187017
1.57338e-05
0.00019154
1.72086e-05
0.000195181
1.86686e-05
0.000198115
2.00143e-05
0.000200688
0.0002029
2.13314e-05
2.13995e-06
9.99094e-05
4.5182e-06
0.000128235
6.83137e-06
0.000147258
9.01579e-06
0.000161302
1.10899e-05
0.000171591
1.28861e-05
0.000179387
1.46661e-05
0.000185237
1.62763e-05
0.00018993
1.78534e-05
0.000193604
1.92923e-05
0.000196676
2.06494e-05
0.000199331
0.000201597
2.19521e-05
2.25739e-06
9.76519e-05
4.62157e-06
0.000125871
7.01272e-06
0.000144867
9.32905e-06
0.000158985
1.14195e-05
0.000169501
1.34029e-05
0.000177404
1.51846e-05
0.000183455
1.69057e-05
0.000188209
1.8412e-05
0.000192097
1.98928e-05
0.000195195
2.13612e-05
0.000197862
0.000200238
2.27198e-05
2.30494e-06
9.53472e-05
4.83201e-06
0.000123344
7.3088e-06
0.00014239
9.65732e-06
0.000156637
1.18286e-05
0.000167329
1.38243e-05
0.000175408
1.56685e-05
0.000181611
1.74467e-05
0.000186431
1.91204e-05
0.000190424
2.06459e-05
0.000193669
2.20817e-05
0.000196426
0.000198903
2.34166e-05
2.33536e-06
9.30117e-05
4.94969e-06
0.000120729
7.51189e-06
0.000139828
1.00016e-05
0.000154147
1.22572e-05
0.000165074
1.43889e-05
0.000173277
1.63015e-05
0.000179699
1.80214e-05
0.000184711
1.975e-05
0.000188695
2.13253e-05
0.000192094
2.288e-05
0.000194872
0.000197464
2.43197e-05
2.45571e-06
9.05562e-05
5.12288e-06
0.000118062
7.83116e-06
0.00013712
1.0308e-05
0.00015167
1.27088e-05
0.000162673
1.48639e-05
0.000171121
1.69049e-05
0.000177658
1.87462e-05
0.00018287
2.04693e-05
0.000186972
2.21503e-05
0.000190413
2.36861e-05
0.000193336
0.000196028
2.51223e-05
2.55403e-06
8.80021e-05
5.30885e-06
0.000115308
8.065e-06
0.000134363
1.07461e-05
0.000148989
1.31866e-05
0.000160232
1.54269e-05
0.000168881
1.74865e-05
0.000175598
1.9448e-05
0.000180908
2.12192e-05
0.000185201
2.28767e-05
0.000188756
2.44174e-05
0.000191795
0.000194573
2.58719e-05
2.65027e-06
8.53519e-05
5.50576e-06
0.000112452
8.3665e-06
0.000131503
1.11539e-05
0.000146202
1.36938e-05
0.000157692
1.60255e-05
0.000166549
1.82219e-05
0.000173401
2.01936e-05
0.000178936
2.20281e-05
0.000183366
2.38032e-05
0.000186981
2.54282e-05
0.00019017
0.000192986
2.70151e-05
2.70204e-06
8.26498e-05
5.71422e-06
0.00010944
8.73772e-06
0.000128479
1.15335e-05
0.000143406
1.42365e-05
0.000154989
1.67218e-05
0.000164064
1.88898e-05
0.000171233
2.09933e-05
0.000176833
2.2943e-05
0.000181417
2.46469e-05
0.000185277
2.63458e-05
0.000188472
0.000191497
2.78348e-05
2.8535e-06
7.97961e-05
5.93738e-06
0.000106356
9.03412e-06
0.000125382
1.20525e-05
0.000140387
1.48168e-05
0.000152225
1.7351e-05
0.00016153
1.97211e-05
0.000168863
2.18416e-05
0.000174712
2.37969e-05
0.000179461
2.56679e-05
0.000183406
2.73667e-05
0.000186773
0.000189807
2.90572e-05
2.97017e-06
7.68259e-05
6.17965e-06
0.000103146
9.40754e-06
0.000122154
1.25073e-05
0.000137288
1.54454e-05
0.000149287
1.809e-05
0.000158885
2.04995e-05
0.000166454
2.27555e-05
0.000172457
2.47715e-05
0.000177445
2.66332e-05
0.000181544
2.84087e-05
0.000184997
0.000188233
2.99824e-05
3.0552e-06
7.37706e-05
6.44806e-06
9.97533e-05
9.86494e-06
0.000118737
1.31067e-05
0.000134046
1.61284e-05
0.000146265
1.89481e-05
0.000156065
2.146e-05
0.000163942
2.37408e-05
0.000170176
2.58256e-05
0.00017536
2.77942e-05
0.000179575
2.95565e-05
0.000183235
0.000186591
3.11988e-05
3.23628e-06
7.05346e-05
6.74434e-06
9.62452e-05
1.02722e-05
0.00011521
1.37157e-05
0.000130602
1.6881e-05
0.0001431
1.97734e-05
0.000153173
2.2448e-05
0.000161267
2.4818e-05
0.000167806
2.70259e-05
0.000173153
2.89942e-05
0.000177607
3.08045e-05
0.000181425
0.00018488
3.25153e-05
3.39154e-06
6.7143e-05
7.08059e-06
9.25564e-05
1.08322e-05
0.000111458
1.43968e-05
0.000127038
1.77187e-05
0.000139778
2.07995e-05
0.000150092
2.35305e-05
0.000158536
2.59899e-05
0.000165346
2.8266e-05
0.000170876
3.02874e-05
0.000175586
3.21472e-05
0.000179565
0.000183094
3.39331e-05
3.58654e-06
6.3557e-05
7.51221e-06
8.86307e-05
1.13793e-05
0.000107591
1.51777e-05
0.000123239
1.87117e-05
0.000136244
2.18288e-05
0.000146975
2.47261e-05
0.000155639
2.73224e-05
0.00016275
2.96022e-05
0.000168597
3.16577e-05
0.00017353
3.35693e-05
0.000177653
0.000181436
3.52275e-05
3.8116e-06
5.97451e-05
7.95444e-06
8.44883e-05
1.21353e-05
0.00010341
1.60917e-05
0.000119283
1.97496e-05
0.000132586
2.31049e-05
0.000143619
2.60546e-05
0.000152689
2.87253e-05
0.000160079
3.10556e-05
0.000166266
3.31966e-05
0.000171389
3.50844e-05
0.000175765
0.000179698
3.68222e-05
4.14773e-06
5.55978e-05
8.61293e-06
8.00228e-05
1.30301e-05
9.89935e-05
1.72461e-05
0.000115067
2.10712e-05
0.000128761
2.45476e-05
0.000140143
2.75879e-05
0.000149649
3.02164e-05
0.00015745
3.26363e-05
0.000163846
3.47388e-05
0.000169286
3.66722e-05
0.000173832
0.000178017
3.83534e-05
4.5851e-06
5.10122e-05
9.51253e-06
7.50957e-05
1.42737e-05
9.4232e-05
1.86431e-05
0.000110698
2.25913e-05
0.000124813
2.61047e-05
0.00013663
2.92458e-05
0.000146508
3.20103e-05
0.000154686
3.43404e-05
0.000161516
3.64898e-05
0.000167137
3.83579e-05
0.000171964
0.000176283
4.00912e-05
5.48753e-06
4.55247e-05
1.09813e-05
6.96013e-05
1.59701e-05
8.92433e-05
2.04213e-05
0.000106246
2.44633e-05
0.000120771
2.79755e-05
0.000133117
3.10694e-05
0.000143414
3.37905e-05
0.000151965
3.62107e-05
0.000159096
3.8265e-05
0.000165082
4.01201e-05
0.000170109
0.00017472
4.16838e-05
7.54576e-06
3.79786e-05
1.35888e-05
6.35581e-05
1.85025e-05
8.43291e-05
2.28063e-05
0.000101942
2.65198e-05
0.000117057
2.99606e-05
0.000129676
3.30139e-05
0.00014036
3.57299e-05
0.000149248
3.80995e-05
0.000156726
4.01349e-05
0.000163047
4.18292e-05
0.000168415
4.32706e-05
0.000173279
0.00052738
-0.000155308
-0.000372071
-0.00106757
-0.00154982
0.00261739
-0.00122594
0.00103015
0.000195787
-0.0014245
0.000226402
0.0011981
-0.000786883
-0.00063762
-0.000801429
0.000766088
3.5341e-05
-0.000394741
-0.000406688
0.000180148
7.91587e-05
-0.000259307
0.000318763
-0.000497264
0.000178501
-0.00037486
-0.000312824
0.000687684
0.000857017
-0.000903506
4.64888e-05
0.0031467
-0.00373461
0.000587908
-0.00198018
0.00166648
0.000313704
0.000133205
-0.00029919
0.000165985
0.0057544
-0.00477338
-0.000981019
0.00281388
-0.00883213
0.00601826
-9.83015e-05
0.000231506
-0.00170813
0.00136778
0.000340354
-0.000842903
-0.000865227
0.00726575
-0.00445187
-0.00064894
2.83417e-05
0.000620598
-0.000340134
-2.20193e-05
0.000362153
0.000909003
-0.000984477
7.5474e-05
0.00402016
-0.00323183
-0.00078833
0.000579746
-5.23663e-05
-0.00027534
-0.000950596
-0.000201871
0.000455553
-0.000253682
0.00544554
-0.00334873
-0.00209681
-2.03666e-05
-0.000547984
0.000568351
-0.000215055
0.000413121
-0.000198066
-0.000290876
-0.00041762
0.000708496
-0.000196949
2.34588e-05
0.00017349
-0.0035418
0.00247422
0.00026204
0.000594976
-0.000981595
-0.000998589
-0.00077308
0.000619106
0.000153975
3.22904e-05
3.07928e-05
-6.30833e-05
-0.00104164
0.00051795
0.000523693
0.000248182
3.50676e-06
-0.000251688
0.000203707
0.002943
0.00844511
-0.00278879
-0.00565632
0.00188611
-0.00820198
0.00631587
0.000157005
0.000362554
-0.000519559
0.00239876
-8.56307e-05
-0.00231313
-0.000161154
2.57143e-05
0.00013544
-0.000495582
0.000155449
0.000172034
-0.0012216
0.00104957
0.00134524
-0.00152676
0.000181529
-0.000166373
5.21886e-06
-0.00026615
-0.00038279
-0.000387626
-0.000385454
-2.09737e-05
0.000201122
6.17673e-05
-0.000179812
0.000118045
0.0332872
-0.00664312
-0.0266441
-0.000286634
0.000493804
-0.00020717
0.00413849
-0.00422543
8.69397e-05
0.000559141
-0.00161673
0.00105759
-0.00541756
0.00730367
-0.000749139
-0.000292504
0.00166192
0.00409248
-0.000426093
0.000224222
-0.000182216
-1.47331e-05
0.0411571
-0.0078699
-0.00161169
-0.000442037
0.00205373
0.00116189
-0.00056424
-0.000597652
0.00258868
-0.000371902
0.000341939
2.99638e-05
-5.2713e-05
-0.000138794
0.000191507
-2.50639e-05
0.000194495
-0.000169431
0.000368806
-0.000743666
-0.000347872
6.12384e-05
-3.18418e-05
-0.00183715
0.001869
0.000313452
-6.52708e-05
-0.000420559
0.000422612
-2.05231e-06
0.00212272
0.00189745
0.0251427
-0.0135524
-0.0115903
-0.000176214
0.000494976
-0.00718179
-0.0193193
0.0265011
0.00315187
-0.00285061
-0.000301264
0.000359518
-2.45757e-05
-0.000334942
-1.91378e-05
-0.00107349
0.00109263
0.00700292
0.0222246
-0.0292275
-4.57303e-06
9.8299e-05
-9.37259e-05
0.000194886
-0.000191841
-3.04445e-06
-0.00298219
0.00122696
0.00175523
0.000673838
-0.000522274
-0.000151564
-8.11739e-06
-0.000363785
-0.0298279
0.0272484
0.00257954
-6.86373e-05
-0.000881516
0.000950153
0.000145173
-0.000119459
-0.000146604
-0.000288276
0.00043488
0.000894652
-0.000233178
-0.000661473
0.0296533
0.000431565
-0.0300849
0.0031615
-0.00535631
0.00219482
-7.75331e-05
-3.35983e-05
0.000111132
-0.00755382
0.0142895
-0.00673565
3.57716e-05
0.00540977
0.00498453
0.00901941
-0.0140039
-0.0153009
-0.000900746
0.0162017
1.92708e-05
0.000246929
-0.000266199
-7.69307e-05
0.000288915
-0.000211984
-0.00117758
0.00137579
-0.000198209
-0.00747469
-1.54377e-06
0.00747623
0.00127908
-0.00466578
0.0033867
0.0513578
-0.0190101
-0.0323477
3.30517e-05
0.000114711
-0.000147763
0.00240163
-0.00143095
-0.000970675
0.000205741
-0.000174519
-3.12223e-05
-0.000224509
0.000893225
-0.000668716
0.0290152
0.00848058
-0.0374958
0.000547626
-0.000480457
-6.71695e-05
0.0180198
0.0162375
-0.0342573
-9.5001e-05
-0.000336179
0.00043118
0.0041941
0.00152896
-0.00572307
-0.0365539
0.028067
0.00848687
-0.000543483
-1.84649e-05
0.000561948
-0.00443112
0.00270246
0.00172866
-0.000637729
0.0024649
-0.00182717
0.000328736
0.000192719
-0.000521455
9.0585e-05
0.000854139
-0.000944724
0.00011631
0.000242067
-0.000358377
0.00077286
0.00138554
-0.0021584
-0.000395767
0.000364116
3.16504e-05
-0.000411982
-0.000765596
0.00178636
-1.60862e-05
-0.00177028
0.000680841
-0.000252632
-0.000428209
0.0163947
-0.00184081
-0.0145539
8.92759e-06
-0.000163006
0.000154079
0.000182003
-0.000743808
0.000561805
-0.0319251
0.035392
-0.00346694
0.000103215
-0.000103215
-0.0437679
0.0388133
0.00495464
0.000211106
-0.000211106
-0.00294635
0.000506757
1.90775e-05
-0.000525835
-0.000383811
0.00256552
-0.00218171
5.64352e-05
6.08284e-05
-0.000117264
0.000606956
-0.000962849
0.000355893
-1.77814e-07
-0.000379348
0.000379526
-0.00289865
0.000353024
0.00254563
0.0035708
-0.000713806
-0.00285699
-0.000519638
0.000151494
0.000368144
0.000150577
-0.000291957
0.00014138
0.00268759
-0.0205972
0.0179096
-7.95286e-06
0.000152358
-0.000144405
0.000226508
3.00753e-05
-0.000256583
0.000293584
-0.000151085
-0.000142499
-0.00705448
0.00221093
0.00484354
-0.000525464
0.000671119
-0.000145655
-0.000442912
0.000369165
7.37476e-05
0.0200927
-0.0174051
-0.000410534
-0.000132949
-0.00857016
0.0286759
-0.0201058
-0.00105934
0.0010402
-0.000827793
0.000884861
-5.70685e-05
-0.000391121
0.0210089
-0.0206177
-0.000454044
0.000211225
0.000242819
-0.0107446
-0.0151318
0.0258764
0.000490512
-0.000631162
0.000140649
-0.00178498
0.00470229
-0.00291731
0.00151083
-0.00291704
0.0014062
0.0116274
-0.00765052
-0.00397686
-0.00147864
-0.000379037
0.00185768
0.0012804
-0.00372248
0.00244209
-0.000574579
4.20215e-06
0.000570377
0.000709562
-2.70091e-05
-0.000682553
-0.000122008
0.000103422
1.85856e-05
0.000111303
2.52733e-05
-0.000136576
0.000448735
-0.000136484
-0.00031225
-0.0487126
0.031237
0.0174756
-0.000522613
0.000408552
0.000114061
-0.000132313
0.000413753
-0.00028144
0.000482978
1.08257e-05
0.00332207
0.000248731
-0.0382202
0.0376308
0.000589346
-0.000999166
0.00093919
5.99759e-05
-0.0416049
0.00616739
0.0354375
0.000103836
-0.000234691
0.000130855
0.000105288
0.00044518
-0.000550468
0.000748307
-0.000722101
-2.62052e-05
-9.85493e-05
0.000712237
-0.00093221
0.000219974
0.00114573
-0.00408714
0.00294141
0.00013961
0.000150255
-0.000289865
0.00947859
-0.00806853
-0.00141006
-0.000259497
0.00036986
-0.000110363
0.016373
-0.0108287
-0.00554432
-0.00939907
-0.0153264
0.0247255
8.57198e-05
5.10104e-05
-0.00013673
-0.0175981
-0.0189558
-0.000711836
0.000643198
0.0312827
-0.00621691
-0.0250658
0.000227452
-0.000178727
-4.87251e-05
0.00747628
-0.0122204
0.00474414
0.000457727
-0.000425853
-3.18747e-05
-0.000169211
-0.000463419
0.000632631
0.000410118
-0.000151176
-0.000258942
0.000624712
-0.000404172
-0.000220539
-0.0292615
0.012406
0.0168555
-0.000597078
5.32757e-05
0.000543802
0.000601941
-0.000161848
-0.000440093
-0.00027345
0.000238282
3.51676e-05
-9.80887e-05
-2.83859e-05
0.000126475
-0.000481277
0.00010517
0.000376108
0.000228819
-0.000254504
2.5685e-05
0.000136848
0.00149377
-0.00163062
-0.00341824
0.003148
0.000270243
-0.000302394
0.00137773
-0.00107534
-7.57173e-05
-0.000325546
0.000401263
0.00172239
-0.000207662
-0.00151472
0.00023198
-0.00023198
0.000403483
0.000122215
-0.000525697
-0.000148207
0.000298914
-0.000150707
0.000109308
-0.000152124
4.28157e-05
0.0203606
-0.0468963
0.0265357
0.000134659
0.000140009
-0.000274667
0.00174775
-0.00392606
0.00217831
-0.000928614
0.00128598
-0.000357364
-9.861e-05
-0.000498467
0.000139245
1.92586e-05
-0.000158504
0.000165765
2.91204e-05
0.000176093
0.000425848
-0.000142137
-1.53633e-05
0.0001575
-0.00695803
-0.00555864
0.0125167
-0.00317939
-0.00837856
0.0115579
0.000208285
0.000472556
0.000257521
0.000416318
-0.00860113
-0.00423929
0.0128404
-0.000403164
0.000378537
2.46271e-05
-0.000982175
0.000387381
0.000594795
6.69223e-05
-6.69222e-05
0.00222359
-0.000437226
0.0300323
-0.0153707
-0.0146616
0.000252029
-0.000232758
-0.00115659
0.000227973
-0.000416256
0.000159529
0.000256727
-0.000446438
0.000186941
-0.000620864
0.000583464
3.74002e-05
-0.000597482
-0.000911113
0.00150859
-0.000222406
0.000378632
-0.000156226
0.00148686
-0.00185597
0.000369111
0.000651208
-0.00113002
0.000478812
0.000189468
0.000813223
-0.00100269
-0.000393694
-0.000213035
0.000606729
3.61017e-05
-1.86115e-05
-1.74903e-05
0.000207544
2.44354e-05
0.00020473
6.37577e-06
0.00561874
-0.00699032
0.00137158
-0.000852247
0.000206432
0.000645814
-0.000152483
0.000287141
0.000838685
-0.000231729
-7.19074e-05
-0.000348652
-0.00107325
1.97482e-05
0.0010535
0.000348569
-0.000124146
-0.000224422
0.00010358
0.000124774
-0.000228354
-0.00157773
0.000466503
0.00111122
-0.00702763
1.48448e-05
0.00701279
-0.000336404
0.000113998
-0.000894457
0.000640275
0.000254182
7.45468e-05
-0.000216683
0.00125272
0.000469669
-0.000248276
0.000368842
-0.000120566
-0.0024483
0.00183025
0.000618055
-0.00130512
-0.00211312
-0.000132085
2.7416e-05
0.000104669
-0.000283474
3.51974e-05
-5.97788e-05
0.00036494
-0.000305161
0.000159061
0.000176988
-0.000336049
-0.00184539
0.00127854
0.00056685
-0.000123474
0.000349879
-0.000226405
0.00372033
-0.00520983
0.0014895
-0.000954521
0.00112656
-0.000395287
0.000386665
0.000114964
-0.000114964
-0.00011907
0.00011907
-0.000418026
0.00040841
-0.00023957
0.000110719
0.000128851
8.90156e-05
-8.90156e-05
-0.000150493
9.38511e-05
5.66422e-05
0.000156497
-5.19471e-05
-0.00010455
0.000146341
-0.000188121
4.178e-05
-5.91706e-05
-0.000180399
9.81722e-05
0.000157802
-0.000255974
5.50099e-05
-0.000278917
0.000223907
0.00064922
0.000157039
-0.000806259
0.000263514
0.000567473
-0.000876823
0.00030935
-0.000119339
0.000119339
0.000333786
-2.50938e-05
-0.000308692
0.000614087
-0.000600318
-1.3768e-05
9.46163e-05
6.18805e-05
-0.000340791
5.45144e-05
0.000286277
8.71708e-05
-8.71707e-05
-8.78767e-05
8.78769e-05
0.000263428
-0.000195511
-6.79174e-05
0.000116882
0.00011057
-0.000296463
0.000757924
-0.000461461
0.000135943
-0.000135943
-0.000389648
0.000952536
-0.000562888
-0.000161854
8.43214e-05
-0.00038933
-0.000119718
0.000509047
-0.010288
-0.00347455
0.0137626
-0.000165429
6.09892e-05
0.00010444
-0.000518978
0.000343029
0.00017595
-0.000663632
-0.000164161
-3.10755e-05
-0.000428613
0.000459689
-0.000164724
0.00014121
2.35144e-05
0.00677069
-0.0243688
0.00144112
-0.000533354
-0.000907763
-0.000647089
0.00117334
-0.000526255
-0.000249438
0.00103799
-0.000788552
0.000125817
-4.06764e-05
-8.51405e-05
0.0153476
-0.018545
0.00319743
0.000419814
-0.000419947
-0.000201671
-7.17795e-05
0.000658698
-0.000501694
-9.14628e-05
9.14629e-05
0.000469407
-0.000514192
4.47853e-05
-0.0488464
0.0340223
0.014824
-8.03401e-05
2.71469e-05
5.31932e-05
-0.00104065
0.000968887
7.17661e-05
-0.00057959
-0.000314867
0.00133044
-0.0007275
-0.000602936
1.70634e-05
-1.70634e-05
-0.000235962
6.76031e-05
0.000168359
0.000211498
0.000257909
-0.000961497
0.000988437
-2.69407e-05
-0.0139433
-0.0110052
0.0249485
-0.0212832
0.0219857
-0.000702545
9.04688e-05
3.53483e-05
0.000383969
0.000769219
-0.00115319
0.0324908
-0.0338975
0.00140674
-0.000679351
0.000658984
0.0153306
0.0147017
-0.000974731
-0.0203085
0.00312348
0.00975715
-0.0128806
0.0402031
0.0111547
0.000165693
-0.00173668
0.00157099
-0.00923831
-0.00865212
0.0178904
0.00827818
-0.00268389
-0.00559429
0.000632545
0.000274706
-0.000907251
0.000200672
-0.000246261
4.55889e-05
0.0295706
0.00871927
-0.0382899
-0.000236367
0.000497548
-0.000261181
0.00177045
-0.00121131
0.000140998
-0.000135296
-5.70254e-06
1.64381e-05
5.04841e-05
0.000115821
0.000374691
-0.000444665
0.000530488
-8.58227e-05
0.000654729
0.000241336
-0.000896066
0.0480199
-0.0131873
-0.0348326
0.005882
-0.0134358
0.00176568
-0.00162883
-0.000595929
0.000735829
-0.0001399
8.97176e-05
-1.64325e-05
-7.32852e-05
-0.0075213
-0.0306989
-0.00211672
9.70388e-05
0.00201968
-0.000107596
-9.36664e-05
0.000201263
-0.000443253
0.000383474
-0.00106079
0.00111145
-5.06618e-05
0.000197631
-0.000154896
-4.27351e-05
9.52045e-05
-0.000160593
6.53886e-05
-0.000158844
-0.000339744
0.000498588
-5.01227e-05
-0.000394543
-0.00015216
0.000656474
-0.000504313
0.0007073
0.000475655
-0.00118296
0.0114774
-0.0123655
0.000888085
-0.00701033
-0.0139077
0.0209181
0.00633541
-0.000689916
-0.00564549
0.00218149
-0.00133564
-0.000845849
-0.000653275
-0.000855516
0.00150879
0.000142315
-0.000150093
7.77834e-06
-5.48247e-05
-0.000181137
-0.000239447
0.000239447
-0.000103021
-0.000292746
0.000443255
0.00011882
-0.000562076
0.000251968
-0.000321
6.90314e-05
-9.41085e-05
-0.000431356
-0.0154918
0.00546102
0.0100308
-0.00054146
-0.000388765
0.000930225
0.000665269
-0.00032529
-0.00033998
0.00589182
-0.00725113
0.00135931
-0.0264029
0.0156584
0.000307276
-0.000106604
0.000175373
0.000173195
0.000197161
-0.000325966
0.000128804
0.00683736
0.0202612
-0.0270985
-0.000681537
0.000827733
-0.000146196
-0.000574551
0.000389701
0.00018485
0.00105057
0.000294662
-0.00639002
-0.00583491
0.0122249
0.000374606
-0.000493695
0.000119089
0.00116513
-0.000618703
-0.00054643
0.000212712
-0.000150944
0.000122822
0.000140607
0.015756
-0.00427858
-0.000365846
-0.000104244
0.000470089
-0.00620139
-0.00856215
0.0147635
0.00140736
-8.80715e-05
-0.00131929
-0.000314772
-0.000646725
-0.00419092
0.0026196
0.00157132
-0.0027309
0.00401129
0.000285541
-3.35119e-05
-0.0032979
0.000771503
0.0025264
-0.000795263
-5.69829e-05
8.39881e-05
2.39312e-05
-0.000107919
-0.00034227
0.000546362
-0.000204092
0.000501685
0.000392967
0.000138011
-0.000169203
3.11921e-05
0.000137667
6.80738e-05
0.0175167
-0.03146
-0.0209179
0.0277552
0.00796218
-0.0227122
0.0147501
0.000227977
0.000214153
-0.00044213
0.00291295
-0.00114727
0.000231191
-5.14611e-05
-0.00017973
0.000222009
-2.71067e-05
-0.000194902
0.00028598
0.000338731
0.000356859
3.84558e-05
-0.000395314
0.00998296
-0.00374042
0.0327556
-0.000291219
0.00011874
0.000172479
-0.00225917
0.0290137
-0.0267546
-0.0112424
0.0160283
-0.00478587
0.000150075
7.42937e-05
-0.000224369
0.0437619
-0.0112711
0.00132673
-0.00124963
-7.71038e-05
0.000519016
-0.000115533
-0.000259246
0.000242769
1.64773e-05
0.0375611
-0.0467892
0.0092281
-0.00129787
-0.00243674
-0.00231035
-0.000677377
0.00298772
-0.00158649
0.0015837
2.79447e-06
-0.000341374
0.000296847
4.45274e-05
-0.00123751
0.0013281
-0.0221751
-0.00911406
0.0312892
-0.000325278
0.000129674
0.000195604
0.000480426
-0.00010582
4.63367e-05
0.000559427
-0.000605763
-0.00269173
0.000368321
0.00232341
-0.000133078
-3.16464e-05
0.000107791
4.86463e-06
-0.000112656
0.00325486
-0.00182808
-0.00142678
0.000173736
-0.000346585
0.000172849
-0.00282493
0.00291927
-9.43362e-05
0.000216744
2.62339e-05
-0.000242978
-0.0008884
-0.00794373
-0.000262813
-0.000191231
-0.000734884
0.000781814
-4.69304e-05
0.000354666
0.0347661
-0.0351208
0.0002364
0.000394906
-0.000631306
-0.000344204
2.82954e-06
6.49036e-05
-6.49036e-05
-0.00256432
-0.00209728
0.0046616
-0.000926725
0.000635849
-0.000482654
-3.6984e-05
0.00515414
-0.000721139
-0.004433
0.000100433
-0.000100433
-0.000216506
0.000130034
8.64724e-05
-0.000448445
-0.000479414
0.000927859
3.12125e-05
-0.000301016
0.000269803
-0.00132159
0.00265562
-0.00133402
0.000644322
4.24302e-05
-0.000686752
-0.00334605
0.00173436
-0.000393027
0.000390272
-0.000690023
0.000551529
0.000138494
0.00997921
-0.00153409
-0.000759326
0.000600303
0.000159023
0.000503625
3.1323e-06
-6.80067e-05
6.80066e-05
-0.000921364
0.00189878
-0.000977413
-8.39441e-06
-0.00010553
0.000113924
0.000111607
-0.000111607
-0.0340279
0.00715455
0.0268733
-0.000244857
-0.000274121
0.000198077
0.000304977
-0.000503053
-0.000466294
0.000371293
-0.0049958
0.0327271
-0.0277312
0.000214421
-9.89418e-05
-0.000115479
0.0001927
-8.68587e-05
-0.000105841
-0.0292656
0.0255252
8.30243e-05
-5.07338e-05
-0.000165864
0.000220874
0.000325753
-0.00127112
0.000945367
-0.000808496
0.00175168
-0.000943183
0.000193645
-0.000103602
-9.00431e-05
-6.21716e-05
6.96245e-05
-7.453e-06
0.00658226
0.00504513
-0.00144803
-0.00148181
0.00292984
0.000330159
-0.00050917
0.000179012
-0.00104863
-0.000958924
0.00200755
0.00508763
0.0204189
-0.0255065
5.75166e-05
-0.000142539
8.50224e-05
0.000164642
-0.00214612
0.00100377
0.00114235
-4.04263e-05
0.000179671
-0.000317766
8.07255e-05
0.000237041
-0.000954567
-0.00933344
-0.000265551
0.000117345
-6.1056e-05
0.000117491
-6.46634e-05
-0.000353169
0.000417832
-0.000144899
0.000404917
-0.000260018
-8.32971e-05
0.000178502
0.0188712
0.00627155
9.48097e-05
0.000614752
-0.000121203
-3.68938e-05
0.000158097
0.000546503
-0.000172259
-0.000374244
-0.000420079
9.8453e-05
0.000321626
0.000191652
9.71832e-07
-0.000192624
0.000409352
-0.000172952
0.000210975
0.000111669
-0.000322645
-0.000482083
0.000252394
0.00022969
3.49853e-05
0.000169605
-0.000204591
0.000713229
-0.00136834
0.000655114
0.0198204
-0.0078608
-0.0119596
8.50289e-06
0.000154465
-0.000162969
0.000147967
-4.47518e-05
0.000201782
-0.000416837
-0.000692831
-0.000463755
0.000708566
2.61305e-05
-0.000734697
-0.000495751
0.00104124
-0.00054549
0.000457198
0.00082878
-0.0299549
0.00759051
0.0223644
0.000209145
8.44388e-05
-0.0324707
0.0215257
0.010945
0.000190207
-0.00035119
0.000160983
0.000584709
0.000745726
-0.000106923
0.000106923
0.000116156
7.74887e-05
-0.000755865
0.000470089
0.000285776
-8.33916e-05
8.33916e-05
0.000215039
-0.00029197
0.000156422
-0.000384881
0.000228459
0.000525905
-0.000299397
0.0108822
-0.0166621
0.00577995
0.000172091
-0.000762234
0.000590142
-0.000190962
-0.000337242
0.000528204
0.00024986
-8.76758e-05
-0.000162185
-0.000423688
8.75092e-05
0.000529976
-0.000781149
0.000251173
-0.0100726
0.00692185
0.00315079
0.000811447
-0.00241421
0.00160276
-0.0005132
0.0012205
-0.000499701
0.000106007
0.00094322
-0.000675594
-0.000267627
-0.0333511
0.0172368
0.0161143
0.00260878
-0.00198813
-0.00062065
-0.0416049
0.000122857
-0.00134446
0.000436992
1.17421e-05
0.00152221
-0.00155405
0.000331201
-0.000298686
-2.09836e-05
0.000464239
-0.000204182
6.8165e-05
0.000136018
-0.00109224
0.0016892
-0.000596961
-0.000370843
0.000542934
4.62531e-06
0.000226566
-0.000132085
-0.00292326
-0.0184844
0.0214076
-0.0216086
0.0186854
-0.000216194
0.000543511
-0.000327317
6.74629e-05
-0.000275031
0.000207568
-0.000190878
0.000197258
-6.38042e-06
-0.000594042
0.000745727
-0.00109947
0.000353738
-0.000542655
0.000182202
0.000360454
8.96812e-05
0.00012474
0.0146926
0.0228685
0.000937889
0.000224003
-0.000181631
-0.000234624
-0.00563246
0.0018122
0.00382026
0.000317255
-8.92783e-05
-6.10563e-05
-0.000320875
0.000381931
6.38663e-05
0.000133764
0.000110673
-0.000163386
0.00162328
-0.00248164
0.000858365
0.0418337
-0.0271411
0.000963055
-0.00228465
-0.0184775
0.0122761
-0.000217615
-0.000626777
0.000844391
0.000569617
-0.00083136
0.000261743
-0.000165169
0.000176287
-1.11182e-05
-0.000765227
1.61893e-05
0.000749037
0.00281113
0.00996825
-0.0127794
-0.000413764
7.89935e-05
0.00033477
0.000675279
-0.00103867
0.000363394
-0.000212576
2.33366e-05
0.00018924
-0.000700181
0.000434031
0.000375547
-0.000385671
0.054089
-0.0175126
-0.0365763
0.000432073
0.00105478
0.0372388
-0.0300754
-0.00716339
-0.00013904
0.000372527
-0.000233486
-0.000124222
-7.86203e-06
9.213e-05
-0.000271536
0.000179406
-0.000162189
-0.000716691
0.00087888
0.00429323
-4.45464e-05
0.000329479
-0.000284933
-0.000582531
4.9063e-05
0.000533468
-0.000145361
0.0002487
-0.000103339
-0.0229855
0.0266229
-0.00363733
0.0173537
-0.00100974
-0.016344
0.000330348
-0.000309766
-0.000373448
0.00052987
-0.00264617
0.00227124
0.000374925
0.0002066
-0.000197673
0.00490859
0.00191745
-0.00682604
0.000421339
-2.53181e-06
-0.000418806
0.00108705
-0.00031921
-0.000767842
-0.00749317
0.00339183
0.00410134
-0.000236598
-0.000345721
0.000582319
0.0022594
-0.00199288
-0.000266514
-0.000691163
0.00127381
-0.000582647
-0.0184246
-0.0149265
-0.0360313
0.00620336
-0.000499833
-2.24415e-05
-0.000211681
3.61825e-05
0.000175498
1.43087e-05
0.000214511
-0.000213353
6.79918e-05
-0.00482226
0.0039389
0.000883353
0.000192405
0.000421681
-0.00264626
-0.000451439
0.0030977
-0.000219452
0.00043095
-0.000483266
-2.93766e-05
0.000512643
-0.00417861
0.0205733
-0.0011977
0.000528601
0.000669098
-0.000189273
7.05659e-06
-0.0339704
-0.0147423
0.00184851
-0.00336076
0.00151226
-0.000152998
9.19423e-05
-0.000258097
0.000518218
-0.00026012
-0.000440429
0.000441905
0.0149565
-0.000124223
0.000227902
-0.000124321
-0.000458709
6.56822e-05
-0.000800172
0.000268667
0.000188621
-0.000457288
0.000226861
-0.000143356
-8.35049e-05
0.010541
-0.0152246
0.00468362
-2.28914e-05
0.000113179
-9.02879e-05
-0.000304639
-0.000454686
0.000440229
0.000106274
-0.00125782
0.00074462
0.000484704
0.000115902
-0.000600606
0.00239015
-0.00558125
0.0031911
0.000527962
-0.000314902
-0.000213059
-0.000399438
0.000399466
0.000253029
0.000204698
0.000222009
-0.00678074
-0.00151636
0.0082971
-0.00548672
0.0171921
-0.0117054
-0.000370239
-4.35255e-05
-0.000431191
0.00021174
-0.00220486
-0.0332277
-0.0156187
-0.000169684
0.000746339
-0.000576654
0.0265985
0.0195305
-0.046129
-0.000385598
0.000527953
-0.000142355
-0.000300678
0.000351283
-5.06049e-05
0.000370687
-0.00107037
0.000699683
0.0308801
-0.0132842
-0.0175959
-0.000566286
0.000747841
-0.000181555
0.0294903
-0.00675876
-0.0227315
-0.000131186
-3.98672e-05
0.000171054
-0.00055115
0.000178428
0.000372722
0.000113371
3.18015e-05
0.000125699
0.000783304
-0.000486688
-2.29183e-05
0.000509607
-0.000370005
-5.00735e-05
0.0139541
0.0310664
-0.0450205
-0.000654328
0.000305659
0.000348669
0.000287692
0.000383427
-0.000141489
-4.36272e-05
0.000185116
0.000533504
-0.000733463
0.000199959
-0.00800924
0.0104662
-0.00245697
-0.000763517
-0.00012764
0.000891157
0.00116498
0.000486581
-0.00165156
0.000186933
-0.000186933
-0.0175309
-0.0117306
-0.00054722
-2.73594e-05
-0.000609812
0.000449977
0.000159835
2.52549e-06
-0.000338885
0.000336359
0.0062999
0.0037736
-0.0100735
-0.00133778
-0.000778942
0.000164544
3.91904e-05
-0.000203734
-0.000120738
2.2649e-05
-0.000298064
-0.000457801
-0.000784498
0.000734374
5.01236e-05
0.000190562
-0.000375404
0.000184842
-0.000259645
0.0001944
6.52448e-05
0.000811037
-0.00033939
-0.000471647
0.000204864
-0.000353615
0.000148751
-0.00825616
0.0257729
0.00152028
0.00173458
-0.000764221
0.0030819
-0.00231768
0.031237
0.000155859
-1.35445e-05
0.0105821
8.15857e-05
-8.15856e-05
-0.00321539
0.00496314
-0.000410411
0.000424369
-0.0154238
-0.0145311
0.000354504
-0.000578325
0.000223821
-0.000148903
-0.000383799
0.000413874
0.00147805
-0.000190126
-0.00128792
-0.000539051
-3.60447e-06
-9.91637e-05
0.000750371
-0.000242326
-0.000216679
0.000459005
-0.00236863
-0.000440976
0.00280961
-0.00183044
0.0017049
0.000125534
-0.000886976
0.000653797
0.0242397
0.00515229
-0.0263157
0.0211634
0.000158441
0.000155011
-7.95914e-05
0.000937567
-0.000857976
7.04467e-05
1.85689e-05
0.000116539
-0.000352905
0.0143636
-0.00806371
2.3696e-05
6.3475e-05
-2.44017e-05
-6.3475e-05
3.02588e-05
8.47056e-05
0.000487284
-0.000649472
-3.27101e-05
0.000188166
-0.000155455
-3.43645e-05
-8.47056e-05
0.0114383
0.0271811
-0.0386193
0.000134596
5.23373e-05
-0.000211687
0.000211686
7.87535e-05
0.000169947
-0.0299813
0.045987
-0.0160056
-0.00191519
0.00143795
0.000477246
-0.000418765
0.000399078
-0.000179921
0.000259204
-7.92831e-05
0.0295671
-0.0142365
-0.000261813
-0.000369349
0.0217438
-0.0267396
-0.00163266
0.00147213
0.000160531
-0.000258119
0.000487792
-0.000229673
0.00102904
0.0045897
-0.000113763
-0.000312089
0.0293657
0.00138602
-0.0307517
6.4411e-07
-0.000795609
0.000794966
3.7232e-06
-0.000216299
0.000232105
-0.00679256
0.00352391
0.00326865
-0.0376383
0.0156603
0.0219781
-0.000955206
-0.00487902
0.00583423
-0.00498754
0.0022134
0.00277414
-0.000117357
-0.000364727
-0.000181576
-0.000192729
0.000374305
0.000486952
0.000324085
0.000379584
-8.27369e-05
-0.0346289
0.041658
-0.00702916
0.000151589
-0.000297273
0.000145683
0.00181966
-0.0171206
0.000182476
-0.000577217
0.00142324
-9.65098e-05
0.00141766
-0.00142246
4.80262e-06
4.21178e-05
0.0003301
-0.000372218
0.000784764
-0.00171164
0.000926881
0.000738416
-0.00029716
-0.000441255
0.0268833
-0.0196178
-0.00726557
0.000263176
-0.000263176
-0.00926348
0.00223585
0.000759642
-0.00031732
-0.000442322
3.61017e-05
-0.00061802
0.000328702
0.000289318
-0.0292003
0.0220185
-7.07533e-05
0.000156473
0.000276463
-5.7227e-05
-0.000219237
-0.000262037
-0.000264818
0.000526855
0.000417677
0.000247593
-0.00012742
0.000429236
-0.000301816
-4.24791e-05
-0.000181051
-0.000121376
0.000302427
0.000846565
-0.001732
0.000885434
9.41855e-05
-0.000483887
0.000389701
-0.00108777
0.000150445
0.000937328
0.00394968
-0.000788184
-0.000422803
-0.000236567
0.00065937
1.03223e-05
-0.000165491
0.000232954
0.000528387
-0.000680573
0.000152186
0.0275957
0.0264933
-8.80052e-05
0.0076706
-0.00912781
0.00145721
0.000806651
-0.000117707
-0.000688944
-1.31403e-06
0.0004247
-0.000423385
0.000275674
7.9011e-07
-0.000286163
0.000321149
-0.0002677
0.000140281
-0.00150885
0.00235542
0.00837562
-9.74415e-05
9.05902e-06
0.000132151
0.000201045
2.68568e-05
-0.00325723
0.0034249
-0.00016767
9.91494e-05
-0.000279071
-0.0140159
0.00705786
3.27767e-05
-9.49485e-05
6.21716e-05
0.000267124
0.000258781
-0.00430799
0.00931203
-0.00500404
2.33249e-05
-0.000291435
-3.94655e-05
0.0003309
0.000423071
0.00013161
-0.000554681
7.17572e-05
-0.000957125
0.000885368
-0.000393248
0.000388109
0.00078009
0.00311942
-0.00389951
-9.96703e-05
-0.000330706
0.000430377
0.00111193
-0.00139345
0.00104982
0.000343633
0.0012871
8.25395e-05
-0.00136964
0.0363238
-0.00675312
-0.000166487
0.000557729
-0.000391242
-0.000759286
-0.00151525
0.00227454
-6.21717e-05
-0.000356509
0.000251254
0.000105255
3.79378e-05
9.80048e-05
-0.00616866
0.0061835
-0.0038708
0.00659977
-0.00272897
0.00111706
-0.000513825
-0.000603239
-0.0196883
-0.00403817
0.0237265
0.0132318
-0.0189705
0.00573866
-0.000164028
-0.000302265
0.000881395
-0.000180748
-0.000700646
-0.000717571
0.000105909
0.000611662
-0.000314734
-0.00020788
-0.0227166
-0.0240726
0.000238583
0.000543537
0.000240973
-0.00078451
-0.000810696
2.61987e-05
0.0191316
-0.000564442
-0.0185671
-0.000360157
0.000550719
-0.00146794
-0.000377457
0.000133022
0.000426602
-0.000559624
-0.000393904
-0.000387907
0.000781811
-0.000708069
-1.80205e-05
0.000726089
0.000255291
-0.000198318
-5.69734e-05
-0.000546209
-0.0151104
-0.0163496
-0.000175726
0.000341922
-0.000166196
-3.31485e-05
-0.000385616
-0.00386699
0.000968339
0.000591189
-0.00238567
0.00179448
0.000140998
0.000385646
-0.000562948
0.000177303
0.000361855
0.00018834
-0.000550195
0.000201055
-0.000226119
-1.33347e-05
-0.00213278
0.000999957
-0.0018008
0.000800841
0.000300078
-0.000722881
-0.00104308
0.000793637
-0.000168955
-0.000521068
-0.000110209
0.000122445
-1.2236e-05
-0.0218976
0.0148873
2.03764e-05
-0.000398571
0.000239028
0.000159543
-0.000182313
0.00180559
-0.00200672
0.00128331
0.000723411
-0.000238521
-0.000261314
-2.47292e-05
0.000286043
-0.0290583
0.0171156
0.0119426
0.0100186
0.0272202
0.000609977
4.12163e-05
-0.000651193
-4.97703e-05
-0.000107272
0.000157042
0.000326634
0.000113904
-0.000440538
0.010945
0.0224164
-0.0333614
0.000269194
0.000479112
0.000876425
0.000410674
-0.000172176
-8.74688e-05
0.0109036
-0.00659039
-0.00431323
-6.56182e-05
6.56183e-05
0.000509409
-0.00018527
-0.000324138
0.00204393
-0.00464919
0.00260526
-0.0002452
0.000161044
8.41561e-05
0.000668373
0.00987266
0.000371654
-3.78676e-05
0.000110526
-4.96977e-05
-3.19085e-05
0.000196452
0.000115908
-0.000123331
7.42262e-06
0.00544253
0.0155663
0.00300132
0.031021
-0.000380834
0.00016464
-0.000252332
-0.000173534
0.000425866
-3.34593e-05
-0.00102733
-0.000584476
0.00051821
6.62656e-05
0.0341028
-0.0358017
0.00169891
-0.000133653
0.00321212
-0.00307846
-0.0113727
-0.00150122
0.0128739
-0.0020053
-0.00218562
0.000188378
-0.00044101
0.000738775
-0.000942658
0.000203884
0.000627622
-0.000265767
-0.000737703
0.000749398
-1.16945e-05
-0.000161698
-0.000236873
1.89978e-05
4.59058e-05
0.000162818
-0.000330315
0.000167498
-0.000156244
0.00321472
-0.0170416
0.0138269
-0.000160525
-0.00042395
3.04969e-05
-0.000171986
-0.00369927
-0.0177921
0.0214914
-1.602e-06
-0.000497388
0.00049899
0.0132354
-0.0134545
0.000219046
-0.0194615
0.0116007
-0.00472498
0.0017048
0.00302018
-0.000169511
0.000233378
0.00203792
-0.00126506
-9.76243e-05
-6.78047e-05
-0.000187516
4.18672e-05
0.000145649
-0.000493275
0.000250948
-0.0106129
0.0110655
-0.000452577
-0.00190223
0.0112137
-0.00931145
0.000446034
0.000755829
-0.00120186
-7.73377e-06
0.000309885
-0.000302151
0.00125147
-0.000738557
-0.000512917
0.000310019
-0.000278806
0.015175
-0.0126136
-0.00256144
0.00934556
-0.0149042
-0.00475365
0.00296867
-0.00162842
-0.00166948
0.000247311
-0.000206221
-4.10891e-05
-0.000469935
-0.000112596
-0.000235614
0.000108142
0.000127471
0.000576203
0.00164738
-0.000383888
-0.000514425
0.000898314
-0.000620008
0.00106063
-0.00044062
0.000292657
0.000187022
-0.000479679
2.50132e-05
0.000331846
-0.00039421
0.000393859
3.51428e-07
-0.000350917
0.000361671
-2.69325e-05
-0.000362069
0.000389001
-0.0253307
0.0230715
4.26618e-05
-4.26618e-05
0.001387
0.00450482
-0.000727641
0.00490655
-0.00417891
0.000405501
-0.000395556
-3.87396e-05
0.000871897
-0.000806261
-6.5636e-05
-0.000764845
0.000168916
0.00492234
0.00274826
-0.000629418
0.000271406
0.000358011
0.000938
-0.000723047
-0.000214953
0.00319908
-0.000800312
-4.4544e-05
0.000138395
-0.0189937
0.018294
0.000699671
-0.000205514
0.000291243
-8.57289e-05
-3.29969e-05
-0.000481195
6.43678e-05
-6.43678e-05
-0.00988167
0.0148662
-0.000332144
0.00033083
-1.31429e-05
-0.000138577
0.00015172
-0.000366293
-4.4118e-05
-5.23132e-05
5.23132e-05
-3.1413e-05
0.000283381
-0.00055679
0.000946563
-0.000389772
0.000296298
-0.00177494
-8.91771e-05
8.9177e-05
0.00224392
-6.24292e-05
-0.00114284
-2.51043e-05
-5.82873e-05
-0.0129284
0.000988571
0.0119398
0.000161098
0.000366864
0.000162781
-1.6441e-05
0.021113
0.0084541
-0.000309468
-0.000300344
-0.00374402
-0.00188843
-0.000124062
7.23825e-05
5.16792e-05
-3.20161e-05
-7.49071e-05
-0.00145056
-0.000127163
-4.26918e-05
0.000190464
-0.000147772
-0.000256711
0.00017697
7.97411e-05
0.000367645
-0.000251335
0.000342928
-0.000623943
-0.000110941
-5.38551e-05
0.000165787
-0.000111932
-0.000432413
-4.8864e-05
-0.00260657
-0.000375616
0.0100612
0.0212215
-0.000520473
0.000750749
-0.000230277
0.00517702
-0.0020223
-0.00315473
-0.000446542
-7.39311e-05
8.71999e-05
-0.000218821
0.000131621
-0.00809972
-0.00116376
9.48282e-05
-4.19607e-05
-8.2101e-05
0.0245097
-0.0215634
-0.00294626
0.000149974
3.71512e-05
-0.000187125
-0.000275913
3.50535e-05
0.00024086
-0.000163914
-5.12597e-05
0.000215174
0.000342209
2.90839e-05
0.00020473
-0.000311982
-0.000687184
0.000110209
-0.000164064
0.000330267
0.00107709
0.00262201
-0.000584096
-0.000486342
0.000619364
-0.000102876
0.000135928
-0.000436631
0.000392084
-0.000457366
-0.00112912
0.000476099
-0.000307113
-0.000168986
0.000313666
-0.000287794
0.000246567
0.000171718
-0.000418285
0.000106235
0.000253283
-0.000414514
0.00150687
-0.00109236
-0.000804965
8.97544e-05
0.00071521
5.48253e-05
-0.000520483
0.000465658
-0.0152118
0.0266501
-0.000320879
0.00030559
1.83298e-05
0.000188348
-0.000206678
-0.000599803
-0.000597896
0.0396805
-0.0063009
-0.0333796
0.000830848
-0.00142833
0.00123542
-0.000851446
-0.000308395
0.000137089
0.000171305
0.00866608
0.0113092
-0.0199753
9.21754e-05
-4.76574e-05
-4.45181e-05
-0.01448
0.0176947
-0.000262991
0.000501739
-0.0043374
-0.0111544
-0.000583935
1.75437e-06
0.00058218
-8.3467e-05
3.8338e-05
4.5129e-05
-0.0166783
0.0521158
-0.0354375
-0.000324061
2.33827e-05
-0.000161074
0.000537144
0.000112076
0.000293394
7.54485e-05
5.37705e-05
-0.000340699
0.000286928
-4.40107e-05
0.000297619
-0.000253608
0.000205952
0.000178331
-5.52683e-05
-0.000123062
-0.00068416
-3.34105e-05
-0.0147206
0.0236924
-0.00897187
1.43733e-05
-0.000147451
0.000330968
-0.00028885
0.00957377
0.0168259
-0.0263997
0.00972971
0.00914145
0.000113684
-8.09074e-05
-0.00582263
0.00352628
0.00229635
-3.31726e-05
0.00056156
0.000688078
0.000895618
-0.000931397
0.000182258
-0.000469622
9.02736e-05
0.000169697
-0.00199308
0.00182339
0.000484118
6.35085e-05
-0.000372876
0.000372876
-0.000108657
-0.00028663
5.22759e-05
-0.000159872
0.00026118
-0.000134008
0.00033041
-0.000196403
-0.0362208
0.0320324
0.0041884
0.00042513
-0.000342486
-8.26439e-05
0.0005256
0.00011267
0.000295741
-0.0119747
0.0243806
-0.000469104
-2.6478e-05
-0.0236843
-0.00200263
-0.00807002
2.1834e-05
-0.000976134
-0.000560495
0.00153663
-0.000711313
0.00171509
0.00598191
0.00349667
-0.000254065
0.000346994
-9.29293e-05
-0.000216425
9.1744e-06
0.000207251
0.000469057
0.00196389
-0.00243294
-0.0202719
0.0073435
0.00058753
-0.000318862
0.00497961
-0.00125928
0.00209176
-0.000952012
-0.00113975
0.000879973
-0.000141198
2.53256e-05
-0.000241751
0.000741307
-0.000636019
-0.00547919
-0.0012291
0.00670829
-0.0111432
0.00796385
-0.000195809
-0.000231429
0.000427238
0.000268096
-0.000143323
0.00465777
-0.00448686
-0.000170909
-0.00342665
0.00494435
-0.0015177
-0.000143417
0.000340579
0.00029009
-0.000259864
-3.02261e-05
-0.000308983
0.000179014
0.000129969
-8.99523e-05
8.99524e-05
0.000138448
0.00031153
0.00918642
-0.0263788
0.0171923
-0.000705784
0.000481275
8.7134e-05
-0.0190808
-8.93942e-05
8.93942e-05
1.73277e-05
-0.000278642
8.58898e-06
-0.000288392
0.000279803
-0.0003196
0.000544122
-0.000224522
0.00138822
0.000871173
-0.00646322
0.0070475
-0.000584288
-0.000136273
-0.000283674
0.0144415
0.0126362
0.00961872
-0.022255
-0.003208
0.00056183
0.000258178
-0.000403076
0.000174055
-1.89507e-05
-0.000155104
0.000603901
-0.000277267
0.0122635
-0.0177503
0.00113135
-0.000503235
-0.000628119
-0.0140792
0.0167191
-0.00263994
-8.03402e-05
0.00056131
4.25907e-05
-0.0267728
-5.11265e-05
-0.000114043
-0.000745943
0.00092842
-0.0193772
0.00514708
0.0142301
-0.0117423
0.00760204
0.00414027
-0.00112203
0.000883733
0.000238299
8.18201e-05
0.000990709
0.000120745
0.00125658
0.00136543
0.00832117
0.0060755
-0.0143967
0.0240133
-0.00630089
-0.0177124
-0.000198722
0.000267101
-6.83797e-05
-7.29006e-05
0.000222976
0.000371167
-0.00014883
-0.000222337
0.00060716
2.81747e-06
0.000368558
-0.000665021
-0.0004381
0.000411022
2.70781e-05
0.00316389
0.0140282
0.000843594
-0.00340792
0.000623673
-5.63393e-05
0.000113856
-0.000255499
-2.81648e-06
0.000258315
-0.000186653
0.00203516
-0.00832213
0.0211356
-0.0128135
0.000188738
-7.94303e-05
0.0195483
-9.87136e-05
0.000146615
-4.7901e-05
0.000178293
4.85685e-05
0.00150713
-0.000692064
-0.000815062
-0.00243608
0.00125116
0.00118492
-3.45826e-05
-8.47562e-05
0.000555239
0.000576116
0.000286623
-0.000438783
-0.0103721
0.0183342
0.000410378
0.000527622
-0.00050444
0.000252109
-9.78302e-05
-0.000137784
0.00650418
0.00306959
-0.00957377
0.000625136
0.0025501
-0.00317523
-0.000326255
0.000648673
-0.000322418
-9.68235e-05
-0.000186932
0.000283756
-0.000166374
0.000229883
-0.0011114
-0.0388535
0.0179671
-0.0289781
0.011011
-0.016507
0.0105622
0.00594474
-0.00226781
-0.00216331
-1.43617e-05
0.000152373
-0.000138011
-0.000468468
-0.000152396
0.0258825
0.00687311
-2.66576e-05
-6.48051e-05
-0.000533027
-0.0002322
-8.73857e-05
-0.000101887
-4.73404e-05
-0.000435925
0.00274687
-0.00238791
-0.000358966
-0.00257687
-0.000783899
0.0195845
-0.0139283
-0.00565623
4.71741e-05
0.0006093
0.000115011
5.07756e-05
-0.000177715
0.000199722
-2.20073e-05
-0.00981143
0.0440276
-0.0342161
-0.000501122
-3.31781e-06
0.0135045
0.00110433
-0.00347296
0.000129715
0.000201487
-0.000621381
0.000124214
0.000497168
-0.000936065
-0.000104588
-0.000833913
-9.28117e-05
-0.000943331
-0.00228839
0.00323172
0.000314836
-0.000591901
0.000277065
-0.00112665
-0.000358017
0.00148467
0.0198228
-0.0292219
0.00658419
0.00431943
6.55383e-05
-0.00027176
0.0101026
-0.00590846
0.0401447
-0.00181305
-0.0383317
-0.000262637
0.000599438
-0.0003368
9.02985e-05
2.30727e-05
-0.000181057
-5.87563e-06
-0.000384528
-8.50944e-05
0.000152804
9.70563e-05
0.0157023
-0.0125331
-0.00316924
0.00789461
-0.000132992
0.000142167
-8.70821e-05
-0.000221312
0.000168873
-0.000970713
0.00080184
0.000863443
-5.3463e-05
-0.000809979
0.000488868
-0.000878516
0.000179784
-0.000160525
0.000355081
-0.00127645
4.20594e-05
6.95472e-05
-0.000409548
0.000344885
-0.000253783
4.82693e-05
5.8139e-05
3.40364e-05
2.32984e-05
5.82873e-05
-1.77272e-05
0.000440798
3.77733e-05
0.000135314
-0.000173087
0.00013737
-0.000298177
0.000160807
-0.00356935
0.00212132
7.18554e-05
4.18288e-05
-0.00661614
-0.00592969
0.0125458
0.000325038
-0.000204889
-0.000120149
-0.000181026
-0.000210358
0.000391384
0.000542844
-0.000755676
-0.000502144
-1.496e-05
-0.000374369
0.000663151
-0.0011116
0.000797065
-0.000268464
4.75399e-05
6.83681e-05
0.000171463
-0.000523638
0.000352174
6.05066e-05
-0.00018171
0.000154748
-6.445e-05
0.000127257
-7.14866e-05
-5.57703e-05
-5.5847e-05
-0.000462767
0.000518614
-0.000991128
0.00226967
-0.000716105
-0.0343391
0.0268542
0.00748486
0.00126874
-0.00207723
-4.56542e-06
0.000268551
-0.000263986
-0.0471967
0.0139691
0.000631856
-0.000442389
0.00603084
0.0164173
-0.0224482
0.0015661
0.000428747
-0.00199485
-4.63666e-05
4.63667e-05
-0.000110209
0.000196682
-0.000590586
7.39949e-05
-0.000630786
-1.96299e-05
-6.95472e-05
-0.000161629
0.000490365
0.000329259
0.000596667
-0.000925927
-0.000139722
-1.70133e-05
0.000156735
0.00287473
-0.0141172
-0.000418224
0.000143592
0.000274632
-0.000340263
0.000454167
-0.026881
0.0386388
-0.0117578
0.000152897
-0.000144394
-0.0107231
0.00271386
-0.000154307
0.000252474
-9.81676e-05
-0.000133385
-9.15378e-06
0.000119409
0.000135882
-0.00028219
0.000221134
-0.000135296
-0.00307639
0.00231217
-0.000122807
-0.000469831
0.000592638
0.000272398
-0.000187976
-8.44216e-05
-0.000465954
0.000304325
-5.91976e-06
-0.000438161
-0.000340788
0.000778949
-0.000443906
0.000124306
0.000139359
-0.000139359
0.00077027
-0.00242378
0.00165351
-9.87135e-05
-3.28295e-05
-8.61968e-05
0.000119027
-0.000390582
-0.00245482
0.0028454
-1.57382e-05
0.000439882
-0.000424143
-0.0249152
0.0212159
-0.000161541
0.00508388
0.000216173
-0.000260183
0.000282946
-0.00045648
-2.3426e-05
-4.45807e-05
-0.000112641
-0.000206285
0.000318926
0.00146024
-0.00161649
0.000156248
3.96506e-05
0.00132813
-1.08374e-05
-0.000751396
0.0299917
-0.0251141
-0.00487759
-0.000429511
0.000312734
0.000116777
0.0210879
0.00890373
0.00108144
-0.000370286
-0.000711149
0.0361387
-0.0151862
-0.0209525
0.00070696
-0.000163423
-3.96718e-05
-9.37132e-05
-0.000519611
0.000399893
-0.000985773
-0.000407679
-1.91447e-05
-3.31684e-05
1.21764e-05
3.04855e-05
-0.00187313
0.00391707
0.00831158
-0.00285057
0.000410337
0.000420776
-0.000831113
0.000263315
-0.000112738
-0.00131501
0.000645245
0.000669762
-0.000114859
4.55168e-05
6.93423e-05
0.000609779
-0.00165841
-3.97331e-05
0.000197535
-0.00570957
-0.000250513
-5.46123e-06
0.00043487
-0.00024273
-0.00019214
-0.00291534
-0.00457783
-0.0106027
0.0309634
-0.000436483
8.55085e-05
0.000350974
0.000638548
0.0009789
-0.00161745
-0.000278477
-0.000241134
0.000106271
0.000224077
-0.000825751
0.000164277
-7.36017e-06
-0.000576575
-0.00042874
-0.00217784
0.000370416
-0.000508438
0.000138022
-8.62337e-05
9.08169e-05
-4.58301e-06
-0.000105288
0.000105288
-0.00938725
0.0035499
0.00583735
-0.000269651
-0.00173707
-0.000427316
0.000128182
-0.000128182
0.00118329
-0.00172479
0.000541498
-0.000131127
0.000304864
-0.00876109
0.0222978
-0.0135367
0.00110447
-0.000179285
-0.000925181
0.00848991
-0.0232105
5.1311e-05
-1.12083e-05
-4.01028e-05
0.00458658
-0.000953846
-0.00363273
-0.000177749
-0.000260352
-0.000232042
0.00172581
0.00116506
-0.000336275
0.024078
0.019922
3.02425e-06
-0.000196412
0.000193389
-0.0320792
0.0229849
0.00909428
-0.000431377
0.00010474
0.000326637
0.00046719
-0.000920055
0.000452865
-0.016252
0.00671886
0.00953318
0.00156441
-6.33741e-05
-0.00150104
-0.00015111
-0.000140109
0.0212369
0.00841403
-0.0296509
-0.0107272
-0.0217435
0.000123883
0.00190317
-0.00202705
0.00090827
-0.000462236
0.000261157
-1.09512e-05
-0.000250206
-0.00137811
-0.000461188
0.0018393
-0.00285665
-0.01175
0.0146067
7.35614e-05
-0.000144315
-0.000466209
0.000418868
0.00023202
-0.000187625
-4.43951e-05
-0.00538189
-0.00340656
0.00878845
8.51918e-05
-8.51916e-05
0.000562095
-0.000373475
-0.000275197
0.000290857
-1.56594e-05
-3.78358e-05
-0.000305501
0.000343337
-0.000114583
0.000301977
-0.000262359
-3.96184e-05
8.97176e-05
-6.20509e-06
9.01931e-05
0.000135825
-3.79518e-05
-9.78733e-05
0.000107791
0.0373961
-0.0380059
0.000609773
0.000230485
-0.000717173
0.000390121
-0.000387595
8.76174e-05
-0.000238702
0.00681681
-0.000617307
-0.0061995
-0.0180178
0.0231055
-0.000104153
-0.000239904
-3.60088e-05
0.0396805
-0.000400397
-0.00217713
0.00257752
-0.000414298
0.000413133
-0.00184423
-0.0321837
-0.00042315
0.000435922
0.000429015
-0.000421511
5.83747e-05
-5.83747e-05
-9.17237e-05
-0.000112459
0.000367009
-0.000162303
-0.000204707
-2.76009e-05
-0.000293274
-0.000942757
0.00137483
-0.000179322
0.000527404
-0.000348082
0.000841973
-0.000863937
2.19645e-05
0.000284494
-3.75652e-05
0.000318614
0.000209339
-0.000108959
7.26315e-05
3.63276e-05
-0.000460165
0.000693701
-0.000233537
-0.00602086
0.0272578
2.41572e-06
-0.000138395
0.00013598
0.0102059
-0.00870693
-0.00149899
0.00563977
0.0317563
0.0253122
-0.0207731
-0.00453909
0.000207544
-0.0231336
-0.0240631
-0.000822427
0.00909893
-0.0082765
0.000477518
0.00051092
0.000109894
0.000153283
-0.000268632
0.000980869
-0.000612614
-0.000334394
0.000947008
-0.000285736
0.000296581
-1.0844e-05
-1.60855e-05
0.000395669
-0.0154498
0.0108264
0.00462341
6.96791e-05
6.6849e-05
-0.000136528
-0.000296391
0.00242069
-0.000909854
-0.000441783
0.000422671
1.91119e-05
0.000481023
-0.000632588
4.81553e-05
7.91016e-05
0.000973239
-0.000815203
-0.000158037
0.00116451
0.000504371
-0.00166888
0.00447933
-0.0195898
0.00250831
-0.0157262
0.0132179
-0.00151591
0.00053432
6.66169e-05
-0.000748154
-0.000161082
6.74156e-05
8.00343e-05
-0.000211221
-0.000465975
0.000168814
0.000123945
-0.000318222
0.000194277
-0.000324712
0.000281705
4.30069e-05
-0.00920039
0.00240783
1.61295e-05
-3.4741e-05
6.03952e-05
9.43532e-05
-0.0430425
0.0430425
-0.000192646
-0.000236865
-0.000223389
-0.000101889
-0.00824919
-0.00116296
0.000843204
0.000319755
-0.000395331
0.000305176
9.01553e-05
0.000248303
-0.000380616
-0.000244468
0.000146638
0.000883158
8.96673e-05
-0.000972826
0.000256205
0.00560187
-0.00350591
-0.00209595
-0.00030085
0.00118401
-0.00863469
0.00116
0.000735807
-0.00460661
0.0255098
0.00680196
-0.0323117
-0.000308696
0.000338679
5.22139e-05
-0.00192814
0.000295471
0.0104111
0.01677
-0.0197212
-0.0148941
0.0346153
0.000114365
-0.000253434
-0.000103075
-0.00120377
-0.000165874
0.000114841
8.48814e-05
-0.000125886
0.00121605
-0.00109016
8.7506e-05
0.000237532
-9.46727e-05
-0.000244212
-0.00170022
0.00383189
-0.00213167
9.91983e-05
8.98929e-05
-0.000189091
-0.0172293
-0.0051488
0.0223781
-0.00099922
-0.000856746
-0.0003669
-0.000370803
-6.78741e-05
-0.00116964
0.000340345
9.98843e-05
-0.000364632
0.000205788
0.000406081
-0.000159514
0.000111565
-0.000142869
3.13037e-05
0.000129115
-0.000161023
-0.000151937
-0.000288492
-0.000120536
-2.69998e-05
0.000147535
0.000147029
0.000126355
-0.000273384
0.000148347
-0.000165458
1.7111e-05
-0.000882588
0.000448942
0.000433646
-0.000610635
-3.35567e-05
0.000644192
-0.000346267
0.000362909
0.000164652
0.000675987
0.00141578
-3.84279e-05
0.000326855
-0.000288427
-0.000487177
-0.000363924
0.0104237
0.0161992
-0.0211771
0.00474451
0.00248286
-0.00722737
-0.00625002
0.0137263
0.00011162
1.63022e-05
-0.000127922
0.0358761
-0.000335594
-0.0355405
0.000114821
-4.18778e-05
-7.29432e-05
4.16358e-05
0.000136695
-5.13291e-05
0.00015944
-0.000108111
-0.000163712
0.000693687
-0.0118929
0.00171636
0.0101765
-0.000699674
-0.000177148
7.68874e-05
7.19983e-05
9.67942e-06
-8.16778e-05
1.5839e-05
-0.000410049
-5.98055e-05
0.000264669
-0.000755383
0.000585699
0.0050302
-0.00933819
0.0132458
-0.0336005
0.0203546
-0.00335276
0.00292402
0.000719859
-0.00137313
0.0147886
0.0105236
0.00022423
-0.000116088
9.48193e-05
-0.000314455
0.000219636
0.000207594
0.00131151
-0.00151911
0.000415174
-1.42167e-06
-0.000483249
0.00101675
0.000127719
0.000104301
-6.2681e-05
-5.21782e-05
-0.00947933
-0.0251496
0.000223866
-0.000495682
-4.33689e-05
0.00396526
0.00154469
0.00136826
-0.000118424
8.48261e-05
-1.97124e-05
-4.59058e-05
0.000919809
-0.000617286
-0.000302524
0.00041092
-0.01347
0.00486886
0.000367643
-0.000177436
-7.28991e-05
-2.52821e-05
9.81811e-05
-0.00388182
-0.00147449
0.0214061
-0.00817425
0.000100385
-0.00013518
3.47949e-05
-0.00172872
-0.00532575
-0.00104617
0.000602253
0.000443919
0.000382433
-0.00010868
-0.000273753
0.000131102
-0.00049788
0.000366778
-0.00123068
-0.000998118
0.00222879
-0.000806404
0.000359861
0.000134596
-0.00918658
0.0018558
0.00733079
0.000635579
0.000124063
0.0314837
-0.0243291
9.07468e-05
0.000251462
-0.000299711
0.000259978
-9.89028e-05
-2.14186e-05
0.000120321
0.00194974
-0.00182586
-0.000277426
0.000269693
0.000235577
0.000199293
-0.00019718
-7.78512e-05
-0.000371282
0.000389363
-1.80808e-05
-0.024552
-0.00450631
-0.0367514
0.0212632
0.0154882
-0.00253052
0.000693366
-0.000404202
-0.00190614
0.00107732
0.00156725
-0.00264457
0.000359366
-0.000207872
-0.00400678
0.0118418
-0.00783502
0.000398551
-0.000406287
0.00114065
-0.00177838
0.00661144
0.00158595
-0.0081974
-3.6355e-05
0.000238931
-0.000202576
-0.000572268
0.00106114
0.00211147
-0.000343925
-0.000508456
0.000852382
-0.000376048
0.000381171
0.000443162
-0.0108212
-0.00440341
-0.000161869
-1.90031e-05
0.000180872
-0.000138167
0.000138167
-0.00057473
-5.34762e-05
0.000628206
-0.00971964
0.016702
-0.00698237
-2.64266e-05
-8.25324e-05
-0.000435967
5.14399e-05
-0.00842979
0.0149952
-0.00656537
-8.18647e-05
-0.000222031
-0.00160841
0.0109959
-0.00523952
-0.00575634
-0.000199922
1.24062e-05
0.000331441
0.000588369
-0.000442659
0.000151005
0.000291654
-0.000125229
-0.000268019
-3.75864e-05
-0.000463536
-0.000305695
-0.000186483
-0.0152824
-0.00242336
0.0177058
0.000208818
-6.99403e-05
-0.000138878
0.0107872
0.000123992
0.000435481
-0.000559473
-0.00134242
-0.00057277
0.000142382
0.00026864
0.00164882
5.60837e-05
0.000190363
-0.00172719
0.00122743
0.000499759
-0.00523586
0.00250496
-0.000440495
-0.000807487
0.00124798
0.000769457
-0.00147162
0.000702167
2.61826e-05
6.75447e-05
-9.37278e-05
0.0105095
0.00519285
0.00299846
-8.85762e-05
-0.00290989
0.000162405
-0.000175548
0.000129316
-0.00013771
-4.79244e-05
-0.000418284
-0.000351009
-4.43224e-05
0.000447738
3.91498e-05
-0.000486888
-0.00081382
0.00741233
-0.00659851
0.025793
0.0153642
0.000652267
0.00174936
-7.30455e-05
4.70619e-05
9.30471e-05
-0.00014011
0.000882103
-0.000270374
0.000828263
-0.000557888
-0.000182439
-3.09135e-05
-0.000110133
-0.000156657
0.00026679
0.000123943
0.000189724
0.000195479
0.000395627
-0.000591106
0.00328209
0.0107185
-0.0279478
0.000342201
-0.000578799
0.00016474
-0.000164739
-0.000392136
-0.00035153
0.000383229
-0.000168189
0.00961907
-0.0104415
0.00248962
0.00209696
0.000737845
-2.92787e-05
-5.49805e-05
0.0001666
0.000167321
-0.000188803
2.14815e-05
0.000299429
-0.000467707
0.000168278
-3.88316e-05
0.00011462
-7.5788e-05
-8.25332e-05
-0.000268384
-0.0288198
0.0423706
-0.0135508
-0.0121155
0.00810875
0.000323403
-0.000135237
-4.82358e-05
-4.67127e-05
0.000147625
0.000257876
-0.000454911
0.000357125
9.77858e-05
0.000122567
-0.000151647
2.90804e-05
-0.00290589
-0.00260771
0.0055136
0.000420419
-0.0004249
0.0194546
0.00742873
-0.000173072
0.000121743
0.000435488
0.000568876
-0.00100436
0.00105497
-0.000667585
-0.0211131
0.0122949
0.00881823
-0.000993513
0.000649588
-0.000115175
-0.000972597
-0.000197115
-0.000283475
-8.08875e-05
0.000364362
-0.0343837
0.0245722
0.000180911
-0.000177188
0.00214508
-0.0140993
0.0119542
0.000150357
-3.87918e-05
-0.000210231
0.000389476
-0.000179245
-0.00132202
0.0306877
0.00058894
-0.000668531
-0.00429611
0.0359901
-0.031694
-0.000133039
-0.000112161
0.00200721
-0.00191017
1.5828e-05
-0.000484932
0.020035
-0.0286052
-0.000282231
0.00028481
-2.57906e-06
0.000105466
-0.000105466
0.000111096
0.000299923
-0.000411019
-0.000517942
8.6406e-07
0.000517078
0.000843754
0.000529473
-0.000351045
-0.000178428
0.000234829
-0.00411885
0.00388402
0.000296928
-8.01841e-05
-8.09403e-05
0.000106214
0.000196749
-0.000401564
0.000204815
-0.000443369
0.000427632
0.00171053
0.00418853
-0.00589906
0.0100392
0.00319628
-0.000110903
-0.0025003
0.00202727
0.000473026
-0.000364128
0.00030991
5.42182e-05
0.0107585
-0.0190807
-0.000528727
0.000652719
-0.0329273
0.00100372
0.00581309
0.0339653
-0.0243916
-0.0169092
0.00198365
0.0149255
0.000120566
-0.000153395
0.000225766
-3.30667e-05
0.0140187
0.000730241
-0.000213278
-0.000516963
0.00134286
-0.000177884
-0.00160098
0.000512343
0.00108863
0.000451876
-0.000637937
0.000186061
0.00341882
0.00235457
-0.00577339
0.0286229
-0.00460956
0.000123319
3.44451e-05
-0.000157764
0.00180083
-0.000685025
-0.0011158
0.0242422
-0.0159205
-0.00832175
0.000407144
0.000102265
-0.00015249
0.000343767
-0.000191276
-0.000556837
-7.25807e-05
-0.00065803
0.000176767
-5.28742e-07
-0.000176238
6.99754e-07
-0.00109386
0.00109316
0.00202426
0.0207303
-0.0227546
-0.0043833
-0.000746971
0.00213251
-8.37305e-05
0.000415332
-0.000331601
-0.000352673
0.000215938
-0.000149293
-6.66446e-05
6.76944e-05
4.93623e-05
7.96843e-05
0.000287325
-0.000154229
-2.82103e-05
0.00021803
-0.00089738
-0.00237271
0.00181331
0.000559405
-0.000903439
0.00232398
-0.00142055
9.80262e-05
-0.000340436
0.00024241
0.000382928
0.000563633
0.00296318
-0.00224146
-0.000721727
0.00121458
1.19265e-05
-0.00122651
-0.00432807
-0.000445316
-0.000190638
0.000398923
0.00551668
-0.000972018
-0.000384964
0.00135698
0.000708024
0.000130661
5.11296e-05
-5.11295e-05
0.0164865
-0.00810533
-0.00838113
5.84027e-05
-0.000113383
0.0506375
-0.031237
-0.0194005
-0.00108639
-0.00161786
0.00270425
-0.000193281
-5.44024e-06
0.0187172
0.000414409
4.63657e-05
-8.51972e-05
-4.76468e-05
-0.000106565
0.000154212
0.0247848
-0.0294864
0.00470165
-1.58811e-05
-3.04855e-05
-0.00639692
-0.000433291
5.2457e-05
-0.00101903
0.0013093
-0.000290276
-0.00851837
0.000271144
0.000215149
-0.000486293
0.000129665
5.48569e-05
-0.000184521
-0.000368692
9.92553e-05
0.000269437
-0.00121442
0.000350093
0.000864329
8.39892e-05
-0.000426259
-0.000357571
2.94711e-07
0.000357276
7.05848e-05
4.42363e-05
6.45796e-05
0.000386197
-0.000450776
0.00026756
-0.000655467
-0.000799906
0.000206171
0.000593735
-0.0362115
0.0365662
-0.000354971
9.6873e-05
2.61703e-05
-0.000734239
-0.000194568
0.000624622
-0.000388139
-0.000236483
0.000288362
-0.00109333
-0.00563464
0.0315171
-0.00252091
0.00692535
-0.00440444
3.07338e-06
0.000207902
0.000106685
9.76149e-05
-0.0002043
0.000344146
-0.000249327
6.94679e-05
-0.000360903
-0.000477061
0.000254491
0.000222571
-0.00624821
0.0087454
-0.00249719
0.0327248
-0.0162874
-0.0164374
0.0024007
-0.00918144
-0.000836806
0.000178776
-0.00038781
0.000184349
0.000203461
-0.000235006
-0.000586346
0.000821352
-0.0132424
0.0230216
-0.00977917
-9.77485e-05
-6.92221e-05
0.000307229
6.39382e-05
-0.000243474
0.000975668
-0.000732194
0.000489903
0.000789387
-0.00127929
0.000728969
-0.000343323
0.0405355
-0.00643268
-6.32425e-05
0.017119
0.045412
-0.045412
8.33046e-05
0.000108347
0.000607051
-0.000660527
-0.0013189
-0.000669236
-0.000717115
0.00150188
0.0278583
-0.00983849
-0.000763646
0.000437391
0.000459362
0.00118897
-0.00164833
0.00030641
0.00893274
-0.00539425
-0.00353849
-0.000926896
-0.00114408
0.00204577
-0.000901684
-0.000256781
0.000454858
-2.74287e-05
-0.00014709
0.00024086
0.000257897
-0.000498757
0.0114716
-0.00315039
0.000167837
0.000202579
0.0122487
-0.00331381
-0.00893489
0.00102642
0.001509
-0.00253542
0.00018617
0.0024103
-0.00259647
0.00337583
-0.00521999
0.00184416
-0.00025204
0.00024806
-0.000439021
-0.0120663
-0.000533545
0.0125999
-0.000429849
0.000146375
0.0340922
-0.0284524
-0.0192521
-0.0103421
0.0295942
-0.00101538
-0.00557501
-5.34477e-05
0.000383606
0.000290325
-0.000171585
0.000110338
-2.87363e-05
-8.16017e-05
0.000141084
-3.6936e-05
-0.000104148
0.000258004
0.000470965
-0.000251395
0.000444114
-0.00280283
-0.0004544
0.0247922
-0.0156058
-0.00152033
-0.000927972
-0.0038092
-0.00201344
-0.000189997
0.0192416
-0.0107517
-0.000286579
0.000314413
0.000715701
-0.00219319
0.000187371
-0.000401933
0.000214562
0.000453155
0.000174468
0.000878131
-0.000548871
-0.00062852
0.000447495
0.00654382
0.00366211
0.000205489
-0.000289218
8.37291e-05
0.000346243
-0.000328578
0.0001676
-3.63269e-05
-0.000131274
-0.00211048
0.00102409
0.00956427
-0.0119304
0.00236616
0.000226395
0.00103845
-0.000293831
0.00042662
2.61586e-06
0.0194262
-0.0177099
0.00121715
0.000223965
0.00266982
0.000353152
-0.00302297
0.000228901
-7.02356e-05
-0.000158665
0.0143255
0.0143504
1.86107e-06
-0.000107149
-0.000580313
1.40277e-05
-0.000531423
0.000508505
0.000499491
-0.000155997
-8.84711e-05
-0.000156457
6.42537e-05
9.22036e-05
-0.000119555
-0.000322228
0.000311154
-0.000314104
0.00698948
-0.00801263
0.00102315
-0.000151454
0.000243585
-0.012451
0.0131194
0.00486612
-0.00501952
0.000153398
0.00118657
-0.000710918
-0.00011132
0.000378455
-0.000267135
-0.000416838
0.000385762
-0.0123299
-0.00138756
0.00237063
-0.00129331
0.000336951
-0.000955654
0.000427822
-0.000527492
0.00257293
9.68956e-05
0.00625481
-0.00825743
0.00930432
0.00190936
0.0102446
0.0256314
-0.000818904
0.00114832
-0.000329417
0.000854353
-0.00126887
-0.000126306
-1.34156e-05
0.0387077
-0.0139229
-0.00381767
0.0141817
-0.010364
-0.00366282
-0.0147532
0.018416
9.85467e-05
0.000214187
0.000898184
5.13316e-05
-0.000949516
6.82731e-05
-0.000367463
0.00120895
-0.000402298
-0.00114378
0.00112769
0.000337891
-0.00105458
-0.00033176
0.00046264
-0.00013088
-0.000150261
0.000332757
-0.000182496
-0.0215453
0.0324903
5.33326e-05
-0.000368235
-9.8297e-05
-0.0101865
0.0102848
-0.000445673
0.000183636
-0.000438099
0.00011722
0.000957809
-0.00860833
8.35711e-05
-8.35711e-05
0.000988202
-0.000146229
0.00101785
-0.000745822
-0.000272029
-8.43013e-05
8.43013e-05
-0.000210896
0.000292639
-8.17431e-05
-0.000259289
-6.54232e-05
0.000371039
-0.000102042
-0.000268997
9.76916e-05
-9.76917e-05
0.000180149
-8.3519e-05
-9.66301e-05
0.000116892
0.00144752
0.00140106
0.0338944
-0.0352954
0.00771646
-0.0147573
0.00704082
-0.000775984
-0.000373115
0.0011491
-0.0116298
0.0125737
-0.000943894
0.00109943
-0.000424153
-0.0225656
0.0310462
0.000691578
-0.000401866
-0.000289712
0.000545734
1.55759e-05
0.0153842
0.00399762
-0.0193818
-0.0019958
0.000924447
0.00107135
-0.000103327
-0.000171871
0.0215302
-0.0324132
0.010883
-0.000526572
-9.14479e-05
-0.000227662
-0.00037618
0.000603842
0.000350488
-0.000160303
-0.000190185
-0.000257898
9.39844e-05
0.000322682
-0.000284329
-0.000622083
0.00152027
0.000351575
-0.000130896
0.000130896
-0.000331122
-0.000225715
0.000401715
9.5833e-05
0.000304208
0.000101873
0.000188795
-0.000185752
-3.04364e-06
0.0142334
-0.0114222
-2.59379e-05
-0.000117418
0.0259618
-0.0255023
-0.000459471
-0.000299177
1.60867e-05
0.00028309
0.000260647
0.000936557
0.000180466
-0.00111702
-0.00291401
0.00264841
-0.00150776
-0.0107643
0.00460326
0.00616101
-0.000211516
0.000160257
6.65252e-06
0.000138982
-0.00321879
-0.00150619
-0.000427704
6.35761e-05
-0.00519765
-0.00457183
0.00976948
-0.00060845
0.000235002
-0.000313096
-4.66993e-06
7.69048e-05
2.35278e-05
-0.000962699
0.000609351
0.000353348
0.00837866
0.00530928
0.000727373
2.33768e-05
-0.00269983
0.0022578
0.00921416
0.00860596
-0.00508205
0.000367352
0.000116767
-0.0363012
0.0173454
-0.00120505
0.00316366
-0.00195861
0.000703678
-0.000833312
0.000129634
-0.000304866
0.000200794
-0.000194579
-6.21501e-06
-6.65691e-05
0.000539428
-0.000472859
0.00410439
-0.00483203
-0.00494635
0.00583019
-0.000883834
-0.00017161
0.000440229
-0.000268619
-0.000174848
0.00174095
-0.0049773
-0.00578697
0.000278525
-0.000278525
0.00025558
-1.09994e-05
8.29977e-05
0.0136845
-0.0110812
-0.00260324
0.000911347
0.000271941
0.000157804
7.10963e-05
0.00295897
0.00750724
0.0102166
0.0299282
-2.10412e-05
-0.000234457
-0.00489896
-0.00235217
3.75312e-05
-0.000801048
-0.000314679
0.000314678
0.00283638
-0.00297003
-0.000236534
0.000345714
-0.000109179
0.000612222
-4.26052e-05
-0.000419202
0.000223891
0.000195312
-0.000331762
-0.000176676
0.018682
-0.0126512
-0.000265721
-6.56169e-05
-0.00011311
0.000263941
3.36779e-05
-0.000203557
-0.000184819
0.000388376
0.00985986
-0.0110159
0.00115602
0.0350982
0.0170176
5.07261e-05
0.000321801
0.000215961
-0.000155455
-0.018915
-0.00311867
0.0220337
0.000130317
0.000278188
-0.000408504
3.41266e-05
0.000139928
-0.000380404
0.000427597
-4.71932e-05
-0.0178323
0.0173835
0.000448801
0.000109691
-1.99827e-05
-8.9708e-05
0.000547539
0.000358107
-0.000905646
0.000314896
-0.00105345
0.00055581
-0.0071302
-0.0020702
-0.000161844
0.000333307
0.00955596
-0.0211081
0.0115521
-0.000122011
0.000169074
0.000108694
8.40128e-05
-0.000192707
-0.00023941
-0.000257913
0.000497322
0.000326469
-0.000329286
-0.00100597
-3.97999e-05
-0.000129403
-0.00349824
0.000673306
0.00154803
-0.0164041
0.014856
-4.06554e-05
-4.28114e-05
-0.000468376
-7.09171e-05
-0.000546077
0.000616994
-0.000122175
0.000210492
-8.83163e-05
7.90664e-05
-8.70192e-05
0.0187666
0.0318709
-6.96245e-05
1.52247e-05
5.43998e-05
0.000240789
0.00121945
-0.00066721
0.000667854
0.01205
-0.00229284
0.000491252
0.000209541
-0.000700793
0.000397131
-0.000266814
0.000107653
-0.000382919
0.000275266
-0.000192452
0.000331648
0.000197743
-0.000529392
0.000735589
0.000363843
-0.00208367
0.00108555
0.000151908
-0.000234314
0.00106516
0.000485003
7.66291e-05
-0.000561632
-0.000981891
-0.000742894
-0.00067192
-0.000366753
-0.000413108
0.000909469
-0.00049636
-5.32749e-05
0.000148969
-9.56938e-05
-0.0328976
0.000818418
-0.0046154
0.00685895
-0.00224355
-0.000314861
0.000177023
0.000137838
-0.00485068
0.0125671
0.00622438
0.0134528
-0.00789345
-0.000175077
-2.05435e-05
-0.000305422
0.000978015
-0.000710869
-0.000267145
-0.000181057
-0.00116581
0.00135218
-0.000186368
0.00129364
0.000507185
1.54201e-05
-0.000448711
0.00045774
0.000110163
-0.000567904
9.88674e-05
-8.05053e-06
-0.000723814
-7.17956e-05
-0.000290398
-0.000592338
-0.00029025
0.000177314
0.000121669
-0.000298983
-8.4925e-05
-0.000307334
0.000392258
0.0192636
-0.0291434
0.00987987
-0.000915962
-0.000399045
0.00298579
-0.000905521
-0.00208027
8.12136e-05
-8.12136e-05
-0.00377326
0.00215541
0.000349526
8.24205e-06
-0.000357768
-0.00917152
-0.02704
0.00111273
0.024397
-0.000992457
0.000966745
2.57118e-05
0.004968
-0.00159218
0.00802355
-0.0121836
0.00416008
0.000166085
0.000349156
-0.00051524
-0.000173595
-0.000426724
-0.000182888
-7.38914e-05
0.000256779
0.0076438
-0.00916017
0.0299442
-0.0327557
0.00349005
-0.00159789
0.0270569
-0.025459
-0.0140968
-0.0142647
0.0283615
0.00013609
0.000214398
0.000111453
-0.0102473
-0.00161671
0.011864
0.00243506
-0.00126769
-0.00116737
0.000415111
-0.000312269
-0.000102842
0.00559241
-0.000415391
-0.000484784
-8.0857e-07
0.000485592
0.00160308
-0.00110191
-0.000501171
0.00123722
2.67646e-05
0.00658468
0.000142154
5.86407e-05
0.0486692
-0.0191105
-0.0295587
-0.0360301
0.0213691
0.014661
0.00101313
-0.000487726
-0.000525406
0.000137062
0.0137262
-0.0138633
-0.000404317
-0.000376832
0.00019929
-0.000274517
7.52267e-05
-8.84756e-05
0.000789823
-0.000701348
-0.000448057
-7.55078e-05
0.000523565
-0.000238356
0.000440138
0.000237431
-0.000191842
0.0205868
-0.0048026
-0.0157842
0.000173517
-8.49978e-05
0.000176293
0.00035318
0.0148722
0.00436936
0.000309279
0.00011509
0.000231644
-0.000417462
0.000185819
0.000422652
-0.000465482
4.28297e-05
0.000582497
-0.000653414
1.9787e-05
4.45807e-05
-0.000494452
0.000354417
-0.000204161
-0.000311638
-0.000165424
-0.000357306
-0.000342875
-0.00197981
0.0010278
-0.000701413
0.00014619
0.000555223
0.0317907
-0.0195242
-0.0122665
0.000279651
-0.000466474
0.000186823
0.00106717
-0.000185771
0.000180507
-2.60418e-05
0.00525997
-0.00647697
0.001217
-0.00497029
-0.0178362
0.0228065
0.0204477
-0.0184235
0.000524495
-0.00100397
0.000479474
-0.000271392
0.00021836
5.30325e-05
0.000425245
0.000120489
-0.0323522
0.0158011
0.0165512
-0.0200917
0.00318256
-0.0103395
0.0128478
0.00261172
0.00670031
-0.00214744
0.00194945
0.000197991
-0.000759203
0.000367067
-0.0206291
0.0274311
-0.001263
-0.000729886
-4.76098e-05
-0.00389747
0.0025996
0.0259775
-0.00671397
0.000378263
5.0752e-05
0.00135955
-0.000453369
-0.000906182
0.0112528
-0.0287837
-0.00433579
0.00384193
0.000493855
-0.000658836
0.00027121
0.000181774
-0.0126522
0.00745457
0.0200912
-0.00782764
0.0228358
-0.0244337
-0.00141883
0.00111644
9.06748e-05
-0.000369152
0.000136971
-0.00146462
-0.000262569
0.000146516
-0.000424379
0.000277863
0.000197947
0.00105113
0.000551945
-0.00102094
0.00102164
-0.000578823
0.000872422
-0.000293599
0.000313437
6.98668e-05
-0.000383303
-0.00312815
0.00330167
-0.0139337
-0.0204054
0.00839709
0.0253484
-0.0337455
0.000231863
-0.000464854
0.000232991
0.000133899
-0.000170738
3.68394e-05
-0.00146975
0.000909253
0.000358411
-0.000152922
5.10803e-05
0.000947296
0.019783
-0.00127362
0.00102894
0.00024468
0.000154474
4.33915e-05
-0.000197866
-0.0277159
0.0259029
-0.000373308
0.000338146
3.51629e-05
-0.00563777
0.00241898
-0.000618958
0.00178347
0.000316106
-0.000414031
9.79244e-05
0.000354805
-0.00057242
-0.00019841
0.000349999
-0.000253245
0.000140473
0.000112772
0.0001737
4.22618e-05
0.00025708
-0.000109397
-0.000147683
-0.000400782
0.00057921
0.00991282
0.00360472
-0.0135175
0.000526809
0.000231115
0.000248187
3.63064e-05
0.00164177
0.00351237
0.0124838
-0.00871024
-0.000848535
0.000830514
-0.00349284
0.00676149
0.0254802
-0.012844
-6.72583e-05
-0.00102499
-0.00702038
0.00606518
0.000295482
0.000303956
0.000469325
-0.00529263
0.0048233
3.25615e-05
0.000108523
0.000138271
-0.00025887
0.000120599
-0.000418979
0.00038935
2.96289e-05
-0.000340863
-0.000523075
-9.32446e-05
0.0252784
0.00421193
-0.0097536
0.00819214
0.00156146
-0.000441513
-0.000368161
0.000809674
-0.00338859
0.00477559
-4.18991e-05
0.000360513
0.00232622
-0.0286419
0.0111544
0.0108896
-0.022044
-0.00028722
0.000216984
-0.00203227
-0.000355642
-0.0013825
0.00315746
-0.00177495
0.000435902
-0.00055672
0.000120817
1.57023e-05
-0.000691296
-0.000319193
-0.000512167
0.000107954
-0.000194813
0.000206084
-0.000168933
0.000258212
0.000321534
-0.000923878
-0.0151224
0.0286164
-0.0134939
0.00639455
0.00425514
-0.0106497
0.00687962
-0.0070463
0.000166683
-0.00856446
-0.00688535
0.000253714
0.00139313
-0.000570864
-0.000167002
0.000191438
0.000441059
-0.000209415
-0.000198166
-0.000189644
-0.000283618
-0.00043943
8.58943e-05
2.4444e-05
0.000193986
-0.00029081
-0.000172908
0.000471398
-0.000298489
0.0390388
-0.000397628
0.000355729
0.000546314
-0.000181189
-0.000365126
-0.000294868
0.000248058
4.68094e-05
-0.000326591
0.000304572
-0.000238611
-1.46342e-05
-0.000288508
-0.000154151
-7.58002e-05
0.0112261
-0.0208917
0.00966558
-0.0418603
0.0396414
0.00221886
0.00241923
-0.00563462
-0.00050424
0.000173118
-0.00375514
0.000406408
0.000128239
-0.000423473
0.000295234
-0.0194593
0.00535014
0.0111363
-0.00365633
0.00480206
-0.00033391
-0.000170331
-4.63302e-05
-0.000113305
0.000159635
0.0296893
0.0162977
-0.0121083
-0.000328975
0.000337564
-4.23564e-05
-0.000421063
-0.000501895
0.000252599
0.000249295
-0.000147192
-1.46771e-05
0.00156936
-0.00162119
5.1833e-05
-0.00814509
0.00691599
9.87136e-05
-0.000109691
1.09773e-05
0.00033746
0.000860984
-0.000818554
-0.000108219
5.49441e-05
-0.000114086
3.31453e-05
0.00010649
6.11104e-05
-4.16675e-05
-0.000170013
-0.000364663
1.83962e-05
0.000312301
0.000271163
9.2036e-05
0.000838189
4.22459e-05
-0.00121976
0.000364249
-0.000141667
9.18967e-05
0.000436833
-0.00082576
0.000388926
-0.00158824
0.00113088
7.12658e-05
-0.000931711
0.000860445
-0.000668214
-0.000294485
-0.000575877
0.00040939
0.0415403
-0.0149419
0.000346073
0.0092182
-0.000784451
0.000173815
-0.000365357
-4.11991e-06
-0.000222702
0.000226822
-6.23588e-05
-0.000130265
0.0326861
-0.0418576
0.000426343
-0.00039567
-3.06733e-05
-0.00013523
0.000127454
-0.00446793
-0.0133643
-0.000878405
0.000697657
0.00155969
0.00237922
-0.00738828
-0.00435403
-0.0219274
-0.000297891
0.000822387
-0.00240448
0.000787745
0.000190282
-6.11675e-05
-0.000213135
0.0227875
0.0258817
-0.000293443
1.73241e-05
0.000276119
-0.000553561
-0.00354446
-0.0160733
0.000779458
0.00237241
0.0159915
-0.0242477
-0.000245795
0.000114205
0.000131589
0.00268653
0.0423181
-0.000270723
0.000234733
3.59899e-05
-0.00113775
0.000624507
0.000513239
0.0197747
-0.00708811
-0.0126866
-0.000403137
0.000378603
-0.00122117
0.000666064
0.00055511
-0.000756423
0.00110329
-0.000346869
0.000126195
-0.000122469
-3.72606e-06
-0.000122445
2.41753e-05
9.82698e-05
9.85754e-05
-9.85754e-05
0.000110816
-0.000161943
-0.000406779
0.000754916
0.000223098
-0.00011928
-4.45962e-05
-0.00019485
-0.000571759
0.000881108
-0.0355771
0.0166621
0.0149731
0.00238056
-0.00232454
0.00413674
7.58886e-05
-7.58886e-05
4.69414e-05
-0.00011984
-0.00251725
0.00175797
0.000664845
-0.000180141
0.000287625
0.00201612
-0.00241652
0.00255416
-0.00110108
-0.00145308
0.000364215
-0.000133466
-0.000230749
-0.000178316
-0.000108904
-0.000591474
-0.000146254
0.000737728
0.00292506
-0.002456
-0.00235096
-0.00111185
0.00346281
0.000388866
-0.000650072
0.000261206
0.000343572
0.000260248
-0.00060382
0.000356881
-0.000476436
0.000384819
-0.000218735
0.000268149
-0.000791792
0.00025314
0.000538652
0.00196335
-0.00546927
-0.000147999
0.000147181
8.17597e-07
-0.00121708
-0.00339832
-0.000334381
-8.71295e-05
-6.92912e-05
6.92911e-05
-0.0042284
0.0037754
0.000452997
0.000195992
-0.000193576
0.000116485
-0.000122188
0.00117325
0.00516216
-0.000255204
-4.65989e-06
1.48104e-05
-0.000303318
0.000121109
-0.000298858
-0.00981234
0.0193683
0.00021757
-0.0016512
-0.00329515
-0.00224334
0.00242951
-0.00113767
0.00162757
0.00071815
0.000790445
-0.0128331
0.027068
-0.0142349
8.56935e-06
1.79612e-05
3.31684e-05
0.00118454
-0.000749053
0.000413396
0.000559366
-0.000972763
0.0175999
0.00187946
0.00012775
-0.000394818
1.87706e-05
-0.000435252
0.000451167
-1.59152e-05
0.0196596
-0.0393808
0.000270602
-0.000133232
0.00679334
-0.00276996
-0.00402338
0.00113128
-0.000254854
0.000133303
-0.000183631
5.03276e-05
0.00248527
-0.00172931
-0.000755955
2.04862e-05
7.83813e-05
-0.000575849
0.00027121
-0.00864216
0.00826609
0.00037607
-0.00176563
0.00639412
-0.00462849
-0.000280322
-0.000519584
0.00073849
-0.00175752
0.000233647
0.000457931
-0.00318087
0.0027585
0.000422362
0.000862728
0.000530401
-2.47576e-05
0.000196123
-0.000171366
4.2487e-06
-0.000126103
0.000121855
-0.00382939
0.00147843
-0.00309333
-0.00152864
0.00214355
-0.000614909
0.00129978
0.000340957
-0.00164073
-0.000180518
2.50634e-05
-0.000592258
2.47071e-05
0.000567551
0.000159909
0.000147441
-7.92762e-05
-0.000107337
8.44456e-05
-0.000661437
-0.000171795
-0.00288182
0.00225389
0.00062793
5.47053e-05
-0.000683121
0.000636039
4.70816e-05
0.000139877
-8.76007e-05
0.000435202
0.000108309
0.000890757
0.00143374
-0.00120386
0.00410099
-0.0200215
0.000194397
-0.000120103
0.00762378
-0.00501206
0.0136737
-0.0135367
0.00154644
-0.00103384
-0.0005126
0.0112982
-0.00833923
-0.000314921
0.000166091
-0.000470489
0.000330181
0.000140309
-0.0262104
-0.00614185
-0.000122275
0.0204206
-0.00911134
-0.00223329
0.00240299
-0.000919983
-0.00158031
0.00402725
-0.00324716
-0.000592254
0.00359072
0.000698624
-0.00196632
-0.000854104
0.000190472
8.67275e-05
5.67894e-05
-0.000143517
-0.00558716
0.00272749
-0.00117133
-0.00155616
0.00115185
0.036479
-0.00206535
-0.00159249
0.00365785
0.000154479
0.000213164
-4.57636e-05
0.000493502
0.000677093
-0.000518772
-0.000158321
0.0335913
0.000338196
-0.0339295
-0.00111999
0.00266468
-0.0229278
-0.00317814
0.0261059
0.000987172
-0.000690106
-0.000297065
-0.00679765
0.0165274
0.000506091
-0.000201114
8.98104e-05
-1.92256e-05
2.64604e-05
7.12313e-05
0.00396483
0.0301942
0.0059445
0.000349639
0.000432172
-0.000108262
5.19228e-05
-0.000384828
6.9967e-05
-0.00451055
0.000176123
-8.62304e-05
0.000242358
0.000121857
-0.0292192
-0.00367846
0.0216774
0.000308383
0.000682867
-0.000799131
0.000116264
-7.38913e-05
0.000100074
0.000899508
-0.00358911
0.0026896
-0.00122807
0.000257354
-0.00034108
0.00022976
-0.00685621
-0.00507422
-0.000100019
0.000277007
-0.0018915
0.000348909
0.00154259
-0.000582122
0.000345954
0.000236169
-0.000904363
0.000491255
0.000427166
-0.000169258
-0.000460299
0.00242419
-0.000650226
-0.000141566
7.25693e-06
-0.000205574
-0.006581
-0.00563943
-5.35086e-06
-0.000431132
0.000398693
-0.000334114
-0.000516401
0.000515788
6.12293e-07
-5.72641e-05
8.44109e-05
-0.000361744
0.000109544
0.0002522
0.000408853
-0.000410536
-0.00557193
0.0308777
-0.0253058
-0.00065671
0.000498486
0.000158225
0.0316735
-0.0207123
-0.0109611
7.04467e-05
0.000518097
-0.000729856
0.000211759
-0.0192227
0.00677168
0.00172114
0.000272082
-0.00199322
-0.0003165
-0.000505011
0.000821511
-0.0347587
0.000380255
-7.12552e-05
-3.70069e-05
9.27768e-05
-0.000239594
0.000146817
-0.00113467
0.000354366
-0.000390721
0.00572132
1.46248e-05
-0.00373711
-0.00159414
0.00366628
-0.00207215
0.0280455
-0.00762662
0.000331099
9.52443e-05
-0.0353157
0.0141386
5.315e-05
0.000115265
-0.000883719
0.000404305
-0.0339901
0.0198933
0.00148235
0.00148083
0.0209655
0.0117615
-0.000505607
0.00039965
0.000105958
-0.00595715
0.00107813
-0.00134412
0.0005697
0.000774417
0.0136831
-0.00717888
0.000178339
-9.16115e-05
0.000241721
0.000390909
-0.000387137
0.00138709
0.000485766
0.000245299
7.08078e-05
0.00663419
0.00197177
-0.000147555
0.000593054
-0.00121306
-0.000415252
-0.0030114
0.0099122
-0.0127688
-0.000461325
0.000490969
-2.96439e-05
-0.000966786
0.000435418
0.000531369
-0.00821448
0.000989845
0.00722463
-2.28623e-05
-6.61533e-05
0.000225981
-1.71626e-05
-0.000753126
-0.000219653
0.000972779
0.000278877
-0.000200281
-7.85961e-05
-0.00095449
0.00102625
5.5045e-06
-9.3721e-05
8.82165e-05
-0.00023728
0.000127147
-4.73992e-05
-9.37568e-05
-0.000397
0.000490757
-0.0175809
-0.0267281
-0.00442664
0.00203549
0.00239115
0.000154532
-0.000505577
-4.36878e-05
-0.000121639
0.000165327
0.000200406
0.00010687
-0.000385219
-0.000120388
-0.0188593
-0.000517899
-0.000260218
-3.61723e-05
-0.000479132
0.000649751
-0.000170619
0.00036464
-8.68884e-05
-0.000277751
0.000323315
-0.000245482
-7.78333e-05
0.000227196
0.000187978
0.016974
0.0172623
-0.0342363
-8.09627e-05
0.00014345
-6.24871e-05
0.00150487
0.00619477
-0.00769963
3.90857e-05
0.000123776
-0.000162862
0.000248414
-0.000229441
-1.89733e-05
0.0206979
-0.0102868
0.000460813
-0.000462415
0.000261664
-0.000328656
6.6992e-05
0.000669174
-0.00136034
-0.000341828
9.51947e-05
0.000246633
0.0364378
-0.0360311
-0.000406732
-0.000248876
-0.000452537
1.01138e-05
-0.00672228
-0.000604808
0.000153565
0.000451243
-0.000199206
0.000350211
0.000482525
-2.29026e-05
0.000346218
-0.00500128
-0.000448082
0.000570297
0.000355581
-7.59305e-05
-0.000446929
-0.000595662
0.00104259
0.000478233
0.00012207
6.61675e-05
-0.000216429
-0.000397311
-0.00105727
-0.000179642
6.70002e-05
-0.000594618
0.000262858
0.000234117
7.66665e-05
-0.000310784
-0.000429527
0.000480645
-5.11177e-05
0.000967605
0.000569024
0.001278
0.00144949
0.0024993
0.000937775
-0.00343707
1.57093e-05
0.000162069
-0.000177778
-0.000366277
8.99606e-05
0.000276316
-0.000498202
7.66375e-05
0.000421565
-0.0203311
0.0226562
-0.00232509
-0.000390703
0.00241797
-0.000161496
0.000122756
0.000180988
-8.8211e-05
-0.0241333
0.00547653
0.0186568
0.0260393
0.000668
-0.000951987
0.000283987
0.00618364
-0.00258812
-0.00359552
0.000318062
6.38688e-05
-0.0115338
-0.00877727
0.0203111
0.000110927
2.48979e-05
-0.00121624
0.000966307
0.000249934
0.0216524
-0.0196318
-0.00202054
0.00242938
-8.86867e-05
0.000648799
-0.000222706
-0.000426093
-0.00494711
-0.000100829
0.000105693
0.00223859
-0.00142715
0.000154702
-0.000229966
7.52636e-05
0.000773676
0.00252799
-0.000368284
-0.000488331
0.000856614
-0.0193653
-0.0080481
-0.00240413
0.0104522
-0.000222954
-6.69112e-05
-0.000458899
0.000202117
0.000361752
-0.000460362
-0.0020166
0.00231352
-0.000296914
-0.000174754
8.30301e-05
-0.000254173
9.98668e-05
-0.000249893
-0.000964529
0.00504999
-0.000389345
0.000304265
8.50797e-05
0.0243868
0.000179549
-2.78184e-06
0.0004961
-0.000401914
0.00014059
-0.000223769
8.31788e-05
-0.0015651
0.00219024
-0.000105483
0.000130497
0.000215746
-0.000659641
0.00129819
-0.000332102
-0.000383083
0.000302894
0.000670345
-0.00206481
-0.000118116
0.000118117
0.00314914
-5.82426e-05
0.000389342
0.00239186
-0.00183789
-0.00055397
0.000457512
-0.000209453
2.51366e-05
-0.000205655
-0.000107866
0.000146952
-0.000136769
0.000339675
-0.000202906
0.00644912
-0.00154257
0.00976968
-0.029446
0.0196763
-0.000433374
-0.000249747
-0.000321453
0.000518202
3.0559e-05
7.49071e-05
0.000291283
-0.000501513
0.00560123
-0.0038907
-0.00713179
0.000668571
-0.000613775
0.000170405
-7.69334e-05
-0.000134172
-0.000171748
-0.00140464
0.00157639
-0.0102183
0.0188539
-0.00863558
0.00010823
-0.000155877
-0.000306793
-0.000275329
-0.0164457
-0.0020993
0.000823267
-0.000180471
-4.78833e-05
0.00712155
-0.00251829
-0.00186365
-0.00874926
-0.000483088
0.000172641
0.000310448
-0.000360424
0.0299181
-0.0269695
-0.00294857
-0.00112835
0.000137174
0.000991176
9.48713e-05
3.50843e-05
-0.000129956
0.000432666
-0.000357404
-7.52628e-05
0.0201128
-0.0250128
0.00490001
-5.85421e-05
0.000329686
-0.000201264
0.000130849
7.04147e-05
6.51868e-05
-0.000628358
-0.000587107
9.23152e-05
0.000494792
-0.00168212
0.000723192
0.0028654
-0.00325598
-0.000800118
0.000339953
-0.00201322
-0.00119477
0.0062902
-0.000454477
-0.00583573
-0.000208466
8.61907e-05
-0.000125084
-0.000262511
0.0121586
-0.00114683
0.00268856
-0.00154173
-0.000118036
4.74697e-05
7.0566e-05
0.000215404
-8.57398e-05
-0.000486504
-0.000319899
0.00860897
-0.0188273
-0.000634497
-0.000793832
-0.000375099
-0.000461707
-0.000923864
-0.000677114
0.029537
0.00198193
-0.000681008
0.0014083
0.00030622
4.33063e-05
-0.0167161
0.0111718
-1.47092e-05
-7.40541e-05
8.87632e-05
-0.000980171
0.00406207
0.0235984
-0.00589119
-0.0177073
-0.000429516
0.000444936
0.000374943
-0.000391028
0.000113179
-0.000525182
0.000447392
7.77902e-05
0.0128225
-0.0112744
0.000766436
-0.000281432
0.000141184
-0.000105002
-9.48138e-05
0.000356477
0.000797413
0.000284022
0.000336918
-0.000415062
7.81436e-05
-0.00203572
-0.00088955
0.00292527
0.00152889
-0.00980539
0.0356362
-0.0224816
-0.0131547
0.000384321
-0.000438555
5.4234e-05
0.000409282
-0.000363504
0.000386416
-2.29115e-05
-5.00418e-05
-6.79939e-05
-0.00301628
0.00321998
-0.00338641
0.00509121
-9.05883e-05
-8.41655e-05
5.56346e-05
-7.20672e-05
-8.19975e-05
-0.000121737
0.000897297
-0.00048696
3.02697e-05
0.000263124
0.000123139
-0.000139828
0.000155537
-0.00377733
0.00368875
-0.00067324
0.000289441
0.0037732
0.0173994
-0.0211726
-0.000636288
-0.000637329
0.000193705
-1.35567e-05
-0.00010346
0.000105321
-0.00147303
-0.0269925
0.00774039
3.8022e-05
-0.00042244
0.000384418
-0.000106714
0.000559804
-0.00045309
-0.00415638
0.00418315
-0.000306474
-6.70139e-05
0.000373488
-0.000130453
2.36988e-05
0.000106754
0.000130211
-0.000172903
0.000382223
-0.000422265
4.00411e-05
-0.00396279
-0.000698872
0.000387189
-0.000416565
0.0263145
-0.0338358
-0.00025502
0.00857005
-0.00831503
0.000608329
-0.000477227
-6.98399e-05
-0.000216739
-0.00299271
-7.40529e-05
9.92912e-05
-2.52383e-05
0.000245508
-0.000107237
-0.0346848
-0.00835765
0.000441195
-0.000273358
-0.011468
0.00608612
-0.0210455
-0.012555
-0.0203601
-0.0176252
-0.0219446
0.0395698
-6.51456e-05
2.6801e-05
5.67702e-05
-0.00278869
0.00443046
-2.7531e-05
-5.67702e-05
-0.00904578
-0.0197054
0.0156672
0.00609495
-0.000202966
1.87511e-05
0.000184215
-0.0119547
-0.0045522
0.0148797
-0.00387941
-0.00379435
0.00767375
-0.0149193
0.000770254
0.0141491
-0.000185857
0.000142169
0.000516849
-0.000478827
0.0156516
-0.0224104
0.000295875
2.89401e-06
-0.000152827
0.000149933
-2.45922e-06
0.000135762
0.000615451
-0.00407697
0.00346151
-0.000476595
0.0273308
-3.45545e-05
0.00020032
-0.000144087
3.15119e-05
0.000184426
0.0357644
-0.0278827
0.00533586
0.0225469
-0.00168562
-9.27617e-05
7.36879e-05
1.61226e-05
0.0223245
0.00151229
-0.00113112
-0.000381179
0.000120342
0.000220307
-7.36902e-06
-0.000215585
-0.00138101
0.00547274
-0.00409174
0.000136449
-0.000162387
0.000208282
0.0001144
0.000377729
0.000246893
-0.000818211
0.000115454
-0.00029703
0.000331658
0.00145405
0.0333121
0.000159347
-0.000262367
-0.000787153
0.000985627
-0.000198474
-0.00112259
-9.85814e-05
0.000394825
-0.000128408
-0.000266416
-0.000179552
0.000356575
-0.00013606
7.0649e-05
6.5411e-05
-0.000297078
0.000178316
0.000118762
-0.00109995
-0.0014173
6.28379e-05
0.00941419
-0.00315939
0.000155414
-0.000176388
-0.000165804
0.000165805
0.00103968
-0.00336422
-0.000279131
-0.000618886
0.000138787
0.0004801
-0.000945337
-0.0013836
-0.000939748
0.00232335
-0.0293732
0.011748
-1.60039e-05
0.000405367
-2.92013e-05
-7.12313e-05
0.0018219
-0.000570738
0.0146618
0.000119973
0.000249752
-0.000369725
-0.000921436
0.000528978
4.07728e-06
-0.000533055
-0.00113207
-0.000863728
0.000807171
0.00162049
-0.00242766
0.000127872
0.000712258
-0.000489804
-0.000222455
-1.69006e-05
-0.000377246
0.000394146
-0.0143567
0.0305941
0.00112781
0.0339704
-0.0350982
-0.00031884
-4.29038e-05
-0.000351683
0.000490131
0.0409297
-0.0409297
-0.000609765
0.00304704
0.0416824
-0.0447294
8.76997e-05
-0.000119387
3.16876e-05
-0.000369248
0.000258885
-4.01618e-05
-9.80048e-05
-0.0014715
0.00100769
0.000463807
-0.000626634
0.000108692
0.000317672
0.000160561
-0.000397552
0.00134901
-0.000951455
-0.00063069
0.000398418
0.000232272
6.19065e-05
-0.000145411
-0.00315158
-0.000325787
5.54103e-05
0.000270377
0.0161549
0.0239103
-0.0400652
-0.00397955
0.0082347
0.000132758
-0.000135803
0.000785404
0.000648338
0.000388906
0.00107619
0.000138398
6.36254e-05
-0.000474159
0.000104861
1.60153e-05
-0.000120876
-0.00225601
0.000690912
0.00156509
0.000119881
-9.68084e-05
-0.000184983
9.10035e-05
9.3979e-05
-0.00487342
0.0172188
-0.0123454
0.00285368
0.00024568
-0.000247447
8.62677e-06
0.00023882
-9.94407e-05
-0.000425742
0.00088149
0.000249789
-0.00156714
9.6061e-05
0.0318658
-0.0146734
0.000232595
-7.8121e-05
-0.00118822
-2.61157e-05
0.00121434
0.000421607
-0.000409564
0.0418398
-0.032557
-0.00928285
-0.000385289
0.000391927
-8.71935e-05
-0.000184199
-0.000149543
0.000124775
2.47678e-05
-0.00011955
0.00110769
-0.00113126
2.35687e-05
0.000404461
-0.000393082
-0.00267319
0.0012896
-0.000213762
-0.000738222
-0.00312641
0.00386463
0.000514616
0.0247838
0.0244289
-0.0492127
2.55099e-05
-0.000109029
-0.000328798
-0.00026582
-0.0005314
0.000192255
-0.0125041
0.000485619
0.00580459
0.00455777
0.00437498
-0.0186925
-0.00302707
0.0217195
-0.00135565
0.00038363
-0.000301032
0.000549295
-0.000248263
0.000623799
0.000728377
0.00910189
7.23938e-05
-0.00017417
0.000101776
-0.00312158
0.00152745
-0.0005371
-0.00404073
-7.64391e-05
-5.96208e-05
-0.0202742
-0.00691152
0.0271857
0.0338075
-0.03714
0.00333242
-0.0338353
-0.00417054
-0.00429353
0.00272843
0.000197263
5.02016e-05
-0.000247464
-0.024649
0.0107413
-9.71462e-05
-0.00038674
0.000298126
-6.28139e-05
-0.000235312
0.000390745
-0.000226455
-0.00016429
-0.000267507
0.000129723
-0.00042152
-0.000209786
0.00888007
0.000135049
-0.000474793
8.15382e-05
6.232e-05
-0.000143858
0.0180467
-0.0375709
0.000104861
-0.000469444
0.000210502
0.00437547
0.00116747
-0.00554294
-0.00132915
-0.000142343
8.81294e-05
-0.00010391
1.57803e-05
-0.000449654
0.000274484
0.0341476
-0.0117311
-0.000367296
0.000312961
-0.00112045
5.13945e-05
0.000555657
-0.000250731
9.82487e-05
0.00366865
-0.00160085
-0.0020678
3.82342e-05
-0.000291668
0.000273024
0.000105431
0.000116253
3.4104e-05
0.00610454
0.00347368
-0.00957822
-0.000448097
0.000410261
0.000990775
-0.00100914
1.83602e-05
-0.00115418
-0.00107121
0.00222539
-0.0206257
0.0303954
0.0365338
0.00439594
-5.07974e-05
0.000333121
-0.000282324
0.00742286
9.95268e-05
-0.0143923
-0.0134904
9.25921e-05
6.86364e-05
-0.000161229
0.00795847
-0.00805677
0.013853
-0.00713416
1.86526e-05
0.000433223
-0.0109976
0.007591
-0.00187708
-0.0028514
0.00472848
-0.000915918
0.000927844
-0.000537724
0.0191293
-0.0059848
-0.0131445
0.00020349
-0.000268503
6.50131e-05
-0.0303533
0.0317543
-0.000222721
-0.000244985
0.00944382
-0.00333928
-0.00698065
0.00521502
0.00858159
0.000986579
2.65523e-05
2.64977e-05
-0.000455111
-0.000791595
0.00181915
-0.00102756
0.0197641
-0.00985192
-0.013025
0.000372823
-0.00216895
8.19441e-05
0.00208701
-0.000333835
0.00279873
0.00950996
-0.00332632
-0.000136034
0.00912347
0.000736393
-0.00500775
-0.0111898
0.0161976
0.00035441
-0.000212028
-0.000705354
0.00217787
0.00773495
4.20545e-05
-0.000278589
0.000138471
0.00752032
0.000285648
-0.00780597
-0.00122626
0.000143635
-0.000200862
-0.000973849
0.000274175
0.000420034
-0.000575342
0.00495675
0.00889627
0.000164608
-4.12891e-05
-0.00019123
-3.33047e-05
0.000224535
-0.00019123
-0.000313356
1.41789e-05
0.00203901
0.00614548
-0.00886605
0.00272057
0.000281213
-0.000839005
0.000557792
7.06169e-05
0.000177797
-0.000656068
0.0130262
-0.0108811
-9.88951e-05
0.00604933
-0.0217755
4.89065e-05
-0.000274504
0.000225598
2.86655e-05
-0.00057263
0.000543965
-6.3667e-05
-0.00538316
0.00259447
0.00386487
-0.0046031
-0.000618108
-0.000519637
-0.0019634
7.19037e-05
-0.00837679
0.00456362
0.00381317
1.27445e-07
0.000151592
0.000164442
-0.0012083
0.00104386
0.000451215
6.68826e-05
-0.000908735
-0.00012943
0.00103817
0.00226324
-5.28088e-05
-0.000129616
-0.000135348
0.000264964
-4.20954e-05
-8.83572e-05
0.000184451
-7.84318e-05
-0.000473143
0.000773221
0.000178852
-4.60938e-05
-0.00791287
-0.0113098
-0.000463523
0.000205404
0.000307952
-4.98751e-05
-0.000258077
-0.000819799
0.000311343
-0.0270791
0.0210583
0.000161303
-0.000187901
2.65986e-05
0.000385973
0.000224534
0.00035379
-0.000578324
-0.000134053
0.000168498
-0.000723331
0.000166829
0.000556503
-0.000357214
-0.00011223
0.0244947
-0.0300667
0.000112545
-9.5809e-05
-1.67358e-05
0.000389049
-0.00026794
0.000626457
-0.00154644
-0.0317471
0.00903045
-0.000275106
-0.00117796
0.00227602
-0.00109805
-0.000657434
2.89131e-05
0.000337053
-4.18134e-06
-0.000332872
-0.000392794
0.000946809
-0.000554015
-0.0016798
-0.0379211
0.0108811
0.000702082
0.0145237
-0.010735
-0.0037887
0.000547716
-0.00064983
0.000102114
-0.00118278
0.00025912
0.000923663
0.000301479
-0.000104673
-0.000196806
0.00409784
0.0175545
-0.000210568
-0.000197962
0.00040853
-0.0218551
0.0070826
0.0147725
-0.000278704
8.59752e-05
-4.98829e-05
-0.00052894
0.000308492
-0.00038421
-0.00208029
-0.00019537
-0.000283452
0.000478822
0.00954785
-0.0144213
0.000218862
-8.49629e-05
-0.000932778
0.001702
0.000163531
-0.000640757
-0.00106655
-0.000963825
0.00203037
-0.000213694
-5.20267e-05
0.00380139
-0.00045889
0.000745513
-0.000289962
0.000547966
-0.000167313
-5.64563e-05
-1.27767e-05
-0.000356472
-0.000168603
0.000393137
-0.00212604
-0.00322231
0.00534835
-0.000356609
-0.000126332
-7.9501e-05
0.000205833
7.31979e-05
-9.28869e-05
-0.00530137
-0.00795376
0.00733645
0.000516407
-0.000184759
-0.000102678
-6.54709e-05
-5.78597e-05
0.00011775
7.27139e-05
-1.03808e-05
0.0260739
-0.0294119
0.00786651
0.000164602
0.00166565
0.000415393
-0.000343154
-7.22389e-05
0.000759723
-0.00101201
0.000252291
-0.000324199
4.1968e-05
0.0125521
0.000456783
-0.000671735
0.000938514
0.000280905
-0.00121942
0.000845019
-0.000566217
-0.000278802
-0.0263655
-0.000388771
0.000249582
0.00013919
-0.0380065
0.0380065
-0.000104101
0.000651641
0.000181154
2.23362e-05
-0.000543477
0.000121037
0.000431239
0.000146455
-0.000577693
0.000806677
8.65486e-05
-0.00382263
0.012842
0.00116405
0.029146
-0.0207489
0.00116867
-0.0239594
-0.00845378
0.000715143
-0.0103638
0.00117722
-0.000334102
-1.09103e-05
0.000437513
-0.000736214
6.90038e-05
-0.0242071
0.00387591
0.000134197
-0.000199814
0.0273977
0.000472844
2.2805e-05
-0.000495649
-6.65232e-06
-0.00026718
0.000273833
0.0334864
-6.2781e-05
-0.000122202
0.000183204
-1.84645e-05
-4.58198e-05
-0.000224903
-0.03829
0.00856713
0.0297229
-2.6277e-05
-0.000458507
0.000213776
-1.21827e-05
-0.000201593
0.000353738
-8.20112e-05
-0.000271726
-0.000509898
0.00029933
6.17216e-05
0.00022382
0.000265987
0.000124758
-0.000512072
0.00393423
-0.00342216
-0.000459966
-0.000418439
-0.000264908
-0.000122429
-3.40287e-05
0.000443458
-2.80656e-05
-0.000528129
0.000300467
0.000822101
-0.00220602
-0.00028197
-0.000544385
0.000826355
-0.000351775
-0.000536999
-5.52582e-05
-0.000117612
-0.000320942
-0.000415135
-0.00511619
-0.0032606
-0.000484855
3.24239e-08
0.000484822
-0.000226693
-0.000709159
0.000725348
-0.000493662
-0.000233603
0.000727265
-0.00861028
-0.0271914
-0.000140685
-0.000265788
0.000406473
-0.000128255
3.30853e-05
9.51702e-05
-0.000287184
0.000377931
0.00429623
0.00249711
-0.00045312
-5.31554e-05
0.000506275
-0.000390696
6.17211e-05
0.000129798
0.000253432
0.000505046
-0.000109796
-0.00039525
-0.00232776
-0.00196577
0.000475482
-0.00016753
0.000275218
0.00143501
0.00658854
0.00159951
-0.00277084
0.000790718
-0.000150443
-0.000389917
-0.000117275
-0.000706647
-0.00973485
6.74404e-05
0.00985836
-0.0305707
-0.00614922
0.025972
0.0424465
-0.0183685
-0.00211031
0.000402044
-0.000615078
0.000561878
0.00018752
-0.000131807
0.000427289
-0.00025758
0.000232823
8.99269e-05
-0.000360426
-0.000750973
0.000199335
0.000179045
0.000119081
-0.00107907
-9.25222e-05
1.09319e-05
8.15903e-05
-0.00468579
-0.000438383
0.00512418
-0.000215986
-0.000388822
6.37391e-05
-0.000444143
-0.0031772
0.0011887
-0.000451722
-0.000736979
0.000173785
-6.72948e-05
0.0341516
0.00768822
0.000498546
-0.000344981
-0.000422284
0.000303641
0.000118643
-0.00102538
0.000462689
-2.39008e-05
0.000138612
-0.00832632
0.00580541
0.000364476
0.0185539
-0.018052
-0.000501962
5.15806e-05
-0.000838733
-0.00190226
-0.000789469
3.12682e-05
0.000600589
-0.000101999
-0.000475273
0.000397185
7.80882e-05
-0.0145883
-0.000909634
0.0154979
-9.87055e-05
0.0002074
0.028114
0.00461085
-0.000799708
-0.000348476
-1.73064e-05
6.36723e-05
0.000140819
0.000533534
0.000190542
-0.000724075
0.000626961
0.000361996
0.000350263
0.00582626
-0.0107133
0.00488708
0.000104166
0.000360454
-1.75266e-05
-7.52538e-06
0.000187309
8.1704e-05
-0.000250816
-0.00146345
0.000545798
0.000917653
0.000570324
-0.000853942
0.000436511
0.000109851
0.000738997
-3.09728e-05
-0.000581701
-0.000148155
-0.00476794
0.00477467
7.61762e-05
-8.73846e-05
0.0049517
-0.00596708
-0.000811169
-4.54248e-05
-0.000191617
0.000237042
0.00699975
0.00123743
-0.00823719
0.00024342
5.80587e-05
-0.0149166
0.00230307
0.000503265
-0.000273867
-0.000229398
-0.000189361
0.000315717
-8.82676e-05
-0.000480204
0.000327714
-0.00446063
0.000625511
0.00383512
-0.000860596
-0.000526962
0.000925437
-0.0210521
0.0186287
0.000161898
-0.000184931
2.30337e-05
-0.0176074
0.0297438
-0.0121363
0.0127865
-0.0106903
-0.00209627
0.000134129
-0.00010862
0.00846557
-0.000266078
2.02834e-05
0.000756443
-0.000131936
0.0235279
0.00855498
-0.00908638
-2.14983e-05
5.98362e-05
-0.00123527
0.000646396
0.000588878
-4.23164e-05
-0.0011831
0.00122542
3.1511e-05
-7.12382e-05
0.000632972
-0.000558255
-7.47166e-05
0.00124706
-0.000891976
-0.000253052
-4.51247e-05
-0.000514085
0.000178863
0.000335222
-3.53218e-05
0.000149527
-0.000255023
0.000128691
0.000244396
-0.000259129
-0.00694758
-0.00844545
0.015393
-0.000966492
0.00113219
0.000899162
0.000402277
-0.0415724
0.0166
0.0249724
0.00312567
-0.00170737
-0.0014183
-0.000788763
0.000371925
0.00227044
-0.00732355
0.0050531
-0.031507
0.030946
0.000560929
-0.0445026
0.0319949
0.0125077
0.00065599
-0.000460511
0.000253702
-0.000747547
0.000493845
-0.000394835
-0.000280395
0.00067523
-3.9356e-05
0.000163338
-0.000123982
0.00743788
-0.00516744
0.0216994
-0.00314552
-0.000513518
0.000204049
0.00011368
-1.02574e-05
0.000166968
0.000218483
0.000369047
-0.000475594
-2.26082e-05
-0.000459893
-0.000321476
0.000781369
-0.000983889
-0.0010964
0.000174263
0.000555978
-0.00017911
0.0294015
-0.00308699
0.00245877
0.000690371
-0.00838844
-2.7598e-05
0.000118018
3.78417e-05
-0.000397909
0.000417684
-1.97745e-05
-0.00147364
-0.000409693
2.86953e-05
0.000380997
0.000166728
0.000254036
-0.000135179
-0.000118856
-0.0004672
-0.000889261
0.000790097
-8.26441e-05
-0.000106718
8.118e-05
2.5538e-05
0.00963967
-0.024032
-0.000132973
-0.000154155
0.000287128
0.000874388
-0.000779578
0.000108922
0.000120299
0.000195899
-0.000316198
-0.000445864
-6.3307e-05
0.000120997
-0.00032718
-0.00778225
0.0185108
-0.0107285
-0.00232548
0.00107296
0.000722808
-0.000459951
0.000284556
0.000140574
0.00113945
-0.000672264
0.000405835
0.000563052
0.0212539
-3.24213e-05
-0.00088255
0.000716575
0.000165975
-0.000173911
-0.000144929
-0.0193745
-0.00770464
0.000656579
-0.000513211
-0.000143368
-0.00049707
0.000219803
-0.00157663
0.000162366
-0.00036372
0.000201355
0.000262811
-0.000347736
-0.000331156
6.19642e-05
0.000269192
-0.000376814
-0.000550057
0.00155775
-0.000151023
-2.94477e-05
0.000472075
-5.07363e-05
8.90839e-05
0.000212894
-0.000377164
0.000303272
0.000456209
-0.00100627
0.0118938
0.00413457
-0.000246473
0.000246472
-0.000372947
0.000281837
9.11111e-05
-0.000719249
0.000116549
0.000230446
0.000279659
-0.00197024
0.000361832
-3.96115e-05
0.000156097
-0.0321524
-0.000326043
0.000105873
0.00022017
0.000376721
-0.000376721
0.0505299
-0.0308703
-0.000274616
-0.000195873
0.00162771
-0.000758098
-0.00086961
0.0136693
-0.00492389
0.000620557
-8.70233e-05
0.000445954
-0.000107149
0.000427242
-0.000418385
-0.000199469
-0.000155502
-0.000267521
0.000259255
8.26602e-06
-0.00115767
0.000719508
0.00263394
0.0113155
-0.0139494
-0.000603378
0.000716146
-0.000112769
0.00162351
-0.00175917
0.000135661
-0.000285894
-8.70538e-05
0.000384702
0.000780354
0.00115868
-0.00123578
0.000284377
0.000242596
-0.000526973
0.000317462
-0.000350173
3.27108e-05
0.000337358
0.000785016
-0.000357194
0.000156846
-0.000686649
0.000200306
0.000785146
-0.000339966
0.000527045
-0.000498379
0.0139261
0.0262771
0.000580216
-0.000948499
-0.000220552
-0.000196013
0.0416577
-0.0332442
-0.00841349
-0.000421891
-0.000292987
0.000283745
9.24215e-06
0.000165206
-0.000387927
0.000381949
-0.000381949
0.000600113
-0.000256541
-0.000917574
3.38538e-05
-0.000197688
0.00230865
-0.00115317
-0.00115548
0.000301793
-1.05432e-05
-9.49139e-05
-0.000218442
-0.00016081
0.000498839
-0.00024673
-0.000152149
5.32067e-05
-0.0212067
-0.000317327
0.000415353
0.000402931
-6.0351e-05
-0.00034258
-0.000201366
8.86149e-05
-6.49187e-05
6.42132e-05
0.000185871
-9.60818e-05
-8.97889e-05
-0.000307164
-0.000416167
-0.00039208
0.000445851
0.00032518
-0.000226578
-9.86025e-05
-6.1565e-05
-0.00032967
0.000391235
-1.71275e-05
-0.000491442
0.000508569
-0.0016613
0.000944187
0.0026052
-0.000900873
-0.00170432
0.00119169
0.00022597
-0.000227144
-5.13572e-05
0.000285474
0.00113209
-0.00100639
-0.000143503
0.000112159
3.13446e-05
-3.32533e-05
-0.000423678
-5.8487e-06
-0.00242463
-0.000921418
0.00278583
-0.00323727
0.00522245
-0.00220227
0.000289476
-0.00153755
0.000615886
0.000921662
-3.0044e-05
0.000310945
-0.000280901
-0.000328529
-0.000156403
0.000122058
4.25507e-05
-0.00483767
0.00424568
0.000591994
0.000191812
-0.000123176
-0.00102047
0.00118491
-0.000903607
-1.64475e-05
-0.000504471
0.00120213
-0.0103618
-0.0141902
0.000449564
-5.47393e-05
-0.000478951
0.000115447
0.000302931
-0.000194802
-0.000108129
-0.00756876
-0.00817403
0.0157428
-0.000287096
-0.000326679
-0.000155314
-0.00110757
-0.00387934
0.00498691
-0.00137937
-0.00364014
0.000191079
0.000129918
-0.000320997
0.0258174
0.00538262
-0.0312
9.31775e-05
-0.00011956
2.63822e-05
-0.00128696
-0.00111752
-7.44744e-06
-0.00620285
-0.00212347
0.000259172
-0.000320737
0.000389094
-0.000315045
-7.4049e-05
0.00154859
0.000500477
-0.00204907
0.0195761
0.000192766
6.43143e-05
-9.52729e-05
-2.83444e-05
0.000123617
-7.69348e-05
-0.000354442
-0.00023073
6.99197e-05
-0.00767039
0.00508227
-0.0208633
-5.48164e-06
1.12004e-05
-0.000114661
-0.00287594
0.00117572
-0.00101501
-0.000220265
-0.00362748
0.000120764
-0.000319174
-2.83054e-05
0.000486046
-0.000526479
0.000283749
0.000203588
-0.000284475
0.000532102
-0.000503396
-2.87059e-05
7.68343e-05
-0.000382231
0.000305396
-0.00836204
0.00600439
0.00235765
-0.00403374
-0.000340436
0.000361065
-2.06293e-05
-0.000946231
0.000857756
-5.93557e-05
-0.000532545
-9.83988e-05
-2.98567e-05
-0.000252713
0.000333664
-8.0951e-05
-0.000359224
0.000569787
-0.000210563
0.0057648
-0.00493803
-0.000826768
0.000113215
-8.2956e-05
-4.24792e-05
0.00029697
-7.41943e-06
0.000292229
0.00113157
-0.000460787
0.000341237
0.0134057
-0.00682346
0.000616146
-0.000564565
-0.000944187
0.000421742
0.000522444
7.88503e-05
0.000367554
-0.000326048
-4.72601e-05
-0.00186811
-0.000317922
-0.000106457
-0.000154657
8.03403e-05
-0.00299738
-0.0364445
0.0364445
-8.54123e-05
5.45084e-05
3.09039e-05
-3.78723e-05
-0.000178024
0.00127529
-0.00109726
0.00328789
0.00247691
0.0114408
-0.0014726
0.0141533
-0.0147178
-0.000603215
-0.000531458
-0.000305771
0.000119472
-1.90863e-05
0.000144298
0.00103274
-0.000593859
-0.000438884
-2.56828e-05
-0.000109498
0.00114628
0.000391409
-0.000244774
-0.000146635
8.16032e-05
-1.94994e-05
-6.21037e-05
-1.34488e-05
-0.000136094
0.000395156
-0.00142054
-6.56954e-05
-7.77885e-05
5.26841e-05
0.000104584
-7.7169e-05
0.0274521
-0.000912371
0.00144849
-0.000257379
-0.00119111
0.00496766
0.00458278
-0.00955044
6.81314e-05
-4.91336e-05
-0.000366822
0.000243349
-0.000160225
-4.51389e-06
-0.000460487
0.000586004
-0.000125517
8.39465e-05
7.24727e-05
-2.73437e-05
0.000100958
7.80746e-06
-0.000108765
4.24938e-05
-0.000157973
-0.0299649
0.00891281
-0.00608336
0.0341973
-0.000135374
0.000108375
-0.00126604
0.000989048
0.000276991
-0.00176121
-0.000147564
-0.000354718
0.000502282
-0.00130869
-0.000171695
-0.00125076
-0.000165235
0.000417835
-6.14396e-05
0.000418747
-0.000256382
-0.00166987
-0.0108702
0.01254
-0.00231316
0.00577134
-0.00345818
-1.51273e-05
0.000228903
-0.000655179
0.000498935
-0.000638055
0.000113643
0.000524412
0.000188349
-9.73459e-05
0.00104084
-0.000766135
-0.00706971
-0.009376
0.000245059
0.000258205
-0.00650935
0.000407103
0.0239068
0.000609833
0.000588267
0.000227381
-0.00317955
0.0252132
-0.00166867
0.000825768
-8.53686e-05
2.26876e-05
-0.000307417
-0.000323273
0.000595595
-0.000164356
-0.000355894
4.47346e-05
-0.000361908
-0.00157819
-0.00133961
0.0029178
-5.4885e-05
3.57404e-05
-0.000128014
-0.00027109
0.000417941
-0.00014685
0.000287615
6.42286e-05
-0.003706
-0.00328431
0.000255532
0.000106269
-0.000548081
-0.00269379
-0.0107595
0.0232784
-0.0125189
5.4044e-05
0.000131826
-0.00034592
0.00033501
-0.000494882
0.00181821
-0.00119176
-0.000749783
0.000967813
0.000126906
0.000118603
-0.000135958
-0.000105728
0.000241686
-0.0106226
0.00491129
-0.00601886
0.0215437
-0.000137991
-6.32735e-05
0.000499002
-0.000362961
-0.000136041
0.000115234
-0.00020507
8.98362e-05
0.000400544
0.00206885
-0.00327391
-0.00242762
0.000194323
0.00130456
-0.000544839
-0.029374
0.00404331
-0.000542309
0.00173128
-0.00062035
-0.00256052
0.000295271
-0.000299836
0.00057808
-0.000336358
0.0348092
-7.92599e-05
0.000206166
0.00112288
0.00114416
-0.00164556
0.000501399
-0.00823141
0.000198483
0.00803292
0.000215902
7.49548e-05
2.27833e-05
-0.000328206
0.0107504
0.00663303
-0.000604589
-0.0012126
0.0117221
-0.000121748
0.000260219
-9.65711e-05
6.4555e-05
-0.000273766
0.00125939
-0.000305613
0.000461428
-0.000155815
-0.000213575
-2.63292e-05
-0.000326572
0.0399951
-0.0399951
6.56226e-05
-0.000457703
-0.00289162
-0.001569
-0.000135219
-0.000106213
0.000241431
-2.99427e-05
9.96219e-05
-7.57279e-05
0.000169348
-9.36203e-05
0.00036988
0.000352928
-4.56597e-05
5.7836e-05
-0.00354792
0.000982451
0.000529844
-0.0217532
0.015862
0.038864
-0.0337124
-0.00515162
0.00672212
0.0394432
-0.0461653
-0.00135512
-0.0212418
0.0180622
0.00249839
5.51631e-05
0.000317503
-0.000585129
-4.80121e-05
-0.000542574
-0.000264862
0.00055506
-0.000386246
-0.00398244
0.0018046
0.000192935
0.00010634
-3.29905e-05
-7.37274e-05
0.00630782
-0.00220343
0.000593266
-0.0093738
-0.0197696
-0.000117696
0.000129887
-1.21914e-05
-0.00138476
0.000883594
7.61114e-05
-0.000119739
-0.00166288
-5.73882e-06
0.000105266
-0.00018762
0.000152298
0.00104332
0.000645879
-0.000150049
-0.000277655
0.00379894
-0.00108214
0.000365466
0.000716671
0.00031529
-0.000410455
9.51658e-05
0.0281274
0.0107367
0.00046174
-0.000144067
0.000359946
-0.000283112
-0.00507613
0.0109229
-0.000482103
0.000382662
-0.0305534
0.0328077
-0.00225432
-0.000222083
0.000386724
-0.0178561
-0.0266465
-0.000125017
-2.2982e-05
0.00482431
-0.0202481
0.000146994
5.87339e-05
0.000160089
-0.000218823
0.00735288
0.00840311
-0.00118791
0.00106202
1.10479e-06
-0.000179343
0.000178238
-0.0160596
-5.7773e-05
0.000176376
0.0375652
-0.0111384
-0.0264268
0.000218284
0.000114473
0.000175426
2.48943e-05
-0.00052917
-0.000426484
0.0004512
-0.000245029
0.0330475
7.5439e-05
0.000517199
0.000159234
8.02126e-05
0.0286785
0.000367776
-0.000610339
-0.000333847
-0.000304949
0.000265483
-0.000415561
0.000280965
0.000134146
-0.00194295
-6.29891e-06
0.00194925
-0.0207073
-0.0120484
-9.0595e-05
-0.000265877
0.000415485
-0.000490993
-0.000417908
-0.000107067
-0.000264014
0.000371082
0.000363299
-0.000192787
0.000379809
-0.000304712
0.000108903
-0.000108828
0.000208209
-9.93811e-05
-0.000192284
-0.000131915
-0.000641282
0.00120885
-0.000567567
1.6529e-05
0.00101241
0.012854
0.00150964
0.000284635
-3.92207e-05
-0.000245415
-0.000147527
5.52367e-05
0.000331952
-0.000222431
0.000337678
-6.31709e-05
-2.67812e-05
-0.000132064
-1.1439e-05
-4.15857e-05
-0.000676514
0.00103991
0.0174958
-0.00326564
0.00194512
-0.000242229
0.0004296
4.20939e-05
-0.000123057
-0.00761394
-0.00060054
-0.000549215
0.00037742
1.07646e-05
-0.000174372
0.000233106
6.66248e-05
0.00193615
-0.0140025
-0.000407502
7.12378e-05
0.000336264
-0.00266984
-0.0011352
-0.000364334
0.00149954
-0.000192977
-0.000252081
0.000445058
-0.000874846
0.000433333
0.00496612
-0.00525624
-0.00692739
-0.000302104
0.0126776
0.00295708
-0.0156347
0.000261067
-0.000305102
4.40341e-05
0.000128095
-0.00021238
-0.00216033
-0.000310208
0.000890424
-0.0147712
-0.000259683
0.000215087
0.00112135
-0.000315628
-0.000805725
0.00938021
0.0306149
2.70556e-06
-0.000434426
2.60717e-05
0.000216697
0.000698057
-0.00016329
0.000188354
0.0120531
-0.0283405
-0.000167048
2.04803e-05
0.000146568
0.0132393
8.09938e-05
-0.000442369
0.000361376
0.000369574
0.000286613
-0.000656187
0.000275093
-0.000213371
-0.000241284
0.000718802
-9.43069e-05
0.00261503
-0.0175343
-0.000240063
-0.000206375
0.000812743
0.000159521
-0.000972264
0.00581663
0.00483237
-0.010649
-0.0184288
0.0543325
-0.0359038
0.000323738
-0.000367088
0.000137416
-0.000105362
-0.000369911
-0.000484177
-5.93004e-05
0.00316816
-0.000223354
-0.000498571
-0.000684212
0.00165728
0.0010901
-0.00191936
0.000829254
-0.000270077
0.000629343
-0.000359266
-9.7632e-06
0.000741772
0.0139812
-0.0135668
3.02234e-05
0.000169067
0.000587366
-6.61236e-05
0.000734123
0.000802615
0.000176946
1.17919e-05
0.000158285
0.00716784
0.000222283
-0.000222283
0.000357216
-0.000320173
-3.70426e-05
-0.000366468
0.000471638
1.18368e-05
6.53215e-05
2.46306e-05
-0.000274173
0.013472
0.000120703
-0.0135927
0.000901257
-0.000620044
-0.000322594
0.000385566
-6.29716e-05
0.00030404
-0.000398713
0.00360356
3.70211e-05
0.000102338
0.000529693
0.000126887
0.000864629
-0.00125443
1.0746e-05
-0.03829
-8.6969e-05
0.000124907
-0.000368965
0.0390235
0.000968216
-0.00158717
-0.0130549
-0.0201893
0.000291811
0.000254503
-0.000291369
0.000339242
-4.78726e-05
-0.000301564
-0.00166867
-0.000403905
9.67924e-05
-0.000132008
3.56548e-05
9.63534e-05
-7.9754e-05
1.83374e-05
6.14168e-05
0.0245292
-0.0258045
0.00127525
0.000777735
-0.000685699
0.000559158
0.000162234
-8.47451e-05
-7.32395e-06
9.25155e-05
0.0251826
0.0188174
3.2012e-05
9.61704e-05
-0.000116009
0.000247553
-0.000156024
-9.1528e-05
-0.000114769
-0.000178218
-8.42582e-05
0.000473608
-0.00560676
0.0275848
-0.00061177
0.00821381
-3.67517e-06
-8.15165e-05
-0.000311154
0.000339996
-2.8842e-05
-0.000100914
8.12842e-05
0.000108167
-0.00403413
0.00387259
0.000493926
3.81758e-05
0.000253179
-1.20743e-05
-0.000241104
-0.000200905
0.000249811
-0.0149659
0.000377653
-0.000281131
-6.00095e-05
0.000341141
-0.0103654
0.000671579
-0.0035632
-0.00228802
0.000301119
-0.000434068
0.00019703
-0.000112874
0.00262773
-0.00105393
7.24413e-05
0.00098149
0.000244644
-0.000244644
-0.00110013
0.000265487
-0.000770498
0.0316429
-0.00560353
0.000745042
-0.000943516
-5.44901e-05
-9.32127e-05
0.00279567
-9.67998e-05
0.000206694
-0.00768856
-0.0274323
-0.00187887
-1.73399e-05
0.00189621
-0.000234396
0.000190491
4.39048e-05
0.000260309
-0.000854351
0.000288573
-0.000318617
0.0435326
8.73849e-05
0.0189629
0.00369335
-0.000454573
0.000197949
0.000256624
-0.0102293
0.00158717
9.94622e-05
-0.000434214
1.67518e-05
-0.0182658
9.2202e-05
-0.000119235
4.53435e-05
0.000185459
-0.000185988
0.000438749
0.000140461
0.000234004
0.000379259
-0.000258222
0.00014856
-0.000417252
0.000268692
0.000460455
-0.00121358
0.000156224
6.95422e-05
-0.000628522
0.000595349
-0.000144234
0.00066001
0.000330765
-0.000508758
0.000337148
-6.46336e-05
0.0277242
0.0119819
-0.00388822
-0.00126206
0.00515028
-0.00122646
0.00103401
0.000705377
0.000478631
0.000605137
0.00103857
-0.000667886
0.0331269
-0.00105273
0.000408622
-0.000154901
-0.000253721
0.013164
-0.000160017
-0.000176386
0.00209195
0.000216703
0.000390264
-0.00964905
-0.0267954
-0.000324702
-0.000332008
8.82376e-05
-7.02414e-05
-1.79961e-05
-0.00807684
-0.000280884
-6.22693e-05
0.0117001
-0.0118223
0.000122202
-0.000674753
0.000132179
-0.00344393
0.00565486
0.000608082
-0.00151152
-3.87528e-05
0.000977266
1.7959e-05
2.16359e-05
-0.00223214
0.00681492
-0.000601052
0.000810594
-0.000818744
0.00162591
0.000862415
-0.000504308
0.0163322
-0.000397006
0.0068273
0.0054214
-0.000347367
0.000310599
-0.0377252
0.0143134
0.0234118
-0.000118774
-0.000122133
0.000240907
0.00010509
0.000275431
-0.000303032
-0.00014342
0.000624443
-0.000930922
-0.0003703
0.00130122
-0.000238848
-0.000549915
0.000138827
-0.000370256
0.000214339
0.000212827
-0.000114414
4.03614e-05
-0.000359836
4.51573e-05
0.000116906
-0.000416303
-0.000136447
4.90612e-05
2.87314e-05
0.000206554
-0.000246533
-0.000146756
-0.000267275
0.00144008
-0.000941055
-0.00049902
8.47124e-05
-1.873e-05
-6.59822e-05
-0.0161646
-0.00472713
5.5929e-05
-0.000245355
0.00221891
-0.0254427
0.0381182
-0.0126754
0.000123198
7.47501e-05
1.63383e-05
-0.000476222
0.000459883
5.63265e-05
9.02879e-05
-0.0240147
-0.000900516
-0.0326129
0.000164668
-0.000267909
0.000103241
-0.000103215
6.16001e-05
-8.82577e-05
0.000320362
3.80483e-05
0.00944519
-0.000890218
-0.000131849
3.60397e-05
0.01064
-0.024134
0.000297841
0.0177034
0.00188114
-0.000707192
0.00020999
0.000497201
0.000234635
0.000212735
-0.000279749
-0.00299668
0.00248461
-0.000125712
-0.000211096
0.000336808
-0.000265247
0.000143871
-0.000117966
-6.56654e-05
-0.000283371
0.000335428
-5.20571e-05
-0.0332819
0.0103542
2.21987e-05
-0.00019171
0.000226698
0.000209813
-0.000248273
8.26381e-07
-0.00075409
0.000770428
-0.0117158
-5.07487e-05
5.07486e-05
-0.00124121
0.00522454
-0.00422172
-0.00100283
-6.35111e-05
9.81011e-05
-3.45901e-05
-0.000360241
0.000379012
0.000627971
-0.000310469
-3.37584e-05
-0.000154218
-0.000292701
-0.00312898
0.000146796
0.00298219
-0.00070296
-0.000112243
-0.00408446
0.0163605
0.00184803
-0.000903843
-1.59154e-05
0.0041084
0.000242734
0.00380963
-0.00154921
-0.00226042
0.000672357
-4.41509e-05
-0.000297345
9.644e-05
-0.00153433
0.000376665
0.000100018
0.000561402
-0.00218641
-0.00770188
0.00988829
0.00458059
-0.00129232
-0.00328827
0.000190208
-0.000494655
0.00029661
0.000198044
-0.000254006
-0.000172489
0.000227346
0.000527291
-0.00032811
-0.000199181
1.73915e-05
-0.0362538
0.0186463
-0.00029477
-9.40011e-05
-1.18566e-05
-0.000240184
-0.00038573
-0.000200641
8.66958e-05
0.000113945
0.000432105
0.000249568
-5.59911e-05
-0.000193577
0.000262169
0.000109484
-0.000714832
0.000597125
0.000183631
-0.000167709
-1.59223e-05
7.69233e-05
-0.000111506
5.88774e-05
-0.000610124
0.000551246
0.000284189
-0.000132685
-0.000151504
0.00128347
-0.00215583
0.00087236
0.0209643
-0.00108189
-0.000971314
0.000482983
0.000106673
-3.98244e-05
0.00653651
-5.54039e-05
-0.000285032
0.0317375
-0.0170358
-0.00230032
0.000791463
-0.00219347
-0.00318969
0.000711733
0.00174704
-0.0263076
0.00804181
-0.0213984
-0.0010544
0.0224528
-0.0027569
0.00203576
-0.000294328
0.000417467
0.016134
-0.0313506
0.0152166
0.002285
0.000340142
-0.000229046
-0.000789734
5.50377e-05
0.000257013
8.76675e-06
-0.00026578
0.000333401
-0.000894222
0.00056082
0.000282617
0.0272204
0.000345039
0.000478228
0.000116266
-6.06318e-05
-0.00159475
0.00138665
0.00116751
7.47125e-05
0.000919229
-0.00023878
-0.000680449
0.00117719
-0.000139196
-0.000338372
-0.00192956
0.00256343
-0.000633877
0.000664727
-0.000899042
0.00164647
-0.0004826
0.000150457
0.000148601
0.000118501
0.000205974
-0.00096165
0.000962824
-0.00272403
-0.000392761
-2.38047e-05
-0.000165835
0.000469875
-4.88572e-05
0.000119506
-0.00145392
-0.00241307
0.0329763
-0.0168422
-0.000160199
0.00210994
-0.000153591
0.000367744
-0.000361831
0.000364293
-0.0111146
0.0187114
-0.0168287
-0.00188263
0.000813458
-0.000296608
-6.89022e-05
-0.000272261
0.000341162
0.00169052
-0.000242037
-0.000103404
0.000577062
-0.0065526
0.00114866
0.00540395
0.0322161
-0.00639865
-8.26666e-05
-9.86299e-05
4.06524e-05
5.79776e-05
-0.000142867
0.000142867
-0.00039927
0.00017788
-6.96494e-05
-0.000215282
0.000232606
-0.00040821
0.000278594
-0.00014802
-0.000209551
-0.000803664
0.00173536
-0.000931701
0.00281808
-0.00550197
-0.000394275
-0.00015494
7.81249e-05
9.81624e-05
-0.00062171
-0.000138179
0.000111072
6.47102e-05
-0.000681995
-0.000369495
0.000423714
-0.000208117
-0.000109931
0.000144984
-6.02146e-05
-3.84154e-05
-0.00202227
-6.78211e-05
-0.00183721
0.00474865
-0.00291144
0.00014445
-0.000948813
-0.000271338
0.000708574
0.000837869
0.000143352
-0.00018502
7.00513e-05
-7.00513e-05
-0.00860371
0.0098055
-0.00120179
-0.00037829
0.000142985
-4.19549e-05
9.38777e-05
-0.000836344
0.00114169
-0.000305344
-5.68199e-05
-0.000471227
-0.000252946
-0.000192917
-0.00104972
-0.000192422
0.000217748
0.000361204
-0.000821097
-0.000448357
0.00060738
-0.000880891
0.00124272
-0.000230962
0.000230962
-0.0242284
0.0199323
-0.00227969
0.00417713
-8.3861e-05
0.000173788
-0.00969043
0.0227167
-0.000444685
-5.88549e-05
7.01778e-05
-5.84901e-06
-6.43289e-05
0.00227888
-0.000621606
0.000248681
-0.000248681
0.00181816
0.00231858
0.000612873
-0.000250319
0.0101346
-0.000206274
-0.000248299
-0.000116471
0.00030082
-0.000543676
0.000368094
0.000175582
-7.37074e-05
-0.00037439
-0.000487217
-0.000489044
2.64477e-05
-2.64479e-05
6.30166e-05
-0.000204267
9.71026e-05
0.000107164
-0.000996364
0.000424096
-0.000204781
-6.30947e-05
-0.000918797
0.00709041
-0.0056554
-0.00371883
0.00472255
-0.000569421
0.000240055
0.000329366
0.000621572
-0.000738224
0.000116652
0.000327696
0.000557165
-6.60875e-05
-6.53039e-05
0.0144185
-0.000389552
0.000388901
-0.000292029
0.000412328
0.000581265
-0.00566331
-0.000137776
-0.000380995
1.21412e-05
0.0010206
-0.000299718
-0.000226761
-0.00136396
0.000671897
0.00168683
0.00104159
0.000511293
-0.000561169
0.000229826
0.000305949
-0.000535775
0.00944784
-0.0012557
-0.00145973
0.00141741
-0.0279944
0.032949
-0.000243221
-0.000270296
0.00355212
0.0131499
0.00131414
0.000185361
-0.00590942
0.00229519
0.00361423
-0.000220987
-0.000348434
0.000517514
-0.000280641
0.000383638
-0.000102997
0.00139613
-0.00145923
0.000119498
-0.00046933
0.000252652
-0.000237632
0.00011082
0.000126812
-2.81606e-05
-0.000234198
0.000757693
0.00288623
-0.00364393
0.00340246
0.00129983
0.0235664
-0.024043
-0.000349513
0.0204777
-0.00602859
-0.0144491
-0.0015904
0.00149764
-0.000349979
0.000532181
0.0228213
-0.0115199
-0.0113014
-0.0019962
0.00095032
0.00104588
0.000264998
-0.000158763
0.000913014
0.00314906
-2.12532e-05
0.021478
0.0116489
0.00434894
-0.00338612
0.000158735
4.23097e-05
0.00084418
0.000656529
-0.00150071
-9.18714e-05
6.26702e-05
-0.000106299
-9.43415e-05
-0.000288144
0.000423192
-0.000176714
0.000304954
0.000183058
0.000332283
-0.000515341
-0.000222932
0.000452758
0.00426102
0.00300473
-0.000161278
-8.72176e-06
0.00017
-0.0188922
-0.0164235
-0.000259815
-0.000234839
-0.0028587
0.00867051
-0.00581181
-0.000180591
0.00208376
-0.00032295
0.000293306
0.000185439
-0.000524423
0.00488476
0.0148899
-0.000600287
0.00147859
-0.000878304
-0.000713466
0.00159706
-0.000150493
-7.2713e-06
9.95493e-06
8.78534e-05
-9.78083e-05
-0.000508308
-0.00145509
0.00359889
0.0022142
0.0333509
-0.00341258
-0.00545347
0.000619553
-0.000945861
0.000326309
-0.000504136
0.00041038
-0.000692719
-0.00118407
0.00187679
-0.000234629
-0.000309047
-0.0035227
-0.00171316
0.00139587
-0.00280606
0.00141019
0.000552401
0.00148661
-0.00368589
0.00302109
0.000664808
0.000380451
2.24798e-05
-0.000161474
0.000776706
-0.000615232
0.00022383
-0.000291708
6.78782e-05
-0.0130897
-0.000679455
-0.000443138
0.000343473
0.00177011
-0.00061198
0.000395993
0.00127084
-0.00369548
-0.00125162
-0.000285924
0.00139689
-0.00128387
-0.000113021
0.00179112
0.0107636
-0.0125547
-0.000656764
-0.00645714
-0.000155414
0.000404995
-0.000617748
9.47135e-05
-4.41971e-06
-9.02937e-05
4.8419e-05
-0.00332114
0.0011229
0.000170737
-1.72432e-05
0.000675941
0.0105373
-0.00450278
-0.00216133
0.00666411
0.00113609
0.0179932
7.91002e-05
3.71661e-05
4.5546e-05
-0.000148422
0.000491495
-0.00044676
0.00019648
0.000146689
-0.000343169
-0.000160177
-0.000175871
-0.000295764
0.00201691
0.000750973
-0.000731035
-1.99377e-05
-0.000219473
0.000298467
-4.22568e-06
0.000120479
-0.0224287
-0.0194289
-0.0002834
0.000177672
0.0334109
-0.000949344
4.06098e-05
8.45626e-05
-0.000646735
0.0012434
-6.22671e-05
0.000145572
5.46812e-05
-0.000332107
-0.00113381
-0.000667286
0.000107662
0.0043838
0.00206532
0.00605926
0.0124515
-0.000472006
0.000287829
0.000184176
-0.00524144
0.00440491
0.000836533
-1.06678e-05
0.00020666
-0.000247241
-0.000299865
0.000189663
0.000110202
0.000250686
-0.000549175
-0.0124348
-0.0223238
0.000206192
-0.000154253
-5.19387e-05
-0.00017177
-0.000596881
0.000133359
-0.00424358
-0.0234877
-0.0159291
0.000872283
-0.000163787
-0.00103384
-0.000447591
0.000750485
0.0330632
0.0174667
-0.000611175
0.000483968
0.000127207
-0.000410479
0.000237527
0.000113396
0.00109024
5.64095e-05
0.000330006
-3.86099e-05
-0.00022857
-0.000223607
-2.6754e-05
0.00025036
-0.000191963
0.000210714
0.00359261
-0.00011026
0.000181571
0.000117701
-4.93195e-06
-0.000112769
0.00067847
-0.000604294
-7.41762e-05
-0.00227316
-0.000818026
0.00133037
-0.00272374
-0.00944563
0.0121694
0.0054949
-2.35984e-05
-0.00119803
-0.000768286
0.00927426
0.0267158
-0.0118098
0.0291552
0.000483988
0.000265049
-0.000196097
0.0241064
-0.000427128
0.000290359
0.000357683
-0.000166604
0.000197349
3.71079e-05
-0.000234457
0.00727928
-0.00894915
-0.000422717
0.000123263
0.000299453
0.000103607
-0.00036648
5.42107e-05
0.00101616
-0.000734049
-0.000282107
-0.000173531
-0.000454066
0.000627597
-0.000126913
0.00216379
0.00149811
-0.00216735
0.00189038
-0.00993848
-0.00350296
0.000373976
-0.00133909
-0.00114255
0.00659302
-0.00668591
-7.47355e-05
-1.0633e-05
0.000413648
-0.00040957
0.000486612
0.000715516
0.000496518
-0.00253224
-0.000660857
0.00274442
0.000776918
-0.000158806
-0.000618112
0.000219955
-0.000328635
-0.000150847
-0.000398938
0.000549785
-0.000189485
-0.000833453
-0.000316012
0.00114947
8.4119e-05
-0.000517493
0.000208778
0.0110025
-0.000124573
0.000153693
-0.00734388
0.00768996
-5.23503e-05
0.000156573
-0.000104223
-0.000638282
0.000630921
0.000618278
-0.00045837
0.000118623
8.75686e-05
0.00119202
-8.07989e-05
0.000402791
-0.000934863
0.000191055
1.24091e-05
5.77687e-05
0.0185573
-0.000340698
0.0162068
-0.0114322
-0.00221843
0.00170995
0.000508474
3.61165e-05
-0.00018541
-0.000480439
8.97427e-05
-0.00229393
-0.0017817
-0.0249579
-0.000491563
-3.03251e-05
0.000521889
9.96418e-06
-0.00593814
0.000296114
-0.000265721
-3.03924e-05
-0.00263235
0.000522038
0.000398431
0.01336
-0.000266366
-0.000685621
9.58973e-05
-0.000370402
0.000360542
-0.000275033
1.98671e-05
-6.75244e-05
-0.0446006
0.0212275
0.0233731
1.54746e-06
-0.000294821
-2.60163e-05
0.00168609
0.00271882
0.000983956
-0.00207782
-0.000301429
0.000301429
1.92999e-05
6.89377e-05
-0.000543605
1.49931e-05
-0.000147666
0.000132673
0.0370155
-0.0370155
-0.000686697
9.28386e-05
0.000491272
0.000125722
0.000195575
9.54589e-05
6.47086e-05
-0.000160168
-0.000424067
0.000844037
0.00112983
-0.000231519
-0.000458089
-0.000952791
0.000121156
-5.34614e-05
0.00780494
0.0338775
6.14503e-05
8.27224e-05
0.000189065
-0.000271788
8.33753e-05
0.000266504
-0.000428447
0.000688695
-0.013384
-0.00760273
0.0209867
0.00108392
-0.000271176
-0.000673128
0.000185912
-0.000503252
-9.35054e-05
2.14802e-05
7.2025e-05
-0.000323834
0.00314375
-0.000570824
-0.00176266
6.72952e-05
-0.00244501
0.0072674
-0.00482238
8.41326e-05
1.05809e-05
0.0004392
-0.0001174
0.000934673
0.000195159
-0.00624846
-0.0241048
5.1499e-06
0.000153585
0.00586043
-0.00933498
0.000450227
-0.000120748
-0.0052266
0.00353773
0.00168887
-0.0260669
0.0247448
-0.000206737
-0.000248174
-0.000283971
-0.000694349
0.00097832
0.000218672
-7.54975e-05
-0.000143174
-0.0243812
0.025509
0.0250869
0.00213351
0.000292908
0.000206094
0.000243529
-3.4946e-05
-0.000117178
-0.000735716
0.00201372
-0.00257297
0.000944546
-0.0220952
-0.000454421
0.000209436
0.00110207
-0.000615455
-0.000327483
-0.000362668
0.00069015
-0.0109966
0.0290848
-0.00802652
-0.00012331
0.025625
-0.0211456
0.00010594
1.17616e-05
-0.0308371
0.00307425
0.000160761
0.000107335
0.000665832
-0.00097904
0.000912917
0.00035658
-0.000250707
0.000155099
4.25625e-05
-0.000197661
-0.000295865
-0.00074721
0.00120161
-9.95407e-05
0.00100888
-0.00108846
7.95786e-05
3.98018e-05
0.0144885
-0.00860654
-0.00038804
2.88155e-05
0.000101634
-0.000113869
-2.89995e-05
4.93209e-05
-2.53898e-05
-0.000149635
4.15215e-05
0.000212354
-0.000253876
0.00130275
-0.016275
-0.019756
-0.000202349
0.000487183
0.000108412
-6.7883e-05
0.000195491
-0.000127608
-9.22516e-07
-0.000279197
0.000116982
0.000162215
0.00846898
-0.000948662
0.000300024
-0.000300024
-0.0165387
0.000722762
-0.000471588
-6.01243e-05
-0.000335996
-0.00103235
-0.000902528
0.000515004
0.000387525
0.00290381
-0.00150794
0.000929493
-0.00049266
-0.000328322
-7.74998e-05
-0.000228639
9.95616e-05
0.000195281
0.00373034
-0.0154462
0.00706712
0.00837907
0.0346848
0.00816768
-0.0428525
0.00216725
-0.000534044
0.000549619
0.000499854
-3.81139e-05
0.000259649
0.000193568
-0.000156845
9.52279e-05
6.1617e-05
6.27267e-05
0.000123301
-0.0001233
-0.000317969
-0.000704639
0.00102261
9.73325e-05
0.000570522
8.24028e-05
0.0261947
-0.00936883
-0.00691961
0.00166879
0.00525082
-5.46342e-05
0.000170457
0.000373742
-0.000544199
-0.000131391
-2.98877e-05
0.00032196
3.91048e-05
-0.00143626
0.00142293
0.000128371
0.000239773
0.000965796
-0.000282681
0.000301758
-0.000332038
-0.000480992
0.000813031
0.0200644
0.0042095
-0.0230688
-0.000550541
-2.27415e-07
2.27697e-07
-4.18093e-05
-3.92761e-05
8.10856e-05
-0.000308145
-0.0139133
6.44044e-05
-0.000171058
7.331e-05
-0.000183016
-0.000448974
-3.31284e-05
-0.000163663
-7.36174e-05
-0.000180976
-3.05402e-05
-3.09836e-05
-0.000104312
0.000516793
-0.00153582
-0.000405656
0.00194148
0.0160097
-0.000231984
0.000152724
-0.00542602
0.0201761
0.00499332
0.00731268
-0.0101714
0.000426728
0.000540017
0.0170988
0.000223217
0.0117772
-0.000106325
-4.41679e-05
-0.000415031
-0.000120274
0.000535306
0.000969218
0.0259517
0.000302702
0.000576285
0.00433501
-0.0184053
0.0193526
0.000200369
-0.000188167
0.000288267
-0.000100101
0.00286941
-0.00176508
-0.0057838
0.0130631
-0.0227132
0.0242712
-0.00155806
-6.93275e-06
0.00157629
2.34333e-05
8.18546e-05
-0.0128828
0.0129917
0.000220376
-0.00120773
0.000822764
0.00111461
-0.000414932
0.00585702
-0.00739693
0.00918805
-0.000638263
0.000490699
0.000441734
-0.000104681
-7.73509e-05
-0.00519083
0.000557701
0.000508054
0.000233822
9.33875e-05
-0.00587823
0.000136603
0.00574163
0.000112528
-0.000452718
0.00034019
0.000101791
-4.97152e-05
-5.20763e-05
0.000681124
-0.000119246
1.84918e-05
-0.000301863
-0.000284379
6.30076e-05
3.87838e-05
-9.25222e-05
0.000537215
-0.000574801
-0.000387771
-0.000853443
-0.00131043
0.00113241
0.0243384
-0.0305869
0.0193005
-0.0256014
-0.00147265
-0.00245986
0.000327073
4.21012e-05
-0.00220789
-0.0159776
0.0181855
0.000437288
0.000308225
0.000151162
-0.000246731
9.55693e-05
0.00710421
-0.003072
-0.0232935
-0.00027502
-7.02818e-05
0.000143996
-0.0294352
0.0110106
-8.43225e-05
-7.76204e-05
-0.0166131
-0.0119531
0.0285662
-0.000777513
-0.00163669
0.000359724
-0.000531851
0.00489655
-0.00824498
0.00334843
-0.00372688
-0.00120231
0.00492919
-0.00590868
0.000181783
6.53037e-05
0.000553802
-0.00491837
-0.000991054
-0.000168612
0.000381347
-6.48772e-05
0.000258864
-0.000145164
0.000274879
0.00285757
0.0131672
-0.0160248
-9.66254e-05
0.000178054
-8.14285e-05
0.000222239
-0.000289924
0.000804539
0.00182196
1.51404e-05
0.00010548
0.000307653
8.16032e-05
-0.0473572
0.029633
0.0177243
0.000183205
-0.000151232
0.000226223
0.000432761
0.00174617
-0.000470887
-7.99213e-05
-4.82874e-05
-0.000580234
0.00010739
-5.63095e-05
0.00236673
-0.00346668
0.000261187
-0.000303666
0.000346371
-0.000471888
-0.00107016
0.00061019
6.36727e-05
-4.72345e-05
0.00345236
-0.000108167
-0.000118447
-0.000627496
-0.00485531
0.0048394
0.000289182
0.0136363
-0.000377553
-0.000289734
-0.00842348
0.0122249
5.80148e-05
0.000272166
0.00121456
-0.00251969
4.98745e-06
-0.000138489
0.000133066
-0.00037784
0.000178995
-0.000108121
0.000855559
0.000248147
0.00111813
0.00548164
0.000523114
0.000112925
6.60121e-05
-0.000130462
-6.49489e-05
-0.000224597
0.000149278
7.53194e-05
-0.000400264
0.000161743
0.000435205
-0.00022398
-0.00044292
0.000224478
-0.000266109
0.00154644
-0.000936658
3.96303e-05
-0.00043754
5.80677e-05
-0.000110418
-0.00759124
0.000521335
-0.000174247
-0.000347088
-0.000150893
-0.000154208
0.0322338
-0.00029997
0.000497713
0.000407355
-7.98129e-05
-0.000327542
-0.000386868
0.000369741
9.00719e-06
-0.000365516
0.000356508
7.29518e-06
-0.00148396
0.000146181
-0.0315936
0.000883282
0.0246419
0.000141011
-0.000153194
-0.00971549
0.000143172
0.0279348
0.00264285
-0.0305777
0.00768689
0.0048868
-0.0389019
-0.00651004
0.000356541
-0.000391773
3.52313e-05
0.000163662
-0.000251432
8.77702e-05
0.0095524
-0.00199231
0.00457967
-0.000373433
-2.4195e-05
0.000197202
0.00653192
0.00778362
-0.0143155
-0.000193028
0.00811957
-6.53268e-05
0.000198098
0.0012106
0.000835172
0.00107811
-0.000651584
-5.42004e-05
-6.41098e-05
-8.93575e-05
-0.0026936
0.00155677
0.00113683
-0.0166028
0.00278723
0.000149819
-0.00293704
0.000449777
0.000128303
-0.00032178
0.000125369
0.000204762
-6.14095e-05
-0.00023921
5.10435e-05
-0.000285647
-0.000923564
0.00120921
-0.000100567
-0.00025781
0.000998155
-0.00028158
-0.000259955
0.000274765
1.70265e-05
4.13481e-05
-0.0044517
-0.0109945
0.000254578
8.62288e-05
-0.000340807
0.000157276
-3.01551e-05
0.000227505
5.04163e-05
-0.000222186
-0.0108675
0.00900383
0.0278917
-0.0269864
-0.000905342
0.000103919
-9.33874e-05
0.00292539
0.00023827
-4.08587e-05
-0.00105128
0.000129847
0.000164425
0.00886729
-0.0196387
0.0107714
0.0032456
0.000272484
-0.000261719
0.000347206
5.40572e-05
-0.000275298
0.000559675
-0.000311162
0.00375101
-0.00125172
0.00899865
-0.0150855
0.0060869
-0.00104747
-0.00587214
0.00116047
-0.000278979
-0.00290431
0.000711125
0.000211211
-0.00021121
0.000315483
7.69047e-05
0.000119552
-0.00614194
-0.0044955
-0.00639948
0.000326715
7.18359e-05
-0.000254388
-0.000156068
-0.000899168
-6.76181e-05
-0.0263689
0.0274816
0.000591056
-0.00258414
-0.00249953
0.00296886
-0.000112611
0.00346072
-3.69238e-05
0.00149224
-0.000816258
-0.000308796
-0.00231314
-0.000192559
-0.000263914
0.000456474
6.29197e-05
-0.000489644
3.74235e-05
0.000170121
0.000991142
-0.00338494
0.0023938
-3.85076e-05
2.21896e-05
5.90241e-05
0.00103879
0.000128563
-0.000253851
-0.000427157
0.00214376
-0.00359768
0.000702451
0.0020018
0.000317845
-0.000170354
-0.000147491
0.000259393
-5.33088e-05
-0.0269114
-0.0024779
0.00283105
-0.000508568
-0.000394937
0.00653672
-0.0149665
0.00752229
0.00700143
-0.000612918
0.00044366
0.000382138
-0.000458883
7.67441e-05
-5.87961e-06
0.00033629
0.000376207
0.000273545
0.0010312
-0.000438147
-0.0394239
0.0130866
0.0263373
0.000574169
-0.000502903
-0.00086252
0.00114343
0.000264871
0.000488061
-0.000752932
0.000100098
0.000608773
-0.00100157
0.000819802
-0.00174396
0.000924156
0.00047859
-0.0222064
-0.0251508
0.000315982
-3.13465e-05
1.6573e-06
-7.63928e-05
0.019954
-0.00404885
-0.0159052
-0.000615668
-0.000477298
-0.00211917
-6.7229e-05
-0.000157368
-0.00177835
-0.00270851
0.0292603
-0.00800645
-0.00934393
-0.0101176
-0.000385151
0.000286784
-0.000516679
0.000229895
0.000531488
-0.000474621
-5.68676e-05
0.000140731
6.82345e-05
0.000312936
0.00324575
-0.000102
9.20747e-05
-0.000160977
-0.0210889
0.00084813
-0.00174981
0.00412892
-0.000484281
0.00018431
-0.000451144
-0.00157344
-0.000591328
-0.000156826
0.0249171
0.000194001
-0.000199881
-0.00203088
-4.65306e-05
-0.000158359
-0.000276003
0.00870979
0.000329803
9.06163e-05
-0.000148106
0.000272049
0.00669831
-0.0154586
0.00876025
0.0114712
-0.000590164
-0.010881
-0.000332882
0.000348721
0.000608988
-0.000877619
-0.0121004
0.0269199
-0.0148195
0.00787198
0.0149493
-3.77317e-05
9.22151e-05
0.000464094
0.00126127
-0.00152844
0.000267163
-6.98731e-05
0.0040684
-0.00779528
-0.00364866
-0.00658067
0.00275593
0.000964888
-0.00198117
0.00125128
6.71674e-05
-0.000164513
0.000439093
-0.000674099
0.000181608
0.00018102
-0.000362628
-0.00279367
-0.00097959
0.0045485
-0.0023351
-0.0233015
-0.0105961
3.61011e-05
-2.7074e-06
-3.3394e-05
-6.5346e-05
2.46907e-05
0.000177059
0.000340455
-0.000459345
-0.000102731
0.001404
0.0177731
0.016461
-0.0342341
0.000169976
6.37539e-05
-8.37365e-05
-0.0156716
-0.028929
-0.000310811
0.000398567
-0.000153508
0.000667991
8.29817e-05
-0.0373092
0.0234801
0.0138292
0.0137584
-0.000250999
0.000345397
-0.000237744
-0.0123662
0.0119081
0.000458138
-0.000172209
-3.28619e-05
0.000173505
-0.017908
0.0143635
0.000309176
-0.000432887
0.000237517
-0.000250104
0.000189263
6.08411e-05
0.000242597
0.000162019
-0.000404616
0.00526019
-0.00388862
0.0116771
0.000539153
0.000567764
-0.00110692
-0.000271777
0.000307004
0.00214837
0.00186292
-0.0389019
0.00109012
-0.000785384
-0.000304736
-0.000710337
0.000561081
-0.00101445
-0.000438915
0.000198852
-0.0192037
0.00964235
0.00956139
1.60904e-05
-0.000137357
0.000121267
-0.000344578
0.000766253
-0.000421675
-0.00176259
0.00104912
-0.000160023
0.00014466
0.0364438
-0.0112612
4.51663e-05
0.000874063
0.0101222
0.000375032
0.000973974
0.000441906
0.000954986
-0.000336029
0.000128027
0.000208002
0.0121815
-0.000269977
0.00047039
-0.000528533
5.81435e-05
0.000213903
0.000236323
-0.00149748
-0.00203491
0.000105351
-0.00094584
-0.000973517
0.000546465
0.000309094
0.00579113
0.0064332
-0.0122243
-0.0150201
-0.0222892
-0.0429633
0.0311535
0.000288084
-0.000703115
-0.000125299
0.000355767
-0.000116836
-2.15726e-06
8.47124e-05
0.023031
-0.0108724
0.000273716
-0.000182666
-9.10499e-05
-0.025504
0.0041056
0.0102927
-0.0250459
-0.000472556
-0.0007104
0.0286843
0.000331375
-0.000249671
0.000373712
-0.000139389
-0.000234323
0.00015718
0.000139908
-0.000281502
0.000299898
5.77134e-05
0.000563859
-0.0011938
0.00134454
-0.000150741
-0.000494129
0.000108658
-0.000116738
0.00162289
-0.00157979
-4.31066e-05
0.000776616
-0.00421638
0.00343976
-0.000198525
0.000304795
0.000497255
-0.000254659
9.64525e-05
9.71156e-05
-0.000301547
-0.0275913
-0.00391566
-0.000304638
0.000190208
0.00011443
-0.000860562
0.000388974
-0.0142054
-0.029863
0.0440684
5.45777e-05
0.000301189
0.000399544
-0.0061158
0.0032644
-4.88177e-05
-5.50918e-05
0.000174245
9.97013e-06
0.000277886
0.000200704
-0.000142116
0.0123456
-0.000481583
-0.00209664
6.4375e-05
2.54098e-05
-0.000145513
-8.83107e-05
-0.000128449
0.000216759
0.00575822
-0.0098145
1.70291e-05
0.000299279
-0.000195112
-0.000338102
-0.000122685
-0.000620306
0.000484131
0.000136175
0.000438339
-1.30938e-05
-0.011715
-0.00106441
0.000428631
0.000327812
-0.000329462
-0.000380875
-0.000326341
-0.00284889
0.000684284
9.59279e-05
-0.000780212
0.000516996
-0.000299708
0.000669283
-0.00257393
0.000256623
0.000241965
7.06508e-05
1.89154e-05
-8.95662e-05
-0.000120329
0.000637729
0.000142583
-0.000754185
0.000793515
-3.93308e-05
0.000319618
-0.000189297
-0.000285989
0.000475286
-0.00143749
-3.3293e-05
0.000320077
-4.54393e-06
0.000152367
-0.000147823
0.00173813
0.00209376
8.96103e-05
5.93589e-05
0.000451175
0.000273858
-0.000725033
0.000164968
1.24322e-05
-0.000177399
2.18949e-05
-0.000285071
0.000518708
-0.00045747
0.000140936
0.000403186
0.000872375
-0.00251734
0.00164496
-0.000368989
0.000370033
-0.000523001
-1.47231e-05
3.50632e-05
0.000248686
-4.33355e-05
5.85603e-05
0.00171867
-0.00210937
0.019636
-0.0445137
0.0248777
7.34331e-06
-0.000477278
0.00707723
0.0176482
-0.000226953
-0.000211145
0.00038366
-0.000740807
0.000357147
-0.0340997
0.0197431
0.00076162
-0.000702742
-0.00546121
0.0144599
-0.000586479
9.20274e-05
0.000450771
0.00195321
-0.00374288
0.00178968
0.000286524
0.000585897
-6.53841e-05
7.53391e-05
-0.00431556
0.000328588
-0.000306636
-0.00185033
0.000377305
0.000661442
-0.000204659
-0.000139712
0.000223441
-0.000460052
-0.000267654
0.00152752
0.000233174
-0.000134707
-9.84668e-05
0.000549415
-0.00180104
0.00432074
-0.00466094
0.0003402
-0.000136541
-0.000199488
0.000334765
0.000165089
0.000980298
-0.000203817
-0.000776481
0.00093275
-4.22209e-05
0.000205883
-0.0250779
0.019387
0.00569091
-0.00231174
1.76782e-05
9.47621e-05
-0.000595571
0.000500809
-0.000341131
0.000157538
0.00133019
-0.0010216
-0.000308584
-0.000129377
-9.38333e-05
0.000223211
-0.0232309
0.00532287
-0.000581112
-0.000126079
0.00122692
-0.00125891
3.19913e-05
-0.00084085
-0.000116276
7.89718e-05
0.00886319
0.000359374
-0.000320224
9.80777e-05
0.000291623
-0.000652743
-7.9754e-05
-0.000902213
1.10835e-05
6.48051e-05
-0.000359836
-8.73501e-05
0.000110716
-2.33658e-05
-0.00722113
0.000148602
0.000135566
0.000198098
0.00914031
-0.00894183
0.000107039
0.00019224
-0.000289847
8.317e-05
0.0151853
-0.000176058
0.000371957
0.000139751
-0.00395335
-0.00468134
0.000533727
-0.000835831
-0.000110211
0.000141407
-3.11957e-05
0.000231144
-0.000456347
0.00031226
0.00892073
-0.0228544
1.38193e-05
8.47562e-05
0.000231923
5.63443e-05
0.0224746
0.0034974
-3.90176e-05
0.000128628
0.000170311
0.000101991
-8.08392e-05
-0.000126723
-4.74465e-05
-0.0008412
-0.000378219
0.000265504
0.000773069
-0.00098946
-0.000408432
0.00139789
0.00199202
-0.00316998
0.000431472
0.0227685
0.00448925
0.000399691
-0.000306118
0.000829708
0.000213617
6.63774e-05
-0.000365536
0.000299159
-0.0010416
0.00689862
-0.00010511
-0.00088435
0.0013773
0.000541929
-0.000413558
-0.0227578
-0.00089298
1.497e-05
0.000136324
-0.000151294
5.09887e-05
0.000390207
0.000155888
-0.000152382
-0.0109874
0.00757479
0.00513603
-0.00592657
0.00079054
0.000102487
-0.000594051
-0.000427743
8.2762e-05
0.0055897
-0.000146861
-0.0128559
-0.00634783
0.00555038
0.0320148
0.000460571
-0.000812333
0.000351762
-0.000707883
-0.011622
0.00109641
-0.000418093
0.000156733
0.000281328
3.12049e-06
-0.000284448
4.8781e-05
0.03444
-0.0416805
0.00724047
1.1687e-05
-0.000368901
-0.0234339
0.00830212
-0.0127048
0.0106085
-0.00255556
0.00374582
-0.00119025
-1.05672e-05
-0.000120824
-0.00125873
0.000807006
0.0328544
0.000489562
-0.00120048
-3.41579e-06
0.000109355
0.000529601
0.00230623
-0.000297922
0.000215388
-0.0118472
-0.000980979
-0.00159199
-2.28594e-06
-0.00058406
-0.000160225
-0.000351588
0.00117587
0.00010687
-0.000424197
0.000768095
-0.000510198
-0.000150297
0.00445241
-0.00367579
0.000237766
-0.000132512
9.34149e-05
0.00018511
-0.000130242
-0.0220595
-0.0117764
0.0302484
-0.000100839
1.05457e-05
-0.00019179
-7.6713e-05
-0.000190247
0.000182877
-0.00957847
0.0180653
0.000437886
-0.00021511
-0.000222776
0.000123808
-0.000270524
0.000213704
9.38783e-05
4.14497e-05
-0.000135328
0.0194727
0.000412892
0.00370156
-0.000865188
-0.000183965
0.000181386
0.0430558
-0.0264558
0.000237216
-0.000768962
0.000641322
0.000107702
-0.000436499
-0.000798462
-5.24534e-05
-0.000252184
-0.000282434
0.000505545
-0.000223111
-7.45929e-05
0.000535164
-6.83676e-05
-9.23597e-07
0.000169104
0.0265171
-3.08317e-06
8.72157e-05
0.000198671
-0.00306958
-0.0126513
0.0385329
0.000117855
0.0143863
-8.98007e-07
0.036806
-0.0368051
-0.000481998
-0.00303214
0.00207238
0.00095976
-1.35865e-05
1.35865e-05
0.000345201
-0.000124026
-0.000221175
-0.000411299
-0.000159565
6.19048e-05
-0.000438719
0.00412711
0.0181974
-0.0249303
-2.50584e-05
-0.00127405
2.92939e-06
0.000424478
0.000341958
-0.000200964
3.76741e-05
-0.000136933
0.000167084
-3.01505e-05
-5.51585e-05
0.00442335
0.00318399
0.0102217
-0.000897328
-0.000315734
1.81869e-05
9.96402e-05
-0.000117827
-0.000100097
0.000264528
-0.000164431
-0.00141223
-0.00101155
-0.00579071
0.00413951
-0.0148678
0.000614043
-0.00048617
0.000207846
0.00861381
-0.000191384
-0.00028421
-0.00542397
0.00436311
0.00106086
0.000210273
0.00015733
-0.000104993
-5.23373e-05
9.42662e-05
-0.00010159
-0.000166086
-0.0024143
0.00192996
0.000484343
0.000573665
-0.000442055
0.000707335
-0.000256135
-0.000101563
0.000423097
-0.000276003
0.00151378
-0.00177116
-0.00827715
-0.000191088
0.0173328
-0.0041206
-0.0132122
-0.000897995
0.000404333
1.48467e-05
0.000269691
-0.000266986
0.000655082
-0.000265426
0.000470875
0.000222827
7.32852e-05
-3.99419e-06
-2.62236e-06
4.5642e-05
0.000500822
9.10942e-05
-1.74063e-05
0.0225276
-0.0154504
0.0365397
-0.000405339
0.000469078
-0.000266847
0.000223012
-6.77909e-05
0.000164243
0.000101462
-0.000252259
-0.000307208
0.000559467
-0.00567527
-0.0070295
-5.02401e-05
-0.000258456
0.0171295
-3.42124e-05
7.40142e-05
-6.89216e-05
0.000277558
-0.0016171
-0.00197201
0.00036059
-0.000354466
0.000250986
-0.000655303
-0.0214856
0.00265142
-0.012097
-0.000568672
0.00082898
0.000137645
0.000506773
-0.000586695
-0.00586195
0.00756336
-0.00170141
-0.000306453
-0.000155165
-0.00024015
-0.000741479
-0.000351848
-0.00035364
0.000359232
-0.00116472
-0.00529242
0.023099
-0.000362562
0.000253905
0.000237707
-9.6702e-05
0.000111962
-1.52606e-05
0.000283837
0.00025446
8.5536e-05
-0.000743575
0.000563434
-0.000301016
0.000127105
-0.000249892
0.0361434
0.00012128
0.00214839
-1.12044e-05
-0.000106491
-0.00011548
-0.000358982
0.000474462
0.000247269
-0.000202742
0.000107009
0.000290176
0.0074087
-0.0225949
0.0186677
0.01414
0.000333391
0.000382755
-8.52467e-05
0.000103434
0.00111617
0.00700701
-0.00812319
-0.00672407
-0.014384
-0.00010557
-0.0282661
0.00763695
0.00015488
0.000281043
-0.0148302
0.00617807
0.0270538
6.82562e-05
0.00429584
0.00676965
6.34983e-05
-9.23383e-05
0.000145436
-5.30979e-05
0.000299458
-0.00101569
-0.000258357
-0.00242976
0.00132868
-0.00253218
-0.0184923
0.0210245
-0.00653859
-0.00301185
0.000272636
0.00030103
8.01928e-05
-5.33917e-05
0.000243894
-0.00105387
-0.000243339
-0.000499129
0.000742468
0.000216813
0.000146571
-0.000363384
0.000985266
0.00226048
0.0225149
5.26617e-05
0.000728824
-0.0084307
-0.000426972
8.77717e-05
0.000339201
-0.000127177
0.00952123
0.00547393
0.000355072
-2.35024e-06
-0.00488382
-0.000916636
0.000841363
7.52727e-05
-0.00714339
0.00597867
-0.00019485
-0.000162323
-0.000261744
0.000595206
0.000248549
0.000309361
-0.000152084
0.000561013
0.000301402
-0.000953502
0.000117158
3.12335e-05
0.0009747
0.000241349
0.000308905
-0.000143937
7.23651e-05
0.0188905
-0.000169384
-0.000268457
-0.000685045
-0.000163578
2.82039e-05
-0.000611292
9.80817e-05
-0.0182264
6.17972e-05
-1.00416e-05
-9.88404e-05
-0.000361105
0.000419253
-5.81481e-05
0.00288675
-0.00151298
-0.00137378
-6.30111e-05
-0.000257162
3.61274e-05
-2.62759e-08
0.000184592
-0.000131442
-0.00945404
-0.00400046
0.000975799
-0.000178386
0.000489943
-0.000544363
0.000390772
0.000715067
-0.000568612
0.000259785
0.000113091
-0.000183893
0.000459324
0.000158527
0.000339958
0.000191822
-0.000328095
-0.00989558
0.0130595
9.83751e-05
0.000264534
-0.00012495
1.21811e-05
0.000235003
-8.05237e-05
0.00588438
0.00778491
-0.00646252
-0.000112955
0.00014804
-0.0026307
0.0249951
-3.81013e-06
0.000158909
8.44302e-05
0.000522296
-0.000227026
5.07808e-05
-0.00426139
-0.000190571
-0.000254588
0.000263215
-0.000361596
0.000477499
0.0283566
-0.0012997
-0.000330605
0.000316872
-9.30426e-05
0.00356814
0.030524
0.00055043
-0.000452353
0.00558925
-0.00177175
-0.0038175
0.00751441
-0.000442552
-0.000170366
-0.000167796
-9.83126e-05
0.0019114
-0.00026173
0.000312482
1.87724e-05
-8.22835e-05
-0.0383326
0.0270391
-0.00752388
0.000577431
0.000641914
0.000110928
0.000229417
-0.000882545
-0.00176531
0.00264786
0.000352707
-0.00035851
-0.0172761
0.00278452
-0.00526242
-9.86607e-05
0.000124325
0.0186491
0.00237326
0.000357605
-0.00273087
-0.000797646
-0.0175015
-0.000186928
-6.72454e-05
0.00126025
-0.000130595
0.000380347
-0.00033327
-0.000153023
0.000469064
4.955e-05
0.000632885
-0.000301445
0.000675926
0.000227684
0.000212372
0.00288504
0.00242424
0.000339283
0.000485052
-5.53931e-05
-0.000429659
0.000213365
-0.000338594
0.000182702
-6.74376e-05
0.000477763
-4.56416e-05
-0.000120162
-0.000385791
0.00103219
6.6997e-05
0.0042655
-0.00555781
0.000235824
-9.53513e-05
-0.000145808
-4.25177e-05
0.000431279
-0.000388761
0.000383449
-6.56954e-05
-0.0108704
0.000566049
0.0103043
-0.000326728
0.00019138
0.000589436
-0.000816579
-0.000441216
8.3287e-06
7.98582e-05
-0.000128715
-0.000278773
-0.000820692
0.000136397
-0.000120306
0.000105595
-1.97008e-05
-0.000274262
-8.24028e-05
-0.000250156
-0.000266523
-0.000446619
0.000318211
-9.95071e-05
-0.000306044
0.000659782
0.00210268
0.00332929
0.00184923
9.35215e-05
-9.71967e-05
0.00183507
-0.000106461
-0.01607
-0.000971583
0.000144891
0.000244203
0.000789115
-0.00695777
0.000290573
2.62988e-05
0.00182325
0.000740188
0.000534
8.00426e-05
-0.000100852
0.000146398
0.00206325
0.00352916
0.0145695
0.000607808
3.59764e-05
0.000120497
-0.0011443
0.00237127
0.000174651
-6.27267e-05
-0.00114456
0.000876102
1.38374e-05
0.00511768
-0.00027414
0.000406335
-0.0161289
0.0187567
0.000566469
-0.000147561
-6.66863e-06
0.00194408
0.000112993
6.55091e-05
-7.98973e-05
0.000111909
-0.000109559
-0.000251343
0.00468036
-0.00572342
0.00104306
-2.2194e-05
-5.90196e-05
-0.00763088
-7.61154e-05
0.00628823
-0.00549912
0.000200744
-3.5432e-06
-0.00124679
0.00112538
0.000121415
0.00408899
0.0333796
-0.0458841
0.0125045
-0.000290464
0.000185791
-0.000250416
0.000138256
-0.000192881
0.000399303
-0.000206423
3.38543e-05
0.000104312
-0.000188461
3.42074e-05
0.00128302
-0.00200829
0.000725277
0.000243608
-0.00413183
-0.000380335
-0.000274843
0.0291926
-0.0277858
0.000224502
0.00382736
-0.00405186
0.0219054
-0.0275401
0.000899162
-0.000290174
-0.000212654
-6.58716e-05
-7.12154e-05
9.53907e-05
0.0258423
0.000919375
-0.00291262
-0.000168795
7.1572e-05
0.000717575
-0.000273208
-0.000444367
0.00019085
-0.000342787
3.19706e-05
-0.000330657
-4.16802e-05
0.000174901
-0.00013163
0.000400667
-0.000380293
-2.03734e-05
0.000389
-0.000317762
7.38628e-05
0.000148016
-0.0010267
-4.98868e-05
0.000147509
-9.76225e-05
-0.00736707
0.00925746
0.00599534
0.0327124
-0.00126769
0.000546188
-0.000432526
0.000181131
0.000324741
-6.55694e-05
0.000427986
0.00105939
-0.0016115
0.000595809
-0.000524507
-0.000301252
0.000277439
-0.00203371
0.000335587
0.000729451
3.90655e-05
0.000131127
-0.00984351
-0.000847047
0.0008887
-4.16525e-05
-0.000509185
0.00096964
0.000174549
0.000104328
0.000102207
-7.9412e-06
0.000191501
0.000132101
-0.000323602
-0.000139014
-0.000228449
-5.08201e-05
-6.02073e-05
0.000111027
-0.000168504
0.000135251
-0.0315577
0.00625186
-0.000286231
-0.000182659
0.000355137
0.000146785
0.00111151
-0.000798548
-0.00383019
-0.000206393
-7.22493e-05
-0.000766564
-0.000828162
-7.40504e-05
-0.000894979
0.000753781
0.000170197
-0.000108291
-0.000900793
-0.000230467
1.50633e-05
0.000154937
-7.38574e-05
0.0004956
-0.000163441
0.000158927
-0.000373018
1.10557e-06
0.000371912
0.0334421
-0.000538773
0.000443579
9.51932e-05
-0.000414164
-0.000109473
0.000597509
0.00990085
-0.00694776
-0.00295309
-9.88391e-05
0.000122272
0.000406866
0.000222477
0.0117834
-0.0187309
8.72453e-05
-8.72457e-05
-0.00231211
7.83299e-06
-0.000340715
2.34375e-05
-6.62491e-05
0.00092343
-0.000361625
-0.000394005
0.000251705
-0.000284093
3.23879e-05
-0.000249451
0.000130453
0.000118998
1.88898e-05
-0.000182331
-4.375e-05
4.37501e-05
-0.000146678
-9.29163e-05
0.00365709
-0.0391912
0.0242493
3.67314e-05
0.000585222
-0.000621953
0.000260126
-6.74107e-05
-8.55876e-05
-0.0176227
0.00325877
-0.018089
0.000599366
4.93071e-05
0.0145785
-0.0213026
-2.36115e-05
-8.18547e-05
-0.000196642
0.00280184
-0.000201819
0.000134903
-2.63804e-05
0.00013319
1.29007e-05
-0.000146091
-0.00338642
0.031945
-0.0245363
-0.0260281
-1.25091e-05
0.000487991
0.000760277
-0.00175782
0.00099754
0.000220539
-0.000226415
-0.00165821
0.00118576
0.00047245
7.85913e-06
3.85076e-05
-0.00281441
0.0064133
-0.0179189
0.0220167
-0.000641859
-0.000104669
-5.21765e-05
0.000147547
-0.000295567
-2.57467e-05
-0.000555954
-0.000368632
-0.000178588
0.00158375
0.00187697
-0.000631601
0.000696312
0.00332979
0.0394373
-0.00406424
-0.0353731
-0.000143759
0.0098418
0.0193754
-0.0292172
-0.000628781
0.00277254
-0.0379164
-9.70016e-05
0.000288503
-0.000106216
-2.46798e-05
0.000172965
-3.97743e-05
-0.0016422
-0.00311145
-0.000180587
0.000180587
0.000296776
-2.93645e-05
-0.000170917
-0.000364499
0.000870478
1.03017e-05
8.98296e-05
-0.000100131
0.000413606
0.000384989
-0.000176191
9.61597e-05
0.000384485
-0.0159913
0.001459
2.56679e-05
0.000214212
5.17719e-05
0.0353484
-0.0234858
-0.016041
0.0395268
-0.000982173
-0.00257495
0.00355713
-6.3161e-05
-0.00463824
-0.000658879
0.000121111
-2.72324e-05
-7.39153e-05
-0.000349295
0.00042321
-0.000898668
-0.000959189
0.00251596
-0.000486663
5.2595e-05
0.00755413
-0.00172788
-0.00116253
8.4635e-05
-0.000219872
-5.61399e-05
0.000330686
-0.000274546
0.000985399
-0.000446247
0.000301454
7.71489e-05
-0.010579
-0.00434731
-0.00124831
-0.000211351
-0.0386378
0.0248627
0.0137751
-0.000294859
0.000116412
0.000178448
-0.000133797
0.000395966
-0.000278729
-0.00012805
0.00340032
-0.000170722
0.0002044
-0.00606896
0.00502736
0.000804824
-0.000829825
2.50011e-05
0.000419654
0.00113995
-0.000570923
0.000778584
0.0270488
-0.0256627
-0.0022056
-0.0205076
9.12668e-06
0.000272201
-2.90845e-05
-0.000335548
-0.000269523
-3.08352e-05
0.000486814
0.000551978
-0.00107959
0.00162539
6.94341e-05
-5.23709e-05
-0.00103366
0.000235199
-0.000686102
0.00101949
-0.020282
7.51655e-05
0.000285071
2.96075e-05
0.00741919
-0.00404679
-0.0033724
0.000238938
0.000222491
0.000363567
-0.00034748
-9.53349e-05
-0.000363548
-0.00724587
-0.00133894
0.000547348
-0.000217671
0.000212231
0.000285719
0.000123134
-0.000200797
-0.000126186
-0.00027689
-0.00378
-0.0177834
-0.000153353
0.000122369
-0.0146083
-0.00448122
0.0190895
-0.000274705
-0.000228556
-0.00203154
0.00202461
0.00199994
-0.00247724
6.44023e-05
-0.00862596
0.0112513
0.0122288
0.00153925
-0.00107544
-0.000178918
0.000209902
-0.000724771
0.00051487
-0.00424884
-0.00209894
0.000578614
-0.00175594
-0.00266614
0.00442208
0.0218355
-0.00704695
0.000327582
9.27859e-05
-0.000420368
0.0238393
-0.0015913
0.000307426
0.000211588
5.25682e-05
9.39702e-05
-0.000312372
-0.000508454
0.000207421
-0.000324498
0.000346393
-0.00119651
0.00083218
-0.00120655
-0.0190819
0.000575934
-5.03336e-05
-6.50457e-07
0.000327287
0.00288816
-0.00081578
0.000387943
-0.000366904
0.00315143
-0.000106918
0.000259815
0.0232085
0.000425901
-3.68511e-05
0.000421375
0.00212503
3.92211e-05
-0.00411619
-0.000175483
-0.000586125
0.000761608
-0.00790433
0.00402492
-0.00430917
0.00244368
0.00186548
0.000347952
-0.000111562
0.000340979
0.0035359
-7.43887e-05
-0.00173542
-0.00326586
-1.01292e-05
-0.000413821
-0.00049968
9.78141e-05
0.00060088
-0.0164962
0.000255775
-0.000784501
-0.0132714
0.00248214
-0.000523623
-0.00195851
-1.71623e-05
0.000237702
0.000311964
-0.000188448
0.0006799
-0.000146173
-0.000375277
-3.74113e-05
-0.000110352
0.000120329
-0.000304832
0.000333527
0.011484
0.00931939
-0.0208034
0.000704722
0.00278705
-0.00179591
-0.000212654
-0.000925191
0.000315067
-3.79432e-05
0.000210103
-0.00017216
0.00935937
-0.00436605
0.000703844
-0.000609576
-0.000209187
-0.000103909
-0.000232536
-0.000300519
0.00029268
-0.000218932
-0.000438758
-0.000456221
-0.000322563
-0.000261924
0.000584487
0.000395513
0.000137501
-0.00839212
0.0100721
-0.00167996
0.000226779
-0.0249245
-0.00121787
0.00390889
0.0012088
0.000232728
-0.000108792
0.000346224
0.0125171
0.00393602
4.50947e-05
0.000124254
-0.0266523
-0.00733782
1.96976e-05
-0.000107048
-0.0010125
0.00103336
-0.00169176
0.0006584
0.000511493
0.00037224
-0.00747874
-0.0193703
0.026849
-0.000182797
0.000313294
-4.87811e-05
-0.00821838
0.00424152
5.81327e-05
-0.00020481
0.000434332
-9.53409e-05
-8.53285e-05
0.000180669
-0.000212026
-0.000236877
-3.53113e-05
0.000272189
-0.000191048
0.000424039
0.000728059
-1.56489e-06
-0.00426585
0.00933024
-0.00353911
-6.53275e-05
-4.59969e-05
0.000111324
0.000152533
-0.000219445
0.000394135
0.000114913
0.000320413
0.00122918
-0.0015496
0.00148032
0.0258505
-0.000228065
-0.000254118
-0.0012222
-0.000275258
6.18537e-05
-0.000105673
4.38193e-05
0.000342615
0.000382733
-0.000199096
0.000164324
3.47717e-05
-0.000201062
-0.000533894
-0.000985214
-5.54685e-05
0.00013158
0.00482776
-0.0118101
0.000541097
-9.78137e-06
-4.13481e-05
-0.000168445
4.14886e-05
7.29875e-05
0.00020141
0.00237478
-0.00516357
0.000666152
-0.000159378
0.00236965
-0.00194992
-0.00041973
-4.0946e-05
0.000168155
-0.000543254
-1.81494e-05
0.000418816
-4.82315e-05
6.58867e-05
-1.76552e-05
0.00234575
-9.55845e-05
-0.0127683
0.0147519
-7.3965e-05
-0.000291571
-0.000159234
-2.18232e-05
0.000401655
-0.000166652
0.000511633
0.00034336
-0.000368418
-0.00834101
0.011525
-0.0039281
-0.000219608
7.20477e-05
2.757e-06
0.000105618
0.00119476
-0.000489385
-5.38758e-05
0.00030973
0.030103
-0.000220346
0.000531391
-0.000311045
-0.00968378
-0.00104221
0.000594616
1.74076e-05
-7.89719e-05
-8.56797e-05
-5.83801e-05
-3.83217e-05
0.000103244
-4.16435e-05
0.000233724
-0.000149089
0.0112086
-0.0051408
-0.00606783
8.65807e-05
-0.000118388
0.000104422
1.39656e-05
-0.00302734
0.0194489
-0.046177
-0.000101991
0.000439212
-0.000615426
-0.00164925
0.000891148
0.000274569
0.000790593
-0.00124946
0.00122154
2.79203e-05
0.0287103
0.0136603
-0.00349637
0.00215676
-0.00013439
-0.000140127
0.000315787
-0.000324164
-0.000523056
-0.000103578
-0.000303381
-2.83815e-05
0.000252487
-0.00658895
0.0027946
-0.000394929
0.000619428
-0.000224499
0.000354295
0.000422411
-6.1795e-05
-0.001164
0.000637038
-0.000438123
0.000146452
0.000291671
0.00426785
-0.00366422
-0.000603632
-0.000468298
-0.000607858
0.000759135
-0.000151276
0.00068403
4.73077e-05
-1.11812e-05
-0.000418285
-0.000953236
0.000637223
-0.000330104
-6.44389e-05
7.71524e-05
0.000208891
-0.000158884
9.34988e-05
0.00158181
0.00140592
-0.000170377
-0.00118472
0.000686146
0.00012016
0.0197392
-0.000214327
0.000166775
0.000271111
-0.00946694
0.0238533
0.000108032
-0.000216748
-0.000713797
1.12157e-05
0.000272761
-0.00240443
9.52279e-05
0.000329007
0.0179156
3.34922e-05
-0.00181599
0.0017825
0.000176237
-0.000187188
0.00333793
-0.01415
0.010812
-9.18889e-05
-0.0277662
0.00953981
-0.000292877
0.000194902
9.79754e-05
0.000214761
-9.46387e-05
0.00010452
0.000163254
-0.000269858
-0.00559891
-0.0121135
-0.00776636
-0.00370166
-0.00043414
1.81065e-05
0.00117961
-0.000632294
0.00112177
-0.00116282
4.1046e-05
0.000734458
0.00024584
-0.000465137
0.0025294
0.00241495
1.38354e-06
-0.000152615
0.00033863
-0.000224266
0.000475492
0.000158335
-0.000633827
0.000870024
-0.000386056
-0.00235472
-0.00203391
0.00105002
-0.00470602
0.00493052
-7.44886e-05
-6.22416e-05
-0.00333872
-0.00108792
0.0014561
-0.000316158
0.000135964
0.000221312
0.00128989
-9.78709e-05
-0.000231015
-0.00019125
-0.00125848
8.32984e-05
-0.000134119
-0.0019501
0.00156296
0.000971588
-0.000906284
6.94341e-05
0.00506662
0.00483423
-0.000122879
0.00264292
-0.0010641
-0.000156699
1.5193e-05
0.000339173
-6.80844e-05
0.000283192
-2.76603e-05
0.00128202
0.00904103
-0.0103231
0.000121047
0.00125689
-0.035623
-0.0215499
0.00026339
-2.58579e-05
0.000482012
-0.000484298
-0.000140813
0.00215347
-0.000532979
0.000694144
-6.46047e-06
0.000155509
-0.00226375
0.0104581
-0.00819434
0.000294595
2.08802e-05
-0.000361578
-0.000395595
0.00100528
-0.005227
-0.000523754
0.00296049
6.05918e-05
7.09032e-05
0.000317206
0.000198952
0.000106224
0.000701656
-0.000273025
0.0114767
-0.0152993
0.000202209
-0.000454648
-0.000173927
0.000157486
-0.00245566
0.000128554
-5.16309e-05
-4.05275e-05
-0.000362403
-0.000690451
0.000597639
0.000443333
-0.0036631
0.00449963
-4.22943e-05
-9.13959e-05
-0.000226826
-1.76739e-06
0.000126507
0.00015643
-0.000198651
3.09168e-05
0.000131152
-0.00474782
0.0213304
-0.000161059
-0.000383305
0.000108032
0.000501396
-0.000169113
0.000162779
0.000192359
6.53912e-05
0.000353862
0.000263455
0.00053151
0.00297323
0.00850346
0.00978216
-0.00738146
-0.0266506
0.0153323
0.0113184
0.000329606
-0.000181046
-0.00355926
-0.0232135
0.000284739
0.000343046
-1.90549e-06
0.000110533
-0.0350226
0.0117212
-0.000634458
0.000559866
-0.000293293
0.000963055
-0.000273698
0.00407264
-0.0179089
0.0071572
0.000110541
0.000929368
-0.00134353
0.000319908
0.00806975
-0.0393262
0.0312564
-0.0184314
0.00116457
-0.00818495
-0.00267175
-0.00666323
0.00027715
-0.000453826
0.000763156
-0.000476543
-0.00105447
0.0297487
-0.0286943
0.0122057
-0.0163843
0.000662235
-0.000535029
0.000701348
0.00062884
-5.60477e-05
0.00339581
0.000264558
0.000220494
-0.0072753
0.0143795
-0.000239178
0.00284774
0.0377366
-0.0377366
0.0149213
-0.0180994
-0.000176331
8.62882e-05
0.000454119
0.000168658
-6.68252e-05
-0.000101833
9.82453e-05
3.12243e-05
-0.000129469
0.000140663
0.000385615
-0.000526278
-0.000157895
7.16978e-05
-0.000197244
0.000788847
0.000906275
0.000311803
0.0138898
0.000358614
0.000766764
0.000316918
0.000524445
0.00058288
-0.00036221
0.000123751
9.16536e-05
0.00132075
-0.000925594
0.000153374
8.13592e-05
0.0001383
-4.17046e-06
3.20881e-05
-0.000161466
0.00481089
-0.00228149
-0.00029302
0.00050301
-5.63542e-05
0.0167738
-0.00541902
-0.0113548
-0.00530169
-0.00682194
0.0121236
-0.0002722
-0.000471375
0.000237819
0.000221505
0.00626761
0.000853942
0.00285968
-0.000578434
-0.00162759
0.000140414
6.76754e-06
0.000395146
-0.000538514
-0.000332761
0.000336669
-0.00496493
0.00545055
-0.000245613
-5.81978e-06
-0.00555292
0.00209474
6.11835e-05
-6.11835e-05
0.00407377
-0.000892592
0.000641776
0.000336491
-0.000333103
-0.00081292
0.000358634
0.000454287
0.000886801
-0.000260308
-0.000351672
-4.14553e-05
-0.000150334
0.000322278
0.000607874
-0.000930151
-0.000131641
-0.0053222
0.000453962
0.000484263
0.000362459
-0.00237568
-0.0277171
9.32192e-05
-0.000110625
0.000516598
6.85333e-05
4.34291e-05
0.00040938
-0.000407626
-0.000147663
0.000258483
0.000868523
-0.00347623
-0.000541976
-0.000289137
0.0148211
-0.00895942
-0.00586173
-0.00138902
0.00119172
-0.000715069
-0.000476655
-0.00168344
-0.000746318
0.000854373
-0.000128284
0.000232855
-9.13892e-05
-0.000141466
-0.000543623
0.00662975
0.000277336
-0.000289329
9.06923e-05
-0.000604429
0.000513737
2.16419e-05
-0.000267924
4.52572e-05
6.91078e-05
0.000163748
0.00502771
-0.00220963
0.000350734
-0.000284931
-6.58024e-05
-6.10729e-05
8.25532e-05
-3.4247e-05
0.000104898
-0.0012457
-3.04487e-05
-0.000456214
0.00240016
0.000342074
-0.000121041
-0.000288523
0.000185763
-0.000489313
-0.000215308
0.00045657
-0.000241262
-0.000117881
0.000395878
0.000127793
0.000276669
0.000151774
0.000407653
-0.000527539
4.48344e-06
-0.0268209
-0.000336251
-0.00102347
-0.00107547
0.000423364
-0.00206227
-0.00169287
-0.00029541
0.000106216
2.83796e-05
-0.00043648
0.00099159
0.000798288
-0.000221227
0.000368201
-0.00129176
0.000282203
0.000241474
-0.000523677
0.000831496
0.00158919
-0.00165378
0.000973274
0.000680502
-0.000465459
-0.00214374
0.00241222
0.0173225
-0.0195304
-0.00014316
-0.0188527
-0.000914426
0.000317466
-0.000649125
-0.00108794
-0.0171709
-9.82833e-05
-0.000287006
0.00083383
0.000453304
-0.000282847
9.1659e-05
0.000152985
-0.000293993
-8.22768e-05
-0.000300642
4.69855e-06
0.000120076
0.000126757
0.000763812
-0.000937242
0.00017343
-0.000198685
0.000809611
0.000613633
-0.00010385
-8.46107e-05
2.83794e-05
-0.000120718
0.000475549
4.26604e-05
0.000127213
0.000150346
-0.0277368
0.0251061
-0.000862957
0.000210214
-0.00198866
0.00158301
-1.98997e-05
-0.000503767
0.000200497
0.000303271
-5.30264e-05
0.000157458
-0.000104431
-0.000649259
0.0083255
0.00543706
0.0296466
-0.0207258
8.63969e-05
0.000146777
-5.31932e-05
2.44441e-06
0.000484653
-0.000755829
7.64854e-05
0.000285186
1.68386e-05
0.000294106
0.000315653
0.00425554
0.00341822
0.000149556
-0.00226004
0.0348092
0.0127679
-0.00129675
-0.000101102
-9.6764e-05
-0.00152581
0.00165356
1.9912e-05
-0.000224503
-0.000183661
-0.000280883
-0.000544867
8.09121e-05
4.02431e-05
-8.06861e-06
-9.62126e-05
0.000106758
-0.00013791
-0.000214682
-0.000178079
-0.00046655
0.000152578
0.00081991
-0.0014245
-1.74904e-05
-0.00755325
-0.0128637
0.0204169
0.000158856
-0.000171365
0.00037811
0.000336699
9.28034e-05
0.000319775
0.000533805
4.76222e-05
2.06043e-05
6.66412e-05
0.000436861
0.000367963
-5.96653e-05
0.000144693
0.000117382
-0.000262074
0.00044919
-0.00010583
-6.94792e-05
8.04111e-05
-0.0118049
0.00523949
-0.000116568
-0.00017631
0.000128708
0.000253241
0.0012666
-0.000123553
-0.00100615
-0.00038914
4.7908e-05
0.000104382
-9.40804e-05
-0.00824077
-0.000526569
0.000752792
-0.012504
-0.000787834
3.24506e-05
-0.00280584
5.84176e-05
1.16337e-05
-0.000222537
-0.00103189
-0.0358551
-0.00187008
-0.000482869
0.00026756
0.000119763
0.000272164
-0.000361787
0.022113
0.0120346
0.00536739
0.0175997
-0.0229671
-0.00194626
0.00150904
-0.0102539
0.0289215
-0.0352706
0.000250293
-7.40562e-05
-0.000109083
4.36123e-05
0.00303115
0.000277404
-0.000454036
0.000176632
0.000352447
0.000727563
-0.000165949
-0.000561614
0.0126868
-0.0153706
0.00268381
0.0106309
-0.00527999
-0.0053509
-0.034152
0.0235559
0.00206653
-0.000641836
5.90196e-05
1.1427e-05
-0.00062158
0.000238909
-0.000230667
-0.000581658
-0.000310934
-0.000190673
0.00782571
0.000621263
0.000322583
-0.000194556
-0.00439184
-0.0173837
-9.7844e-05
0.000185461
0.000203028
-0.000172111
-0.000261959
-1.03018e-05
0.0213613
-0.0105742
2.44062e-05
-0.000236295
-0.0230965
0.0264289
0.00529899
0.025647
0.0120998
-0.00414137
-9.80933e-07
-0.000619267
-0.0278303
0.0298197
-0.00198942
3.02527e-05
-0.000233217
0.000986745
-0.000759967
-0.000286097
0.000338554
0.000210291
0.000347749
0.00137201
-0.00171975
0.000102775
-7.13992e-05
-0.000736144
0.00669971
-0.00428048
-0.000122496
-0.000473233
-1.12596e-05
0.000484492
-0.00142959
-0.000224186
-0.0184158
0.0202354
-3.95056e-05
0.00223387
0.000652889
0.00239818
-0.00394076
0.000952359
0.000337534
-0.00731802
0.0335426
-0.0262246
0.000117822
-0.000248949
-0.000657929
0.000243729
0.000128228
-0.000648923
-4.60605e-05
-0.000134527
0.00233482
-0.000602751
-0.00173207
-0.000138773
2.97028e-06
-0.000246164
0.000106451
-0.000249579
0.000527514
-0.00064616
0.0009205
-0.000304354
-0.00925132
0.0125101
-0.000104462
0.03444
0.033865
-0.0240066
0.00168262
-0.000472025
0.000391365
-0.000409092
-0.000240455
0.00754412
-0.000154828
0.000397647
-0.000950436
0.00129819
0.00214957
-0.000336256
0.00613441
0.00120204
-1.00841e-05
-0.00202392
-0.00240885
0.000207872
0.00220098
-0.000139163
0.000324006
-0.000394688
-0.0164881
0.000323537
0.000690167
0.00191377
-0.00276575
0.00085198
0.000452459
0.0107748
-0.00594246
-0.0148423
-5.57092e-06
0.00109267
-0.00633219
0.000193079
0.000139005
-0.000332083
-0.000230082
9.89998e-05
-0.00731194
0.0234263
2.49805e-07
0.000523142
-0.000523392
0.000385
0.000106494
-0.000565804
0.000204207
-0.00278821
-0.00435518
0.000226574
-0.000273036
4.64626e-05
0.000881305
0.000604905
-0.00148621
0.0315604
-0.0184738
-0.000102154
0.000427506
-0.000240565
1.08918e-06
1.6447e-05
0.00657209
0.00143962
-0.000153181
-6.17309e-06
0.000159353
0.000322211
0.00790056
0.000234813
0.000207091
-0.0107848
0.034127
-0.0233423
-0.000299435
0.0213771
-0.00679853
0.00678315
0.013308
-0.00582655
0.00528292
9.38922e-05
-0.000286869
0.00163761
-0.000347293
-0.000538123
-0.000646593
-0.00162208
-0.000660722
0.00093236
-0.00167968
0.000747322
8.88697e-05
8.48299e-05
-0.0165109
0.0252302
-3.11158e-06
-9.47618e-05
-0.000116873
-1.49755e-05
0.000229399
8.50143e-05
0.000557917
0.000188422
-0.000682539
0.000182293
-0.00135343
0.00107445
0.000382298
0.00307545
-0.000179183
-0.000256995
0.000436178
0.000108646
-1.88169e-05
-0.000233626
-0.00017966
0.00598977
-8.69269e-05
-0.000592014
0.000678941
0.00117935
-0.00603467
0.00025557
0.000346572
0.000198807
-3.99509e-05
0.00411383
-0.00133969
0.000166292
5.08066e-05
-0.000107813
5.70069e-05
0.0249624
-0.00850974
-0.0164526
-5.54098e-05
-7.49849e-05
-0.000124937
-0.000447205
0.000225814
0.000221391
-0.000162441
-0.000279074
9.64084e-05
0.000316277
-0.000499938
9.94414e-05
-0.000365407
0.000185522
-0.000120277
0.000164165
-0.000313031
-0.000179812
2.03416e-06
5.28156e-05
-0.000153917
-0.000550362
-0.000177813
0.000246069
-1.97476e-05
-0.000128421
-0.00117855
0.000732307
-0.00154311
0.000200684
-0.0291275
0.0100456
-0.000719614
0.000480833
-8.63014e-05
0.00073311
0.000440233
0.000471023
-7.11294e-05
0.000314038
0.000296865
-0.000610903
0.000415615
-0.000103166
-7.31652e-05
0.000383187
0.000141028
8.78387e-05
-8.61814e-05
7.37691e-05
-0.000112832
-5.82259e-05
-0.000512927
0.000827995
-0.000992322
0.00172606
-0.000733736
0.000517728
-0.000812309
0.000171848
-0.000130398
-0.000803474
0.000204838
0.0163688
0.0260778
-0.000148036
-0.00022822
0.000156488
7.17321e-05
0.0303912
0.0102261
0.000186131
-0.000652254
0.000578397
-7.71743e-05
-0.021202
-0.000124103
0.000166654
-0.000115835
0.000128016
-0.000106447
-3.78672e-05
0.0112987
0.000398906
-0.000703772
-0.000918911
0.00145272
0.00177767
-0.00835834
0.000265079
-0.000371537
-5.13139e-05
6.96514e-05
-0.00528375
0.00186159
0.0173553
0.000213665
0.0146172
0.00965406
0.000262707
-0.000110599
-0.000152108
-0.000286184
-7.23235e-06
-0.000303939
0.000311171
0.00257491
-0.00213175
0.00670291
-0.00389293
-0.00280997
-0.00227717
-0.00414299
0.00642016
0.0279802
-0.0346233
-0.00236311
0.00479249
0.000438393
-0.000481762
-0.000238648
0.000474521
-0.000661661
-0.000345222
7.13557e-05
0.000359011
-0.00560942
0.00189059
-0.0214035
0.0173546
0.000141734
0.000530623
-0.000296051
8.89597e-05
0.000102715
1.83958e-05
0.000261617
-0.000454176
-0.000281775
-4.68032e-05
6.40376e-05
-0.000595461
0.00418395
0.000638948
0.000807128
-0.00146677
-6.16905e-05
-0.000154374
0.000211704
-0.00337416
-0.000178399
-0.00115724
0.000338512
-0.000691281
0.000746319
-0.000183638
-0.00295858
0.00111137
0.0018472
-0.000144708
-5.31534e-05
0.000197861
-5.95343e-05
-0.00018511
0.000275239
0.000641042
-0.000218481
0.0020232
-0.00170356
-4.57865e-05
9.6593e-05
-5.00716e-05
-0.000424549
0.000115738
-0.000619875
0.000540999
-0.000428258
-0.000112741
-0.000190294
0.000439589
-0.0256885
0.0154376
0.010251
-0.000135747
-0.0225141
0.0138785
-0.000195775
8.15491e-06
-0.000807924
0.00106022
-0.000469917
0.000163063
0.000306854
-0.000459341
0.000275012
0.000184329
-0.000154459
-0.000303082
-0.0272904
0.00523095
2.53588e-05
-5.62156e-05
4.52574e-05
-0.00607267
-0.000326809
5.82666e-06
3.61302e-05
-0.000103846
-0.00193007
-0.00563627
0.0202534
-0.000397796
0.0253929
-9.76865e-05
-0.000294338
-5.83348e-05
0.000142483
9.27292e-05
0.00691428
0.00643812
0.00433671
0.000108256
0.000412556
-0.000753419
-0.000436711
0.00032577
1.57335e-05
0.000100705
-0.000116438
-3.02527e-05
0.000725341
-0.000749288
2.39469e-05
9.15318e-05
0.0166881
-0.000819922
-0.00018351
-0.000186136
-4.38301e-05
0.00197918
0.00746464
0.000170435
-3.21356e-05
0.000164043
-7.96126e-05
0.000163129
-0.000192494
0.000568584
-4.54703e-05
0.00159651
0.0125152
-0.00120281
-0.0113124
0.000284653
-0.000441351
6.30422e-05
0.000120162
-0.00029743
0.000106382
-0.000989118
8.13555e-05
-0.0318301
0.00706728
0.0247628
-7.48106e-05
-8.36933e-05
0.00594022
-0.00345441
-0.00248581
-0.000152301
-3.38349e-05
0.000126331
9.25155e-05
0.000346997
-0.000150344
0.00307437
0.00163194
0.0176306
-0.0335154
0.0158848
-0.000184174
0.000230948
-0.000421242
9.61704e-05
4.16802e-05
-0.00238393
-0.000574649
6.48229e-06
-0.00187839
0.000102338
-0.000283666
-0.00013514
0.00394656
-0.00191107
-0.0212119
0.000264273
-0.000214302
-4.99704e-05
-0.00287661
0.000801751
-0.000487581
0.00033678
0.000204219
-0.0110963
0.0114692
-0.00905456
0.000302795
0.000124447
-8.15164e-05
0.000972672
-0.000310921
-0.000661751
-6.76592e-05
8.82635e-05
0.00316776
-0.000693536
0.000344179
-0.0108361
0.000617725
-3.00027e-05
-0.000587722
-0.00175595
-0.00300461
-0.00241936
-0.0163736
0.000780772
-0.000100807
4.53452e-05
5.54619e-05
-0.00417928
0.00582881
0.00054579
-0.000666064
-0.000624285
0.000104727
-8.30484e-05
-5.57245e-05
0.027018
-0.0228296
0.000148885
-0.000277158
-4.73402e-05
-0.000266293
0.000289163
-0.000289163
-0.0214189
-0.000346859
0.000428663
-0.0120376
0.0116089
-0.000223397
-0.00045513
0.00374115
0.00477188
-0.00851303
0.000314064
-0.000119569
0.000264485
-0.000116468
0.00052966
0.000197903
-0.000387412
5.91147e-06
0.000381501
0.000327515
-7.99254e-05
-0.00024759
-0.0319677
-0.00971276
0.000178892
-1.97276e-05
-0.000159164
-0.000534286
0.000369051
-3.8253e-05
7.32024e-05
-5.04841e-05
-2.27182e-05
0.00016843
0.000430936
0.000318902
8.25743e-05
4.75057e-05
7.16555e-05
-0.000119161
-0.000198599
-0.00221025
-0.00687234
-0.00399514
0.000809178
-0.0201795
-0.00464784
-0.0010914
0.00193953
-0.000400887
0.000152879
-0.000127443
0.000657103
-0.000210355
3.8179e-05
0.000785498
0.000251495
-0.000295613
0.00030743
0.000336762
0.0387717
-0.00957912
-0.000278104
0.000594905
-0.000624184
-3.64516e-05
-4.97672e-05
-5.10399e-05
0.00169886
-0.00129917
-0.000381642
-0.000337082
0.000718725
0.011294
-0.00247461
-0.00881935
-0.00021268
5.5268e-05
-7.3998e-05
-0.000571455
-6.68088e-05
-0.00188608
0.0374567
-0.0198261
3.22073e-05
-0.000314173
-0.000592422
-0.000174587
7.92457e-05
-0.000381188
0.000206683
2.83425e-05
0.000112656
-0.0134606
-0.000333877
0.0039747
-0.0229276
0.0189529
9.91817e-05
5.44907e-05
-9.57798e-05
0.00303754
0.00276265
-0.00580019
0.0117226
1.88826e-05
-0.000104129
0.00738799
-0.00109975
-0.0128438
0.000104951
-0.00034718
-0.000236816
-0.000371043
3.67119e-05
-0.000442051
0.0118424
0.00237765
0.000945521
0.033206
-0.002682
0.000719005
-0.00207464
0.000131357
-0.000105947
0.000373025
-0.000418788
0.00206807
-0.0233707
-0.00698053
0.00369622
0.0284033
-0.0322422
0.0038389
-0.000834762
0.000719014
-0.000381814
0.00013866
0.000113814
-0.000235167
0.000804044
0.0290788
0.00865775
0.000109519
9.86898e-05
0.000363379
0.000810709
0.000935465
0.000274517
-0.000300995
-0.0105982
-0.000136819
0.000459226
0.000222899
9.88972e-05
-0.000232885
0.000133988
-0.000189647
0.000112542
0.000114537
-7.06797e-05
-4.38572e-05
-0.000285913
0.000381776
-9.58634e-05
0.000237466
-0.000237466
-0.000356103
0.000283244
-0.000807318
0.00188543
-0.00255841
-5.43998e-05
-1.56515e-05
0.000197195
0.00271321
0.00194839
0.00188768
0.0251304
-0.0004205
-4.54543e-05
-0.0258661
0.00276965
-0.000567662
0.000230367
0.00120006
0.00208365
-0.000929005
0.000344151
0.000584853
-0.0342758
1.00415e-05
0.000112885
-0.000119058
0.00434104
-0.000185487
0.000313145
-0.000214752
-0.00138423
0.000109151
-0.000560964
-0.000257589
-0.000112976
-0.000842287
0.000256638
-7.43456e-05
-0.0305253
0.00795967
0.010062
-0.00501684
0.000389805
0.0209258
0.00235259
-0.000206871
-1.94054e-05
0.000226276
-0.000810091
4.39563e-05
-0.00424427
-0.0022327
-0.00269109
0.000702425
1.44872e-05
-0.000467577
-0.0121757
0.0132351
0.000308863
9.04406e-05
0.00272715
0.00286211
-0.00347513
0.00362495
0.000428087
-0.000283637
0.000683108
0.000891798
-0.00140471
-0.0160027
0.0154848
-0.00788707
0.00162759
-0.000344891
-0.0012827
0.000315858
2.43319e-05
0.00428781
-0.00554629
-0.000331671
0.000405534
0.000470953
-0.030673
0.00454647
0.000159632
-0.000237101
-0.00032742
0.00726353
0.000124462
0.00165143
0.0274912
-0.000322263
-0.000622292
0.000108262
-0.000154323
-0.000459655
0.000131903
0.000183813
-0.0371504
-2.9966e-05
7.75856e-05
3.95745e-05
-0.0195001
0.0109192
0.00858091
-4.65258e-05
-0.00010114
0.00690827
-0.0011743
0.000847353
0.000326946
-0.0129075
-0.00954066
0.000368759
4.83122e-05
0.000845369
-0.00022709
-0.000243256
0.000832692
0.000224311
-0.000149764
-0.00182365
0.000353125
0.000613149
0.000419373
-0.000167878
-0.00146827
0.000577793
-0.000616008
0.000275459
0.000491987
-0.000272032
-0.000156866
0.00302791
-0.000117852
0.000319262
0.0253135
0.00663153
0.000196262
7.68205e-07
0.00015363
0.000707103
0.00143987
-0.000363685
0.000610806
-0.000729253
0.00380266
-0.00024911
0.00261339
0.00156375
6.72014e-05
-0.000113295
0.000285572
0.000116083
-9.86134e-05
-0.000220004
-0.000346531
-0.0263881
0.00761296
0.0187752
-0.000735677
0.0124183
-0.0156594
0.00304965
-0.00405248
-0.000317836
0.00127019
-0.0153993
0.000259727
-5.18811e-05
-0.000184666
-5.22111e-05
0.000212373
6.33015e-05
-0.00236342
0.00287505
-0.00740355
-0.0128785
0.001769
-0.000380779
-0.00253818
-0.00274557
0.0143187
-0.0218719
-0.00322576
-0.0148632
-1.0422e-05
0.0279547
0.00119132
-0.000454746
0.000853652
-0.000452732
0.000865288
-4.97703e-05
-0.000541661
0.000654586
-0.00021961
0.000581606
-7.19092e-05
-0.00451371
-0.00319435
0.0019878
-1.68227e-05
0.00031662
-7.19116e-05
-0.000244709
3.94753e-05
-0.000500684
-3.33599e-05
-0.0227514
-0.000201555
0.000354526
-0.000268297
9.6321e-05
-0.000175604
0.00277675
-0.000397619
-0.000163696
0.000109639
5.40569e-05
0.00727588
-0.00100827
0.000163339
0.000387091
0.000469526
-0.000327792
-0.000864281
-0.00038403
0.00622133
-3.99353e-09
-0.0324397
0.0282692
0.00534728
-0.00299271
0.0118335
0.0129247
-0.0247582
4.73013e-05
-0.00176569
-0.000465478
0.00083922
0.000446435
-0.000447842
1.40701e-06
1.16688e-05
0.000335758
0.000270971
-0.000203112
5.08111e-05
-0.0340319
0.0155475
0.000107708
3.9827e-05
-0.000147536
-0.0016474
-0.00104369
-0.00629165
0.00188721
0.000798611
-0.00158448
0.000785869
-0.000549589
-0.00245071
-0.000667285
0.00311799
-0.00167801
0.000138454
-4.21007e-05
0.000521238
2.52423e-05
-0.00054648
0.00238095
-0.00576686
0.0195253
-0.000201176
-0.000168549
0.00010893
0.0024756
-0.000395139
0.000250161
0.000144978
0.000138179
-3.99336e-05
-0.000274187
-0.0176447
0.000577644
-0.000348715
-0.000228929
-0.014255
-0.0107735
0.0141115
7.73492e-05
0.000275776
-6.49939e-05
0.000220005
-0.00023712
-0.000158019
0.000979312
0.0072966
0.00355175
0.000427269
0.00175334
0.00946015
0.00870276
-0.0181629
-0.00949894
-0.000237336
0.000195188
-7.43755e-05
0.0203956
-0.0150292
-0.00536641
-0.000180344
-0.000186289
4.15809e-05
-0.0119552
7.8437e-05
0.000169621
0.000260656
5.34085e-05
0.000220765
-0.000276905
0.00494746
0.000120587
-0.000353977
-8.41454e-05
-1.02792e-05
0.000247986
-0.0275274
0.0131434
-0.000411816
-0.00029629
0.000264177
-0.000387384
0.000123206
0.000476663
-0.000120799
-0.000355864
0.0306077
-0.000298286
0.000271512
2.67748e-05
0.00287257
0.000969357
0.00117847
8.28038e-05
-0.000269105
6.22341e-05
0.000319433
0.000420164
-0.000560287
0.000140123
0.0041595
0.000259514
-0.00441902
-0.000300156
-0.00062885
4.92226e-05
0.000487992
1.81349e-07
0.000847737
-0.000135658
0.00145483
-0.0313246
0.0298697
0.000264441
-0.00030679
0.000222417
-9.15618e-05
0.000863053
0.00027205
-0.000571033
0.000298983
-0.00771183
-0.00311072
0.00151873
0.000146164
0.000205119
-0.028961
-0.000689916
-0.000445145
0.000371229
0.000636165
0.000926795
0.000231889
0.000219279
7.62151e-05
-0.000541745
0.000514736
-3.13199e-05
0.000325643
0.000203611
-0.000510064
0.00403979
-0.000277163
-0.000301635
-0.000492683
0.00137805
-0.00575271
0.0216147
0.000205791
-0.000719381
0.00051359
0.000889333
2.69184e-05
-0.000100614
-0.00698303
0.0026593
-0.00318292
-5.93898e-05
0.00746391
0.0025153
6.57597e-05
0.000130502
-0.000333175
0.000282935
0.000104094
1.92067e-05
-0.00303254
-0.00260523
0.000935616
9.37539e-05
-8.37124e-05
0.00079573
0.000506766
-0.000480596
0.000445617
-0.00855028
0.00954112
-0.00622894
0.00140096
-0.00148176
-0.000982154
-0.000102254
-0.000119654
0.000221908
-0.000281078
0.000170479
-0.000363492
-0.00026617
0.000374824
-0.000108653
-0.000984668
0.000705894
7.13274e-05
-0.000225702
-0.000323538
0.000197341
0.0210614
0.00390093
-0.000373729
-0.00158262
-0.00601733
0.000486027
0.000503021
-0.000160523
0.000305216
-0.000266599
7.03369e-05
3.49288e-05
0.0446487
0.00526388
-0.00253673
0.00615224
-0.000442096
-0.00285011
-0.000105687
-0.000144695
-3.64423e-05
-0.000398778
-0.000159476
0.00679063
-0.00548788
0.000364219
0.000380092
-0.000242044
-0.000138048
0.000334647
-0.000377165
0.000205729
-0.00044883
0.000175596
0.000239615
0.000147019
-0.000147019
-0.000262573
-0.000100004
0.000362577
-0.000263927
2.0658e-05
-0.000562634
0.0019678
0.000392885
0.000548507
0.00333765
-0.0011704
0.000154664
0.000495879
0.000254221
0.00010278
-0.000357001
0.038574
-0.000387111
0.000333663
0.00102258
-0.000368043
0.000766239
-0.000546265
-0.00417635
0.000230481
-0.00389948
6.54844e-05
-0.000227314
-0.0224639
0.00126189
-0.000290368
-0.000120168
-6.16022e-05
5.79149e-05
-0.000288929
7.21461e-05
-4.09797e-05
0.00465757
-0.0143967
0.00973916
0.0111509
8.83908e-05
0.000176137
5.61568e-05
-0.000285866
-0.000266373
0.00055224
-0.021685
-0.0169528
3.86312e-05
6.29351e-06
-0.000101217
9.49231e-05
-0.00308618
0.000292511
-8.11647e-05
-0.00877825
0.000319065
0.00023023
-0.00136832
0.00185266
0.039719
-0.0178136
0.0137721
-0.0130724
0.00094052
-0.00187176
2.143e-05
3.89574e-05
0.000191488
-0.014439
0.00995778
-0.00146569
0.000187957
-0.000172893
-0.000100817
-1.99209e-05
4.73533e-05
-0.0275336
0.0278718
0.000564623
-0.0032389
-0.000933333
0.000485638
-0.000304507
0.00107676
0.000298577
-0.00032925
0.000334774
-0.000244451
4.86761e-05
-0.0177601
0.0295217
9.55528e-05
0.0202573
0.000100787
9.29184e-05
0.00873921
-0.00130133
0.000389139
-0.000301754
0.000344483
-0.000993406
-0.000348179
-0.000295694
0.000277544
0.000292442
0.000441932
0.000413397
-0.0342546
0.000144069
-0.000150738
-0.0308703
0.000248161
-0.000330437
0.000908023
-9.85184e-05
-4.56e-05
0.000198974
0.000259914
-0.0201295
-0.00393579
-0.000373376
-0.0020032
-0.0119251
0.00102422
-0.000324074
0.0207437
-0.00314403
-0.0304133
0.0168624
-0.000690678
-8.89004e-05
0.000100534
5.67965e-05
-0.0134346
-0.00447428
0.000378678
-0.000280303
-0.000121798
-0.000191397
0.000396091
-0.000204694
0.000204389
-0.000239649
-0.010962
-0.00201426
0.00204775
-0.0124339
3.20692e-05
-0.000435651
0.00757773
-0.00032037
-0.030674
0.0417144
-0.0110404
6.22614e-05
0.000116406
0.00113157
0.000287895
-0.000722589
-0.000312705
-5.79039e-05
-4.9351e-05
0.000107255
-9.82698e-05
-2.50305e-05
-0.0300867
-0.00235303
0.00761041
0.00762651
-0.00249048
-4.18652e-05
-0.000152985
-0.000328187
0.000281081
-3.05548e-05
-0.000250527
-0.00156565
0.00055083
-0.0108988
-0.0237603
-0.000679743
0.000428917
0.000250826
0.000126256
-0.000461847
0.000293402
0.000140024
-0.000164703
0.00711171
0.00399056
-0.00184218
-0.000976143
2.79419e-05
4.52604e-05
0.000160749
0.00174131
0.00061411
0.000231485
-0.00122403
2.3095e-05
-0.000207294
-4.62765e-05
0.000113976
-0.000102307
-0.00244718
-8.81939e-06
-0.013975
-0.00282947
-0.0280076
0.00172096
7.98323e-05
0.000126851
2.71576e-05
-0.000204838
-0.00324986
0.00202583
-0.00373521
-0.00219135
-0.000959567
0.00075575
0.0010327
0.00965492
0.000773379
0.0109517
-0.0129549
-0.000302857
-5.89742e-05
-0.00043195
0.000136256
0.021871
-0.00122269
0.00012745
-0.00279264
-4.89066e-05
0.000241985
0.000211942
-0.00576163
-0.000554416
-0.00109942
0.000583246
3.68949e-05
4.83083e-05
0.000262291
0.000321339
-0.000683472
0.000362133
-3.39024e-05
0.00017493
0.000165911
-0.000230266
-0.00128565
0.00114424
0.000141411
-0.000719321
0.000769445
0.00368913
-0.00137696
0.0156676
-0.00037754
0.00037779
0.00527854
-0.0261964
0.0171897
0.0161612
0.00653708
0.0134852
0.000583012
-0.000290017
-0.000292995
0.000227051
0.000566464
-0.00391804
-0.00100033
-0.000177728
0.000282352
-8.33995e-05
7.08605e-05
0.00104558
-0.000452531
7.59722e-05
2.2129e-05
0.000157863
3.89682e-07
0.000303565
0.000279451
-0.000143885
6.92581e-05
-0.000156944
0.000352255
-0.0021966
-0.000652288
-0.0335911
-7.37756e-05
2.76388e-05
0.000683543
-0.000618919
-0.0142811
-0.0163847
0.0335744
-0.0207712
-0.00833894
-0.000466554
0.00269192
0.00235374
-0.000125327
0.000558966
0.00683642
0.00250416
0.000388716
2.91168e-05
0.000100099
-0.016149
0.00471688
-0.00093433
-0.000230545
-0.00101685
0.000911673
0.000105174
-0.000553732
-0.0196234
-0.0354704
0.011234
0.0242363
0.0014693
-0.000670689
0.000253531
-0.0107393
-0.00176646
0.00583486
-0.00447005
-0.000106595
-0.000253241
0.00326875
-0.0109806
0.00314234
0.0194045
0.00029305
-0.00100532
0.000712817
0.0145287
-0.000132776
-0.000146294
6.19445e-05
0.000376449
3.44705e-05
-7.80208e-05
-0.000211039
7.60929e-05
0.00023352
-4.42564e-05
0.00545652
0.000130896
-0.000381052
-0.00141692
0.000701846
-0.000248373
0.000288215
-3.98417e-05
-5.33033e-05
-0.000122935
-0.000124212
0.0175698
0.00947897
-0.000441611
-0.000406053
0.000259114
0.000146939
0.00905441
-0.0325402
0.000359879
5.66209e-05
6.1496e-05
-0.000561844
-8.08767e-05
0.000113962
1.59297e-05
6.31245e-05
-7.90536e-05
0.000275015
-0.000862474
0.00182827
-0.00568868
-0.00014531
-5.14554e-05
0.00037052
-0.000312475
1.51307e-05
7.86047e-05
-1.106e-05
-0.000140642
6.58845e-06
0.00429741
0.000217441
-3.19194e-05
-0.000112227
0.00024195
0.00145167
0.00129281
0.000153051
0.000190598
-0.00034365
-0.000749629
0.00112629
-0.000215607
0.000360498
-0.000351401
-0.00065129
0.00070753
0.00248957
-0.00515571
0.00670091
-0.00121294
-0.00548797
6.53548e-05
5.68446e-05
-0.000122199
-0.000304625
-0.000332459
-8.02361e-05
0.000412695
-0.000583658
0.000428718
0.000437767
0.000243356
0.000224679
0.000841886
-0.000134315
-0.000197356
-0.000269224
0.000780718
0.000530209
-0.0101347
0.00459976
0.00553492
-0.000138237
0.0358808
-0.016015
0.00705554
-0.000426722
0.000279167
-0.000358137
0.000339672
-0.000412146
-0.000525096
-0.0225175
0.0169186
-0.000110093
2.27911e-06
-0.000111141
0.00017585
8.8671e-05
-0.000325546
-0.000690087
0.00779054
-0.000485833
-0.0332374
0.0178381
0.000414269
-0.000770878
-0.0136725
-0.00787739
0.00040998
-5.68747e-05
-0.000633212
-4.39396e-05
0.0381783
-0.0261437
0.00122165
5.21578e-05
-9.77114e-05
0.00020475
0.0013484
-0.000430747
0.0104151
-9.41596e-05
0.000163074
-0.000176618
0.000276805
0.00022045
-0.000479436
-0.0223005
-0.00320348
-0.01624
0.0162076
-0.00072152
3.95241e-05
-0.0125038
0.0151188
-0.00141272
0.000108399
-0.000149854
-0.000351543
-7.83063e-05
5.84176e-05
-0.00372898
-0.00428365
-0.000642501
0.000736781
-0.000220717
0.0107326
0.00476526
-0.00213874
-0.00981601
6.04821e-05
0.000385723
-7.5724e-05
0.000142891
-0.027794
0.0166108
0.0111831
-0.00933581
-0.0127082
-0.0313945
0.0242311
-0.0306149
-0.0150348
0.0456497
0.000468065
-0.000334706
3.47383e-05
0.000699385
-0.000343694
0.000151554
0.000259178
0.0022523
0.000161669
-6.11352e-05
7.15098e-06
-0.000116129
0.000108978
-6.08958e-05
7.8669e-05
0.00141959
-0.000645177
-0.000365446
-0.00137851
0.000374806
0.000296327
-0.000255647
0.000197104
-0.000426653
-0.000308484
0.00678157
-9.43342e-05
0.000169047
4.56421e-05
-6.54844e-05
-0.0229466
0.0372144
-0.0142678
-0.000575152
0.00106641
0.00139893
-0.000128666
0.00012431
5.00591e-06
-0.00134247
-0.000318456
-4.16371e-05
0.000360093
-7.43e-05
-0.0162981
0.000286704
-0.000127072
0.00020937
-5.68365e-05
0.000386494
-0.000155546
0.00112107
-0.000495065
-0.000626004
-0.00538208
0.00723788
-0.000228
3.24997e-05
-0.0012068
-0.000222551
-1.15691e-05
0.00023412
-0.000298403
-0.000240714
0.000181771
0.000162375
0.00106501
0.00317225
0.0175715
-0.00177775
0.000251942
0.0266435
-0.01481
-0.000323784
-0.000535766
-0.000276567
-0.000880831
0.00441856
0.0391194
0.0105318
-0.000247551
0.00010023
0.000385362
-0.000182482
-0.000448511
0.000252857
0.000195654
0.00335356
0.00677728
0.000350385
9.60503e-05
-0.00025093
-2.26623e-05
-0.000235301
0.000257963
-0.000367866
8.64782e-05
-0.000196244
-0.00577735
0.000878409
-0.000253636
-8.00322e-05
0.00034421
-0.000328531
-0.000597395
-0.000194814
-3.33563e-05
-0.000578242
0.000611599
-0.000282835
0.0194379
-0.0211203
0.00168244
-0.000104505
0.000129099
-2.45945e-05
0.000104878
0.000284023
-0.000466252
0.000117619
0.0237161
-0.000547329
0.000461723
8.56057e-05
-0.000131342
2.47777e-05
-0.00703513
-0.00016025
-0.000150533
-0.00804624
0.00982391
-0.00566313
-0.0087336
-0.000524937
7.97445e-06
0.00371215
0.000247399
-0.0195855
0.00625626
2.42194e-05
8.45259e-05
-0.000108745
-0.0215829
0.00558017
0.000396944
-0.000840359
0.000304044
0.000190478
-0.0117931
-0.00357757
-0.00769753
-0.00441801
0.00302774
0.000661392
-0.000259505
4.32886e-05
2.02693e-05
2.40356e-06
-2.40308e-06
0.000491023
-0.000283171
-0.0297229
0.00313509
-0.0156389
9.25604e-05
0.00017083
0.000152273
-0.000539497
0.000387224
0.000707195
0.000487567
-0.000539912
0.000169625
0.000191918
0.000227455
-8.8995e-05
-0.000188708
0.000277703
-0.000127383
0.000160079
8.13529e-05
-0.000246466
-8.58215e-05
-3.59641e-05
0.00816572
-0.00143464
-0.00673108
0.000657287
-0.00164961
-0.000234837
0.000395397
-0.000531024
-0.000193747
-6.20283e-05
-0.0412886
0.0136058
0.0276828
0.0010682
-0.000726944
-0.000341254
-0.000163784
0.00011048
-0.000382163
5.47434e-05
6.84203e-05
-0.000490312
1.92e-05
-0.00279197
0.00269876
-0.000285572
-0.00172984
-0.00363644
0.00367566
0.0336044
0.00440207
-0.00251013
0.000414362
-7.11664e-05
-0.000343196
-7.82794e-05
0.00499177
0.00513041
2.32261e-05
-0.000277402
0.00038101
-0.00640971
0.00226672
0.000108207
2.771e-05
-0.000135918
0.000531568
0.00028189
-0.000279389
-0.00116723
0.00117203
0.000188895
5.97864e-05
0.000607702
0.00405111
8.75585e-05
9.56878e-05
-0.000158229
0.000365129
-0.0002069
0.000212156
0.00116458
-0.000104626
-0.00105995
0.00485361
-0.00345873
-0.00139488
-0.00100243
2.98304e-05
0.000265887
-0.000366947
-0.00725539
0.000976655
-0.000301425
-0.000139522
0.000187834
-0.000203705
-0.000556812
-0.000387274
0.000944086
0.00622638
-0.00204242
-0.000792401
0.000133946
0.00093579
-0.000170121
-0.000365729
-0.000176016
0.00225313
0.000318409
-0.00025867
-0.00013993
8.2666e-05
-3.86176e-05
0.0246029
-0.000108575
-0.00023941
1.22307e-05
0.000227179
0.0124532
-0.0131111
-0.000224323
0.00018638
0.000481099
0.00196957
-0.00931345
-3.72153e-05
-0.000663674
-0.000946935
0.00161061
0.000150955
-2.71472e-05
-3.23019e-06
-0.0179955
-0.0114398
-0.0158491
0.0338084
-0.0179594
-0.000244923
0.000365083
-9.77781e-05
6.00007e-05
3.77774e-05
0.00015122
0.00234111
-0.0115863
0.00844065
0.000273288
-5.88903e-05
0.000201214
-3.68902e-05
-0.00135723
-0.000143813
0.000175783
-0.000404422
0.000974311
-0.00505537
0.0145155
7.21054e-05
-0.000493781
-0.00168148
-0.000351931
0.000178145
-1.18531e-05
-0.000243495
0.000515545
0.00267121
-0.00640018
1.47048e-05
0.00118701
0.000107304
-0.00129431
0.000150196
-0.000655709
-0.00105443
0.00343365
5.24076e-05
-7.6801e-05
0.000575736
0.000635592
-0.000350853
-0.000635673
-9.67561e-05
-0.000607016
-0.000209919
-0.00095507
0.000666428
0.000288642
0.00294311
0.000573355
-0.0008794
0.000990503
-0.00143847
0.000181685
-0.000213352
3.16673e-05
-0.000216092
0.000216092
0.00116548
-0.000243814
-0.000205989
0.000692804
0.00595412
-0.0102697
0.00282368
0.000699294
-0.00352298
-0.00984639
0.016628
-0.0028466
0.00141113
0.00915109
-0.000223439
-0.000858555
-0.0119368
0.0102069
0.000853247
0.00382629
-0.0163477
0.000165647
5.6636e-05
-0.0204313
0.0280442
-0.000188842
0.000245954
0.0263293
-0.0184921
-0.00783716
5.28088e-06
0.000172247
-0.000147353
-0.00021745
-0.000182814
-0.000183558
-0.000184958
0.000282028
-9.707e-05
0.000165183
0.000196475
-0.0067411
0.00654463
0.000198246
0.00017821
0.000150299
-7.93423e-05
-0.00015597
0.00345172
-7.00634e-05
-0.00047387
2.57838e-05
0.000181672
-5.12187e-05
-0.00126968
0.0103855
-0.00911581
0.000123262
9.97502e-05
0.000427023
0.0318709
-0.000465734
4.42145e-05
0.000132153
0.000148929
-0.0043177
0.000654889
-0.000400301
-4.69065e-05
6.5822e-05
-0.0340481
0.000235263
7.36415e-05
-6.46885e-05
0.000116315
-0.00399814
-0.000117642
-3.07824e-05
0.000148424
-0.0238921
0.0166367
2.11649e-05
-0.000349694
0.000138371
0.000834832
-0.000420223
-0.000316528
8.6262e-05
-0.000484891
-0.000137704
-0.000128374
0.000178459
5.2503e-05
-0.000237356
9.29115e-06
0.000588548
0.000100553
0.000170959
0.00035402
0.0170515
-0.000277652
0.00101487
-0.000271954
0.0135786
0.000169167
-0.0137477
0.00221376
-0.000284082
0.000195087
-0.000502133
0.000815316
-0.000987011
-0.000440926
0.000238184
0.000566598
5.46648e-05
-9.19978e-05
0.00816179
0.00236998
0.000267901
0.000720301
-0.000665554
0.000283323
0.000542613
-0.00413766
-0.00410732
0.000427991
0.000112331
0.000216908
-5.37639e-05
5.90242e-05
-0.000298345
0.000321128
-7.52073e-05
-0.000624179
0.000267453
-8.8895e-05
-0.000178558
2.14068e-05
0.00030728
0.00921559
-0.00670029
0.00272657
-0.0025187
0.033795
-0.0247406
-0.00869103
0.0232197
-0.000191506
7.5377e-05
9.23484e-05
0.000259227
-1.39806e-05
-0.014636
0.000514271
-0.000591072
0.000699613
-3.45888e-05
-0.000665024
0.00025576
7.26495e-05
-0.000118259
4.56099e-05
-5.86595e-05
0.00149416
-0.00033548
-0.000622822
0.000268105
0.000322423
-0.000265624
-0.000500888
-0.000121934
0.000322861
-3.61565e-05
0.00855307
-0.00399531
-0.0217569
0.0003431
-0.000105333
0.000401618
-9.34033e-05
-0.00740033
0.000242029
-2.36695e-05
0.00013154
0.000544996
-0.000372387
-0.000172609
0.000149575
-9.35765e-05
-5.59989e-05
0.000915426
-7.2233e-05
-0.0314439
-0.012804
-0.0243464
0.000360629
5.37331e-05
0.000239461
0.000872047
0.000124742
0.00500426
0.000398092
-0.00540236
-0.00451649
-2.50291e-05
0.0204189
-0.0295463
0.00912746
0.000193629
0.000185034
-0.000231218
9.84415e-05
-0.00019422
3.39176e-05
-0.000421903
0.000114077
0.000618167
0.000200104
0.00481509
0.0100189
-0.00358575
0.000198122
0.000265483
-3.65443e-06
-0.000261829
0.00161347
0.00790776
-0.00024474
0.00018646
-0.000329877
0.000375192
8.41445e-06
0.000499424
-0.000602679
-0.00325589
0.00288899
-0.000582558
-0.0013665
-0.000626729
-0.000122407
0.000146627
0.0141137
-0.000231672
-0.000545882
-0.0043904
0.000867694
0.00828205
1.64389e-05
0.000116234
-0.00291518
3.36794e-05
0.00026514
6.38667e-05
-0.0016248
0.00177435
0.00429802
-6.31709e-05
-0.000540259
-0.000616882
-0.000118017
-0.00030079
0.000418807
0.000222505
0.000138037
0.0119288
0.00164975
4.25199e-06
-0.00181662
-0.00260734
0.00442396
-0.0181917
0.00550515
-0.000114877
0.00036318
0.000255242
0.000213429
0.000159108
-0.000621912
6.67992e-06
0.0151335
0.0183529
-0.000389838
0.000634751
-0.000244913
0.000480616
-0.000261911
-0.000218705
0.00615634
-3.63567e-05
-0.00023542
0.000204684
-0.0310285
-0.0146426
-0.00329253
-0.00276938
-0.000794545
-0.000441239
0.000280557
0.000135125
0.000111347
-0.000190349
0.000304822
0.000459827
0.000175765
0.0192444
-0.0124612
0.000927773
0.0310425
0.000414586
-0.000289217
-0.00948189
0.000198945
-0.000173608
9.27311e-05
-0.0210596
-0.000124212
-0.00527654
0.00651398
0.000494196
-0.000493583
0.000148544
0.00042406
0.000137254
-0.000561314
0.00448252
0.00532298
-0.000518944
0.000200488
-0.0210518
0.020654
0.0107229
-0.0148435
-2.44356e-05
-0.000457541
0.000200349
0.0125987
0.0100085
-0.0317834
0.0217749
-0.000313018
0.000778305
-0.000466961
-0.0150612
0.0307543
-0.0119791
-0.000354882
-0.000886545
-0.00971702
-0.000994535
0.00108609
-9.15542e-05
-9.22392e-05
8.41704e-05
-8.77017e-05
-0.000311461
0.000388205
-0.000153132
-0.000212384
0.00021734
0.00257762
0.0017204
0.000259785
-0.000567638
6.21826e-05
0.000330076
0.000996565
0.000401326
-0.00112604
-4.80831e-05
-0.000183901
-0.000384263
-0.000238522
0.000728672
0.000216869
0.00120681
-4.27597e-05
0.000165754
-0.0116534
0.00850303
0.000309446
-0.000250027
0.000307942
-0.0310659
-0.01323
-0.00283359
-0.0223172
0.0141375
-0.0156111
-0.00054914
-9.53424e-05
9.5342e-05
5.07538e-05
-0.000650801
0.000600048
-0.0005822
0.000250192
0.0147769
0.000231175
-0.000523958
0.00122302
-0.00132859
-0.00118498
-0.00018293
-0.000314889
2.64972e-05
-0.000133024
0.000159623
8.7571e-05
0.000122233
-0.000173851
1.32783e-05
0.000160572
-0.000332593
-0.0121081
0.0152432
-0.000247049
0.000184302
0.000218884
-0.00291414
-0.00634939
0.000122979
0.000347974
0.000445351
-6.14379e-05
6.14381e-05
-0.000561379
9.36131e-05
-0.00012786
-0.000830319
0.000389698
-0.00148883
-6.14503e-05
-0.000103873
-1.39537e-05
-0.000597095
0.000137144
-0.000439075
-0.000372574
-0.000103862
0.00324429
-0.00254499
-0.00194649
-0.00331593
0.00169261
-0.000190228
-0.000115141
-1.30305e-05
4.17618e-05
-2.87318e-05
0.0058756
-0.00484657
0.00375299
0.00697965
0.00218954
0.00436979
0.000445293
0.000713732
0.000861724
-0.000448118
-0.0160071
-0.0287224
-0.0122336
-0.00204753
-0.0245692
-0.00315705
0.0235615
-0.0263951
0.00182375
0.000201287
-0.000478451
-7.67297e-05
0.000661951
-0.000492028
-6.26531e-05
0.00028023
-0.000176241
-0.0271472
-0.0167609
0.0169433
-0.00397572
-0.0129676
-0.000934847
-7.66575e-05
2.68292e-05
0.000181949
-0.0172668
0.00438827
0.0270312
-0.001551
0.000434912
-6.12197e-05
0.0335446
-0.0136123
0.000530077
1.31996e-05
-0.000126583
0.000266268
-0.000183652
-0.000261032
0.00150427
6.38446e-05
-0.000326418
8.90381e-05
-5.44267e-05
-3.46114e-05
-4.99708e-05
0.000112696
-0.000715631
-0.0457019
-0.00163537
-0.0349034
0.0092407
-0.00015459
-4.72296e-05
-0.023017
0.0169457
0.00607129
-8.56314e-05
0.000991719
0.00077873
-0.000450869
-0.000166013
0.00018307
0.000297546
0.011428
0.000167241
-0.000167241
0.000113945
-0.000974197
-6.80094e-05
9.92337e-05
0.00301532
-0.000101015
6.13964e-05
0.000189409
-0.000320395
0.000130985
0.00022743
-8.91747e-05
-0.000118631
-4.15946e-05
-0.0366467
-0.00273411
0.00555514
-0.000226304
0.000165137
-0.00391136
-0.00831296
-0.0118371
0.0153892
0.000196099
-0.0301602
0.018429
0.000334409
-0.000554019
-0.000769308
0.00136512
-0.0153882
-0.0137392
0.000337866
-0.000516294
0.000591672
-3.37548e-05
0.00206015
-8.15903e-05
-2.55589e-05
-0.0181584
0.012381
-6.12279e-05
-0.000245408
-0.000385419
-0.000298053
0.00937009
-0.0102603
-0.00780505
0.0011202
-0.00143803
-0.0142851
-0.0164138
0.0026521
-4.16447e-05
0.0017186
-0.000750379
-0.00549837
-0.00922822
0.0147266
0.000108275
-0.000116137
-0.000120365
-0.000426965
0.00037231
-0.000243046
-0.000129264
0.00115833
0.000396058
-6.02999e-05
0.00303391
-0.00171116
-0.00132275
0.00652055
0.00171415
-0.0124008
0.00523928
0.00716156
-0.000225146
-0.000217685
-0.00014025
0.003829
0.00016594
-0.000610608
-8.71076e-05
-0.000188895
-0.000452712
2.49377e-05
-3.56128e-06
-0.00628979
-0.00196764
-0.000286697
-1.1648e-05
-0.000168657
0.00019593
-2.72735e-05
0.00407855
-0.0083622
0.0155304
0.000636995
-0.00422175
0.00358475
-0.000311791
-5.43501e-05
0.00150601
-0.00101247
-0.000227573
0.0113593
0.0181836
-0.0295428
-0.000865571
0.000760461
0.000410502
-0.000127258
-7.8405e-05
-0.00406605
-0.0038274
-0.000459955
0.000509262
-0.00572685
-0.000173935
-0.000306268
6.20679e-05
0.000265448
0.00015006
-2.94947e-05
0.00622348
-0.0221418
4.69675e-05
4.8495e-06
-0.000245433
0.000240583
-6.48471e-05
0.000319068
-9.20049e-05
0.000316483
0.0198725
-0.00571917
-7.9941e-05
9.09183e-05
0.00637332
-0.011224
-0.00184191
0.000386817
-0.00356068
0.00781622
0.000389055
0.000239495
0.000749171
0.000809596
-0.00657123
-0.000222381
-1.70053e-07
-0.00029226
-0.000423968
0.000198822
-0.00467695
0.00273046
-0.023359
0.0148493
1.80933e-06
0.000101388
-0.000178101
-8.5165e-05
-0.000296759
0.000374108
-0.000296053
-0.000195501
0.000509538
0.00049564
-0.000508734
-0.00504161
0.00122965
0.000361786
-0.000340921
0.000515572
0.000586984
0.000634668
0.0110853
-0.00220527
-0.00520772
0.0109231
-0.00571539
0.000562926
0.0181645
-0.000220021
0.000129288
-0.00605174
8.28625e-05
0.000287171
-4.3244e-05
-0.0191285
0.00161979
9.43068e-05
-0.000232164
0.000351928
0.00190317
-0.000836514
-0.000295601
0.00113211
0.000258429
0.000167713
0.000277346
-9.67191e-05
-2.54801e-05
-0.000237929
0.00162773
0.000577437
-0.000199647
0.000534143
0.00043717
-0.000371547
0.000146116
-4.90133e-05
0.0014683
2.39458e-05
0.000211712
4.8266e-05
-0.000314456
-0.000100606
0.0027703
-0.00197743
0.00141456
0.000562868
-0.00936882
-0.000208504
0.00010625
0.0375492
-0.0109056
0.000498772
-0.000285032
0.000277799
0.000265497
-0.000293157
-0.0106445
0.0108636
5.13355e-05
0.0098068
-0.000106299
-3.09032e-05
-0.000106807
0.0199842
0.00861385
-0.000886688
-0.000809991
0.00169668
-0.000442623
-0.00055871
-0.00136019
-0.013701
0.000780739
0.000435041
-0.00121578
-0.0124779
0.000307008
-0.00162641
0.00126097
-0.000226152
0.000450374
-0.000224882
-0.0213229
0.000447512
-5.91359e-05
-0.000171685
0.00216367
-0.000248621
-0.000107181
0.000355802
0.00190522
-0.00835131
6.58315e-05
-0.000140199
0.00709917
0.000123379
-0.000123379
-0.00206605
0.00162507
-0.000789983
0.0046859
-0.000250132
-0.000135539
6.18484e-05
-0.00010017
-8.86586e-07
-0.000280036
0.00020585
7.41858e-05
0.000140786
-0.000135248
-5.53749e-06
0.0011589
-0.00237021
0.0254478
0.014122
-0.000461104
-0.000194248
5.95409e-05
-0.00127327
0.000523643
-0.0107508
-0.0039918
0.000328703
-0.000721933
2.55114e-06
0.000111572
5.00974e-05
0.009157
0.000195851
0.000185925
0.000176107
0.000479883
0.000429328
-0.000435788
7.28823e-05
0.000157307
1.69949e-05
0.000132404
9.19074e-05
-0.0202774
0.000351463
0.000236974
0.000350392
-0.000468392
-0.000370988
-0.000857079
6.49049e-07
-7.44177e-06
6.7927e-06
-0.000330066
0.000222237
-0.0005448
-0.00630796
0.000175857
0.00065996
-2.63116e-06
9.52137e-06
-6.88968e-06
0.00231403
-0.0117681
0.000867804
0.00166136
0.0351446
0.00140974
-0.00962812
0.00258483
0.00105879
-0.000447988
0.000259344
-0.0212886
-0.0248767
-0.000346793
-0.00136571
-0.000260705
-0.00219839
0.000144751
-0.000609151
-7.52589e-05
0.00158146
0.000167898
0.0255867
-0.0255867
0.00119326
-0.00281805
0.000241865
-0.00013453
-2.19885e-05
0.0258895
0.000476859
0.00033593
0.000173279
0.000259533
0.000139933
2.13957e-06
9.16143e-05
-0.0100976
-0.000546898
-9.92492e-05
-0.000255217
-0.00701067
0.00243844
0.00457223
-0.000822476
0.000245822
0.0068198
6.93939e-05
0.000169426
0.00317941
0.00343687
-0.00661628
0.000650065
-0.000213561
-6.06122e-05
0.000305053
-0.000303221
-0.000249905
-0.000198606
0.000109961
0.00024927
-0.000581122
-7.96463e-05
-1.81619e-05
0.0135602
0.000729307
-0.000123833
0.000126548
-0.000107776
-0.00586896
0.0122353
-0.0063663
-0.00017631
-0.00091147
0.00093939
5.60476e-05
-5.56338e-07
5.5647e-07
-0.000639117
0.000599787
0.00201765
0.0327388
0.000350204
-0.000243326
-2.61968e-05
0.000349623
0.00019303
0.000246825
-0.000210003
0.003707
2.5539e-05
0.000361185
0.00327309
0.0105939
0.000450749
-0.000156436
-0.000294313
-0.000342857
4.80868e-05
0.0303858
-0.00124473
0.000528576
0.000348518
3.16041e-05
-0.000234858
-0.00045074
-0.000872338
-0.000920084
0.00179242
0.0050234
-0.00260845
-0.000101798
-0.00388488
0.00624253
-0.000464279
-0.000156909
-0.000404935
-0.000332809
0.000141572
0.00221351
-0.000221247
0.000309638
0.0278122
0.00598281
0.000214015
-0.000183635
0.000330206
-0.0112529
-0.000166224
0.00056137
-0.000123028
0.000262252
-0.000409103
0.000195099
-0.000802704
0.000190305
0.000111124
-0.0197554
-0.000244629
-0.000132091
1.55393e-05
0.000156708
0.0014893
-0.000312297
-0.001177
-0.00793036
0.00761023
0.000320132
0.00498696
0.000658709
-0.000775937
0.000117229
-1.34897e-05
-0.0397642
-0.000853713
-0.000165398
0.000971104
0.000830033
-7.62521e-05
8.95723e-06
-0.0109286
0.00015508
-0.00711363
-0.00026783
-0.000772516
-0.000427964
0.000168393
0.000124848
0.000217226
0.000157605
0.0101143
-0.00517795
0.00532395
-6.89967e-05
0.000325334
9.10108e-05
-0.000333055
-0.00175903
-0.000150594
0.000421757
7.92499e-05
0.000273457
-3.90347e-05
-4.8211e-05
0.000572085
0.000273283
-0.000616957
0.00445207
-3.17456e-05
-0.000489393
0.000950553
-0.000283584
0.000151669
-0.000236927
0.000172765
0.000145298
-0.0154495
-0.0155729
0.0310224
0.00070112
-0.000996721
0.00393355
-0.00302548
-0.000178459
-7.02216e-05
0.000344225
-4.76222e-05
3.75202e-05
0.00018881
-0.000875912
-0.000541003
-0.000337753
0.00367108
-0.000441603
0.000402832
-0.000158804
0.000311381
0.000109639
0.000911278
0.000100331
-1.39076e-05
0.000104111
2.2145e-05
0.00244921
-0.00856734
0.00611813
0.00066566
0.00232556
0.00142545
1.12545e-06
0.000112851
-0.000368655
-0.000816325
9.12368e-05
0.000255386
0.000184203
0.0401308
-0.0233038
-0.016827
0.000234965
-0.0133588
0.0272487
0.000441244
-0.00759099
0.0242018
0.000927402
0.000611843
0.0269271
-0.0216485
0.000537198
0.000453668
-0.0201139
0.00527036
6.85829e-05
0.000112004
-0.00820809
0.00109446
-0.0220562
0.0122439
-0.0154667
0.000225976
-0.000156582
-0.000408423
0.000430903
-0.00043991
-0.000599609
0.000236941
-0.0325659
-0.00320983
0.0336044
0.00117196
-9.51915e-05
-9.82716e-05
-2.54533e-06
-0.0108253
0.00190466
0.00331779
-6.61533e-05
0.00026386
0.000261095
-0.00243466
-0.000710652
0.000369864
0.000352289
1.94495e-05
5.74552e-05
-0.000135125
-7.74206e-06
-0.0156988
-0.00731823
-0.00270919
8.9708e-05
6.46246e-06
-0.00191097
0.000937452
0.000201854
0.000655403
-0.0192712
0.000455264
-0.00469953
-0.000318156
-7.32262e-05
0.00586572
0.000464281
-0.000314085
0.000300661
0.000513334
-0.000305734
-0.0002076
-0.00751182
0.000305884
0.000263345
-0.000530192
-5.15229e-05
-0.000243568
0.00187182
-0.00107445
-0.00282302
-0.00029136
0.000202873
-0.000541246
-0.000237411
0.000640368
0.00392166
-0.00199943
-0.00192223
4.68028e-05
-0.000885184
0.00204409
3.96853e-05
0.000105015
-0.000263984
4.96824e-05
-0.000248478
0.0143246
-0.0124435
0.000149476
2.77556e-05
0.0116373
-0.00277407
0.00597336
-0.000133222
8.78313e-05
-0.000199831
0.000112001
-0.00674452
0.00441448
-0.0133563
-3.7746e-05
0.0104073
-0.0105442
-0.000227368
0.00629254
-0.000968812
0.00028271
-0.000262501
0.000210007
0.000795005
-0.000376434
-0.000348599
0.000772253
0.000420828
-0.000687194
-0.00115432
0.000864039
-0.000760385
-6.83676e-05
0.0403032
-0.0147165
-8.19401e-05
-8.3902e-05
-7.69955e-05
0.00183409
-0.000616309
4.81963e-05
0.000331875
-0.0184174
-1.66534e-05
0.000573156
-0.0010956
-7.73566e-06
0.000197802
-0.000366316
-0.0015836
9.02652e-06
0.000575827
-0.0274912
-0.00174039
0.00488945
0.00014589
0.000368845
0.000675893
3.26927e-05
-0.000708586
-0.000337473
-3.14276e-05
-0.0174818
6.92884e-05
0.0215032
0.000102936
-9.23552e-05
-0.000331145
3.55775e-05
-0.000180297
0.000190619
-0.0101561
0.00210257
0.00846415
-0.0105667
-0.00442875
0.000192639
-0.000561975
0.000313497
0.00241817
1.79451e-05
-0.000242429
0.000261138
0.0280929
-0.0314604
0.000245926
-0.0267891
0.000478223
0.029116
-7.88778e-05
0.000423466
-0.000486741
6.32748e-05
-0.00576285
0.0251546
-0.0236998
-5.73935e-05
-0.000463674
8.59767e-05
-0.000147112
-4.71827e-05
-0.000652688
-0.000186045
-0.0131353
0.00473879
8.52246e-05
-0.000116519
0.000167092
-5.05734e-05
9.89564e-05
0.000138745
-8.66083e-05
-0.000594517
0.000103018
-0.000142952
5.5462e-05
-0.000112648
0.000231729
-0.00128886
0.00133616
-0.00216629
0.000749054
0.00141723
1.95951e-05
-0.000116074
0.000102658
-0.0251181
0.028957
0.0303912
-0.00210074
0.00013541
-0.00644586
0.000198192
-0.000505401
-0.00767515
0.00824119
-0.000732774
0.000104094
0.0010799
-0.000896451
-0.000183448
-7.01153e-05
0.000860664
-0.000790549
-0.00024185
-0.000166573
-0.0070585
-0.018746
-4.73694e-05
0.000511068
-3.75036e-05
-5.70839e-05
-0.000279191
-4.7989e-05
5.87346e-05
0.000388015
-0.00402445
-0.0290788
-0.0233342
0.052413
-0.000273671
0.000267499
-6.22405e-05
6.53215e-05
-0.000226381
0.000227494
-0.000607863
-0.0124947
0.0288635
-0.000134172
7.85189e-05
0.000200932
0.000927547
-0.000101347
0.000202735
-0.000281014
0.000276034
-0.000271822
-0.000202399
0.000204433
-0.0201516
-0.000334232
0.000685994
0.000202289
0.000144875
0.000226828
-0.00387815
-0.00737107
0.0112492
0.00057795
-0.00140905
0.000831102
-8.03467e-05
-0.000140828
0.000171501
0.00908319
0.0170227
-1.84185e-05
-0.000266012
0.000269258
-0.000113551
0.000153378
0.00176905
-6.61653e-05
0.000462158
0.000385341
5.48882e-05
-5.33097e-05
-0.000239391
-0.000166026
0.00072966
-0.000356118
-2.58999e-05
-0.000687169
-0.000376299
0.000249122
-0.0106286
0.000238549
0.000811269
-0.00466088
-0.011983
-0.021608
0.000237664
0.0188423
-0.0131514
0.000301068
6.59822e-05
2.65331e-05
-0.000115347
-0.000257227
9.45582e-05
-0.000176554
0.000494521
0.008448
-0.000903871
9.21617e-05
0.000180834
-0.000161945
0.000620088
0.000538242
-0.00021282
0.000130258
8.25622e-05
-5.435e-05
0.0022229
0.000314635
-0.00850845
-0.0140688
0.0241831
8.07876e-05
0.000106756
0.0105006
-0.00816289
-0.0023377
0.000277483
-0.000414642
0.000272103
0.00014254
-7.75895e-05
0.000233478
-0.000593454
0.000139694
-0.000126793
0.00133741
0.0011264
0.000178285
0.00108797
-0.000520202
0.000225991
8.24379e-05
0.000444375
-0.000257678
-0.00861616
0.000725425
0.000967189
0.00058935
0.0140098
0.000140917
0.000189983
0.000243792
-0.000916056
-0.00150061
-0.000144953
0.00028932
-0.00189201
2.54608e-05
-0.000321
0.00029554
-6.14168e-05
-2.00995e-05
0.00960391
-0.000215421
0.0004347
-5.10398e-05
-0.000324574
0.000617017
8.94058e-05
-0.000153887
-2.85944e-05
0.000296538
-0.000295965
-0.0148491
0.0231513
-0.000363098
0.00301067
-0.00245126
-0.000218243
-0.00010554
-0.000416477
0.000897211
0.000183551
-0.00108076
-0.000585553
0.00016925
0.000416303
0.000830006
0.000559283
5.03465e-07
7.90187e-05
-7.95223e-05
-0.000414532
-7.35203e-05
0.000488052
-0.00194386
0.0108401
-5.57621e-05
0.000131977
-0.0111615
0.000382535
-0.000399134
-0.000444285
0.000300526
0.000427255
-0.00058606
-0.000864367
-0.000447363
1.05369e-05
-0.00012458
-0.00138855
0.000122625
0.000205737
-0.000328362
0.000141853
0.000146361
0.000125053
-0.000113291
0.000194671
-0.000551865
-0.000237951
0.000139348
5.61806e-05
0.000143352
-0.000199533
0.000297996
0.00823108
-0.0134715
0.00524039
-0.000327022
-0.0006126
0.0134756
0.000115404
0.000328175
0.000299018
0.000199494
-0.000377612
5.22506e-06
0.000918875
0.000324275
0.000204131
-0.000528406
-8.49006e-05
-0.000137501
0.000357509
-0.000509007
0.00024124
-0.000156117
-0.000356197
0.000418961
-0.000186233
-0.00209163
0.000145164
2.50328e-05
-2.29752e-05
0.000254675
0.000103491
0.000265823
-0.000722579
0.000720229
0.000176643
0.000397862
-0.000854083
0.000536676
0.000200528
0.000501554
-0.0144875
-0.00954451
7.19188e-05
3.6726e-05
-0.000176853
6.00008e-05
-0.0211273
0.000186444
0.00344315
-0.00023645
0.000212567
0.000583621
7.50875e-05
-9.35765e-05
-2.60475e-05
0.000410532
-0.000383177
-0.0032145
-0.00186817
0.000302523
-0.0131301
0.000401867
0.000172374
-0.000528116
-0.000242381
-0.000264155
-0.000165856
0.000834955
-0.0017714
0.023179
4.22937e-05
-9.32242e-05
5.09305e-05
-0.0388665
0.00783802
0.00293786
-0.000378704
0.000396453
-1.77495e-05
-0.000301161
1.44077e-05
5.03428e-05
0.0279506
0.000156859
-0.000208798
-0.000168426
0.000284838
-0.000294582
-0.000489928
-0.0109074
-0.00443124
0.0153387
0.000234572
0.000163075
0.000175372
-0.000178809
0.00039476
0.00689212
-6.36626e-07
4.52604e-05
4.08853e-05
0.00327459
6.28091e-05
-0.000792636
0.0163928
0.00527652
-0.0216693
-0.0151686
0.0021501
0.0130185
-0.000315738
9.58871e-05
-0.0179612
0.0169896
-0.000165647
-4.7007e-05
7.20885e-05
-0.000177776
-0.000869026
4.33532e-05
-0.00013102
8.7667e-05
-0.00911065
0.000772232
-7.04989e-05
9.31663e-05
0.000407154
-0.00167912
0.000524808
4.09544e-05
-6.19445e-05
-0.000124088
-3.94154e-06
0.00532789
0.000148218
0.000327068
0.000951106
-0.000121043
-0.000830064
0.000269463
9.82781e-05
-0.000422558
0.000190394
-0.000323599
0.000630908
-0.000157757
-0.0001354
-0.00030058
-0.00226168
0.00374252
8.27216e-05
0.00151995
-0.00190072
-0.000736033
-0.000228496
-0.00816939
0.00531882
0.0300801
-0.0223397
-0.00026214
2.25956e-05
-0.000288022
-0.00202277
-0.000219584
-0.000269809
-5.69134e-05
0.00312656
0.00561603
-0.000296766
7.17468e-05
6.67072e-05
0.000204139
0.000503241
-0.000152538
-0.000416331
0.000171315
0.000245016
-0.000264029
0.000391561
-0.000127532
-0.000359615
7.29815e-05
-0.000396368
-0.00154376
0.000577273
5.17331e-05
-0.000218385
-0.0010758
-0.0264204
7.23951e-05
-5.44267e-05
0.000228702
-0.000260813
-9.82167e-05
-0.000234545
0.00025991
-0.0135931
0.00334972
0.0029581
8.79947e-05
-0.000357361
-2.88847e-05
-0.000183027
0.000105681
0.00023081
-0.00662339
0.00013051
0.000332226
0.000311983
-0.00021443
-0.00872046
-0.0319677
0.000179848
0.000150913
-0.000151644
3.55562e-05
0.00188067
-0.000227155
0.00030363
-0.00033482
-0.000558566
0.00110006
-0.000697293
0.000372265
0.000325028
0.000254138
0.00122593
-0.00148007
0.000654305
-0.000530243
-0.00903707
-0.0125458
0.000377585
-0.000229368
1.92237e-05
-0.000666423
0.000130258
-0.0187711
0.0301304
0.000976822
0.00423485
-0.00251445
-0.000138034
-0.000294325
0.000432359
-0.000242729
0.000266146
-2.2666e-05
9.53155e-05
0.000232674
-4.04194e-05
-0.000327026
0.000327416
-0.0197005
0.000240973
0.0158495
0.00351877
-0.00251914
-0.00195091
-0.00696671
0.000225604
-5.39416e-05
-0.000415709
0.000104248
-0.000304776
3.542e-05
0.0359617
-0.0195814
-0.0163803
-0.00667968
-0.00015571
-0.000128256
0.00293975
0.000240401
-0.000657065
0.000242533
-0.000684281
0.0108108
0.000255721
-0.00037589
0.00044003
-0.000335303
-9.0242e-05
-0.00021737
0.00768913
-0.000192696
-0.00765986
0.00908992
0.000540195
-0.00205317
-0.000108336
-0.00199123
0.000169263
-2.95692e-05
0.000189709
-0.0119398
0.00728097
-3.60396e-05
-0.000238507
3.52587e-05
6.0294e-05
0.0180139
0.0015622
0.00139617
0.000382967
-0.00218498
9.51543e-06
0.000430622
-0.000697172
0.000211339
-7.99503e-06
0.000240651
-6.49346e-05
0.00062559
-0.000102449
-0.00341157
0.000263044
0.000226215
-0.000102733
-0.000519921
-0.00108455
-0.0122288
-0.0158051
-0.000256606
0.000176712
0.00024225
-0.00479638
-0.0158214
-0.00937419
0.034822
-6.75548e-05
0.000553854
0.000171079
-0.000123655
-4.74237e-05
0.0134369
-0.00011589
0.000142747
0.0034638
0.00825826
0.0175059
0.0242084
0.00611949
7.02306e-05
6.81646e-05
-0.00606696
-0.000135891
-7.48641e-05
-0.00041494
0.00500268
-0.00712615
-0.00782687
0.0121647
0.0253844
-5.93195e-05
7.47256e-05
9.63537e-05
-0.00220693
0.0022713
-0.000439852
-0.000713503
-0.000371043
-0.000241478
-9.04851e-06
-0.0020088
0.0263417
-0.0217309
0.00353324
0.00421642
-0.00774965
-0.000319122
0.000381304
0.00025705
-7.88271e-05
-0.0158446
-0.000132969
0.00454012
-0.00176336
-0.000412547
0.0104168
0.0032229
-0.00329729
0.00923309
0.00442678
0.00982443
0.000484396
-6.23385e-05
-0.000111053
0.000173391
-0.0010404
0.000372817
0.000256498
-0.000349084
0.000141065
-0.00017164
0.000311949
4.70728e-05
-0.018247
0.00234182
6.6568e-05
8.26799e-05
0.0036151
-0.000232704
0.00032493
-9.22262e-05
0.00948831
-0.0106911
0.000697396
-0.00075427
-2.58397e-05
0.0253383
0.00474184
0.000909129
-0.000173539
-0.000240513
-0.000105547
0.00509022
0.00120499
0.000691221
-0.000445216
-8.73292e-05
-0.0064891
0.00751225
-0.0004537
0.000332901
2.38355e-05
-0.000333915
0.000310079
-0.000271852
6.68877e-06
0.000168995
0.000179523
-0.0171793
-0.0225849
0.00101987
6.27054e-06
-6.49822e-06
-0.0158647
-0.000847586
0.0167122
0.000396958
-0.000181965
-0.000283186
-8.36363e-05
-0.000528208
6.39281e-05
0.000872402
0.030532
-0.030532
-0.000270952
-0.000208384
0.000118926
-0.00463774
-0.00237293
0.000247178
-0.000159658
-0.000208913
-0.000302136
2.48953e-05
-0.00221297
0.00111358
0.00109939
0.000171102
-0.000454288
-2.94961e-05
0.000308803
0.000470147
0.000866416
0.000129398
-0.0160838
-0.000253693
0.000201243
3.70709e-05
-8.19681e-05
-0.000115378
-0.00693447
0.00364552
0.00328895
-0.0297751
4.12696e-05
-0.000283567
0.000114073
0.000276199
-0.00051093
-0.000408485
-0.00517926
0.00144404
-0.00276709
0.0113926
7.60335e-05
0.000601783
-0.000677816
-0.000200059
0.000243066
-0.000101191
-0.000340864
6.75439e-05
0.0296975
-0.000240572
-0.00116751
-0.0270703
0.0270703
-0.000117385
-3.36379e-05
-0.000787478
6.46885e-05
8.36511e-06
-0.000327487
4.4343e-05
1.52216e-05
-0.000173299
5.54738e-05
-0.00122317
0.000706478
-0.00808295
-0.00457431
0.0050196
0.000263164
-1.21266e-05
-0.000251038
-0.019968
-0.00143547
2.27457e-05
0.000151103
-0.00031748
0.000412673
-0.000223607
0.000275908
0.00505918
-0.031515
-0.0205991
-0.00277159
0.00325424
7.15607e-05
0.0330632
-0.00122523
0.000210919
-0.000377523
0.000274144
-0.000543706
-0.00104759
-0.000647391
-0.000761661
0.000367534
0.000968984
-0.0131535
2.59556e-06
-0.00062511
0.000680423
-5.53128e-05
0.000309043
-0.000225667
0.000112316
-7.44747e-05
-0.000203227
-4.16255e-05
0.000244852
-0.0196024
-0.00293043
0.0225329
0.000173825
-0.000236836
-0.0130494
-0.00783567
-0.000100088
-0.000286112
0.000171529
-0.00120835
-0.000254509
-0.0123468
0.000183906
0.000206358
-0.00015339
-0.00269155
-0.00281414
0.00723749
-5.80865e-05
0.00152803
0.000207123
-0.000114961
-0.000164113
1.52102e-05
-0.000847749
-0.000367192
7.54182e-05
4.37652e-05
0.000181491
0.000329045
-2.95913e-05
-3.35707e-05
0.000146456
0.00456011
0.000983244
0.000100919
0.000272126
-0.000373045
-0.000561185
6.97432e-05
0.000275569
0.00053183
7.83132e-05
-0.000114278
0.000402977
0.000198394
-1.85463e-05
-0.000116926
-0.000293389
7.51454e-05
0.000179382
-1.22893e-05
-0.00528077
0.00771921
0.00381147
-0.000303719
0.0002853
0.000731581
-0.000428547
-0.000254458
5.1315e-06
0.000244629
5.53951e-05
0.000765802
-0.00605822
0.0342487
-0.00385325
-0.00123794
-6.92649e-05
-9.97754e-05
-2.95721e-06
-0.0263306
0.0418404
-0.0155097
0.0136364
0.00501568
-0.00148652
-0.00731353
0.0355827
-0.00238803
7.15961e-05
-2.25378e-06
0.0100799
-0.0016051
0.00530132
0.00290516
0.000434329
-0.000203962
6.5772e-05
0.000123468
0.00162851
0.000345109
-0.000301344
0.000523505
0.000536724
-0.000384451
-0.000404264
-0.000546617
0.000327032
-0.0297751
-1.02707e-05
0.000370784
0.0266876
-0.000451328
3.64688e-05
1.06818e-05
-0.000211911
-0.000255335
-0.000423584
0.000645262
-0.014846
0.00898424
-0.000566292
-0.000174515
-0.000134638
-0.000258552
-5.41532e-05
-0.0295004
-0.00016394
0.000233438
-6.94985e-05
-0.000635913
-2.83321e-05
7.30996e-05
5.67881e-05
0.000839726
0.000579869
0.00141777
0.0209272
-0.00530389
-0.0156233
-0.000225199
-8.78552e-05
0.000112888
-0.00990856
-0.0123464
0.0142485
-0.0153197
0.0080389
-0.00454223
2.8683e-05
-0.000145291
0.000272438
-0.0248186
-7.28541e-05
0.000236601
0.000609965
-0.00113372
-0.000146049
-0.0158309
0.0211074
0.00106895
-0.0124912
0.000268775
0.000117198
-0.00922153
-0.000590121
-0.00042298
0.000924923
0.000213405
0.000258233
0.000169326
-0.000109207
-6.01195e-05
-0.00339882
0.00122982
0.000542293
-0.000521635
0.000579168
7.35514e-05
-0.00115536
0.0256315
0.000106631
3.88054e-05
-6.24104e-05
-0.000387129
0.00020362
-0.00351752
4.2992e-05
-0.0368814
0.0125002
0.0055572
3.36866e-05
0.000722382
-7.25638e-05
0.000151408
0.00329175
0.000358495
0.0201308
-5.58522e-05
0.000219888
-0.0105934
0.0122431
0.0176694
-0.0108171
0.00182366
0.000579331
-0.000153283
0.000858627
-0.00177843
0.000919805
-0.00956195
0.000159966
-0.000201556
0.000339593
0.000517288
-9.45976e-05
-9.99817e-05
0.000277303
-0.000276197
9.18237e-05
5.57117e-05
-0.000435312
0.00022056
-0.0022569
-0.00431479
0.000312786
-0.00183231
0.000577011
8.139e-05
0.000815492
-0.00092008
0.00032774
-0.0150403
-0.00207718
0.0171175
-0.00104189
-0.00206883
0.00036305
-0.000355974
5.23081e-05
0.000121658
-0.000241311
0.00220708
0.000134029
-5.52827e-05
0.000191732
-0.000113472
0.00144265
0.000158066
-6.6169e-05
-0.00346371
-8.5935e-05
-0.00027021
-0.000290976
-0.0114489
7.46912e-05
-0.000301358
0.0103648
-0.00426717
-0.0060982
0.000664861
0.000357746
0.0168739
-0.034634
0.000636318
-0.000612941
-0.00337757
0.00111715
1.4403e-05
-5.6621e-05
1.28714e-05
-0.000334386
0.000389129
0.00127487
-0.000494491
0.000126897
8.45979e-05
-0.00425202
0.00426125
0.00586026
-0.0101215
-0.000387416
0.000260482
0.000321125
-7.98497e-05
-0.00281147
-0.00016833
0.00024308
7.97435e-05
-8.49978e-05
0.0149373
0.0109911
-0.00451497
-0.00028939
-0.00156993
0.00458525
-0.00840729
0.00322407
0.00435092
-0.00757499
0.000163765
0.00105367
-0.00121743
8.17329e-05
0.000271171
0.000224876
0.000259925
0.000634423
-0.000583669
-0.000650675
0.000110166
-9.36402e-05
-0.00196835
-0.000418262
0.000457787
0.000168087
-0.000257988
-0.00299182
-0.00122993
-0.000821088
-0.0115508
0.00366376
0.000244436
-0.00334585
0.00435113
-7.97915e-05
-7.78804e-05
-0.000208817
0.00074358
-0.000386434
0.000365572
-0.000137003
0.00656815
0.0139343
0.000219541
-0.000204758
-0.000237458
0.000252346
-0.00227052
-0.000370268
0.000167265
0.00037266
0.00139811
0.000106154
0.00713543
0.00275286
-0.000450439
-0.000116993
0.00298516
-8.31593e-05
0.00057114
-0.000797836
-2.20855e-05
5.79953e-05
0.000451267
-0.000453587
0.00629094
-0.0378816
0.0177299
-0.000243104
-0.000304224
-0.000256944
0.00101941
-0.000268247
-0.00323963
-0.000130585
9.15671e-05
-0.00122485
0.000368102
0.000360612
-0.000375639
1.50265e-05
-0.000240755
1.1531e-05
3.2219e-05
0.000500568
0.000631547
-1.77753e-05
-0.000117473
-9.05957e-05
3.84176e-05
-6.92007e-05
-0.000287262
-0.000180283
1.42812e-06
-5.94079e-06
0.00155072
0.00840656
-0.000969823
-0.000477126
-2.81383e-05
0.000208094
-4.82111e-05
0.00055376
-4.51909e-05
0.000184586
-8.63377e-05
-0.00871868
0.0194772
0.000954287
0.000742392
-4.67127e-05
-0.000300452
0.000297134
-0.000850273
0.00126454
-0.000219599
0.000237544
0.000279695
-0.00041479
-0.0194106
0.00354594
-0.00571095
0.00271913
-0.00113262
-0.0122317
-0.000377361
0.000112004
0.0268786
-0.000175455
-0.000124569
8.97548e-05
-0.00712013
6.88715e-05
-0.00111278
8.62792e-05
0.013579
-0.000392347
9.69034e-05
-0.000312324
0.000273318
-0.000100912
0.000588429
-0.000117458
0.000142096
-2.46384e-05
0.000648573
-0.000682328
-0.0108729
-0.000839592
0.00156502
-0.000869677
0.0167199
-0.0295238
-0.000274228
-0.000109982
0.000168691
-0.000233194
0.000112438
-0.000154164
-0.00140913
0.00122682
-0.0097376
0.0117702
0.00163793
-0.000139223
-0.000365121
7.01617e-05
-0.000333298
0.0308979
0.00445046
0.000372544
-0.00029595
6.95442e-05
0.00715663
-0.00397722
0.000103115
6.5932e-05
0.000302189
0.000976654
-0.000316658
9.22354e-05
-0.00277642
0.000742705
-0.0123377
0.0286354
0.000244165
-7.63405e-05
0.00113836
-0.000124534
5.37238e-06
-0.0002061
-6.2705e-06
-7.31606e-06
-0.000915306
-0.025849
0.00195696
0.0036439
-0.00680329
0.000224015
0.00107874
-0.000682179
8.0498e-05
-0.0190679
0.00677048
0.0122974
-0.000100212
0.0268499
0.000131493
0.000253848
-0.00865847
0.0047736
-0.000208116
-0.000218817
0.000199412
-0.00067709
0.000472431
9.37108e-05
0.000156582
-0.000403325
-0.000237261
-0.000615262
-0.032446
0.0251324
-0.0121057
-0.0116945
0.00948927
-0.000152846
1.47245e-05
-0.000707762
0.000564343
0.000920279
4.18101e-05
-7.64215e-05
0.00831598
0.00524419
0.00382836
-0.00011217
0.000128157
-0.000328657
0.000527995
-0.000178356
8.52391e-05
0.000403517
4.20789e-05
0.000196435
4.01661e-05
-0.00914954
-0.0264735
-0.00682855
0.000418839
-0.00048262
-0.00133572
0.00129261
-4.24065e-05
0.00039345
0.0149143
-0.00396255
0.000541941
4.17177e-05
0.00136641
-0.000222173
-0.00223194
0.000466386
-0.000497359
0.000267593
0.000260402
0.00045534
0.000368664
-0.000824004
-0.00587727
-0.000173083
0.000110745
-0.000412956
0.00713029
0.0145326
-0.0115755
-0.000502786
-1.34724e-06
-1.16681e-05
0.00305378
-0.00462371
-0.000698715
-0.000412881
-0.00333906
0.00105757
-4.87345e-05
0.00034926
0.000644956
0.000164053
9.56877e-05
-8.58738e-05
0.00338201
-3.58538e-06
1.45139e-05
-0.000145099
0.00176122
0.00860545
-0.020135
0.000101542
-0.000264686
-2.33362e-05
-0.00049403
0.000684503
0.000342937
0.0316325
-0.00572964
-0.000110419
0.000634112
-6.99761e-05
0.0155339
0.00618564
0.0162819
-0.00134808
-0.00102213
0.000136337
0.00363016
-0.00911804
-0.000152851
0.000293425
4.8504e-05
0.0075425
-9.48465e-05
0.00019487
9.84271e-05
0.000276886
-0.000109062
-0.000109199
-0.000184768
0.0171391
0.00019168
-0.00012949
-0.000304543
0.000406029
0.000175455
3.57566e-05
-0.000308907
-9.10655e-06
-0.00012301
0.000132116
-0.000236969
-7.30509e-05
0.000179807
-0.0168888
-0.0013582
0.00628949
-4.96584e-06
0.000435588
-0.00934091
0.00362553
-3.56611e-05
-0.000946634
0.000982295
-0.00198365
8.29993e-05
-1.35655e-05
0.000455417
-0.000738528
-0.00428341
-0.0183628
-0.0275468
-0.00114749
0.0204977
-0.000128071
0.00107488
-0.00269255
-0.000803818
0.000528413
0.00509425
-0.00460426
-0.000489999
0.00541504
1.21339e-05
0.000143391
-6.27343e-06
-0.000120309
0.00281225
-0.000351144
0.000304903
4.62409e-05
-0.000189711
-0.000146741
0.000162671
-0.000433769
0.00010096
7.83505e-05
0.000436811
-0.00152539
-0.000139402
0.00166479
-4.77231e-05
0.000134196
-0.000266425
0.00018946
7.69655e-05
-7.75266e-05
-0.000104805
-0.000268066
4.92481e-05
-0.00192364
-2.53587e-05
0.000171006
-0.00012876
-0.000173243
-0.00012574
0.000308388
7.24391e-05
0.000107232
0.000375881
0.000241507
9.08055e-05
-0.00390135
-0.000139225
-0.00841221
8.51821e-05
-0.000156243
0.00246777
-0.000150553
0.000116982
0.0399816
-0.000232914
0.000153814
-0.00615505
0.000106469
-2.31437e-05
6.66413e-05
-0.00104171
0.000835718
-4.27922e-05
0.000199651
-6.09896e-05
0.000136969
-0.0036467
-0.00332
0.000228438
-0.000100829
-4.97238e-05
-0.00346662
0.0134227
0.0106881
5.2259e-05
4.99482e-05
0.000566909
-0.000215327
-0.000149217
-0.000504543
0.000391948
0.0218763
-0.000115661
-0.000150764
0.000125856
0.000491756
0.0110483
-0.000238139
0.000146022
3.21237e-05
-0.000343126
0.000233527
-0.000351379
0.000403137
0.000102408
0.00640785
-9.36122e-05
0.000344748
0.000260018
-4.34989e-05
-0.000216519
0.00106762
-0.000374829
-0.000692789
-4.00077e-05
0.000151166
5.35877e-05
0.000167359
0.000140331
4.6978e-05
0.000511602
-0.000224041
-0.000230606
-0.000134526
-0.0032462
-0.00418289
0.00742909
-0.000932538
-0.000483955
0.000192401
0.00133408
0.000108695
0.00327321
0.0018843
-0.000469739
-0.000138391
0.0335845
-3.64496e-05
-3.52186e-05
0.000168815
-0.0213415
0.00323326
0.000401249
0.000173751
-0.000303014
-0.0221404
-0.0198637
-0.0115866
-0.000115605
-0.000166921
-0.000119191
0.000311107
-0.000153592
-0.00325432
-0.00638564
6.37737e-05
-0.00261806
-0.000130474
0.000415307
-0.000522845
0.000825033
0.00142101
-0.00938711
0.000967861
-0.0160078
-0.00215055
8.38399e-05
-5.17709e-05
-0.000101165
-0.00120116
3.90075e-05
0.0215079
-1.00361e-05
-6.59587e-05
7.59946e-05
-8.11235e-05
8.1123e-05
0.0001991
-0.0258333
-0.0233793
0.0245112
-0.0202993
-0.000258075
-0.000288542
-0.00244934
0.019804
-0.000135658
1.15117e-05
-5.8861e-06
-0.000234298
0.000672607
7.50244e-05
0.00330376
-7.41219e-05
-0.000175237
9.73671e-05
-0.000190305
-4.71611e-05
-0.000764427
-0.000249175
0.000366373
-0.00460556
-0.00300837
-2.87429e-05
-0.00146919
-7.18798e-05
8.34512e-06
-0.000311104
-0.000133085
8.68086e-05
0.0225815
0.000133661
-0.000382771
0.000482408
-0.000343914
0.000450218
0.0129973
-0.000198961
0.0174878
0.000151846
7.13649e-05
-0.000363267
-0.000332092
0.000275179
-0.000314784
-0.00292297
0.00115766
2.7319e-05
0.000116384
-0.000143703
0.000218652
-5.79002e-05
-0.000160752
0.000306704
-0.000368671
-0.000358353
-9.5709e-05
-0.0131025
0.0154744
0.00545285
-0.0171785
-0.00589029
0.000460803
-0.000105737
0.000122821
7.68973e-06
0.000393095
0.000188045
0.000141011
-0.000141012
-0.000242609
-0.00277857
0.00273701
4.15599e-05
0.000142178
-0.000218869
0.000275637
-0.000353518
-0.0024656
-0.00326099
-0.00626104
-0.0310614
0.0196217
-0.000390509
0.0188068
0.0039997
-0.00195212
0.000991127
9.994e-05
-2.29986e-05
0.00024056
0.000324004
-0.000140191
-0.0025739
0.00155716
0.00101673
-0.00926422
0.00277513
0.00751788
-0.00051079
0.0263184
0.00175336
-0.0280717
-8.08267e-05
-8.82442e-05
-7.71535e-05
-8.63027e-05
0.000291393
0.000784876
0.00934356
0.000196241
-0.00210143
1.54744e-06
0.000131337
-0.000132884
-8.30712e-05
-0.000256697
-4.51663e-05
-0.000265593
-5.312e-05
0.00131571
-0.000608517
0.0261637
-0.000202004
0.000322821
3.22247e-05
6.44625e-05
-9.66873e-05
-0.0244904
-0.000166513
-0.000147837
0.000466674
-0.000289568
0.0221727
-0.00239206
0.00150687
0.000733002
0.00011938
-9.34133e-05
-0.00760992
-0.00670562
0.0253471
0.00246511
-0.000910604
-9.56616e-05
-0.0130727
0.00960607
0.00018621
-0.000154157
7.69881e-05
-0.000653881
-0.000334828
0.000161529
-0.00575542
-3.98689e-05
0.00585048
-0.00214349
-0.000464931
0.000283282
0.000181649
0.000123381
4.58821e-05
0.0206113
-0.00960888
-0.0009225
0.000389689
-0.000460856
-0.00027316
-0.000189909
0.0188819
0.000411057
0.00184674
-0.000187641
0.000276725
-0.00808697
0.0035488
0.000179602
-0.000598041
0.000739704
-0.016953
0.00493254
-0.000118631
0.00809334
0.000215587
-0.000372222
-0.000695857
0.0228301
-0.000336176
8.89849e-05
0.000307468
0.00255953
-0.00342472
0.000119818
0.00875756
0.011302
0.000537311
-0.00530388
-8.14581e-05
-0.000173194
8.75372e-05
-0.000609403
0.000330539
-0.000292425
-1.80375e-05
0.000436844
0.000136659
-2.49769e-05
0.000241791
-0.000216813
7.80892e-05
0.000852377
0.00455157
-3.81318e-05
0.00363348
-0.00040992
-0.000114353
0.00334761
-0.000781757
-0.000306351
0.0003088
0.000181331
-0.0114255
-0.000306193
-0.00212147
-0.000332913
0.000581462
0.000253298
0.000828008
0.000240288
0.000103487
0.000100754
0.000198686
-0.000140553
-0.000663265
0.000374723
-0.000305291
0.000257951
-0.0185904
0.00770927
0.00080366
-0.00751314
0.00452044
0.0174886
0.000649554
-6.31176e-05
0.00329014
-7.75249e-05
0.000149097
0.0268786
0.0164532
1.63677e-05
8.12397e-05
0.000551301
-0.00362935
-0.000353402
-2.4595e-05
0.00334509
-0.000422452
0.000625457
-0.000121271
0.000503569
0.0001902
-0.014399
0.00308925
-9.83167e-05
0.000113527
0.000303726
6.55268e-05
0.0276965
0.0163035
0.0276965
0.000354283
0.00010153
-0.00182188
-0.000467396
-0.000126058
-0.0441887
-0.000174001
-0.0123258
0.0120118
0.0165544
-8.04458e-05
0.000523288
0.000508318
0.000282037
-0.000652009
-0.000850042
0.000229234
0.000412681
-0.00769319
-0.00050343
0.00374686
8.62289e-05
1.81931e-05
0.0116322
-0.0114425
0.000133137
-5.35534e-05
-0.0001122
0.000165754
-0.0228672
0.00108452
-0.000408008
0.000577257
-0.000407992
0.0185992
0.00246227
-0.000147888
0.000461386
0.000359797
0.0112724
-0.000149221
-0.00924486
-0.000324981
0.00382091
-0.00288057
-0.000542969
0.00197993
0.000468088
0.0036706
0.00207102
-5.92726e-05
-0.0212964
0.000569774
-0.000132117
-0.00175634
0.000836255
0.000182267
-0.0397461
0.0345945
-5.34103e-05
0.0187401
0.000527043
-0.00064397
-0.00390193
0.00110918
0.000286138
-8.35378e-05
-2.12426e-05
0.00152136
-0.000688969
-0.000832393
-0.000262144
-0.000705115
0.00688791
-0.00467005
-0.00221786
-0.000214537
0.000113687
9.09392e-05
0.000567922
-0.000541723
-0.000172612
0.000148156
0.000213029
0.000207369
0.00841902
1.97586e-05
-0.0105935
0.000340052
-0.000174112
-0.0289154
-0.00047335
0.000274665
4.38796e-05
0.000285278
-7.79524e-06
1.73071e-05
-6.94354e-05
-0.00552147
0.00187477
0.000210288
-0.000145733
-0.00053207
-1.707e-05
0.0268415
-0.0227864
0.000202583
-0.00129434
-0.0267954
0.041805
0.000194313
2.92042e-05
0.000566841
-0.000246269
-0.000399484
0.0180858
1.7358e-05
-0.00039497
0.000988453
0.00322978
0.00439673
0.00482889
-0.00996969
0.000841104
-9.14562e-05
8.92024e-05
-5.4235e-05
-3.25582e-05
7.58467e-05
-0.000222253
-4.45723e-05
-8.29993e-05
-6.40199e-05
0.000102957
-7.4226e-05
-5.24242e-05
5.24242e-05
-0.000235193
0.000433879
0.000123215
-0.00134028
0.00107468
7.05147e-07
0.000191258
-0.000140158
0.000218595
-0.000261949
-0.000263259
0.00485632
-0.011313
0.00053972
5.16892e-05
-0.000137511
-2.31621e-05
0.000221848
0.000464461
-0.00317297
-0.018366
-0.000662045
0.000291003
0.000423858
0.00164611
-0.0115162
-0.00488287
0.00133138
0.00013325
-0.000277608
-0.00548521
0.0170438
-0.00725496
0.0257798
0.000109703
-0.000486413
-0.0171567
0.000399001
-0.000122219
-0.000155141
-0.000134404
0.00020597
0.000156183
-0.000867061
0.000153557
0.000834471
0.000659688
-0.000814224
-8.11444e-05
-0.000215622
0.00343772
-0.0143452
-0.00128109
0.00374886
4.80023e-05
-0.00162647
-0.000685644
-0.00111149
-0.000113517
0.00406028
-0.000475851
0.000935077
0.000409234
-9.11901e-06
0.0100286
0.000337952
0.0212136
-0.00101333
9.00085e-05
-0.000178152
-5.69252e-05
0.000273723
-0.00345404
-1.56783e-05
0.000157832
-0.0015429
0.0102204
-0.0171886
-0.000149798
0.00011791
-3.56941e-05
-8.22158e-05
-4.39258e-05
0.000543417
0.000373283
-0.000272364
0.0229459
-0.000343195
-0.00701204
-0.000600485
0.000181364
0.000821919
0.0284903
-0.000234084
0.000338969
-0.00186226
0.00152329
0.000172714
-0.00012239
-0.000191229
-0.000162335
0.000658435
0.000150302
-0.0109102
0.00662679
5.74552e-05
0.000198229
-0.000285603
-0.000187747
-0.00122883
0.000874996
-0.0022933
-0.0027926
-0.00311151
0.00111208
0.000145992
-6.33123e-05
3.09059e-05
0.00604884
-9.32762e-06
0.000202546
0.000144859
-0.00523918
-0.00994523
0.000197822
-0.00122299
-0.000186761
0.000463566
-0.024035
0.0252263
0.000144446
0.000112234
0.000233435
-0.00444108
-0.000130031
0.000818577
9.52411e-05
-4.439e-05
-5.08511e-05
0.00329063
-0.00379094
0.000679492
0.0204004
0.0159233
-0.000165341
0.00554647
-0.000199334
-9.67197e-05
-0.0204456
0.0371267
-0.0102768
0.00021117
0.000177031
3.96484e-06
-9.5421e-05
-9.97165e-05
-0.00448245
-0.000552931
0.000563513
0.000475413
-0.000472511
-0.0142061
-0.0200495
0.00758832
0.00101242
-0.00107485
-8.46745e-05
-0.00148929
0.00454307
-0.00031024
0.000212023
-0.000145706
0.0187745
-0.00411892
0.00283972
-0.000204558
0.000450569
1.61047e-05
-0.00336
0.00126079
-0.000760219
-6.26827e-05
6.26827e-05
0.000468219
0.000214663
-0.000173912
-0.000647185
0.000156023
1.73682e-05
-0.00172332
-6.38136e-05
-0.00177621
-0.00201474
0.00305392
0.0137147
-0.0252682
0.0115535
-0.000367148
4.93206e-05
4.59205e-05
0.00110721
-0.000184953
6.95745e-05
0.0374891
-0.0257411
0.0171917
-0.019641
0.000209897
0.000165984
0.00338354
0.0211397
-0.0222872
-0.0217128
9.18054e-05
-0.000750999
0.000418537
0.00112564
-0.00700702
0.0203002
0.000417066
0.000425379
8.38492e-05
-0.000170151
-0.000409948
-0.00590694
-0.013161
0.00034259
-0.000694438
0.000253239
0.00959069
0.0233856
-0.000867635
0.000831975
0.0145419
-0.000300089
0.000272771
6.1861e-06
0.0016204
-0.0031381
0.00476483
-0.0126926
-0.00010319
-2.48341e-06
-0.000212628
-0.000484322
9.341e-05
0.00200338
-0.000116392
5.94662e-05
0.000111333
-0.00727161
0.00597028
0.000837784
-0.00170215
-0.000330582
0.000173437
-7.02742e-06
-3.96853e-05
-0.000350791
-0.0073424
-0.000275996
0.000631889
0.000759608
-0.000343482
0.000184471
-0.000443645
0.000359387
0.000215841
0.00833369
-5.89548e-05
-8.67515e-05
0.000124933
2.69753e-05
-3.91091e-05
0.000256335
-0.000238624
-0.0202229
-6.31178e-05
0.000490448
0.000450072
0.0012841
0.000991515
-1.26027e-05
-7.23951e-05
-0.00067047
0.000650532
-0.000327809
-0.000615706
0.000106737
0.000150024
0.00274067
0.0220751
-0.0196099
0.000169699
-1.4751e-05
0.000691861
0.0212534
0.000113687
-0.000305805
0.000126286
-0.000400514
-0.0021374
0.00251996
-0.00623642
0.0146395
0.0233016
-0.0229125
-3.14712e-05
0.000271501
-0.000255899
-0.0164464
0.0239313
-0.0391822
0.0260469
0.000283889
4.5156e-05
0.00046131
-0.00038007
0.00107642
0.000257862
-0.000205359
-0.00247079
-0.012247
0.0134682
-0.0347567
0.00156176
0.000174211
0.00679665
-0.00758905
0.000816966
0.000392087
-5.70357e-05
0.000427136
0.000183665
0.000161443
-0.000500817
-0.000119121
0.0151042
-0.000399443
-0.00032231
0.000307559
0.00424358
-0.00173862
1.42187e-05
-0.000259111
0.000180684
0.000151909
0.00060331
0.000178066
-1.15311e-05
9.12777e-06
-0.026884
0.0266879
0.000236491
-0.000379317
-0.000198637
-0.000308937
-0.000924852
0.00123379
0.00227822
0.00115543
0.00301246
0.0127303
0.000881898
-0.0010603
0.000373326
2.07974e-06
-0.00764675
-0.0124028
-0.000336834
-9.19977e-05
-0.00755658
0.00106937
-9.2108e-05
0.00212159
-0.00105295
-0.00591975
-0.000182948
8.61844e-05
0.00118699
-3.97819e-05
-0.00110796
0.00350613
0.00038801
0.000483567
0.000314981
-0.0216702
-0.000426371
0.000117324
0.00376967
-0.0010299
0.000919481
-8.9417e-06
0.000172479
-7.29413e-05
-0.000195124
0.000393844
0.0104376
-0.00291968
-0.000831061
0.000205057
0.0002289
-0.000634398
-0.000884671
-0.000871668
-0.00399999
0.00859975
0.00110039
-0.0111039
-0.000841339
-0.016992
0.00466612
6.91329e-05
0.000146709
6.04395e-05
-1.51817e-05
-0.0159181
0.0016429
-0.0015842
-5.86984e-05
2.43399e-05
0.000378375
7.36461e-05
0.000128461
0.000336892
0.0195768
-2.02271e-05
-0.000154533
-0.000393345
2.47134e-05
-7.18748e-05
-4.45167e-05
-0.00188843
0.000498267
0.00934345
-0.00147802
-0.000147542
0.0351158
-0.00933599
0.000372915
0.0177067
0.00376667
0.00605006
-0.00800775
0.00195769
-2.62294e-05
-0.00133998
-0.000548769
-0.000223664
0.000213203
-0.000217191
0.0126874
-0.0071501
0.0017992
-0.000302567
-0.0021487
0.000345796
-0.000432424
-0.000489066
-0.00361672
0.000930565
-0.00033566
-0.000196713
0.000217962
0.00010311
4.14493e-06
2.52828e-07
0.000507781
-0.0003766
-0.000131181
-0.000149697
2.22658e-05
-2.91553e-05
0.000217791
-0.00120301
-0.000309929
0.000213873
0.000181004
-0.000382333
0.00018646
4.54288e-05
-0.000228
0.00607442
-0.00841212
-0.0199168
0.00516512
0.0303212
0.00109007
-0.000665977
0.000463323
0.00032457
-0.0012708
-0.000182823
-0.0234237
0.00177516
-0.0221423
-0.0238064
-0.000135559
-2.82252e-05
-4.17737e-05
-0.000147317
0.000831305
-0.000488715
-0.00240108
0.00143767
-0.000261497
-0.000316827
0.000978787
-0.00182013
-0.025529
0.025529
0.00027763
-0.000799562
0.000562082
0.00023748
0.00284912
-0.000378401
-0.000108487
-0.000318812
-0.000146119
0.000173462
-0.000278625
0.000105163
-0.00268792
0.00618653
0.00019404
-0.000665039
-0.000815032
0.000186674
0.000704083
-9.88793e-06
-0.000159027
0.00249487
-0.000221468
-0.000110615
-0.000537452
-0.00127332
-1.55402e-05
0.000887547
0.000515381
1.06115e-05
0.00731605
-0.00107352
0.000554859
0.0206353
-0.00028046
1.89206e-05
-8.18245e-05
-0.000511734
0.00153541
-0.00140987
-0.000124973
0.00032588
0.000802329
0.00725778
-0.00527493
-0.000462552
0.000235526
0.000156769
-0.000110392
2.20347e-05
0.000130459
0.00300037
9.47805e-05
-6.59292e-05
0.000427821
8.89082e-05
-0.0129677
0.020186
-0.00721831
-8.23249e-05
2.41614e-05
0.000658171
-0.00398466
-0.000202019
0.003447
-0.00205083
-0.000739216
-0.000147605
9.29712e-05
-5.3616e-05
-4.94835e-06
-0.000106184
5.8461e-05
-9.2159e-05
-6.77131e-05
0.000126624
-5.35743e-06
0.000387572
2.11264e-05
-0.0197977
-0.000133781
0.000163782
0.000562631
4.26364e-05
0.000239868
-0.000139197
0.000773724
-0.000140573
-0.00109442
0.000383771
0.00510478
-0.000717499
0.00020893
9.96601e-05
0.000140207
-1.67732e-05
-0.00178187
0.000893226
0.000888643
-0.000141336
-0.000196505
-0.00031916
0.000220265
-0.00170614
0.000821464
-0.000958865
7.9418e-05
-0.000165756
-0.000243531
0.000506219
-0.000262688
0.000261069
-0.000575179
-0.0130744
-0.000762094
0.000893045
-8.17762e-05
-0.000306397
0.00464894
0.0203663
0.000849676
-0.00037876
-4.30993e-05
0.000736566
-6.58241e-05
0.000501736
-0.000369164
5.05803e-05
-7.93786e-05
-0.0135078
-0.000764997
0.000242403
0.0111366
0.00402838
0.00193379
-0.00596217
-0.0217128
3.22882e-05
0.000245853
-0.0312435
0.000223914
8.11381e-05
0.000944965
-7.1702e-05
-7.59034e-05
0.00126089
-0.00259491
1.75391e-05
0.00055287
7.70886e-06
5.81226e-05
-6.75623e-05
-0.000223846
-0.000409169
0.0168544
0.0206347
4.17177e-05
0.0084038
-0.000875858
0.00803002
0.00019691
-0.000879238
-1.58723e-05
0.000284423
0.00123368
-0.000399208
-1.78828e-06
8.01697e-05
-0.000395375
-1.81831e-05
0.000312549
-7.07581e-05
-0.00135521
-0.000130902
-9.02179e-06
-6.09543e-05
-0.000293056
0.0165285
-0.000945614
-0.031925
0.000154882
-0.000269565
0.00129335
-0.000239684
0.000168245
-0.0013145
0.000954881
-0.00028842
-3.7746e-05
-0.00578922
0.0303615
-5.56636e-05
-5.89971e-05
0.00702163
-0.007249
-0.000188492
-9.00969e-05
-0.0075548
-0.000171201
9.3902e-05
-0.00101775
0.000380064
0.000319321
-0.000608505
-6.46056e-07
0.00042544
0.00179418
-0.000327635
3.92075e-05
6.21037e-05
-0.000274588
-0.000149599
0.000889233
0.000498386
0.000272669
0.0082866
-0.00312148
-0.0116171
0.00406049
-0.020205
0.0135253
0.000348328
-0.000401395
-0.00239716
-1.28867e-05
-6.7654e-05
-3.0257e-06
0.000455515
-0.00146191
-0.00270577
0.000309943
-0.0141809
0.019736
0.000268436
-0.00319806
-6.2342e-05
0.000192311
0.00207107
0.000453245
-0.00215653
-0.0011594
-0.0149719
0.00464886
6.42379e-05
-0.00132808
9.18677e-05
-7.2947e-05
0.000218014
0.000232854
7.0675e-05
0.000893888
-0.000211342
-0.000100109
-6.00415e-05
-0.000244704
-0.000423592
0.0063942
-0.0163002
0.00990596
0.00071191
-0.0108587
-0.00454825
0.00499028
0.0156999
-0.000898831
0.000495817
-0.000411517
0.00105455
0.000435086
-0.0117932
-0.000240044
-0.000128227
-0.00142512
0.000484041
0.00269419
-4.59068e-06
-0.00219507
-0.0264206
0.000122135
0.0012554
-0.0181966
0.0119602
0.0016665
0.00206642
-0.0249336
0.000459433
0.000152277
0.0146113
0.00946224
-0.0224299
0.000119374
-5.13005e-05
0.000120422
-0.000323935
-0.0121729
0.00239064
-8.78353e-05
0.000102054
7.64814e-05
0.0024014
-0.000509225
-3.40287e-05
-0.00248492
0.00155059
0.000221365
-0.000239537
-0.000116261
0.000466653
0.000295191
5.97503e-05
-0.000280881
0.000616729
0.000157567
-0.0213644
-1.59175e-05
1.54526e-06
0.0193758
7.26263e-05
-0.000103425
0.00045384
-0.000350414
-0.00400493
-0.00820613
2.52818e-05
-0.000165481
-0.000144771
-0.000459903
0.000604675
8.36749e-06
-0.0222583
0.00991186
-0.0231393
0.00894911
-2.98394e-05
0.000231769
-3.20209e-05
-7.78194e-06
-3.39863e-06
-0.000838539
0.0146699
0.00961463
-0.0242846
0.0252307
-7.06049e-05
0.000121416
0.00338008
9.17307e-05
0.0125388
0.000167828
-0.0137175
-0.00192132
0.00090245
-0.00211541
-0.000113523
1.05342e-05
0.014846
-0.00653005
0.000434302
-0.000293012
0.00117491
-0.00424811
-0.0191756
0.000257001
-0.000256584
-0.000208341
-0.000311639
0.00216867
0.000168484
0.00022468
0.000121771
0.00151058
-0.00163699
0.00230793
-0.000670938
0.0018048
-2.22988e-05
-0.00028247
-0.00121814
0.000137675
0.00195769
-0.000711401
0.0194264
0.002002
-0.000888422
0.00034703
0.00155834
-0.000133034
0.000712265
-0.00023532
-0.000479495
0.000661982
0.00086601
-0.000375404
0.000727469
-0.017069
-9.74354e-05
6.11522e-05
-0.00306105
-0.00349218
-0.00060186
0.000788464
-0.00212729
0.00133883
-0.000805465
-0.00107598
0.00026848
-0.0137929
0.0306473
3.57475e-05
0.000115242
-0.0193189
0.014015
-0.000418301
-0.000133702
0.00055209
0.000193876
0.000321505
-0.013446
-0.000112017
-0.001286
0.000892319
0.00039368
0.000141315
-0.00142875
0.0037933
-0.00208076
-0.00134396
-9.67325e-05
-0.0213171
0.0037889
-0.00194319
0.000328963
-0.000224715
0.0219447
-0.000304597
0.00020166
-0.00552881
0.00105655
-0.00635326
-9.70669e-05
0.000609357
0.000283688
-0.000153556
-0.00539384
-0.00018446
8.44789e-05
-0.000168319
-0.00026545
-0.000253185
0.000231942
0.000187674
3.83013e-05
0.000106832
0.0112993
-0.0102303
-0.00126058
0.0016474
-0.00440134
0.000246633
0.00415471
0.00782725
0.0241875
0.000121331
-6.44225e-06
-0.000230454
0.00053621
-0.00411825
0.000454555
-0.000337789
0.00316575
0.00017721
0.00024941
-0.000160861
0.00010089
-0.0114693
0.0047637
-0.000124302
0.000165644
0.00122642
-0.0289843
-0.000349938
0.00047468
-0.00017117
0.00235885
0.00220056
0.00263884
-0.0215303
0.000144106
-0.000170335
-0.00399839
0.000209912
-0.000166032
0.000486545
-0.000483394
-5.64152e-05
0.000119316
0.00123386
-7.30232e-05
-0.000266642
4.45496e-05
0.000236495
-0.000752928
-1.56616e-05
3.59307e-05
0.00017647
0.000239527
-0.000648695
0.00373759
0.000123822
1.28149e-05
0.00030821
-9.43376e-05
-0.000102263
-8.21973e-05
4.36619e-05
-7.96259e-05
-0.000646581
0.0001595
0.00260281
0.0203431
0.0342819
-0.0250412
-7.06384e-05
2.23169e-05
-5.96973e-05
-0.0153014
0.0173678
0.00130376
0.00252525
1.22525e-05
4.91857e-05
-0.00023708
0.00032853
0.000363734
-0.0003647
-0.000763666
0.000260929
-0.000515588
0.0278938
-0.00635014
0.000189951
6.85321e-05
-6.8683e-05
0.0269266
-0.00474805
-2.54845e-05
-9.87279e-05
-0.00144348
0.000593774
-8.21637e-05
-3.34409e-05
-0.0175046
-0.0264861
0.00033749
-0.000113576
-0.000181988
-0.017837
0.0037992
0.000420918
0.0179462
-0.0133422
-0.000193926
-0.000148654
0.000445973
-0.000367052
-7.19017e-05
7.83641e-05
-0.01481
0.00729113
-0.000294803
-0.00026098
0.0255268
0.000216605
0.0220981
-0.0121373
0.00029309
0.000121977
-8.16161e-05
0.0159744
0.00101516
0.000280958
-0.0018398
-0.00163643
0.000650127
0.00101466
-0.000620498
8.54689e-05
0.000684879
0.000123063
-0.000635944
0.00106904
-0.0004331
0.000247449
-0.000373635
-0.000122976
0.00284663
-0.000823318
-0.00473466
0.00508918
0.00168835
0.0154132
0.00593295
0.0150537
0.000453248
0.000441984
-6.04395e-05
-6.29387e-05
6.53409e-05
-0.00301195
0.000669702
-0.000517282
0.000320514
-0.000887697
-0.00773198
-0.000618794
0.000901504
0.000178382
-0.00128362
0.000794238
-5.82473e-05
-0.000252345
5.64556e-05
0.000314525
-6.10925e-05
-0.00386517
-0.000307983
-1.43266e-05
0.000883574
0.000762536
0.000139323
-0.000885206
0.000104209
0.000454721
0.0156919
3.58409e-05
0.00156613
-0.00115472
5.0219e-05
-7.03185e-05
6.83766e-05
6.36002e-05
5.40011e-06
0.00307232
2.87258e-05
0.000219915
-0.00419659
-0.000122954
-0.00409175
-1.22524e-05
1.28088e-05
-0.00718927
0.00125959
0.00592967
0.000110252
-1.75208e-05
-3.7531e-05
0.0184233
0.0150189
0.000233236
-9.5438e-05
-9.85377e-05
0.0208203
0.000112178
-3.46067e-05
0.000563992
0.000133978
0.00015421
-0.000750703
-1.08947e-05
0.00021656
-0.00466615
-0.00252312
-0.000205117
-4.93896e-05
0.000113561
0.00455812
-0.00154259
-0.00301553
-0.000394617
0.0224929
-0.0233934
0.0170016
-7.94132e-05
-0.000184743
-0.0143712
-0.00126343
-0.00112465
0.000113307
-0.000512845
0.000976169
2.8507e-05
-3.60555e-05
-1.00647e-05
0.000329799
-0.013349
0.0130438
0.000234831
-0.00171942
-0.00930088
0.000767834
-6.79657e-05
0.000450668
-0.000825498
1.50989e-05
-0.000153693
0.00235144
0.000341146
4.18208e-05
0.000352652
0.000284957
0.00119457
0.00285268
8.30378e-05
0.0160679
0.000287761
0.000807818
-8.45561e-05
-0.0209886
0.000248374
-0.009162
0.0139268
0.00104882
0.000143615
-0.000449966
0.0103696
7.34299e-06
-0.000924727
-0.00613669
-0.000397877
-9.40724e-05
-8.37031e-05
-0.000233711
-0.000208418
4.98802e-05
-0.0063581
-0.000692733
-0.000260788
-9.17886e-05
9.90874e-05
-0.00055729
0.000301657
-0.000226722
0.000182465
0.00274826
0.0197446
-6.95119e-05
-0.000172397
8.36671e-06
-0.000102743
0.00302898
0.00152913
0.000323704
-0.0180907
-0.000821294
-0.0215485
0.00542748
0.016121
6.89542e-05
-0.00930035
-0.000311525
-6.41136e-05
-0.000154651
0.000114885
3.97649e-05
9.93598e-05
-0.000907217
-2.20768e-05
-0.00422992
0.0190474
0.000806267
-0.00175161
-0.00161262
-0.0178386
-4.95181e-05
-3.8883e-05
0.00505284
0.000363007
0.000278945
-0.000116677
-0.000373833
-0.000141691
3.59865e-05
0.000504507
0.00519243
-0.000525536
0.0002144
0.0171628
-0.000163929
-7.80706e-05
-0.00158326
0.000552984
0.00123613
-0.000201369
0.00013187
-0.000475188
0.00388102
-0.00231727
0.000317878
-0.00745684
7.96739e-05
-0.00158715
-9.15237e-05
4.56295e-05
5.01263e-05
-0.0114904
-0.000717532
-0.000137476
-5.93424e-05
-3.02238e-05
-0.0129081
0.00545122
5.74446e-05
0.00726892
-0.00609169
-0.000107893
-0.0137341
0.0150094
0.000751341
-7.18444e-05
8.16878e-05
-0.000190303
-0.000119837
7.64723e-05
1.05173e-05
3.465e-05
-0.000391083
0.00276417
-0.00030685
-0.00182207
0.000667345
-0.000173239
8.64538e-05
5.22081e-06
-0.000427507
-0.000604382
-0.000414211
6.83799e-05
-0.00138048
-0.000241902
0.000150386
0.000215501
0.00045083
-0.000933424
-3.7457e-05
-0.00107873
-0.000796298
-0.00030978
-0.00107445
-0.00132454
0.0014602
0.00128022
0.000451918
-0.00310191
0.00264999
-0.000667279
-0.00132757
0.000564538
-0.000554414
-1.01234e-05
-0.000342384
0.000469835
0.00254903
0.0128402
0.00245394
5.41729e-05
0.00418185
0.00609273
0.00119121
0.000196175
-0.00157112
-9.36198e-05
-0.000332367
-0.00375088
-0.000259545
-0.00071411
-0.000278663
-4.89716e-05
-0.000150216
-9.059e-05
-0.000445893
0.0148975
-0.00293734
-0.00259501
0.000314763
0.0138807
-0.0149068
-0.000233933
0.0066389
0.0195336
-0.000320422
0.00422323
-0.000120188
-2.24199e-05
-0.0183114
-0.00548057
-0.00333403
-0.000531143
0.000860339
0.000366192
6.51442e-05
0.00230678
-0.000421886
9.15471e-05
-0.000941289
-0.00431223
0.0155166
-0.000722977
-0.00106858
-0.00105871
0.000108109
0.000129225
0.00654146
-0.0165728
-0.000259665
0.0001903
-9.63302e-05
-0.0101348
0.00928598
0.000144435
-0.00662591
-0.00628215
5.83088e-05
-3.50858e-05
0.000347035
-0.00034039
0.00478282
-0.00399228
-0.000148421
0.000151383
-0.000677175
0.000832011
0.00033666
-0.000498382
0.000523095
0.00411126
-0.0266018
0.0156961
0.000144893
-6.10109e-05
0.00147959
0.000329533
-0.000549304
0.000219772
0.000136838
0.0159975
-0.000219598
0.000470867
-0.00100899
0.0193432
5.88432e-05
-0.000647783
0.00253706
0.000715192
6.96842e-05
0.000534359
0.00816769
-0.000110739
-0.005543
0.000872949
8.48172e-05
0.000127837
0.00234384
-0.0347724
0.00917098
-0.00492621
0.00551885
0.000428257
-0.000114496
0.000863666
9.84133e-05
-0.000281046
-0.000202773
0.000218848
-0.00157669
-0.000255499
0.00466494
-0.00083187
-0.000218907
-0.00039647
-0.00382086
0.0215275
0.000311421
-0.000612846
0.000287824
-0.000417227
0.000486594
-0.00030156
-0.00153097
0.0219318
0.00549928
0.000312583
0.000192485
0.000285374
-0.000309215
0.0140535
-0.000119956
0.00453413
0.0205943
0.000105011
-2.32411e-06
0.00359845
0.000478113
-2.42728e-05
0.00181057
-0.010962
0.0124716
0.000683356
0.000287303
-0.000223727
-0.00521306
0.00073414
3.55833e-05
0.000414635
-4.69777e-05
0.00458362
-0.00448273
-0.00230309
0.00114327
0.00115983
-0.000306079
0.000240711
0.00161805
-0.00384551
-9.23704e-05
-0.000191802
-0.0132343
-0.000911806
-0.0011835
0.00177727
-3.90413e-05
-0.000102295
0.00105152
0.0162896
0.0014127
-7.6482e-05
-0.000239562
-0.000293845
3.56063e-05
-0.000186618
0.00231913
0.00156438
0.000166992
-0.0266373
0.000416414
-0.000134108
-0.000795688
0.000458479
-0.00196227
-0.00381814
1.01087e-05
-8.02945e-06
-0.00500352
0.000499656
-0.0291615
-0.000311388
-0.0011846
0.000619933
0.00100361
0.00121969
0.00821859
-0.000633578
0.000266087
-9.46902e-05
-0.021766
0.00936325
0.000421708
-8.6765e-05
-4.27044e-05
-0.0322291
0.0183061
-2.64361e-05
-0.000168241
0.0194087
0.00126132
0.000633416
-0.000301727
0.000426217
0.000296667
-0.0111409
-0.013905
-0.0130546
0.0187664
0.0237613
0.00250805
-0.019151
-0.000320551
-6.27535e-05
-0.0222679
0.0014378
-0.000643564
-0.00404378
-0.00776636
0.000186518
0.000540766
0.000478934
-0.000653747
-0.00352419
0.00230607
-0.000967246
-0.000224627
-0.000104326
0.000414113
-8.14487e-05
5.77618e-05
0.00225647
-0.00115708
0.00116232
0.0142445
0.003233
0.00904511
0.00126033
-0.00018881
0.000876747
-0.000765685
-0.000244062
0.000681488
-0.000141471
-0.00097055
0.0353723
0.000138884
-0.000336489
0.000523164
0.011052
0.00166828
-0.000460604
-0.00120768
-0.0104592
-0.000502766
-0.0213352
-0.000219334
6.08867e-05
0.00355335
0.027755
-0.00434322
0.00015218
0.000129522
-0.000163034
-0.000489481
0.0210349
-0.00128046
0.000111506
0.0352055
0.00163513
-0.00908125
-0.0070329
0.00595016
-0.00175682
-0.000174256
-0.000334662
0.00450055
-7.77042e-05
0.00301032
0.000772154
-0.000183822
-0.00747644
0.00044714
-1.48117e-06
0.00053654
-0.000309641
-0.000133992
4.53408e-05
-0.00519666
0.000178521
-4.17431e-05
0.000107766
0.00015135
-0.000292686
-0.0146404
-0.000428794
-0.000119974
0.000365343
-0.000281363
-0.000333715
0.000325923
0.000112838
0.000178995
-0.012984
-0.00010785
0.000349189
-0.00153269
0.000440822
0.000816718
4.58605e-05
5.74733e-05
-0.000101753
-0.00103287
-4.58559e-05
-0.000228075
5.59155e-05
0.000165991
-0.00775105
-0.00027585
-0.00961047
-0.000241694
-0.000176925
0.0155675
-0.000126258
0.000174826
-0.000121592
-1.25157e-05
0.00756706
7.25378e-05
-0.0118744
0.00138843
-0.00140676
0.00224063
-0.000496471
-0.000503631
1.80448e-05
0.000216709
0.00135213
-0.000955285
-6.63938e-05
-0.0136998
0.0192186
-0.00146078
-0.004116
-0.000137645
-0.0022177
0.00266962
0.000671286
0.000197049
0.000856837
-0.00111754
7.06769e-05
-0.000259817
0.0214171
-0.00016715
-0.000897892
0.000101273
-0.000186038
7.75429e-05
-0.00734347
0.0257667
-1.3418e-06
-0.0233113
-0.000225602
-0.000393036
0.00669557
9.84127e-05
0.0265273
-0.000175903
0.0165
-0.000292882
0.000349292
6.91708e-05
0.000488399
0.0105196
-0.00364004
-0.00121803
-0.00332909
-7.09433e-05
-0.00223728
0.0102687
0.00112556
-0.00023519
-0.00116627
-0.00013145
4.37476e-05
0.000288201
-0.000983854
0.000357094
0.00124572
-0.000793066
0.0167594
1.32738e-05
2.85144e-05
0.00252843
-0.000197863
-0.000266461
-0.000296007
0.000321668
0.00160972
-0.000123097
-0.00596656
-3.32899e-05
-0.00011988
0.00341971
-0.000409389
-0.00160514
-3.28221e-05
-8.99255e-06
0.00155451
-0.00111751
0.00342681
0.0130601
7.11964e-05
0.0205416
-0.000330915
0.000371804
0.000165421
-0.000476239
0.0293768
0.0229354
-0.000300411
-0.00066927
0.000321892
0.00141198
0.0295607
-3.6313e-05
0.00594949
3.70566e-06
4.662e-06
-0.000269999
-0.000196743
0.000446935
-0.00104271
-0.000882037
-0.00234102
-0.0184113
-0.00022818
0.000211451
0.00788736
0.000504396
0.000202246
3.5196e-05
-0.00212463
0.00430294
6.54743e-05
0.00111679
-0.000111656
-2.00275e-05
-0.000833775
-4.86142e-05
-0.0296614
0.00285078
-0.00346461
0.00500293
-0.000146175
-0.00291938
0.000173765
-0.00265451
-0.000144245
0.00216441
-0.0014656
-0.0106856
-0.0138513
-3.14452e-05
-0.000100063
-5.44618e-05
-1.12504e-05
0.0110842
7.8496e-05
-0.0249196
0.0168441
0.0155662
-0.00430564
3.61054e-06
-0.00113616
0.00043244
-0.000410635
-0.00802939
0.0171843
0.00190003
0.000192231
0.00589745
0.000504802
0.00270025
8.26277e-05
0.014373
-0.00332105
0.000829286
-0.00013179
-0.000289155
-0.000406478
-0.00525448
0.00025594
-0.0113066
0.03256
-0.0260023
-0.00407486
-4.63543e-06
-3.39359e-06
0.000320379
-0.00463865
0.000819946
0.000376293
-0.000523834
-0.00647771
-0.00420785
-0.000682462
-0.00143521
0.000330662
0.0281902
-0.0120984
0.00119776
-0.000180645
-0.00041229
0.000123073
-7.66981e-05
-0.000217532
0.000155839
0.00616857
0.000181061
0.000834581
-5.2502e-05
0.000150773
4.88782e-05
0.000288065
0.00102615
-0.018756
0.0242553
-0.0104587
-0.0186049
-0.00252238
-0.0012233
0.00442616
-0.000872818
-0.0339729
-5.86528e-05
0.000135114
0.000147106
-0.00037629
0.00034658
-0.00580432
0.00925827
0.00587055
-0.00262495
-0.0069627
0.000477747
-0.00664374
-0.0125225
-0.0052102
-0.0106564
0.00634661
6.57969e-05
0.000197309
-0.000271172
0.000472221
0.0295523
9.7892e-05
-0.000420609
-9.28271e-05
0.00319791
-0.00103688
-2.23168e-05
0.000161376
0.000101263
0.011112
5.96974e-05
-0.000978599
6.43409e-05
0.000402437
6.95261e-05
0.000559645
-0.000217298
0.00016771
0.000193065
-0.00567011
-0.0149274
0.00231
0.00356055
0.0136518
0.0117222
0.00462406
2.6669e-05
0.00460424
-0.0131103
0.00978922
0.000106354
0.000590138
-0.000222401
0.000232887
0.00356051
0.00243483
0.00244047
0.00284772
-0.00547266
-0.000613464
0.0253263
0.000649548
-0.00127213
-0.00201964
-0.000538591
-0.00357408
-6.96477e-05
-8.25142e-05
0.000152162
0.0122559
-0.000138325
4.85043e-05
-6.67026e-07
0.0116886
-8.12045e-05
0.000117191
0.00666089
8.04186e-05
0.0023389
-0.00941094
0.000819879
-0.000157248
0.000126709
0.000320226
-0.00132209
3.23214e-05
0.00186088
-0.00162261
-9.58528e-05
-0.00016674
-0.000266162
-9.94952e-05
-0.000197133
-0.00610679
0.00388893
-0.00125682
0.000329331
-0.000215168
0.00112671
0.000916232
-9.32207e-06
1.67728e-05
0.00137601
2.62584e-05
-0.00232986
0.00307748
-0.00195609
-0.00207765
-7.3314e-05
-0.00203242
0.000322971
-0.000270663
2.92064e-05
-0.00715352
0.000417217
-7.84857e-05
0.00325548
-0.00652448
0.00216929
-0.00183404
3.04397e-05
5.58739e-05
0.000134531
0.000160851
1.26394e-05
-5.70035e-05
-0.00018125
-0.0197447
0.0310225
-0.0226231
0.0146964
-0.00138573
0.000145243
-0.00287404
-0.0298565
-6.93808e-05
6.34043e-06
0.0177121
-0.00120178
-0.00281965
0.00393396
0.000127845
-0.000188856
-0.000258605
0.000102336
-0.000466448
0.000297903
-0.000195827
-0.00252285
0.0155692
0.000150594
8.58793e-05
-0.005378
0.0040188
-0.00254624
0.000102392
-4.86481e-05
-7.51441e-06
-0.00350089
-0.0206855
-8.74853e-06
-0.00411465
-0.00240983
-0.000893347
0.000977568
-9.36211e-05
-0.0025911
0.000167238
-0.00211949
0.000433573
-0.0098316
-0.000338201
0.000426118
-0.000525602
-0.00101257
0.00356353
-0.000227865
0.00141073
0.000128033
-0.000402529
)
;
boundaryField
{
frontAndBack
{
type empty;
value nonuniform 0();
}
wing_baffle
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value nonuniform List<scalar>
20
(
0.0437266
0.044309
0.0437376
0.0441344
0.0437364
0.0437089
0.0440187
0.0437157
0.0437095
0.0443117
0.0442689
0.0442959
0.0439081
0.0442176
0.044307
0.0443145
0.0438061
0.0437131
0.0437453
0.044315
)
;
}
tunnel
{
type calculated;
value uniform 0;
}
inlet
{
type calculated;
value nonuniform List<scalar>
20
(
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
-0.044
)
;
}
wing
{
type calculated;
value uniform 0;
}
}
// ************************************************************************* //
| [
"rlee32@gatech.edu"
] | rlee32@gatech.edu | |
1f0329a8bf6502fe2a65c626bbc89ff3e1e0d011 | 970932a81d2271abe494c51d66153010c54e2032 | /src/xrGame/map_manager.cpp | 3f0a9d635abae7cfdc364d6a06f99e9180f8f884 | [] | no_license | Alexandr682/xray-omp | 975c8564a6e7a418c74a5d59768c93750350256b | e8e26a116bab30d28f3a77cda77b203cdb51c589 | refs/heads/master | 2023-04-01T18:33:13.185945 | 2020-09-28T18:59:29 | 2020-09-28T18:59:29 | 267,366,318 | 13 | 15 | null | 2020-05-28T20:47:26 | 2020-05-27T16:08:17 | C++ | UTF-8 | C++ | false | false | 7,208 | cpp | #include "pch_script.h"
#include "map_manager.h"
#include "alife_registry_wrappers.h"
#include "inventoryowner.h"
#include "level.h"
#include "actor.h"
#include "relation_registry.h"
#include "GameObject.h"
#include "map_location.h"
#include "GameTaskManager.h"
#include "xrServer.h"
#include "game_object_space.h"
#include "script_callback_ex.h"
struct FindLocationBySpotID{
shared_str spot_id;
u16 object_id;
FindLocationBySpotID(const shared_str& s, u16 id):spot_id(s),object_id(id){}
bool operator () (const SLocationKey& key){
return (spot_id==key.spot_type)&&(object_id==key.object_id);
}
};
struct FindLocationByID{
u16 object_id;
FindLocationByID(u16 id):object_id(id){}
bool operator () (const SLocationKey& key){
return (object_id==key.object_id);
}
};
struct FindLocation{
CMapLocation* ml;
FindLocation(CMapLocation* m):ml(m){}
bool operator () (const SLocationKey& key){
return (ml==key.location);
}
};
void SLocationKey::save(IWriter &stream)
{
stream.w (&object_id,sizeof(object_id));
stream.w_stringZ(spot_type);
stream.w_u8 (0);
location->save (stream);
}
void SLocationKey::load(IReader &stream)
{
stream.r (&object_id,sizeof(object_id));
stream.r_stringZ(spot_type);
stream.r_u8 ();
location = xr_new<CMapLocation>(*spot_type, object_id);
location->load (stream);
}
void SLocationKey::destroy()
{
delete_data(location);
}
void CMapLocationRegistry::save(IWriter &stream)
{
stream.w_u32 ((u32)objects().size());
iterator I = m_objects.begin();
iterator E = m_objects.end();
for ( ; I != E; ++I) {
u32 size = 0;
Locations::iterator i = (*I).second.begin();
Locations::iterator e = (*I).second.end();
for ( ; i != e; ++i) {
VERIFY ((*i).location);
if ((*i).location->Serializable())
++size;
}
stream.w (&(*I).first,sizeof((*I).first));
stream.w_u32 (size);
i = (*I).second.begin();
for ( ; i != e; ++i)
if ((*i).location->Serializable())
(*i).save (stream);
}
}
CMapManager::CMapManager()
{
m_locations_wrapper = xr_new<CMapLocationWrapper>();
m_locations_wrapper->registry().init(1);
m_locations = NULL;
}
CMapManager::~CMapManager()
{
delete_data (m_deffered_destroy_queue); //from prev frame
delete_data (m_locations_wrapper);
}
CMapLocation* CMapManager::AddMapLocation(const shared_str& spot_type, u16 id)
{
CMapLocation* l = xr_new<CMapLocation>(spot_type.c_str(), id);
Locations().push_back( SLocationKey(spot_type, id) );
Locations().back().location = l;
if (g_actor)
Actor()->callback(GameObject::eMapLocationAdded)(spot_type.c_str(), id);
return l;
}
CMapLocation* CMapManager::AddRelationLocation(CInventoryOwner* pInvOwner)
{
if(!Level().CurrentViewEntity())return NULL;
ALife::ERelationType relation = ALife::eRelationTypeFriend;
CInventoryOwner* pActor = smart_cast<CInventoryOwner*>(Level().CurrentViewEntity());
relation = RELATION_REGISTRY().GetRelationType(pInvOwner, pActor);
shared_str sname = RELATION_REGISTRY().GetSpotName(relation);
CEntityAlive* pEntAlive = smart_cast<CEntityAlive*>(pInvOwner);
if( !pEntAlive->g_Alive() ) sname = "deadbody_location";
R_ASSERT(!HasMapLocation(sname, pInvOwner->object_id()));
CMapLocation* l = xr_new<CRelationMapLocation>(sname, pInvOwner->object_id(), pActor->object_id());
Locations().push_back( SLocationKey(sname, pInvOwner->object_id()) );
Locations().back().location = l;
return l;
}
void CMapManager::Destroy(CMapLocation* ml)
{
m_deffered_destroy_queue.push_back(ml);
}
void CMapManager::RemoveMapLocation(const shared_str& spot_type, u16 id)
{
FindLocationBySpotID key(spot_type, id);
Locations_it it = std::find_if(Locations().begin(),Locations().end(),key);
if( it!=Locations().end() )
{
Level().GameTaskManager().MapLocationRelcase((*it).location);
Destroy ((*it).location);
Locations().erase (it);
}
}
void CMapManager::RemoveMapLocationByObjectID(u16 id) //call on destroy object
{
FindLocationByID key(id);
Locations_it it = std::find_if(Locations().begin(), Locations().end(), key);
while( it!= Locations().end() )
{
Level().GameTaskManager().MapLocationRelcase((*it).location);
Destroy ((*it).location);
Locations().erase (it);
it = std::find_if(Locations().begin(), Locations().end(), key);
}
}
void CMapManager::RemoveMapLocation(CMapLocation* ml)
{
FindLocation key(ml);
Locations_it it = std::find_if(Locations().begin(), Locations().end(), key);
if( it!=Locations().end() )
{
Level().GameTaskManager().MapLocationRelcase((*it).location);
Destroy ((*it).location);
Locations().erase (it);
}
}
bool CMapManager::GetMapLocationsForObject(u16 id, xr_vector<CMapLocation*>& res)
{
res.clear_not_free ();
Locations_it it = Locations().begin();
Locations_it it_e = Locations().end();
for(; it!=it_e;++it)
{
if((*it).actual && (*it).object_id==id)
res.push_back((*it).location);
}
return (res.size()!=0);
}
bool CMapManager::HasMapLocation(const shared_str& spot_type, u16 id)
{
CMapLocation* l = GetMapLocation(spot_type, id);
return (l!=NULL);
}
CMapLocation* CMapManager::GetMapLocation(const shared_str& spot_type, u16 id)
{
FindLocationBySpotID key(spot_type, id);
Locations_it it = std::find_if(Locations().begin(), Locations().end(), key);
if( it!=Locations().end() )
return (*it).location;
return 0;
}
void CMapManager::GetMapLocations(const shared_str& spot_type, u16 id, xr_vector<CMapLocation*>& res)
{
FindLocationBySpotID key(spot_type, id);
Locations_it it = std::find_if(Locations().begin(), Locations().end(), key);
while( it!=Locations().end() )
{
res.push_back((*it).location);
it = std::find_if(++it, Locations().end(), key);
}
}
void CMapManager::Update()
{
delete_data(m_deffered_destroy_queue); //from prev frame
Locations_it it = Locations().begin();
Locations_it it_e = Locations().end();
for(u32 idx=0; it!=it_e;++it,++idx)
{
bool bForce = Device.dwFrame%3 == idx%3;
(*it).actual = (*it).location->Update();
if((*it).actual && bForce)
(*it).location->CalcPosition();
}
std::sort( Locations().begin(),Locations().end() );
while( (!Locations().empty())&&(!Locations().back().actual) )
{
if(IsGameTypeSingle())
Level().GameTaskManager().MapLocationRelcase(Locations().back().location);
Destroy (Locations().back().location);
Locations().pop_back();
}
}
void CMapManager::DisableAllPointers()
{
Locations_it it = Locations().begin();
Locations_it it_e = Locations().end();
for(; it!=it_e;++it)
(*it).location->DisablePointer ();
}
Locations& CMapManager::Locations ()
{
if(!m_locations)
{
m_locations = &m_locations_wrapper->registry().objects();
#ifdef DEBUG
Msg("m_locations size=%d",m_locations->size());
#endif // #ifdef DEBUG
}
return *m_locations;
}
void CMapManager::OnObjectDestroyNotify(u16 id)
{
RemoveMapLocationByObjectID(id);
}
#ifdef DEBUG
void CMapManager::Dump ()
{
Msg("begin of map_locations dump");
Locations_it it = Locations().begin();
Locations_it it_e = Locations().end();
for(; it!=it_e;++it)
{
Msg("spot_type=[%s] object_id=[%d]",*((*it).spot_type), (*it).object_id);
(*it).location->Dump();
}
Msg("end of map_locations dump");
}
#endif | [
"botkiller4@yandex.ru"
] | botkiller4@yandex.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.