blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2 values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25 values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 10.5M | extension stringclasses 111 values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80e4f898d0e4a4c49f8b96f9fa640fd54ca964bd | 1783b6714c5614155c7584bcad0a028345100cbe | /Conditional Statements/if.cpp | ec0fb4437f381df0356f02412d94a3415a52a77f | [] | no_license | ShreyaDhir/Cpp | 203d637ab5e9033ba01a37a16379b2d1f8c3f108 | 8c8ccee62d748f30a596c3eb6116074def958bf8 | refs/heads/master | 2023-01-20T01:13:59.202682 | 2020-11-29T11:38:47 | 2020-11-29T11:38:47 | 271,291,203 | 1 | 2 | null | 2020-10-03T07:09:27 | 2020-06-10T13:56:47 | C++ | UTF-8 | C++ | false | false | 828 | cpp | if.cpp | //If statement
#include<iostream>
using namespace std;
/* Case 1 : Number is greater than 10
* Case 2 : Number is less than 100
* Case 3 : Number is between 10 and 10
* Case 4 : Number is within the boudaries of 10 and 100
*/
int main()
{
int num {};
const int min{10}, max{100};
cout<<"Enter the number: ";
cin>>num;
if(num >= 10){
cout<<"Statement 1"<<endl;
int diff {num - min};
cout<<num<<" is "<<diff<<" greater than "<<min<<endl;
}
if(num <= 100){
cout<<"Statement 2"<<endl;
int diff {max - num};
cout<<num<<" is "<<diff<<" less than "<<max<<endl;
}
if(num >= 10&&num <= 100){
cout<<"Statement 3"<<endl;
cout<<num<<" is in range"<<endl;
}
if(num == 10||num == 100){
cout<<"Statement 4"<<endl;
cout<<num<<" is on boundary"<<endl;
}
return 0;
}
|
09ffbcaf53cc7e20d2cf12b7814a5b3662003c60 | dc096ae8c8268934e14451e74a78152781186466 | /CplusplusPrimer_5thEd_2012/chapter10/Exercise10.34.cpp | 7aebcd4bbc8491d58187b0eda20c2494968c3461 | [] | no_license | georgiosdoumas/ProgrammingCplusplus- | e9d7420cd8c69377c63e222e090a9ee60642964e | 9f37fe8ddbdb905ed6e27c13841b6ca5d0ef244c | refs/heads/master | 2023-07-09T21:05:14.636387 | 2023-07-01T17:44:39 | 2023-07-01T17:44:39 | 59,301,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | Exercise10.34.cpp | /* Exercise 10.34: Use reverse_iterators to print a vector in reverse order. */
#include <iterator>
#include <vector>
#include <iostream>
int main()
{
std::vector<std::string> words {"one", "two", "three", "four", "five"};
std::vector<double> numbers { -1, 0, 1, 2, 3, 4, 5 };
for(auto revIter = numbers.crbegin(); revIter != numbers.crend(); ++revIter )
std::cout << *revIter << " ";
std::cout << std::endl;
for(auto revIter = words.crbegin(); revIter != words.crend(); ++revIter )
std::cout << *revIter << " ";
std::cout << std::endl;
return 0;
}
// g++ -Wall -std=c++11 Exercise10.34.cpp -o Exercise10.34
|
f4ea9ccc5c067b4c7177f644f096968e28da72de | 71e0a135b8f4e932ae33aab850cedb7e3418b5d0 | /include/skyr/v2/unicode/core.hpp | 8392a37e76cf849c4a00e717327d518051972fb7 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | glynos/url | 533cee99cd8548b972ee3cd6d59125fa1624a061 | 28111d4c30b996aed6a9b9fffa643dfa4e14cb55 | refs/heads/main | 2022-09-10T19:18:09.011320 | 2022-08-06T06:20:37 | 2022-08-06T06:20:37 | 148,006,002 | 43 | 8 | BSL-1.0 | 2020-11-18T22:09:41 | 2018-09-09T08:14:36 | C++ | UTF-8 | C++ | false | false | 8,212 | hpp | core.hpp | // Copyright 2019-20 Glyn Matthews.
// 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)
#ifndef SKYR_V2_UNICODE_CORE_HPP
#define SKYR_V2_UNICODE_CORE_HPP
#include <string>
#include <type_traits>
#include <tl/expected.hpp>
#include <skyr/v2/unicode/constants.hpp>
#include <skyr/v2/unicode/errors.hpp>
namespace skyr::inline v2::unicode {
///
/// \param octet
/// \return
template <class uintT>
constexpr inline auto mask8(uintT value) {
static_assert(std::is_unsigned_v<uintT>, "unsigned integral types only");
return static_cast<uintT>(0xffu & value);
}
///
/// \param value
/// \return
template <class uintT>
constexpr inline auto mask16(uintT value) {
static_assert(std::is_unsigned_v<uintT>, "unsigned integral types only");
return static_cast<uintT>(0xffffu & value);
}
///
/// \param octet
/// \return
constexpr inline auto is_trail(uint8_t octet) {
return ((mask8(octet) >> 6u) == 0x2u);
}
///
/// \param code_point
/// \return
constexpr inline auto is_lead_surrogate(char16_t code_point) {
return (code_point >= constants::surrogates::lead_min) && (code_point <= constants::surrogates::lead_max);
}
///
/// \param value
/// \return
constexpr inline auto is_trail_surrogate(char16_t value) {
return (value >= constants::surrogates::trail_min) && (value <= constants::surrogates::trail_max);
}
///
/// \param value
/// \return
constexpr inline auto is_surrogate(char16_t value) {
return (value >= constants::surrogates::lead_min) && (value <= constants::surrogates::trail_max);
}
/// Tests if the code point is a valid value.
/// \param code_point
/// \return \c true if it has a valid value, \c false otherwise
constexpr inline auto is_valid_code_point(char32_t code_point) {
return (code_point <= constants::code_points::max) && !is_surrogate(static_cast<char16_t>(code_point));
}
/// Returns the size of the sequnce given the lead octet value.
/// \param lead_value
/// \return 1, 2, 3 or 4
constexpr inline auto sequence_length(uint8_t lead_value) {
auto lead = mask8(lead_value);
if (lead < 0x80u) {
return 1;
} else if ((lead >> 5u) == 0x6u) {
return 2;
} else if ((lead >> 4u) == 0xeu) {
return 3;
} else if ((lead >> 3u) == 0x1eu) {
return 4;
}
return 0;
}
/// A type used to extract a code point value from an octet sequence
/// \tparam OctetIterator
template <typename OctetIterator>
struct sequence_state {
constexpr sequence_state(OctetIterator it, char32_t value) : it(it), value(value) {}
/// The current iterator
OctetIterator it;
/// The (intermediate) value of the code point
char32_t value;
};
/// Creates an expected state, so that can be chained
/// functional-style.
///
/// \tparam OctetIterator
/// \param it The lead value of the next code point in the octet
/// sequence
/// \return A sequence_state with a value of 0, and the iterator
/// pointing to the lead value
template <class OctetIterator>
constexpr inline auto make_state(OctetIterator it) -> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
return sequence_state<OctetIterator>(it, 0);
}
/// Updates the value in the sequence state
///
/// \tparam OctetIterator
/// \param state The input state
/// \param value The updated value
/// \return A new state with an updateds value
template <class OctetIterator>
constexpr inline auto update_value(sequence_state<OctetIterator> state, char32_t value)
-> sequence_state<OctetIterator> {
return {state.it, value};
}
/// Moves the octet iterator one character ahead
/// \tparam OctetIterator
/// \param state The input state
/// \return The new state with the updated iterator, on an error if
/// the sequence isn't valid
template <typename OctetIterator>
constexpr inline auto increment(sequence_state<OctetIterator> state)
-> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
++state.it;
if (!is_trail(*state.it)) {
return tl::make_unexpected(unicode_errc::illegal_byte_sequence);
}
return state;
}
namespace details {
///
/// \tparam OctetIterator
/// \param state
/// \return
template <typename OctetIterator>
constexpr inline auto mask_byte(sequence_state<OctetIterator> state)
-> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
return update_value(state, static_cast<char32_t>(mask8(static_cast<std::uint8_t>(*state.it))));
}
/// Converts a two byte code octet sequence to a code point value.
///
/// \tparam OctetIterator
/// \param first
/// \return
template <typename OctetIterator>
constexpr auto from_two_byte_sequence(OctetIterator first)
-> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
using result_type = tl::expected<sequence_state<OctetIterator>, unicode_errc>;
constexpr auto set_code_point = [](auto state) -> result_type {
return update_value(state, ((state.value << 6) & 0x7ff) + (*state.it & 0x3f));
};
return make_state(first)
.and_then(mask_byte<OctetIterator>)
.and_then(increment<OctetIterator>)
.and_then(set_code_point);
}
/// Converts a three byte code octet sequence to a code point value.
///
/// \tparam OctetIterator
/// \param first
/// \return
template <typename OctetIterator>
constexpr inline auto from_three_byte_sequence(OctetIterator first)
-> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
using result_type = tl::expected<sequence_state<OctetIterator>, unicode_errc>;
constexpr auto update_code_point_from_second_byte = [](auto state) -> result_type {
return update_value(state,
((state.value << 12) & 0xffff) + ((mask8(static_cast<std::uint8_t>(*state.it)) << 6) & 0xfff));
};
constexpr auto set_code_point = [](auto state) -> result_type {
return update_value(state, state.value + (*state.it & 0x3f));
};
return make_state(first)
.and_then(mask_byte<OctetIterator>)
.and_then(increment<OctetIterator>)
.and_then(update_code_point_from_second_byte)
.and_then(increment<OctetIterator>)
.and_then(set_code_point);
}
/// Converts a four byte code octet sequence to a code point value.
///
/// \tparam OctetIterator
/// \param first
/// \return
template <typename OctetIterator>
constexpr inline auto from_four_byte_sequence(OctetIterator first)
-> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
using result_type = tl::expected<sequence_state<OctetIterator>, unicode_errc>;
constexpr auto update_code_point_from_second_byte = [](auto state) -> result_type {
return update_value(
state, ((state.value << 18) & 0x1fffff) + ((mask8(static_cast<std::uint8_t>(*state.it)) << 12) & 0x3ffff));
};
constexpr auto update_code_point_from_third_byte = [](auto state) -> result_type {
return update_value(state, state.value + ((mask8(static_cast<std::uint8_t>(*state.it)) << 6) & 0xfff));
};
constexpr auto set_code_point = [](auto state) -> result_type {
return update_value(state, state.value + (*state.it & 0x3f));
};
return make_state(first)
.and_then(mask_byte<OctetIterator>)
.and_then(increment<OctetIterator>)
.and_then(update_code_point_from_second_byte)
.and_then(increment<OctetIterator>)
.and_then(update_code_point_from_third_byte)
.and_then(increment<OctetIterator>)
.and_then(set_code_point);
}
} // namespace details
/// Finds and computes the next code point value in the octet
/// sequence.
///
/// \tparam OctetIterator
/// \param first
/// \return
template <typename OctetIterator>
constexpr inline auto find_code_point(OctetIterator first)
-> tl::expected<sequence_state<OctetIterator>, unicode_errc> {
const auto length = sequence_length(*first);
switch (length) {
case 1:
return make_state(first).and_then(details::mask_byte<OctetIterator>);
case 2:
return details::from_two_byte_sequence(first);
case 3:
return details::from_three_byte_sequence(first);
case 4:
return details::from_four_byte_sequence(first);
default:
return tl::make_unexpected(unicode_errc::overflow);
}
}
} // namespace skyr::inline v2::unicode
#endif // SKYR_V2_UNICODE_CORE_HPP
|
cacffe815e2d0970739c4c2a621da336c8d350f3 | be56a505cfbec9bbc27368420253b91179f64138 | /MainProject/Game/Source/Base/Mesh.h | fb3c721eb34fb04f6cd809a6fdade7d00c563583 | [] | no_license | sai913887834/Game-Graphic-3 | 5cc3103c29a5f2a55684904522d050af39cb485f | f1d840325928dad8a4ba63928e8b7152e8f8dd19 | refs/heads/master | 2020-12-07T06:57:16.902713 | 2020-02-05T19:10:55 | 2020-02-05T19:10:55 | 232,664,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | h | Mesh.h | #ifndef __Mesh_H__
#define __Mesh_H__
#include "VertexFormat.h"
class fw::ShaderProgram;
class Camera;
class Mesh
{
protected:
GLuint m_VBO;
GLuint m_IBO;
unsigned int m_NumVerts;
unsigned int m_NumIndices;
GLenum m_PrimitiveType;
public:
Mesh();
~Mesh();
void Init(VertexFormat* pVerts, int numVerts, unsigned int* pIndices, int numIndices, GLenum primitiveType, GLenum usage);
void Init(VertexFormat* pVerts, unsigned int numVerts, GLenum primitiveType);
void Draw(Camera* pCamera, fw::ShaderProgram* pShader, vec3 pos, fw::Texture* pTexture);
void CreateBox(vec3 size, vec3 offset);
//GLfloat rotationX;
//GLfloat rotationY;
};
#endif //__Mesh_H__
|
25e1f7ee2173f814f594c1924817da23a9b6fc29 | 1faa2601f5c5d05a8dfa851c06a0fc07317386e5 | /test/unittests/t_cache_extern.cc | a32914edb63e8e4ca21db43247f33007f7a63d92 | [] | permissive | cvmfs/cvmfs | 216aecc8921ac7fcd5cec5a8baf37870cdc42d0f | bb69086badd32d8f9566ed5dcedff1fd1b0ccc5e | refs/heads/devel | 2023-08-24T09:17:29.248662 | 2023-08-15T09:08:27 | 2023-08-15T09:08:27 | 3,784,908 | 231 | 118 | BSD-3-Clause | 2023-09-13T10:50:09 | 2012-03-21T09:10:41 | C++ | UTF-8 | C++ | false | false | 22,480 | cc | t_cache_extern.cc | /**
* This file is part of the CernVM File System.
*/
#include <gtest/gtest.h>
#include <alloca.h>
#include <fcntl.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <map>
#include <string>
#include <vector>
#include "cache.pb.h"
#include "cache_extern.h"
#include "cache_plugin/channel.h"
#include "cache_transport.h"
#include "crypto/hash.h"
#include "util/posix.h"
#include "util/smalloc.h"
using namespace std; // NOLINT
/**
* Receiving end of the cache manager.
*/
class MockCachePlugin : public CachePlugin {
public:
static const unsigned kMockCacheSize;
static const unsigned kMockListingNitems;
MockCachePlugin(const string &socket_path, bool read_only)
: CachePlugin(read_only ? (cvmfs::CAP_ALL_V1 & ~cvmfs::CAP_WRITE)
: cvmfs::CAP_ALL_V2)
{
bool retval = Listen("unix=" + socket_path);
assert(retval);
ProcessRequests(0);
known_object.algorithm = shash::kSha1;
known_object_content = "Hello, World";
shash::HashString(known_object_content, &known_object);
known_object_refcnt = 0;
next_status = -1;
listing_nitems = 0;
listing_type = cvmfs::OBJECT_REGULAR;
last_id = 0;
last_reponame = NULL;
last_client_instance = NULL;
}
virtual ~MockCachePlugin() { }
void GetSession(uint64_t *id, char **reponame, char **client_instance) {
SessionCtx *session_ctx = SessionCtx::GetInstance();
assert(session_ctx);
session_ctx->Get(id, reponame, client_instance);
}
string known_object_content;
shash::Any known_object;
shash::Any new_object;
string new_object_content;
int known_object_refcnt;
int next_status;
unsigned listing_nitems;
cvmfs::EnumObjectType listing_type;
uint64_t last_id;
char *last_reponame;
char *last_client_instance;
std::map<std::string, manifest::Breadcrumb> breadcrumbs;
protected:
virtual cvmfs::EnumStatus ChangeRefcount(
const shash::Any &id,
int32_t change_by)
{
GetSession(&last_id, &last_reponame, &last_client_instance);
if (next_status >= 0)
return static_cast<cvmfs::EnumStatus>(next_status);
if (id == new_object)
return cvmfs::STATUS_OK;
if (id == known_object) {
if ((known_object_refcnt + change_by) < 0) {
return cvmfs::STATUS_BADCOUNT;
} else {
known_object_refcnt += change_by;
return cvmfs::STATUS_OK;
}
}
return cvmfs::STATUS_NOENTRY;
}
virtual cvmfs::EnumStatus GetObjectInfo(
const shash::Any &id,
ObjectInfo *info)
{
if (next_status >= 0)
return static_cast<cvmfs::EnumStatus>(next_status);
if (id == known_object) {
info->size = known_object_content.length();
return cvmfs::STATUS_OK;
}
if (id == new_object) {
info->size = new_object_content.length();
return cvmfs::STATUS_OK;
}
return cvmfs::STATUS_NOENTRY;
}
virtual cvmfs::EnumStatus Pread(
const shash::Any &id,
uint64_t offset,
uint32_t *size,
unsigned char *buffer)
{
GetSession(&last_id, &last_reponame, &last_client_instance);
if (next_status >= 0)
return static_cast<cvmfs::EnumStatus>(next_status);
const char *data;
unsigned data_size;
if (id == known_object) {
data = known_object_content.data();
data_size = known_object_content.length();
} else if (id == new_object) {
data = new_object_content.data();
data_size = new_object_content.length();
} else {
return cvmfs::STATUS_NOENTRY;
}
if (offset > data_size)
return cvmfs::STATUS_OUTOFBOUNDS;
*size = std::min(static_cast<uint64_t>(*size), data_size - offset);
memcpy(buffer, data + offset, *size);
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus StartTxn(
const shash::Any &id,
const uint64_t txn_id,
const ObjectInfo &info)
{
new_object = id;
new_object_content.clear();
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus WriteTxn(
const uint64_t txn_id,
unsigned char *buffer,
uint32_t size)
{
string data(reinterpret_cast<char *>(buffer), size);
new_object_content += data;
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus CommitTxn(const uint64_t txn_id) {
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus AbortTxn(const uint64_t txn_id) {
new_object_content.clear();
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus GetInfo(Info *info)
{
info->size_bytes = kMockCacheSize;
info->used_bytes = known_object_content.length();
info->pinned_bytes = (known_object_refcnt == 0) ? 0 : info->used_bytes;
info->no_shrink = 0;
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus Shrink(uint64_t shrink_to, uint64_t *used_bytes) {
return
(known_object_refcnt == 0) ? cvmfs::STATUS_OK : cvmfs::STATUS_PARTIAL;
}
virtual cvmfs::EnumStatus ListingBegin(
uint64_t lst_id,
cvmfs::EnumObjectType type)
{
listing_nitems = 0;
listing_type = type;
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus ListingNext(int64_t lst_id, ObjectInfo *item) {
if ((listing_type != cvmfs::OBJECT_REGULAR) ||
(listing_nitems >= kMockListingNitems))
return cvmfs::STATUS_OUTOFBOUNDS;
item->id = known_object;
item->size = known_object_content.length();
item->object_type = cvmfs::OBJECT_REGULAR;
item->pinned = known_object_refcnt > 0;
item->description = "/known_object";
listing_nitems++;
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus ListingEnd(int64_t lst_id) {
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus LoadBreadcrumb(
const std::string &fqrn, manifest::Breadcrumb *breadcrumb)
{
map<std::string, manifest::Breadcrumb>::const_iterator itr =
breadcrumbs.find(fqrn);
if (itr == breadcrumbs.end())
return cvmfs::STATUS_NOENTRY;
*breadcrumb = itr->second;
return cvmfs::STATUS_OK;
}
virtual cvmfs::EnumStatus StoreBreadcrumb(
const std::string &fqrn, const manifest::Breadcrumb &breadcrumb)
{
breadcrumbs[fqrn] = breadcrumb;
return cvmfs::STATUS_OK;
}
};
const unsigned MockCachePlugin::kMockCacheSize = 10 * 1024 * 1024;
const unsigned MockCachePlugin::kMockListingNitems = 100000;
class T_ExternalCacheManager : public ::testing::Test {
protected:
virtual void SetUp() {
socket_path_ = "cvmfs_cache_plugin.socket";
mock_plugin_ = new MockCachePlugin(socket_path_, false);
fd_client = ConnectSocket(socket_path_);
ASSERT_GE(fd_client, 0);
cache_mgr_ =
ExternalCacheManager::Create(fd_client, nfiles, "test:instance");
ASSERT_TRUE(cache_mgr_ != NULL);
quota_mgr_ = ExternalQuotaManager::Create(cache_mgr_);
ASSERT_TRUE(cache_mgr_ != NULL);
cache_mgr_->AcquireQuotaManager(quota_mgr_);
}
virtual void TearDown() {
delete cache_mgr_;
unlink(socket_path_.c_str());
delete mock_plugin_;
}
CacheManager::LabeledObject LabelWithPath(const shash::Any &id,
const std::string &path)
{
CacheManager::Label label;
label.path = path;
return CacheManager::LabeledObject(id, label);
}
static const unsigned nfiles;
int fd_client;
string socket_path_;
MockCachePlugin *mock_plugin_;
ExternalCacheManager *cache_mgr_;
ExternalQuotaManager *quota_mgr_;
};
const unsigned T_ExternalCacheManager::nfiles = 128;
TEST_F(T_ExternalCacheManager, Connection) {
EXPECT_GE(cache_mgr_->session_id(), 0);
EXPECT_EQ(getpid(), cache_mgr_->quota_mgr()->GetPid());
// Invalid query for session information outside callback
uint64_t id;
char *reponame;
char *client_instance;
mock_plugin_->GetSession(&id, &reponame, &client_instance);
EXPECT_EQ(0U, id);
EXPECT_EQ(NULL, reponame);
EXPECT_EQ(NULL, client_instance);
}
TEST_F(T_ExternalCacheManager, OpenClose) {
EXPECT_EQ(-EBADF, cache_mgr_->Close(0));
shash::Any rnd_id(shash::kSha1);
rnd_id.Randomize();
EXPECT_EQ(-ENOENT, cache_mgr_->Open(CacheManager::LabeledObject(rnd_id)));
uint64_t session_id = mock_plugin_->last_id;
EXPECT_EQ(0, strcmp(mock_plugin_->last_reponame, "test"));
EXPECT_EQ(0, strcmp(mock_plugin_->last_client_instance, "instance"));
int fds[nfiles];
for (unsigned i = 0; i < nfiles; ++i) {
fds[i] =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fds[i], 0);
}
EXPECT_EQ(session_id, mock_plugin_->last_id);
EXPECT_EQ(static_cast<int>(nfiles), mock_plugin_->known_object_refcnt);
EXPECT_EQ(-ENFILE, cache_mgr_->Open(
CacheManager::LabeledObject(mock_plugin_->known_object)));
for (unsigned i = 0; i < nfiles; ++i) {
EXPECT_EQ(0, cache_mgr_->Close(fds[i]));
}
EXPECT_EQ(0, mock_plugin_->known_object_refcnt);
mock_plugin_->next_status = cvmfs::STATUS_MALFORMED;
EXPECT_EQ(-EINVAL, cache_mgr_->Open(
CacheManager::LabeledObject(mock_plugin_->known_object)));
mock_plugin_->next_status = -1;
}
TEST_F(T_ExternalCacheManager, ReadOnly) {
// Re-initialize as read-only
delete cache_mgr_;
unlink(socket_path_.c_str());
delete mock_plugin_;
mock_plugin_ = new MockCachePlugin(socket_path_, true);
fd_client = ConnectSocket(socket_path_);
ASSERT_GE(fd_client, 0);
cache_mgr_ = ExternalCacheManager::Create(fd_client, nfiles, "test");
ASSERT_TRUE(cache_mgr_ != NULL);
quota_mgr_ = ExternalQuotaManager::Create(cache_mgr_);
ASSERT_TRUE(cache_mgr_ != NULL);
cache_mgr_->AcquireQuotaManager(quota_mgr_);
EXPECT_GE(cache_mgr_->session_id(), 0);
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
EXPECT_EQ(0, cache_mgr_->Close(fd));
shash::Any id(shash::kSha1);
string content = "foo";
HashString(content, &id);
void *txn = alloca(cache_mgr_->SizeOfTxn());
EXPECT_EQ(-EROFS, cache_mgr_->StartTxn(id, content.length(), txn));
unsigned char *data = const_cast<unsigned char *>(
reinterpret_cast<const unsigned char *>(content.data()));
EXPECT_FALSE(cache_mgr_->CommitFromMem(LabelWithPath(id, "test"),
data, content.length()));
}
TEST_F(T_ExternalCacheManager, GetSize) {
EXPECT_EQ(-EBADF, cache_mgr_->GetSize(0));
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
EXPECT_EQ(static_cast<int64_t>(mock_plugin_->known_object_content.length()),
cache_mgr_->GetSize(fd));
mock_plugin_->next_status = cvmfs::STATUS_MALFORMED;
EXPECT_EQ(-EINVAL, cache_mgr_->GetSize(fd));
mock_plugin_->next_status = -1;
EXPECT_EQ(0, cache_mgr_->Close(fd));
}
TEST_F(T_ExternalCacheManager, Dup) {
EXPECT_EQ(-EBADF, cache_mgr_->Dup(0));
int fds[nfiles];
fds[0] =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fds[0], 0);
for (unsigned i = 1; i < nfiles; ++i) {
fds[i] = cache_mgr_->Dup(fds[0]);
EXPECT_GE(fds[i], 0);
}
EXPECT_EQ(static_cast<int>(nfiles), mock_plugin_->known_object_refcnt);
EXPECT_EQ(-ENFILE, cache_mgr_->Dup(fds[0]));
for (unsigned i = 0; i < nfiles; ++i) {
EXPECT_EQ(0, cache_mgr_->Close(fds[i]));
}
EXPECT_EQ(0, mock_plugin_->known_object_refcnt);
}
TEST_F(T_ExternalCacheManager, Pread) {
unsigned buf_size = 64;
char buffer[64];
EXPECT_EQ(-EBADF, cache_mgr_->Pread(0, buffer, buf_size, 0));
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
EXPECT_EQ(-EINVAL, cache_mgr_->Pread(fd, buffer, 1, 64));
int64_t len = cache_mgr_->Pread(fd, buffer, 64, 0);
EXPECT_EQ(static_cast<int>(mock_plugin_->known_object_content.length()), len);
EXPECT_EQ(mock_plugin_->known_object_content, string(buffer, len));
EXPECT_EQ(1, cache_mgr_->Pread(fd, buffer, 1, len-1));
EXPECT_EQ(mock_plugin_->known_object_content[len-1], buffer[0]);
EXPECT_EQ(0, cache_mgr_->Close(fd));
}
TEST_F(T_ExternalCacheManager, Readahead) {
EXPECT_EQ(-EBADF, cache_mgr_->Readahead(0));
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
EXPECT_EQ(0, cache_mgr_->Readahead(fd));
EXPECT_EQ(0, cache_mgr_->Close(fd));
}
TEST_F(T_ExternalCacheManager, Transaction) {
shash::Any id(shash::kSha1);
string content = "foo";
HashString(content, &id);
unsigned char *data = const_cast<unsigned char *>(
reinterpret_cast<const unsigned char *>(content.data()));
EXPECT_TRUE(cache_mgr_->CommitFromMem(LabelWithPath(id, "test"),
data, content.length()));
unsigned char *buffer;
uint64_t size;
EXPECT_TRUE(cache_mgr_->Open2Mem(LabelWithPath(id, "test"), &buffer, &size));
EXPECT_EQ(content, string(reinterpret_cast<char *>(buffer), size));
free(buffer);
content = "";
HashString(content, &id);
data = NULL;
EXPECT_TRUE(cache_mgr_->CommitFromMem(LabelWithPath(id, "test"),
data, content.length()));
EXPECT_TRUE(cache_mgr_->Open2Mem(LabelWithPath(id, "test"), &buffer, &size));
EXPECT_EQ(0U, size);
EXPECT_EQ(NULL, buffer);
unsigned large_size = 50 * 1024 * 1024;
unsigned char *large_buffer = reinterpret_cast<unsigned char *>(
scalloc(large_size, 1));
EXPECT_TRUE(cache_mgr_->CommitFromMem(LabelWithPath(id, "test"),
large_buffer, large_size));
unsigned char *large_buffer_verify = reinterpret_cast<unsigned char *>(
smalloc(large_size));
EXPECT_TRUE(cache_mgr_->Open2Mem(LabelWithPath(id, "test"),
&large_buffer_verify, &size));
EXPECT_EQ(large_size, size);
EXPECT_EQ(0, memcmp(large_buffer, large_buffer_verify, large_size));
free(large_buffer_verify);
free(large_buffer);
large_size = 50 * 1024 * 1024 + 1;
large_buffer = reinterpret_cast<unsigned char *>(scalloc(large_size, 1));
EXPECT_TRUE(cache_mgr_->CommitFromMem(LabelWithPath(id, "test"),
large_buffer, large_size));
large_buffer_verify = reinterpret_cast<unsigned char *>(smalloc(large_size));
EXPECT_TRUE(cache_mgr_->Open2Mem(LabelWithPath(id, "test"),
&large_buffer_verify, &size));
EXPECT_EQ(large_size, size);
EXPECT_EQ(0, memcmp(large_buffer, large_buffer_verify, large_size));
free(large_buffer_verify);
free(large_buffer);
// test unordered upload of chunks (and failure inbetween)
}
TEST_F(T_ExternalCacheManager, TransactionAbort) {
shash::Any id(shash::kSha1);
uint64_t write_size = cache_mgr_->max_object_size_ * 4;
unsigned char *write_buffer = static_cast<unsigned char *>(
smalloc(write_size));
memset(write_buffer, static_cast<unsigned char>(kMemMarker), write_size);
HashMem(write_buffer, write_size, &id);
void *txn = alloca(cache_mgr_->SizeOfTxn());
EXPECT_EQ(0, cache_mgr_->StartTxn(id, write_size, txn));
EXPECT_EQ(0, cache_mgr_->Reset(txn));
EXPECT_EQ(2, cache_mgr_->Write(write_buffer, 2, txn));
EXPECT_EQ(0, cache_mgr_->Reset(txn));
EXPECT_EQ(static_cast<int>(write_size / 2),
cache_mgr_->Write(write_buffer, write_size/2, txn));
EXPECT_EQ(0, cache_mgr_->Reset(txn));
EXPECT_EQ(static_cast<int>(write_size),
cache_mgr_->Write(write_buffer, write_size, txn));
EXPECT_EQ(0, cache_mgr_->CommitTxn(txn));
uint64_t read_size = write_size;
unsigned char *read_buffer = static_cast<unsigned char *>(smalloc(read_size));
EXPECT_TRUE(cache_mgr_->Open2Mem(LabelWithPath(id, "test"),
&read_buffer, &read_size));
EXPECT_EQ(read_size, write_size);
EXPECT_EQ(0, memcmp(read_buffer, write_buffer, read_size));
free(read_buffer);
free(write_buffer);
}
namespace {
struct BackchannelData {
BackchannelData() : nfired(0) { }
unsigned nfired;
int channel[2];
};
void *MainBackchannel(void *data) {
BackchannelData *bd = reinterpret_cast<BackchannelData *>(data);
while (true) {
char buf;
ReadPipe(bd->channel[0], &buf, 1);
if (buf == 'R') {
bd->nfired++;
continue;
}
if (buf == 'T')
return NULL;
abort();
}
}
} // anonymous namespace
TEST_F(T_ExternalCacheManager, Detach) {
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
BackchannelData bd;
quota_mgr_->RegisterBackChannel(bd.channel, "xyz");
pthread_t thread_backchannel;
int retval = pthread_create(&thread_backchannel, NULL, MainBackchannel, &bd);
ASSERT_EQ(0, retval);
mock_plugin_->AskToDetach();
unsigned size = 64;
char buf[size];
EXPECT_EQ(static_cast<int>(mock_plugin_->known_object_content.length()),
cache_mgr_->Pread(fd, buf, size, 0));
EXPECT_EQ(mock_plugin_->known_object_content,
string(buf, mock_plugin_->known_object_content.length()));
EXPECT_EQ(0, cache_mgr_->Close(fd));
// Not picked up anymore by single threaded cache manager
mock_plugin_->AskToDetach();
buf[0] = 'T';
WritePipe(bd.channel[1], &buf[0], 1);
pthread_join(thread_backchannel, NULL);
quota_mgr_->UnregisterBackChannel(bd.channel, "xyz");
EXPECT_EQ(1U, bd.nfired);
}
TEST_F(T_ExternalCacheManager, Info) {
EXPECT_EQ(MockCachePlugin::kMockCacheSize, quota_mgr_->GetCapacity());
EXPECT_EQ(mock_plugin_->known_object_content.length(), quota_mgr_->GetSize());
EXPECT_EQ(0U, quota_mgr_->GetSizePinned());
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
EXPECT_EQ(mock_plugin_->known_object_content.length(),
quota_mgr_->GetSizePinned());
EXPECT_EQ(0, cache_mgr_->Close(fd));
}
TEST_F(T_ExternalCacheManager, Shrink) {
EXPECT_TRUE(quota_mgr_->Cleanup(0));
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
EXPECT_GE(fd, 0);
EXPECT_FALSE(quota_mgr_->Cleanup(0));
EXPECT_EQ(0, cache_mgr_->Close(fd));
}
TEST_F(T_ExternalCacheManager, Listing) {
vector<string> expected_listing;
for (unsigned i = 0; i < MockCachePlugin::kMockListingNitems; ++i)
expected_listing.push_back("/known_object");
vector<string> listing = quota_mgr_->List();
EXPECT_EQ(expected_listing.size(), listing.size());
EXPECT_EQ(expected_listing, listing);
vector<string> empty;
EXPECT_EQ(0, mock_plugin_->known_object_refcnt);
EXPECT_EQ(empty, quota_mgr_->ListCatalogs());
EXPECT_EQ(empty, quota_mgr_->ListVolatile());
EXPECT_EQ(empty, quota_mgr_->ListPinned());
}
TEST_F(T_ExternalCacheManager, Breadcrumbs) {
manifest::Breadcrumb breadcrumb;
breadcrumb = cache_mgr_->LoadBreadcrumb("test");
EXPECT_FALSE(breadcrumb.IsValid());
shash::Any hash(shash::kShake128);
hash.Randomize();
manifest::Manifest manifest(hash, 1, "");
manifest.set_repository_name("test");
manifest.set_publish_timestamp(1);
EXPECT_TRUE(cache_mgr_->StoreBreadcrumb(manifest));
breadcrumb = cache_mgr_->LoadBreadcrumb("test");
EXPECT_TRUE(breadcrumb.IsValid());
EXPECT_EQ(hash, breadcrumb.catalog_hash);
EXPECT_EQ(1U, breadcrumb.timestamp);
}
namespace {
struct ThreadData {
ExternalCacheManager *cache_mgr;
MockCachePlugin *mock_plugin;
unsigned large_size;
unsigned char *large_buffer;
shash::Any id;
};
static void *MainMultiThread(void *data) {
ThreadData *td = reinterpret_cast<ThreadData *>(data);
uint64_t size;
unsigned char *buffer;
CacheManager::Label label;
label.path = "test";
EXPECT_TRUE(
td->cache_mgr->Open2Mem(CacheManager::LabeledObject(td->id, label),
&buffer, &size));
EXPECT_EQ(td->large_size, size);
EXPECT_EQ(0, memcmp(buffer, td->large_buffer, size));
free(buffer);
return NULL;
}
static void *MainDetach(void *data) {
ThreadData *td = reinterpret_cast<ThreadData *>(data);
for (unsigned i = 0; i < 1000; ++i) {
td->mock_plugin->AskToDetach();
}
return NULL;
}
} // anonymous namespace
TEST_F(T_ExternalCacheManager, MultiThreaded) {
cache_mgr_->Spawn();
unsigned large_size = 50 * 1024 * 1024;
unsigned char *large_buffer = reinterpret_cast<unsigned char *>(
smalloc(large_size));
memset(large_buffer, 1, large_size);
shash::Any id(shash::kSha1);
shash::HashMem(large_buffer, large_size, &id);
EXPECT_TRUE(cache_mgr_->CommitFromMem(LabelWithPath(id, "test"),
large_buffer, large_size));
const unsigned num_threads = 10;
pthread_t threads[num_threads];
ThreadData td[num_threads];
for (unsigned i = 0; i < num_threads; ++i) {
td[i].cache_mgr = cache_mgr_;
td[i].mock_plugin = mock_plugin_;
td[i].large_size = large_size;
td[i].large_buffer = large_buffer;
td[i].id = id;
if (i == num_threads - 1) {
int retval = pthread_create(&threads[i], NULL, MainDetach, &td[i]);
assert(retval == 0);
} else {
int retval = pthread_create(&threads[i], NULL, MainMultiThread, &td[i]);
assert(retval == 0);
}
}
// TODO(jblomer): Test info and listing calls multithreaded
for (unsigned i = 0; i < num_threads; ++i) {
pthread_join(threads[i], NULL);
}
free(large_buffer);
}
TEST_F(T_ExternalCacheManager, SaveState) {
// Should not crash
void *data = cache_mgr_->SaveState(-1);
cache_mgr_->RestoreState(-1, data);
cache_mgr_->FreeState(-1, data);
// Now with a new cache manager
int fd =
cache_mgr_->Open(CacheManager::LabeledObject(mock_plugin_->known_object));
uint64_t old_session_id = mock_plugin_->last_id;
EXPECT_GE(fd, 0);
data = cache_mgr_->SaveState(-1);
delete cache_mgr_;
fd_client = ConnectSocket(socket_path_);
ASSERT_GE(fd_client, 0);
cache_mgr_ = ExternalCacheManager::Create(fd_client, nfiles, "test");
ASSERT_TRUE(cache_mgr_ != NULL);
quota_mgr_ = ExternalQuotaManager::Create(cache_mgr_);
ASSERT_TRUE(cache_mgr_ != NULL);
cache_mgr_->AcquireQuotaManager(quota_mgr_);
cache_mgr_->RestoreState(-1, data);
cache_mgr_->FreeState(-1, data);
char buffer[64];
int64_t len = cache_mgr_->Pread(fd, buffer, 64, 0);
EXPECT_EQ(static_cast<int>(mock_plugin_->known_object_content.length()), len);
EXPECT_EQ(mock_plugin_->known_object_content, string(buffer, len));
EXPECT_EQ(0, cache_mgr_->Close(fd));
EXPECT_NE(old_session_id, mock_plugin_->last_id);
EXPECT_EQ(0, strcmp(mock_plugin_->last_reponame, "test"));
EXPECT_EQ(NULL, mock_plugin_->last_client_instance);
}
|
935c1b0de5573588ed30ee3c305522bbbb2db854 | 149e044be215eb56b8f04dbb69d9b1bfd4ff3254 | /etl/utils/crtp_clone.hpp | 2f3fabbd1c7c6ba63cea5a36d3e48690ca33b810 | [
"MIT"
] | permissive | julienlopez/ETL | 2f9a0a6f98b26acaf0dd01f81e9ff38c5f94c852 | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | refs/heads/master | 2022-06-26T11:24:33.364244 | 2022-06-14T15:07:54 | 2022-06-14T15:07:54 | 8,948,934 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | hpp | crtp_clone.hpp | #ifndef __CRTP_CLONE_HPP__
#define __CRTP_CLONE_HPP__
namespace etl {
namespace utils {
template<class Derived, class Base>
struct crtp_clone : Base
{
template<class... Arg>
crtp_clone(Arg&&... arg): Base(std::forward<Arg>(arg)...)
{ }
public:
virtual Base* clone() const
{
return new Derived(static_cast<Derived const&>(*this));
}
};
} //utils
} //etl
#endif
|
cbafc4652d892576d233a3005513401ca441664c | 011006ca59cfe75fb3dd84a50b6c0ef6427a7dc3 | /codeChef/Chef_and_Subtree_MEXs.cpp | 1940592e416d2ea3d183105cdcaa84d8e33c3770 | [] | no_license | ay2306/Competitive-Programming | 34f35367de2e8623da0006135cf21ba6aec34049 | 8cc9d953b09212ab32b513acf874dba4fa1d2848 | refs/heads/master | 2021-06-26T16:46:28.179504 | 2021-01-24T15:32:57 | 2021-01-24T15:32:57 | 205,185,905 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | Chef_and_Subtree_MEXs.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
scanf("%d",&t);
while(t--){
int a,b,n;
scanf("%d",&n);
vector<vector<int>> g(n+1);
for(int i = 2; i <= n; ++i){
scanf("%d",&a);
g[a].emplace_back(i);
g[i].emplace_back(a);
}
vector<long long> sub(n+1),dp(n+1);
function<void(int,int)> dfs = [&](int s, int p){
sub[s] = 1;
for(int i : g[s]){
if(i == p)continue;
dfs(i,s);
sub[s] += sub[i];
dp[s] = max(dp[s],dp[i]);
}
dp[s] += sub[s];
};
dfs(1,-1);
printf("%lld\n",dp[1]);
}
return 0;
} |
9675f1ac3653cd883ed56cc5a7a9eb1d17a493f1 | e28904bcedc4c610b3dab2c0fa687188c569212d | /Source/GameObject/List/EnemyList/EnemyList.cpp | 38853b2e4d24f45e77a046b73b8b75d27e0a68b9 | [] | no_license | YuukiReiya/Yuuki-no-kuseniNamaikida- | c65ce94989593e6a27156b0bbcd523c30a770cea | da56954760a72965c12bf03d32b7d3f9a11d5326 | refs/heads/master | 2020-03-21T07:12:19.193380 | 2018-06-22T07:00:25 | 2018-06-22T07:00:25 | 138,266,771 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,701 | cpp | EnemyList.cpp | /*
@file EnemyList.cpp
@brief 出現モンスターのリスト
@detail 双方向リストを用いた動的リスト
@author 番場 宥輝
*/
#include "EnemyList.h"
/*
@brief コンストラクタ
*/
EnemyList::EnemyList()
{
}
/*
@brief デストラクタ
*/
EnemyList::~EnemyList()
{
Destroy();
}
/*
@brief 初期化
*/
void EnemyList::Init()
{
/*! インスタンス生成 */
m_pHead = new ENEMY_NODE;
m_pTail = new ENEMY_NODE;
/*! 初期化 */
m_pHead->data = m_pTail->data = NULL; /*!< 先頭と末尾のノードはデータは持たない */
m_pHead->pNext = m_pTail; /*!< 先頭の次ポインタを末尾ノード */
m_pHead->pPrev = NULL; /*!< 先頭の前ポインタは存在しない */
m_pTail->pNext = NULL; /*!< 末尾の次ポインタは存在しない */
m_pTail->pPrev = m_pHead; /*!< 末尾の前ポインタを先頭ノード */
ENEMY_NODE *p, *del;
p = m_pHead->pNext;
while (p != NULL&&p != m_pTail)
{
/*! ノードの初期化 */
del = p;
p = p->pNext;
m_pHead->pNext = p->pNext;
SAFE_DELETE(del);
}
}
/*
@brief 解放
*/
void EnemyList::Destroy()
{
ENEMY_NODE *p, *del;
p = m_pHead->pNext;
while (p != NULL&&p != m_pTail)
{
/*! ノードの初期化 */
del = p;
p = p->pNext;
m_pHead->pNext = p->pNext;
SAFE_DELETE(del);
}
SAFE_DELETE(m_pHead);
SAFE_DELETE(m_pTail);
}
/*
@brief ノードの追加
*/
void EnemyList::AddNode(Enemy * enemy)
{
/*! リストの後ろへ挿入していく */
ENEMY_NODE* p = new ENEMY_NODE;
enemy->SetEnemyNode(p);
p->data = enemy;
/*! ノードの繋ぎ変え */
p->pPrev = m_pTail->pPrev;
p->pPrev->pNext = p;
m_pTail->pPrev = p;
p->pNext = m_pTail;
}
|
e20ce01c16930065cde7691ee4b1d16f69f3e5e7 | 0f457762985248f4f6f06e29429955b3fd2c969a | /physics/trunk/sdk/ggfsdk/ObjectMng.h | b44ac4b0e1e952f8aa3855668aa9a6142d0ae3f8 | [] | no_license | tk8812/ukgtut | f19e14449c7e75a0aca89d194caedb9a6769bb2e | 3146ac405794777e779c2bbb0b735b0acd9a3f1e | refs/heads/master | 2021-01-01T16:55:07.417628 | 2010-11-15T16:02:53 | 2010-11-15T16:02:53 | 37,515,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,859 | h | ObjectMng.h | #pragma once
namespace ggf
{
namespace object
{
struct S_AnimatedMesh
{
std::string m_strName;
std::string m_strFile;
irr::scene::IAnimatedMesh *m_pMesh;
};
struct S_Object_Action
{
std::string m_strName;
irr::s32 m_nStart;
irr::s32 m_nEnd;
irr::u32 m_uTick;
};
struct S_DISC_Object
{
std::string m_strName;
std::string m_strMeshName;
std::string m_strTexture;
std::string m_strType;
irr::core::vector3df m_v3Pos;
irr::core::vector3df m_v3Rotation;
irr::core::vector3df m_v3Scale;
std::vector<S_Object_Action> m_vtAction;
};
class CObjectMng
{
public:
std::vector<ggf::object::S_DISC_Object> m_vtObjectDefine;
std::vector<ggf::object::S_AnimatedMesh> m_vt3dAniMesh;
std::vector<ggf::object::S_AnimatedMesh> m_vt3dOcTreeMesh;
std::vector<ggf::object::S_AnimatedMesh> m_vt3dTerrainMesh;
CObjectMng()
{
}
~CObjectMng()
{
}
irr::scene::IAnimatedMesh *FindAniMesh(const char *szName)
{
std::vector<ggf::object::S_AnimatedMesh>::iterator it;
for(it = m_vt3dAniMesh.begin();it != m_vt3dAniMesh.end();it++)
{
if(it->m_strName == szName)
{
return it->m_pMesh;
}
}
return NULL;
}
irr::scene::IAnimatedMesh *FindOctreeMesh(const char *szName)
{
std::vector<ggf::object::S_AnimatedMesh>::iterator it;
for(it = m_vt3dOcTreeMesh.begin();it != m_vt3dOcTreeMesh.end();it++)
{
if(it->m_strName == szName)
{
return it->m_pMesh;
}
}
return NULL;
}
irr::scene::IAnimatedMesh *FindAniMeshByObjectName(const char *szName)
{
std::vector<ggf::object::S_DISC_Object>::iterator it;
for(it = m_vtObjectDefine.begin();it != m_vtObjectDefine.end();it++)
{
if(it->m_strName == szName)
{
return FindAniMesh(it->m_strMeshName.c_str());
}
}
return NULL;
}
irr::scene::IAnimatedMesh *FindAniMeshByObjectName(const wchar_t *szName)
{
irr::core::stringc strc = szName;
return FindAniMeshByObjectName(strc.c_str());
}
std::vector<ggf::object::S_DISC_Object>::iterator FindObjectDisc(const char *szName)
{
std::vector<ggf::object::S_DISC_Object>::iterator it;
for(it=m_vtObjectDefine.begin();it != m_vtObjectDefine.end();it++)
{
if(it->m_strName == szName)
break;
}
return it;
}
irr::s32 getFrameCount(const char *szObjectName)
{
irr::scene::IAnimatedMesh *pMesh = FindAniMeshByObjectName(szObjectName);
if(pMesh)
return pMesh->getFrameCount();
return 0;
}
irr::s32 getFrameCount(const wchar_t *szObjectName)
{
irr::core::stringc strc = szObjectName;
return getFrameCount(strc.c_str());
}
bool LoadXml(irr::IrrlichtDevice *pDev,irr::scene::ISceneManager *pSmgr,irr::s32 *pnCounter=0,char *fn="../res/script/object.xml");
};
}
} |
3a2acf2301e2a7798da0a040fab0c8f6ff94e39e | 37c98c1185ca84509699a2e98254a1b319d59826 | /test/testDbListener.cpp | d892d0c1d15ec9d6d08161bc1ccda6f0129de04e | [] | no_license | AleksKots/Manitou | 8a097e38772943e379dd2a7d08401aa7ba2e1ec3 | 8611a75be924b4ec71a95b9f0cdf904373b39e82 | refs/heads/master | 2020-12-25T13:23:16.372221 | 2011-12-14T15:05:05 | 2011-12-14T15:05:05 | 3,127,571 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 253 | cpp | testDbListener.cpp | #include "testDbListener.h"
#include "RegistryTest.h"
std::string TestNames::listener(){ return "LISTENER"; }
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(test_db_listener, TestNames::listener());
Notifer::Notifer(QObject *parent) :
QObject(parent)
{
}
|
658e360ebd10fea41fad7cff9b2865280ff6c81c | c2f8f628313f1bbff3dd1bb1ffcdef8f0636a711 | /tests/tests.cpp | 1dd0a2d28aaab2644a8a9523e8788b39ccd15cf4 | [] | no_license | DomWilliams0/petit-compiler | 5ee73c7eb8c9d94f89f19514dd0e52a8dee73be1 | c98d73348bbea46ec5b4b2bad38d9405fa2597a1 | refs/heads/master | 2021-01-20T10:55:00.896371 | 2017-04-09T16:35:44 | 2017-04-09T16:35:44 | 83,790,033 | 1 | 0 | null | 2017-04-03T11:15:33 | 2017-03-03T11:08:04 | C++ | UTF-8 | C++ | false | false | 3,887 | cpp | tests.cpp | #include <sstream>
#include <algorithm>
#include <stdio.h>
#include "Element.h"
#include "Statement.h"
#include "Expression.h"
#include "c.tab.h"
extern void yy_scan_string(const char *);
extern int yyparse(Document *);
extern unsigned int errorCount;
unsigned int fail_count = 0;
#define ASSERT(what, x, expected) do { \
std::ostringstream out; \
bool pass = parse_string(x, out) == expected; \
std::cerr << what << " ... " << (pass ? "pass" : "fail"); \
if (!pass) \
{ \
fail_count += 1; \
std::string output(out.str()); \
std::replace(output.begin(), output.end(), '\n', '|'); \
std::cerr << " (" << output << ")"; \
} \
std::cerr << std::endl; \
} while (false)
#define ASSERT_FAIL(what, x) ASSERT(what, x, false)
#define ASSERT_PASS(what, x) ASSERT(what, x, true)
bool parse_string(const char *s, std::ostringstream &out)
{
std::streambuf *original = std::cerr.rdbuf();
std::cerr.rdbuf(out.rdbuf());
errorCount = 0;
Document d;
yy_scan_string(s);
bool pass = yyparse(&d) == 0;
if (pass && errorCount == 0)
{
d.createBlocks();
ErrorList errors;
Interpreter interpreter(&d);
interpreter.solveScopes(errors);
errorCount += errors.errors.size(); // TODO differentiate between lex, syntax and semantic errors
bool comma = false;
for (Error &e : errors.errors)
{
if (comma) out << ", ";
comma = true;
out << e.msg;
}
}
std::cerr.flush();
std::cerr.rdbuf(original);
return pass && errorCount == 0;
}
void test_errors_lexer()
{
ASSERT_FAIL("Bad char", "@");
ASSERT_FAIL("Bad char in program", "void main() { $ }");
ASSERT_FAIL("Bad char in identifier", "int32_t ab@#c;");
ASSERT_FAIL("Identifier starting with number", "int32_t 123abc;");
}
void test_errors_syntax()
{
ASSERT_FAIL("Two operators", "void main() { 1 * / 2; }");
ASSERT_FAIL("Two operands", "void main() { 1 2; }");
ASSERT_FAIL("Missing semicolon", "void main() { 1 + 2 }");
ASSERT_FAIL("Missing bracket", "void main() { 1 + ( 2 * 3; }");
ASSERT_FAIL("Too many closing brackets", "void main() { ( 1 + 2 ) ); }");
}
void test_errors_semantic()
{
ASSERT_FAIL("Missing var declaration", "void main() { a = 5; }");
ASSERT_FAIL("Missing func declaration", "void main() { a(); }");
ASSERT_FAIL("Var redeclaration", "char a, a;");
// forward declarations
ASSERT_PASS("Func redeclaration with same signatures", "void a(); void a();");
// ASSERT_FAIL("Func redeclaration with different return types", "void a(); char a();");
ASSERT_FAIL("Func redefinition", "void a() {} void a() {}");
ASSERT_FAIL("Bad func args number", "void a(char c, char d) {} void main() { a(); }");
ASSERT_FAIL("Bad func args type", "void a(char c) {} void main() { a(5); }");
ASSERT_FAIL("Return value in void function", "void main() { return 5; }");
ASSERT_FAIL("Return void in non-void function", "int64_t main() { return; }");
ASSERT_FAIL("Return wrong type", "int64_t main() { return 'a'; }");
ASSERT_FAIL("Mismatched type in assignment", "void main() { char a = 5; }");
}
void test_valid_programs()
{
ASSERT_PASS("Global declaration", "int32_t a;");
ASSERT_PASS("Global declaration and definition", "int64_t a = 5;");
ASSERT_PASS("Multiple definitions and declarations", "int64_t a, b = 5, c = 2, d, e;");
ASSERT_PASS("Include", "#include <stdint.h>\n int64_t a, b = 5, c = 2, d, e;");
// ASSERT_PASS("Increment and decrement", "void main() { int64_a a = 5; a++; a--; ++a; --a;");
// ... etc
}
#define RUN_SUITE(suite) run_suite(suite, #suite)
void run_suite(void (*suite)(), const char *name)
{
std::cerr << "-=-=-=- " << name << " -=-=-=-" << std::endl;
fail_count = 0;
suite();
std::cerr << "-=-=-=- " << (fail_count == 0 ? "PASS" : "FAIL") << " -=-=-=-" << std::endl << std::endl;
}
int main()
{
RUN_SUITE(test_errors_lexer);
RUN_SUITE(test_errors_syntax);
RUN_SUITE(test_errors_semantic);
RUN_SUITE(test_valid_programs);
return 0;
}
|
cfe4135f2a787b11b55339b786c01b1c03cf418c | 1970bae2bbda701e79210e2e596c23666e979977 | /src/test/IphonePageTest.cpp | 8b777127f28cd165ad3c4ea1501a66efff470bd6 | [
"MIT"
] | permissive | airplug/airplug-provider-iplayer | 206f238e5f97071eba827324d3fd63adac691485 | 1840b00246ab2f31a2c1e9f79dc739dbbc713c00 | refs/heads/master | 2021-01-17T22:12:05.722124 | 2010-12-28T20:04:20 | 2010-12-28T20:04:20 | 1,190,847 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | cpp | IphonePageTest.cpp | using NUnit.Framework;
using System.IO;
using IPDL;
public class IphonePageTest {
public FileStream ReadFile(string name) {
return new FileStream("test/data/episode/" + name + ".html",
FileMode.Open,
FileAccess.Read);
}
}
[TestFixture] public class IphonePageUrlTest {
[Test] public void ShouldGenerateUrlForPid() {
Assert.AreEqual("http://www.bbc.co.uk/mobile/iplayer/episode/b00t4vjz", IphonePage.Url("b00t4vjz"));
}
}
[TestFixture] public class TVPageTest : IphonePageTest {
private IphonePage page;
[SetUp] public void SetUp() {
this.page = new IphonePage(ReadFile("b00td8g6"));
}
[Test] public void ShouldExtractEmbeddedMediaUrl() {
Assert.AreEqual("http://download.iplayer.bbc.co.uk/iplayer_streaming_http_mp4/5500147145443163744.mp4?token=iVXXxZp7S9ghZFBoBk1zMqZkty%2FxVaSS5auvKTc39ly9Uya9t4k%3D%0A", page.EmbeddedMediaUrl);
}
[Test] public void ShouldBeMP4() {
Assert.AreEqual(".mp4", page.FileExtension);
}
[Test] public void ShouldBeAvailable() {
Assert.IsTrue(page.IsAvailable);
}
}
[TestFixture] public class RadioPageTest : IphonePageTest {
private IphonePage page;
[SetUp] public void SetUp() {
this.page = new IphonePage(ReadFile("b00t4vjz"));
}
[Test] public void ShouldExtractEmbeddedMediaUrl() {
Assert.AreEqual("http://download.iplayer.bbc.co.uk/iplayer_streaming_http_mp4/httpdl_iphone/direct/radio4/secure_auth//RBN2_radio_4_fm_-_friday_1415_b00t4twn_2010_07_30_14_24_19.mp3?token=iVXXxZp7S9gva1BoBioETKQK8XmkCP755cf4clstnQ7hVzLo4ucl9aq6oL1P8gzhOd00HPOhSEr6%0A9s2V%2FBc%2F5oZ9Q2l0cFWhpMov3b4%3D%0A", page.EmbeddedMediaUrl);
}
[Test] public void ShouldBeMP3() {
Assert.AreEqual(".mp3", page.FileExtension);
}
[Test] public void ShouldBeAvailable() {
Assert.IsTrue(page.IsAvailable);
}
}
[TestFixture] public class ExpiredPageTest : IphonePageTest {
private IphonePage page;
[SetUp] public void SetUp() {
this.page = new IphonePage(ReadFile("expired"));
}
[Test] public void ShouldNotBeAvailable() {
Assert.IsFalse(page.IsAvailable);
}
}
|
299303ee3494324e2c2c0caec7feee6e35750782 | 42ab733e143d02091d13424fb4df16379d5bba0d | /third_party/draco/src/draco/core/vector_d_test.cc | d66128fb133caab35d91fb5dea696ebfd1956d2d | [
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"MIT"
] | permissive | google/filament | 11cd37ac68790fcf8b33416b7d8d8870e48181f0 | 0aa0efe1599798d887fa6e33c412c09e81bea1bf | refs/heads/main | 2023-08-29T17:58:22.496956 | 2023-08-28T17:27:38 | 2023-08-28T17:27:38 | 143,455,116 | 16,631 | 1,961 | Apache-2.0 | 2023-09-14T16:23:39 | 2018-08-03T17:26:00 | C++ | UTF-8 | C++ | false | false | 8,551 | cc | vector_d_test.cc | // Copyright 2016 The Draco Authors.
//
// 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.
//
#include "draco/core/vector_d.h"
#include <sstream>
#include "draco/core/draco_test_base.h"
namespace {
typedef draco::Vector2f Vector2f;
typedef draco::Vector3f Vector3f;
typedef draco::Vector4f Vector4f;
typedef draco::Vector5f Vector5f;
typedef draco::Vector2ui Vector2ui;
typedef draco::Vector3ui Vector3ui;
typedef draco::Vector4ui Vector4ui;
typedef draco::Vector5ui Vector5ui;
typedef draco::VectorD<int32_t, 3> Vector3i;
typedef draco::VectorD<int32_t, 4> Vector4i;
template <class CoeffT, int dimension_t>
void TestSquaredDistance(const draco::VectorD<CoeffT, dimension_t> v1,
const draco::VectorD<CoeffT, dimension_t> v2,
const CoeffT result) {
CoeffT squared_distance = SquaredDistance(v1, v2);
ASSERT_EQ(squared_distance, result);
squared_distance = SquaredDistance(v2, v1);
ASSERT_EQ(squared_distance, result);
}
TEST(VectorDTest, TestOperators) {
{
const Vector3f v;
ASSERT_EQ(v[0], 0);
ASSERT_EQ(v[1], 0);
ASSERT_EQ(v[2], 0);
}
Vector3f v(1, 2, 3);
ASSERT_EQ(v[0], 1);
ASSERT_EQ(v[1], 2);
ASSERT_EQ(v[2], 3);
Vector3f w = v;
ASSERT_TRUE(v == w);
ASSERT_FALSE(v != w);
ASSERT_EQ(w[0], 1);
ASSERT_EQ(w[1], 2);
ASSERT_EQ(w[2], 3);
w = -v;
ASSERT_EQ(w[0], -1);
ASSERT_EQ(w[1], -2);
ASSERT_EQ(w[2], -3);
w = v + v;
ASSERT_EQ(w[0], 2);
ASSERT_EQ(w[1], 4);
ASSERT_EQ(w[2], 6);
w = w - v;
ASSERT_EQ(w[0], 1);
ASSERT_EQ(w[1], 2);
ASSERT_EQ(w[2], 3);
// Scalar multiplication from left and right.
w = v * 2.f;
ASSERT_EQ(w[0], 2);
ASSERT_EQ(w[1], 4);
ASSERT_EQ(w[2], 6);
w = 2.f * v;
ASSERT_EQ(w[0], 2);
ASSERT_EQ(w[1], 4);
ASSERT_EQ(w[2], 6);
ASSERT_EQ(v.SquaredNorm(), 14);
ASSERT_EQ(v.Dot(v), 14);
Vector3f new_v = v;
new_v.Normalize();
const float tolerance = 1e-5;
const float magnitude = std::sqrt(v.SquaredNorm());
const float new_magnitude = std::sqrt(new_v.SquaredNorm());
ASSERT_NEAR(new_magnitude, 1, tolerance);
for (int i = 0; i < 3; ++i) {
new_v[i] *= magnitude;
ASSERT_NEAR(new_v[i], v[i], tolerance);
}
Vector3f x(0, 0, 0);
x.Normalize();
for (int i = 0; i < 3; ++i) {
ASSERT_EQ(0, x[i]);
}
}
TEST(VectorDTest, TestAdditionAssignmentOperator) {
Vector3ui v(1, 2, 3);
Vector3ui w(4, 5, 6);
w += v;
ASSERT_EQ(w[0], 5);
ASSERT_EQ(w[1], 7);
ASSERT_EQ(w[2], 9);
w += w;
ASSERT_EQ(w[0], 10);
ASSERT_EQ(w[1], 14);
ASSERT_EQ(w[2], 18);
}
TEST(VectorDTest, TestSubtractionAssignmentOperator) {
Vector3ui v(1, 2, 3);
Vector3ui w(4, 6, 8);
w -= v;
ASSERT_EQ(w[0], 3);
ASSERT_EQ(w[1], 4);
ASSERT_EQ(w[2], 5);
w -= w;
ASSERT_EQ(w[0], 0);
ASSERT_EQ(w[1], 0);
ASSERT_EQ(w[2], 0);
}
TEST(VectorDTest, TestMultiplicationAssignmentOperator) {
Vector3ui v(1, 2, 3);
Vector3ui w(4, 5, 6);
w *= v;
ASSERT_EQ(w[0], 4);
ASSERT_EQ(w[1], 10);
ASSERT_EQ(w[2], 18);
v *= v;
ASSERT_EQ(v[0], 1);
ASSERT_EQ(v[1], 4);
ASSERT_EQ(v[2], 9);
}
TEST(VectorTest, TestGetNormalized) {
const Vector3f original(2, 3, -4);
const Vector3f normalized = original.GetNormalized();
const float magnitude = sqrt(original.SquaredNorm());
const float tolerance = 1e-5f;
ASSERT_NEAR(normalized[0], original[0] / magnitude, tolerance);
ASSERT_NEAR(normalized[1], original[1] / magnitude, tolerance);
ASSERT_NEAR(normalized[2], original[2] / magnitude, tolerance);
}
TEST(VectorTest, TestGetNormalizedWithZeroLengthVector) {
const Vector3f original(0, 0, 0);
const Vector3f normalized = original.GetNormalized();
ASSERT_EQ(normalized[0], 0);
ASSERT_EQ(normalized[1], 0);
ASSERT_EQ(normalized[2], 0);
}
TEST(VectorDTest, TestSquaredDistance) {
// Test Vector2f: float, 2D.
Vector2f v1_2f(5.5, 10.5);
Vector2f v2_2f(3.5, 15.5);
float result_f = 29;
TestSquaredDistance(v1_2f, v2_2f, result_f);
// Test Vector3f: float, 3D.
Vector3f v1_3f(5.5, 10.5, 2.3);
Vector3f v2_3f(3.5, 15.5, 0);
result_f = 34.29;
TestSquaredDistance(v1_3f, v2_3f, result_f);
// Test Vector4f: float, 4D.
Vector4f v1_4f(5.5, 10.5, 2.3, 7.2);
Vector4f v2_4f(3.5, 15.5, 0, 9.9);
result_f = 41.58;
TestSquaredDistance(v1_4f, v2_4f, result_f);
// Test Vector5f: float, 5D.
Vector5f v1_5f(5.5, 10.5, 2.3, 7.2, 1.0);
Vector5f v2_5f(3.5, 15.5, 0, 9.9, 0.2);
result_f = 42.22;
TestSquaredDistance(v1_5f, v2_5f, result_f);
// Test Vector 2ui: uint32_t, 2D.
Vector2ui v1_2ui(5, 10);
Vector2ui v2_2ui(3, 15);
uint32_t result_ui = 29;
TestSquaredDistance(v1_2ui, v2_2ui, result_ui);
// Test Vector 3ui: uint32_t, 3D.
Vector3ui v1_3ui(5, 10, 2);
Vector3ui v2_3ui(3, 15, 0);
result_ui = 33;
TestSquaredDistance(v1_3ui, v2_3ui, result_ui);
// Test Vector 4ui: uint32_t, 4D.
Vector4ui v1_4ui(5, 10, 2, 7);
Vector4ui v2_4ui(3, 15, 0, 9);
result_ui = 37;
TestSquaredDistance(v1_4ui, v2_4ui, result_ui);
// Test Vector 5ui: uint32_t, 5D.
Vector5ui v1_5ui(5, 10, 2, 7, 1);
Vector5ui v2_5ui(3, 15, 0, 9, 12);
result_ui = 158;
TestSquaredDistance(v1_5ui, v2_5ui, result_ui);
}
TEST(VectorDTest, TestCrossProduct3D) {
const Vector3i e1(1, 0, 0);
const Vector3i e2(0, 1, 0);
const Vector3i e3(0, 0, 1);
const Vector3i o(0, 0, 0);
ASSERT_EQ(e3, draco::CrossProduct(e1, e2));
ASSERT_EQ(e1, draco::CrossProduct(e2, e3));
ASSERT_EQ(e2, draco::CrossProduct(e3, e1));
ASSERT_EQ(-e3, draco::CrossProduct(e2, e1));
ASSERT_EQ(-e1, draco::CrossProduct(e3, e2));
ASSERT_EQ(-e2, draco::CrossProduct(e1, e3));
ASSERT_EQ(o, draco::CrossProduct(e1, e1));
ASSERT_EQ(o, draco::CrossProduct(e2, e2));
ASSERT_EQ(o, draco::CrossProduct(e3, e3));
// Orthogonality of result for some general vectors.
const Vector3i v1(123, -62, 223);
const Vector3i v2(734, 244, -13);
const Vector3i orth = draco::CrossProduct(v1, v2);
ASSERT_EQ(0, v1.Dot(orth));
ASSERT_EQ(0, v2.Dot(orth));
}
TEST(VectorDTest, TestAbsSum) {
// Testing const of function and zero.
const Vector3i v(0, 0, 0);
ASSERT_EQ(v.AbsSum(), 0);
// Testing semantic.
ASSERT_EQ(Vector3i(0, 0, 0).AbsSum(), 0);
ASSERT_EQ(Vector3i(1, 2, 3).AbsSum(), 6);
ASSERT_EQ(Vector3i(-1, -2, -3).AbsSum(), 6);
ASSERT_EQ(Vector3i(-2, 4, -8).AbsSum(), 14);
// Other dimension.
ASSERT_EQ(Vector4i(-2, 4, -8, 3).AbsSum(), 17);
}
TEST(VectorDTest, TestMinMaxCoeff) {
// Test verifies that MinCoeff() and MaxCoeff() functions work as intended.
const Vector4i vi(-10, 5, 2, 3);
ASSERT_EQ(vi.MinCoeff(), -10);
ASSERT_EQ(vi.MaxCoeff(), 5);
const Vector3f vf(6.f, 1000.f, -101.f);
ASSERT_EQ(vf.MinCoeff(), -101.f);
ASSERT_EQ(vf.MaxCoeff(), 1000.f);
}
TEST(VectorDTest, TestOstream) {
// Tests that the vector can be stored in a provided std::ostream.
const draco::VectorD<int64_t, 3> vector(1, 2, 3);
std::stringstream str;
str << vector << " ";
ASSERT_EQ(str.str(), "1 2 3 ");
}
TEST(VectorDTest, TestConvertConstructor) {
// Tests that a vector can be constructed from another vector with a different
// type.
const draco::VectorD<int64_t, 3> vector(1, 2, 3);
const draco::VectorD<float, 3> vector3f(vector);
ASSERT_EQ(vector3f, draco::Vector3f(1.f, 2.f, 3.f));
const draco::VectorD<float, 2> vector2f(vector);
ASSERT_EQ(vector2f, draco::Vector2f(1.f, 2.f));
const draco::VectorD<float, 4> vector4f(vector3f);
ASSERT_EQ(vector4f, draco::Vector4f(1.f, 2.f, 3.f, 0.f));
const draco::VectorD<double, 1> vector1d(vector3f);
ASSERT_EQ(vector1d[0], 1.0);
}
TEST(VectorDTest, TestBinaryOps) {
// Tests the binary multiplication operator of the VectorD class.
const draco::Vector4f vector_0(1.f, 2.3f, 4.2f, -10.f);
ASSERT_EQ(vector_0 * draco::Vector4f(1.f, 1.f, 1.f, 1.f), vector_0);
ASSERT_EQ(vector_0 * draco::Vector4f(0.f, 0.f, 0.f, 0.f),
draco::Vector4f(0.f, 0.f, 0.f, 0.f));
ASSERT_EQ(vector_0 * draco::Vector4f(0.1f, 0.2f, 0.3f, 0.4f),
draco::Vector4f(0.1f, 0.46f, 1.26f, -4.f));
}
} // namespace
|
772f42f80c66915bf5d1108f7ee41a16caf2dc44 | e80bd23ee0af020fb6147dce30839b744d1535e0 | /main.cpp | d15c7f375c4acb25a4789caf1a71e8383b4295d6 | [] | no_license | Ugolf/SolarSystem | 50149ce91653f9eb6b6e92642a1abfa04f22d358 | 122701b0837ef7972d98b4b245f603dcb342f48a | refs/heads/master | 2020-05-18T18:05:00.105092 | 2015-06-10T19:20:49 | 2015-06-10T19:20:49 | 24,121,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,168 | cpp | main.cpp | #ifdef _WIN32
#include "windows.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <GL/glew.h>
#include <GL/glut.h>
//#include "Targa.cpp"
#include "colors.h"
#include "Solar.h"
//#pragma comment(lib, "glew32.lib")
GLuint shaderVert, shaderFrag; // Shadery
GLuint shaderProg; // Program
enum
{
/* menu */
UKLAD, // uklad
EXIT // wyjscie
};
typedef struct {
GLuint bpp; // iloœæ bitów na piksel
GLuint width; // rozmiary w pikselach
GLuint height;
} TARGAINFO;
// Pozycja swiatla
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
GLfloat mat_shininess[] = { 50.0 };
GLfloat light_position[] = { 0.0, 0.0, 1.0, 1.0 }; //ostatnia wartosc 1 - wektor pada z z,y,z
GLfloat ambient_light[] = {0.2, 0.2, 0.2, 1.0};
GLfloat mat_em[] = { 1.0, 0.9, 0.9, 0.0 };
GLfloat sun_pos[] = { 0.0 , 1.0, 0.0, 1.0 };
GLint loc;
static GLenum spinMode = GL_TRUE;
static GLenum singleStep = GL_FALSE;
// Zmienne do animacji
static float HourOfDay = 0.0;
static float DayOfYear = 0.0;
static float AnimateIncrement = 24.0; // Jednostka czasu
float a = 0;
int WIDTH = 1300;
int HEIGHT = 700;
int w1 = WIDTH;
int h1 = HEIGHT;
int styl = GLU_FILL;
int wybor = UKLAD;
int wektor = GLU_SMOOTH;
int tekstura = GLU_TRUE;
int orientacja = GLU_OUTSIDE;
float centerx = 0.0;
float centery = 0.0;
float centerz = -1.0;
float rotatex = 1.0;
float rotatey = 0.0;
float rotatez = 0.0;
float angle = 15.0;
float zoom = -30.0;
// obiekty tekstur
GLuint textures[10];
///////////////////////////////////////////////////////////////////////////////
// Procedura ładuje plik o podanej nazwie
// wypełnia podaną strukturę TARGAINFO
// oraz zwraca adres bufora z pikselami (jeśli nie było błędu)
// Jeśli był błąd - zwraca NULL
GLubyte *LoadTGAImage(char *filename, TARGAINFO *info)
{
GLubyte TGAHeader[12] = { 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // Nagłówek TGA bez kompresji
GLubyte TGACompare[12]; // Tu się załaduje dane z pliku
GLubyte Header[6]; // Pierwsze potrzebne 6 bajtów z pliku
GLubyte *Bits = NULL; // Wskaźnik na bufor z danymi pikseli
FILE *plik = fopen(filename, "rb"); // Próba otwarcia do odczytu
if (plik)
{
fread(TGACompare, 1, sizeof(TGACompare), plik); // Odczytanie nagłówka pliku
if (memcmp(TGAHeader, TGACompare, sizeof(TGAHeader)) == 0) // Nagłówek identyczny?
{
fread(Header, 1, sizeof(Header), plik); // Odczyt użytecznych danych
// Wyłuskanie informacji o rozmiarach
info->width = Header[1] * 256 + Header[0];
info->height = Header[3] * 256 + Header[2];
info->bpp = Header[4];
// Sprawdzenie czy rozmiary > 0 oraz czy bitmapa 24 lub 32-bitowa
if (info->width>0 && info->height>0 && (info->bpp == 24 || info->bpp == 32))
{
long ImageSize = info->height * info->width * info->bpp / 8; // Obliczenie ilości danych
Bits = (GLubyte*)malloc(ImageSize); // Alokacja pamięci na dane
if (Bits)
{
fread(Bits, 1, ImageSize, plik); // Odczyt właściwych danych pikseli z pliku
// Konwersja BGR -> RGB
int i;
GLubyte tmp; // Miejsce przechowania jednej wartości koloru
for (i = 0; i < ImageSize; i += info->bpp / 8) // Wszystkie wartości RGB lub RGBA
{
tmp = Bits[i];
Bits[i] = Bits[i + 2];
Bits[i + 2] = tmp;
}
}
}
}
fclose(plik);
}
return(Bits);
}
///////////////////////////////////////////////////////////////////////////////
// Procedury na podstawie przekazanych danych ładują
// i tworzą teksturę lub teksturę z Mip-Map'ami
bool LoadTGATexture(char *filename)
{
TARGAINFO info; // Dane o bitmapie
GLubyte *bits; // Dane o pikselach
// ładowanie pliku
bits = LoadTGAImage(filename, &info); // Próba wczytania tekstury
if (bits == NULL) return(false); // ERROR
// Ustawienie parametrów tekstury
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_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexEnvi(GL_TEXTURE_2D, GL_TEXTURE_ENV_MODE, GL_MODULATE);
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
if (info.bpp == 24) // Bitmapa z danymi RGB
glTexImage2D(GL_TEXTURE_2D, 0, 3, info.width, info.height, 0, GL_RGB, GL_UNSIGNED_BYTE, bits);
else // Bitmapa z danymi RGBA
glTexImage2D(GL_TEXTURE_2D, 0, 4, info.width, info.height, 0, GL_RGBA, GL_UNSIGNED_BYTE, bits);
free(bits);
return(true);
}
bool LoadTGAMipmap(char *filename)
{
TARGAINFO info; // Dane o bitmapie
GLubyte *bits; // Dane o pikselach
// ładowanie pliku
bits = LoadTGAImage(filename, &info); // Próba wczytania tekstury
if (bits == NULL) return(false); // ERROR
// Ustawienie parametrów tekstury
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_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_LINEAR);
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
if (info.bpp == 24) // Bitmapa z danymi RGB
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, info.width, info.height, GL_RGB, GL_UNSIGNED_BYTE, bits);
else // Bitmapa z danymi RGBA
gluBuild2DMipmaps(GL_TEXTURE_2D, 4, info.width, info.height, GL_RGBA, GL_UNSIGNED_BYTE, bits);
free(bits);
return(true);
}
// Wczytanie kodu zrodlowego shadera z pliku
char *loadTextFile(const char *fileName) {
// Otwarcie pliku:
FILE *plik = fopen(fileName, "rb");
if(!plik) return(NULL);
// Zbadanie rozmiaru pliku:
unsigned long fSize;
fseek(plik, 0, SEEK_END);
fSize = ftell(plik);
fseek(plik, 0, SEEK_SET);
// Utworzenie bufora:
char *buff = (char*)malloc(fSize + 1);
if(!buff) return(NULL);
// Odczyt danych:
fread(buff, 1, fSize, plik);
buff[fSize] = 0; // Terminator
// Zamknięcie pliku:
fclose(plik);
return(buff);
}
// Sprawdzenie błędów
void checkErrors(GLuint object) {
int res, logLen;
char *buff;
// Sprawdzenie SHADERA:
glGetShaderiv(object, GL_COMPILE_STATUS, &res);
if(res == GL_FALSE) { // Sprawdzenie InfoLog
puts("GL_COMPILE_STATUS ERROR!");
// Pobranie długości loga:
glGetShaderiv(object, GL_INFO_LOG_LENGTH,&logLen);
// Przydzielenie pamięci na wiadomość:
buff = (char *)malloc(logLen);
glGetShaderInfoLog(object, logLen , NULL, buff);
puts(buff);
free(buff);
exit(0);
}
// Sprawdzenie PROGRAMU:
glGetProgramiv(object, GL_LINK_STATUS, &res);
if(res == GL_FALSE) {
puts("GL_LINK_STATUS ERROR!");
// Pobranie długości loga:
glGetProgramiv(object, GL_INFO_LOG_LENGTH,&logLen);
// Przydzielenie pamięci na wiadomość:
buff = (char *)malloc(logLen);
glGetProgramInfoLog(object, logLen, NULL, buff);
puts(buff);
free(buff);
exit(0);
}
}
// Konfiguracja shaderów
void setupShaders(char *fileVert, char *fileFrag) {
char *strVert, *strFrag;
// Utworzenie shaderów:
shaderVert = glCreateShader(GL_VERTEX_SHADER);
shaderFrag = glCreateShader(GL_FRAGMENT_SHADER);
// Odczyt kodu shaderów z pliku:
strVert = loadTextFile( fileVert );
if(!strVert) {
puts("** Błąd ładowania pliku *.vert");
exit(0);
}
strFrag = loadTextFile( fileFrag );
if(!strFrag) {
puts("** Błąd ładowania pliku *.frag");
exit(0);
}
// Wczytanie kodu źródłowego shadera:
glShaderSource(shaderVert, 1, (const GLchar**)(&strVert), NULL);
glShaderSource(shaderFrag, 1, (const GLchar**)(&strFrag), NULL);
// Zwolnienie pamięci
free(strVert);free(strFrag);
// Kompilacja shaderów:
glCompileShader(shaderVert);
glCompileShader(shaderFrag);
// Utworzenie programu:
shaderProg = glCreateProgram();
// Dołączenie shaderów do programu:
glAttachShader(shaderProg, shaderVert);
glAttachShader(shaderProg, shaderFrag);
// Linkowanie i aktywacja:
glLinkProgram(shaderProg);
glUseProgram(shaderProg);
// Sprawdzenie błędów:
checkErrors(shaderVert);
checkErrors(shaderFrag);
// Ustawienie tekstur dla shadera:
loc = glGetUniformLocation(shaderProg, "tex0");
glUniform1i(loc, 0);
loc = glGetUniformLocation(shaderProg, "tex1");
glUniform1i(loc, 1);
}
// Funkcja konfiguracji tekstur
void setupTexture(){
// Wygenerowanie obiektów tekstur:
glGenTextures(10, textures);
// Wczytanie danych do 1 obiektu tekstury:
glBindTexture(GL_TEXTURE_2D, textures[0]);
if (!LoadTGATexture("tex0.tga"))
{
puts("blad podczas wczytywania tekstury");
exit(1);
}
glBindTexture(GL_TEXTURE_2D, textures[1]);
if (!LoadTGATexture("tex1.tga"))
{
puts("blad podczas wczytywania tekstury");
exit(1);
}
glBindTexture(GL_TEXTURE_2D, textures[2]);
if (!LoadTGATexture("earth.tga"))
{
puts("blad podczas wczytywania tekstury");
exit(1);
}
if (!LoadTGAMipmap("earth.tga"))
{
puts("blad podczas wczytywania tekstury");
exit(1);
}
glBindTexture(GL_TEXTURE_2D, textures[3]);
LoadTGATexture("mercury.tga");
glBindTexture(GL_TEXTURE_2D, textures[4]);
LoadTGATexture("venus.tga");
glBindTexture(GL_TEXTURE_2D, textures[5]);
LoadTGATexture("mars.tga");
glBindTexture(GL_TEXTURE_2D, textures[6]);
LoadTGATexture("jupiter.tga");
glBindTexture(GL_TEXTURE_2D, textures[7]);
LoadTGATexture("saturn.tga");
glBindTexture(GL_TEXTURE_2D, textures[8]);
LoadTGATexture("uranus.tga");
glBindTexture(GL_TEXTURE_2D, textures[9]);
LoadTGATexture("neptune.tga");
}
//rysuj elipse z punktow
void DrawEllipse(float sinus, float cosinus)
{
glColor3f(1,1,1);
float x,y,z;
int t;
float s = sinus;
float c = cosinus;
glBegin(GL_POINTS);
for(t = 0; t <= 360; t +=1)
{
x = s*sin((double)t);
y = 0;
z = c*cos((double)t);
glVertex3f(x,y,z);
}
glEnd();
}
// Planety
void sun(){
GLUquadricObj *slonce;//tworzenie kwadryki
slonce = gluNewQuadric();
gluQuadricDrawStyle(slonce, styl);
gluQuadricOrientation(slonce, orientacja);
gluQuadricNormals(slonce, wektor);
gluQuadricTexture(slonce, tekstura);
// Zdefiniowanie obrotu o kąt a:
glRotatef(a,sun_pos[0],sun_pos[1],sun_pos[2]);
//glRotatef( 360.0*DayOfYear/365.0, sun_pos[0], sun_pos[1], sun_pos[2]);
//glVertexAttrib1f(loc,0.0);
// Ustawienie koloru obiektu:
glColor4f(1.000000, 0.843137, 0.000000, 1.000000);
// Ustawienie aktywnych tekstur i połączenie ich z obiektami tekstur:
glActiveTexture(GL_TEXTURE1); glBindTexture(GL_TEXTURE_2D, textures[1]);
glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, textures[0]);
// Narysowanie obiektu 3D:
gluSphere(slonce, 5.0, 30, 30 );
}
void moon(){
glRotatef(360.0*12.0*DayOfYear / 365.0, 0.0, 1.0, 0.0);
glTranslatef(0.7, 0.0, 0.0);
glColor3f(0.3, 0.7, 0.3);
glutSolidSphere(0.1, 5, 5);
}
void drawPlanet(float distance, float size, GLuint texture){
glRotatef(360.0*DayOfYear / 365.0, 0.0, 1.0, 0.0);
glPushMatrix();
glTranslatef(distance, 0.0, 0.0);
glColor3f(0.2, 0.2, 1.0);
GLUquadricObj *planet;
planet = gluNewQuadric();
gluQuadricDrawStyle(planet, styl);
gluQuadricOrientation(planet, orientacja);
gluQuadricNormals(planet, wektor);
gluQuadricTexture(planet, tekstura);
if (texture != NULL){ glBindTexture(GL_TEXTURE_2D, texture); }
gluSphere(planet, size, 30, 30);
if (distance == distanceEarth){ moon(); }
glPopMatrix();
}
// Funkcja konfiguracji sceny
void setupScene(){
glEnable(GL_DEPTH_TEST);
glEnable(GL_TEXTURE_2D);
// glShadeModel( GL_FLAT );
glClearColor( 0.0, 0.0, 0.0, 0.0 );
glClearDepth( 1.0 );
// Ustawienie właściwości materiału:
// glMaterialfv(GL_FRONT, GL_SPECULAR, mat_specular);
// glMaterialfv(GL_FRONT, GL_SHININESS, mat_shininess);
glMaterialfv(GL_FRONT, GL_EMISSION, mat_em);
// Usatwienie parametrów oświetlenia:
glLightfv(GL_LIGHT0, GL_POSITION, light_position);
glLightfv(GL_LIGHT1, GL_AMBIENT, ambient_light);
// Włączenie oświetlenia:
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glEnable(GL_LIGHT1);
// Włączenie teksturowania :
glActiveTexture(GL_TEXTURE0); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE1); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE2); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE4); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE5); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE6); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE7); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE8); glEnable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE9); glEnable(GL_TEXTURE_2D);
}
// Funkcja renderująca scenę
void display ()
{
// Usunięcie zawartości buforów koloru i głębi:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
if (spinMode) {
// Update the animation state
HourOfDay += AnimateIncrement;
DayOfYear += AnimateIncrement/24.0;
HourOfDay = HourOfDay - ((int)(HourOfDay/24))*24;
DayOfYear = DayOfYear - ((int)(DayOfYear/365))*365;
}
// Ustawienie macierzy modelowania:
glMatrixMode(GL_MODELVIEW);
// Wczytanie macierzy jednostkowej:
glLoadIdentity();
// Ustawienie kamery:
/*
gluLookAt(0.0,0.0,10.0,
centerx,centery,centerz,
0.0f,1.0f,0.0f);
*/
// Wycofanie o kilka jednostek do tylu dla lepszego widoku
glTranslatef ( 0.0, 0.0, zoom );
glRotatef( angle, rotatex, rotatey, rotatez );
// slonce();
sun();
drawPlanet(distanceMercury, sizeMercury, textures[3]);
drawPlanet(distanceVenus, sizeVenus, textures[4]);
drawPlanet(distanceEarth, sizeEarth, textures[2]);
drawPlanet(distanceMars, sizeMars, textures[5]);
drawPlanet(distanceJupiter, sizeJupiter, textures[6]);
drawPlanet(distanceSaturn, sizeSaturn, textures[7]);
drawPlanet(distanceUranus, sizeUranus, textures[8]);
drawPlanet(distanceNeptune, sizeNeptune, textures[9]);
//elipsy, orbity, przypominajace asteroidy
//pas 1
for(float a = 34.0; a <= 85.0; a=a+5.0){
DrawEllipse(a,a);
}
glFlush();
glutSwapBuffers();
if ( singleStep ) {
spinMode = GL_FALSE;
}
glutPostRedisplay();
/*
// Cykliczne wywołanie funkcji renderującej scenę:
glutPostRedisplay();
// Wywołanie zamiany buforów:
glutSwapBuffers();
*/
}
// Funckja zmiany wielkości okna
static void reshape (int w,int h)
{
float ratio = 1.0* w / h;
// Ustawienie macierzy rzutowania:
glMatrixMode(GL_PROJECTION);
// Wczytanie macierzy jednostkowej:
glLoadIdentity();
// Ustawienie widoku modelu dla całęgo okna:
glViewport(0, 0, w, h);
// Ustawienie poprawnej perspektywy
gluPerspective(45,ratio,1,1000);
display();
}
// Funkcja bosługująca klawiaturę
static void normalKeys(unsigned char Key, int x, int y) {
switch ( Key ) {
case 'R':
case 'r':
Key_r(); break;
case 's':
case 'S':
Key_s(); break;
case 'q': angle++; break;
case 'a': angle--; break;
case 'z': rotatex++; break;
case 'x': rotatex--; break;
case 'c': rotatey++; break;
case 'v': rotatey--; break;
case 'b': rotatez++; break;
case 'n': rotatez--; break;
case 27: // Escape key
exit(1);
}
// narysowanie sceny
reshape (glutGet (GLUT_WINDOW_WIDTH),glutGet (GLUT_WINDOW_HEIGHT));
}
// Konkretne klawisze
static void Key_r(void)
{
if ( singleStep ) { // If ending single step mode
singleStep = GL_FALSE;
spinMode = GL_TRUE; // Restart animation
}
else {
spinMode = !spinMode; // Toggle animation on and off.
}
}
static void Key_s(void)
{
singleStep = GL_TRUE;
spinMode = GL_TRUE;
}
static void Key_up(void)
{
AnimateIncrement *= 1.1;
}
static void Key_down(void)
{
AnimateIncrement /= 1.1;
}
// Znaki specjalne
static void SpecialKeyFunc( int Key, int x, int y )
{
switch ( Key ) {
case GLUT_KEY_UP:
Key_up();
break;
case GLUT_KEY_DOWN:
Key_down();
break;
case GLUT_KEY_LEFT:
zoom--; break;
case GLUT_KEY_RIGHT:
zoom++; break;
}
}
int main(int argc, char *argv[])
{
// Inicjalizacja biblioteki GLUT:
glutInit (&argc,argv);
// Inicjalizacja bufora ramki:
glutInitDisplayMode (GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH);
// Rozmiary głównego okna programu:
glutInitWindowSize (WIDTH,HEIGHT);
// Utworzenie głównego okna programu:
glutCreateWindow ("Uklad sloneczny v0.2");
// Inicjalizacja biblioteki GLEW:
glewInit();
// Sprawdzenie wsparcia OpenGL 2.0:
if (!glewIsSupported("GL_VERSION_2_0"))
{
puts("OpenGL 2.0 nie jest wspierany\n");
exit(1);
}
// Rejestracja funkcji zmiany okna
glutReshapeFunc(reshape);
// Rejestracja funkcji renderującej scenę
glutDisplayFunc(display);
// Rejestracja funkcji obsługującej klawiaturę
glutKeyboardFunc(normalKeys);
// Znaki specjalne
glutSpecialFunc( SpecialKeyFunc );
// Konfiguracja shaderów:
setupShaders("teksturowanie_osw.vert", "teksturowanie_osw.frag");
// Konfiguracja Tekstur:
setupTexture();
// Konfiguracja Sceny:
setupScene();
// Główna pętla programu:
glutMainLoop();
return 0;
}
|
e2f93275ba4c0330876f34642192b42349bfc821 | 69b3fd1855e45723848bb1138c4fedc3090664da | /LearnOpenGL/src/Shader.h | 52362ca3089b95b4d23bb9e1830aab15efd2ad69 | [
"Apache-2.0"
] | permissive | IsaPC/Whim-Engine | 763c483e2d9113a6ef087ac1ad643e587b26be7a | 99b031d863616239052a224ba97e150238cf4913 | refs/heads/master | 2021-07-25T12:11:15.128900 | 2020-06-27T11:40:02 | 2020-06-27T11:40:02 | 193,315,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 781 | h | Shader.h | #pragma once
#include <iostream>
// reading files
#include <fstream>
#include <sstream>
// glfw
#include <glad/glad.h>
class Shader
{
private:
unsigned int rendererId;
const char* vFilePath;
const char* fFilePath;
public:
Shader(const std::string vertexShaderSrc, std::string fragmentShaderSrc);
~Shader();
void Bind() const;
void UnBind() const;
private:
// getting creating and compiling the shader
std::string ParseShaderScript(std::string fileLocation);
int CreateShader(unsigned int type, std::string shaderScript);
int CompileShader(std::string vertexShader, std::string fragmentShader);
public:
// uniform management
void SetUniform4f(const std::string& name, float v0, float v1, float v2, float v3);
int GetUniformLocation(const std::string name);
};
|
a73ac3be6b7ed8100c4b0b0a104bf55594d76a0d | fa9fb33d857538bd27d811a5880f044a55205a59 | /11461.cpp | 1c54cb287af72727f69e6b1e86f7f52e447d7b17 | [] | no_license | Mukit09/UVA_Solution | 15b7aa8c60a9aa59a7e11a8a0163bcf437917661 | b2659637fe9ecb1cdbc164f0d1172e86f71a72d7 | refs/heads/master | 2020-12-25T17:29:17.655229 | 2020-03-18T03:56:34 | 2020-03-18T03:56:34 | 28,819,638 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 419 | cpp | 11461.cpp | /* USER: 93043 (mkbs_cse09) */
/* PROBLEM: 2456 (11461 - Square Numbers) */
/* SUBMISSION: 08773428 */
/* SUBMISSION TIME: 2011-04-23 16:43:23 */
/* LANGUAGE: 3 */
#include<stdio.h>
#include<math.h>
main()
{
long a,b,i,k;
while(scanf("%ld%ld",&a,&b)!=EOF)
{
if(a==0&&b==0)
break;
k=0;
for(i=1;i<=b;i++)
{
if((i*i)>=a&&(i*i)<=b)
k++;
}
printf("%ld\n",k);
}
return 0;
} |
1d5353b85834c58f0a58f3776ded768dec3455b4 | 1f7bec17e16aab926807108e619c37bddefe1cd2 | /10019 - Funny Encryption Method.cpp | 5049ef2576c3da5b0900b7adccaedc8ecdc5873a | [] | no_license | shuvra-mbstu/Uva-problems | 2dd1399aabce0028cc46e2fdaef5e68f7c4d4f61 | 90295bd37e24dfd72721e32edecdb7f87c84422b | refs/heads/master | 2021-02-10T16:42:53.367805 | 2020-03-05T09:22:38 | 2020-03-05T09:22:38 | 244,399,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 945 | cpp | 10019 - Funny Encryption Method.cpp | #include<bits/stdc++.h>
using namespace std;
int d_bin(int num)
{
int coun=0;
while(num!=0)
{
int i=num%2;
if(i==1)
{
coun++;
}
num=num/2;
}
return coun;
}
int h_bin(int num)
{
int coun=0;
while(num!=0)
{
int i=num%10;
if((i==1)||(i==2)||(i==4)||(i==8))
{
coun++;
}
else if((i==3)||(i==5)||(i==6)||(i==9))
{
coun=coun+2;
}
else if((i==7))
{
coun=coun+3;
}
num=num/10;
}
return coun;
}
int main()
{
int test,num, sum, coun;
string st;
scanf("%d",&test);
while(test--)
{
cin>> num;
/* int len =st.size();
for(int i=0;i<num;i++)
{
}
cout<<num<<endl;*/
cout<<d_bin(num)<<" "<<h_bin(num)<<endl;
}
}
|
6956c808eea288032719407e2bc78efbc983eb30 | 2269f6316c78a8b38ecede9c7a6aa568e7687014 | /MyTask/ui/view/linewidget.cpp | 9e1fd6d2525e7df92dc006f99e1021c8e2421a71 | [
"MIT"
] | permissive | darthmaster/MyTask | 3f75746a08d39997c1d6e110eb3b9afc66009aa3 | a428b1e410800018662ec9b1c970b68fc7fe7b69 | refs/heads/main | 2023-07-04T18:15:04.957145 | 2021-08-13T07:25:21 | 2021-08-13T07:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 232 | cpp | linewidget.cpp | #include "linewidget.h"
#include "style/stylecontainer.h"
using namespace styles;
LineWidget::LineWidget() {
this->setMaximumHeight(4);
this->setMinimumHeight(4);
this->setStyleSheet("background: "+COLOR_BORDER+";");
}
|
dd361922a4428b7aae35db980a80f8832864b867 | 5125e1876fe5fdfce3f7d39038dc73b13e7f4579 | /graph.h | f359cf673b297f994a1ee69ad343fe475ce8a654 | [] | no_license | GiulianaCDA/Algoritmos-Grafos | a116af5650c07707a43a341c556404b33ed39580 | 87a12330f4944530dc59118a7ca5635a79eea103 | refs/heads/main | 2023-08-28T11:36:40.711817 | 2021-09-25T00:29:23 | 2021-09-25T00:29:23 | 404,947,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,325 | h | graph.h | #ifndef GRAPH_H
#define GRAPH_H
#include <bits/stdc++.h>
using namespace std;
typedef struct Node node;
struct Node{
int dest;
int weight;
node* next;
};
class Graph{
private:
int V = 1000;
vector <node*> adjlist;
public:
Graph(int vertexes){
V = vertexes;
for (int i = 0; i < V; i++)
{
adjlist.push_back(NULL);
}
}
void add_edge(int source, int dest, int w){
node* edge = (node*) malloc(sizeof(node));
edge->dest = dest;
edge->weight = w;
edge->next = adjlist[source];
adjlist[source] = edge;
}
int get_size() { return V;}
vector<node*> get_edges() {return adjlist;}
};
// separa a linha em parâmetros
void split(string line, int* source, int* dest, int* weight){
string delimiter = " ";
size_t pos = 0;
string token;
vector <int> values;
line = line + " ";
while ((pos = line.find(delimiter)) != string::npos) {
token = line.substr(0, pos);
values.push_back(stoi(token));
line.erase(0, pos + delimiter.length());
}
*source = values[0];
*dest = values[1];
(values.size() == 2) ? *weight = 1 : *weight = values[2];
}
//lê o grafo de um arquivo
Graph read_graph_file(const char* file){
int edges, vertexes, temp;
string line;
ifstream input_file(file);
getline(input_file, line);
split(line, &edges, &vertexes, &temp);
Graph grafo(vertexes);
if (input_file.is_open()){
while (getline(input_file,line))
{
int source, dest, weight;
split(line, &source, &dest, &weight);
grafo.add_edge(source, dest, weight);
}
input_file.close();
}
else {printf("Não foi possível abrir o arquivo de entrada\n");}
return grafo;
}
// Lê um grafo da entrada do terminal
Graph read_graph(){
int edges;
int vertexes;
scanf("%d%d\n", &edges, &vertexes);
Graph grafo(vertexes);
for (int i = 0; i < edges; i++){
int source, dest, weight;
string line;
getline(cin, line);
split(line, &source, &dest, &weight);
printf("source: %d dest: %d weight: %d\n", source, dest, weight);
grafo.add_edge(source, dest, weight);
}
return grafo;
}
#endif |
265959daa1837b34ddeadf49b9b7977ed5fc7a68 | 8b474ff27afd78f3dd6976eb97e22b430b5b65aa | /myclass/addCourse.cpp | 0e8879559d16f57b63c43bf0f9a33b29cf7c3dec | [] | no_license | ndaonguyen/QT_FileDB_ECL | 1d454abe139a12b78f5ca8b6839023488b51f0bc | 202f7358bfe3289e4e23a530cacf7a74cb08cf9b | refs/heads/master | 2021-01-01T15:30:45.840205 | 2013-09-26T15:53:20 | 2013-09-26T15:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,802 | cpp | addCourse.cpp | #include "addCourse.h"
AddCourse::AddCourse(QWidget * parent, Qt::WindowFlags f, databaseFile *dbFileOri, QString courseId)
{
ui.setupUi(this);
dbFile = dbFileOri;
setConnection();
courseID = courseId.toInt();
if(courseID == ADD_MODE_COURSE)
refreshToOriginAddCourse();
else
{
ui.saveButton->setVisible(false);
ui.cancelCourseButton->setVisible(false);
QList< QMap<QString,QString> > courseList = dbFile->getListByField("course","id",courseId);
courseName = courseList.at(0)["name"];
courseMode = EDIT_COURSE_MODE;
ui.courseNameLineEdit->setText(courseName); // step1
setup4Step2();
setup4Step3();
ui.step2Widget->setEnabled(false);
}
}
AddCourse::~AddCourse(void)
{
int skillWidgetsCount = skillWidgets.count();
for(int i=0;i<skillWidgetsCount;i++)
delete skillWidgets.at(i);
}
void AddCourse::setConnection()
{
// add course
QObject::connect(ui.leftWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
this, SLOT(left2RightClickAction()));
QObject::connect(ui.rightWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
this, SLOT(right2LeftClickAction()));
QObject::connect(ui.left2RightButton, SIGNAL(clicked()),
this, SLOT(left2RightAction()));
QObject::connect(ui.right2LeftButton, SIGNAL(clicked()),
this, SLOT(right2LeftAction()));
QObject::connect(ui.all2RightButton, SIGNAL(clicked()),
this, SLOT(all2RightAction()));
QObject::connect(ui.all2LeftButton, SIGNAL(clicked()),
this, SLOT(all2LeftAction()));
QObject::connect(ui.addSkill, SIGNAL(clicked()),
this, SLOT(addSkillAction()));
QObject::connect(ui.cancelCourseButton, SIGNAL(clicked()),
this, SLOT(cancelCourseAction()));
QObject::connect(ui.saveButton,SIGNAL(clicked()),
this, SLOT(step1SaveAction()));
QObject::connect(ui.courseNameLineEdit,SIGNAL(returnPressed()),
this, SLOT(step1SaveAction()));
QObject::connect(ui.saveButton2,SIGNAL(clicked()),
this, SLOT(step2SaveAction()));
QObject::connect(ui.saveCourseButton,SIGNAL(clicked()),
this, SLOT(saveCourseAction()));
}
/**
* Fill Skill into Add Course Phage
*/
void AddCourse:: fillSkillsStep2() //edit + create
{
if( courseMode == CREATE_COURSE_MODE)
{
// update info to ListWidget of step 2
QList< QMap<QString,QString> > skillList = dbFile->getAll("skill");
int numSkill = skillList.count();
for(int i = 0 ; i < numSkill; i++)
ui.leftWidget->addItem(skillList.at(i)["name"]);
}
else if( courseMode == EDIT_COURSE_MODE)
{
QList< QMap<QString,QString> > coSkList = dbFile->getListByField("course_skill","course_id",
QString::number(courseID));
int numRow = coSkList.count();
for(int i =0;i< numRow;i++)
{
QMap<QString,QString> coSkRow = coSkList.at(i);
QList< QMap<QString,QString> > skillList = dbFile->getListByField("skill","id",coSkRow["skill_id"]);
if(skillList.count()<=0)
continue;
QMap<QString,QString> skill = skillList.at(0);
ui.rightWidget->addItem(skill["name"]);
}
}
}
/**
* Setup data for step 2
*/
void AddCourse:: setup4Step2()// Main step 2
{
fillSkillsStep2();
ui.line1_2->setVisible(true);
ui.step2Widget->setVisible(true);
QLabel *courseLabel = new QLabel(ui.classInsertGroupBox);
courseLabel->setText("<b>Course name:</b>");
ui.step1Layout->addWidget(courseLabel);
QLabel *courseNameShow = new QLabel(ui.classInsertGroupBox);
courseNameShow->setText(courseName);
ui.step1Layout->addWidget(courseNameShow);
if(courseMode == CREATE_COURSE_MODE)
ui.resultLabel->setText("<span style='color:red'><b>Step1:Saved</b></span>");
}
void AddCourse:: saveCourseSKillTable(int numElementSkillBox)
{
//save to course_skill table
for(int i = 0;i<numElementSkillBox;i++)
{
QString skill = ui.rightWidget->item(i)->text();
QList< QMap<QString,QString> > skillList = dbFile->getListByField("skill", "name", skill);
if(skillList.count() <= 0)
continue;
QString skillIdTemp = skillList.at(0)["id"];
QList<QString> infoInsert;
infoInsert << QString::number(courseID) << skillIdTemp;
dbFile->insertItemWithoutKeyId("course_skill", infoInsert);
}
}
void AddCourse:: setupStep3Add(int numElementSkillBox)
{
QHBoxLayout *horizontalLayout_2;
for( int i =0;i<numElementSkillBox;i++)
{
QSignalMapper *signalMapper = new QSignalMapper(this);
QSignalMapper *signalMapper1 = new QSignalMapper(this);
QString skill = ui.rightWidget->item(i)->text();
skillsCourse.append(skill);
QLabel *skillLabel = new QLabel("<b>"+skill+"</b>");
ui.verticalLayout->addWidget(skillLabel);
horizontalLayout_2 = new QHBoxLayout();
horizontalLayout_2->setSpacing(6);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
QLabel *temp = new QLabel(ui.verticalLayoutWidget);
horizontalLayout_2->addWidget(temp);
QPushButton *addButton = new QPushButton(ui.verticalLayoutWidget);
addButton->setText("Add material");
horizontalLayout_2->addWidget(addButton);
addButton->setObjectName(QString::fromUtf8("addMaterialButton")+QString::number(i));
signalMapper->setMapping(addButton,skill+","+QString::number(i)+","+QString::number(courseID));
QObject::connect(addButton,SIGNAL(clicked()),signalMapper, SLOT(map()));
QObject::connect(signalMapper, SIGNAL(mapped(QString)),this, SLOT(addMaterialAction(QString)));
QPushButton *listButton = new QPushButton(ui.verticalLayoutWidget);
listButton->setText("Edit materials");
horizontalLayout_2->addWidget(listButton);
listButton->setObjectName(QString::fromUtf8("listMaterialButton")+QString::number(i));
signalMapper1->setMapping(listButton,skill+","+QString::number(i)+","+QString::number(courseID));
QObject::connect(listButton,SIGNAL(clicked()),signalMapper1, SLOT(map()));
QObject::connect(signalMapper1, SIGNAL(mapped(QString)),this, SLOT(listMaterialAction(QString)));
QLabel *temp1 = new QLabel(ui.verticalLayoutWidget);
horizontalLayout_2->addWidget(temp1);
ui.verticalLayout->addLayout(horizontalLayout_2);
}
}
void AddCourse:: setupInfoBoxStep2Save(int numElementBoxSkill)
{
for(int i =0;i<numElementBoxSkill;i++)
{
QString skill = ui.rightWidget->item(i)->text();
QLabel *skillLabel = new QLabel(skill);
ui.step2Layout->addWidget(skillLabel);
QListWidget *listSkill = new QListWidget(ui.step2WidgetInfo);
if(courseMode == EDIT_COURSE_MODE)
{
QList< QMap<QString,QString> > skillRow = dbFile->getListByField("skill", "name", skill);
QString skillId = skillRow.at(0)["id"];
QList<QString> fields;
QList<QString> fieldValues;
fields << "skill_id" << "course_id";
fieldValues << skillId << QString::number(courseID);
QList< QMap<QString,QString> > res = dbFile->getListByFields("skill_material",fields,fieldValues);
int countRes = res.count();
for(int i =0;i<countRes;i++)
{
QString materialId = res.at(i)["material_id"];
QList< QMap<QString,QString> > materialRow = dbFile->getListByField("material","id",materialId);
listSkill->addItem(materialRow.at(0)["name"]);
}
}
ui.step2Layout->addWidget(listSkill);
skillWidgets.append(listSkill);
}
}
void AddCourse:: setup4Step3() // Main step 3
{
int numSkills = ui.rightWidget->count();
//set up What appear in info added box
setupStep3Add(numSkills); // create + edit : ok
ui.line2_3->setVisible(true);
ui.step3Widget->setVisible(true);
ui.step2Widget->setEnabled(false);
//set up what show in info box
ui.skillLabelShow->setVisible(true);
setupInfoBoxStep2Save(numSkills);
ui.resultLabel->setText("<span style='color:blue'><b>Step2:saved</b></span>");
ui.saveCourseButton->setVisible(true);
}
QString AddCourse:: materialBox(QString skill,bool &ok)
{
QString text = QInputDialog::getText(this, tr("Add Material to ") + skill,tr("Material:"),
QLineEdit::Normal, tr("try try"),&ok);
return text;
}
/**
* @param skillNID : "<skill>,<index>"
*/
bool AddCourse:: isAddMaterial(QString skillNIndex)
{
bool ok;
QStringList stringlist = skillNIndex.split(",");
QString skill = stringlist.at(0);
QString index = stringlist.at(1);
QString text = materialBox(skill,ok);
if (!(ok && !text.isEmpty()))
return false;
// check Material Exist
int in = index.toInt();
QListWidget *list = skillWidgets.at(in);
bool isMaExist = isItemExist(text,list);
if(isMaExist == true)
return false;
// Insert success or not
QList<QString> matList;
matList.append(text);
QMap<QString,QString> insertRow = dbFile->insertItemWithKeyId("material",matList);
int idMaterial = insertRow["id"].toInt();
if(idMaterial ==-1 )
return false;
//insert into skill_material table
QList< QMap<QString,QString> > skillList = dbFile->getListByField("skill", "name", skill);
if(skillList.count() <= 0)
return false;
QString idSkill = skillList.at(0)["id"];
QList<QString> skillMaterialList;
skillMaterialList <<idSkill <<QString::number(idMaterial)<<QString::number(courseID);
QMap<QString,QString> insertSkillMat = dbFile->insertItemWithoutKeyId("skill_material",skillMaterialList);
idMaterial = insertSkillMat["material_id"].toInt();
if(idMaterial != -1)
list->addItem(text);
return ok;
}
void AddCourse:: loadConfigAddCourseTab()
{
ui.saveCourseButton->setVisible(false);
ui.line1_2->setVisible(false);
ui.line2_3->setVisible(false);
ui.step2Widget->setVisible(false);
ui.step3Widget->setVisible(false);
ui.skillLabelShow->setVisible(false);
courseName = "";
courseID = ADD_MODE_COURSE;
courseMode = CREATE_COURSE_MODE;
ui.courseNameLineEdit->setFocus();
}
void AddCourse:: refreshToOriginAddCourse()
{
loadConfigAddCourseTab();
ui.cancelCourseButton->setVisible(true);
ui.courseNameLineEdit->setText("");
ui.courseNameLineEdit->setText("");
ui.step1Widget->setEnabled(true);
ui.step2Widget->setEnabled(true);
ui.resultLabel->setText("");
ui.skillLabelShow->setVisible(false);
clearItemsLayout(ui.step1Layout);
clearItemsLayout(ui.step2Layout);
clearItemsLayout(ui.verticalLayout);
//step 2
int numLeft = ui.leftWidget->count();
int numRight = ui.rightWidget->count();
for (int i = 0; i < numLeft; i++)
ui.leftWidget->takeItem(0);
for (int i = 0; i < numRight; i++)
ui.rightWidget->takeItem(0);
courseName = "";
courseID = ADD_MODE_COURSE;
courseMode = CREATE_COURSE_MODE;
skillsCourse.clear();
skillWidgets.clear();
ui.courseNameLineEdit->setFocus();
}
void AddCourse:: step1SaveAction() // disable step 1, enable step 2, update info to info box
{
// check box name is empty
if(ui.courseNameLineEdit->text().trimmed() == "")
{
QMessageBox::warning(this,tr("Course name"),tr("Please fill the blank!!"));
ui.courseNameLineEdit->setFocus();
return;
}
courseName = ui.courseNameLineEdit->text();
if(courseMode == CREATE_COURSE_MODE)
{
ui.step1Widget->setEnabled(false);
QList<QString> courseList;
courseList.append(courseName);
QMap<QString,QString> courseMap = dbFile->insertItemWithKeyId("course",courseList);
courseID = courseMap["id"].toInt();
setup4Step2();
}
else
{
dbFile->editOneFieldById("course","id", QString::number(courseID),"name", courseName);
//update info box
clearItemsLayout(ui.step1Layout);
QLabel *courseLabel = new QLabel(ui.classInsertGroupBox);
courseLabel->setText("<b>Course name:</b>");
ui.step1Layout->addWidget(courseLabel);
QLabel *courseNameShow = new QLabel(ui.classInsertGroupBox);
courseNameShow->setText(courseName);
ui.step1Layout->addWidget(courseNameShow);
ui.resultLabel->setText("<span style='color:red'><b>Step1:Saved</b></span>");
}
return;
}
void AddCourse:: step2SaveAction() // save value to skillsCourse, fill step 3 info, step 3 appear, fill info into info bo
{
int numSkills = ui.rightWidget->count();
if(numSkills == 0)
{
QMessageBox::warning(this,tr("Skill choice"),tr("Please choose skills!!"));
return;
}
if(courseMode == CREATE_COURSE_MODE)
saveCourseSKillTable(numSkills);
setup4Step3();
}
void AddCourse:: addSkillAction()
{
bool ok;
QString text = QInputDialog::getText(this, tr("Add Skill"),tr("Skill:"), QLineEdit::Normal, tr("try try"),&ok);
if (ok && !text.isEmpty())
{
QList< QMap<QString,QString> > skillList = dbFile->getAll("skill");
QList<QString> listItems;
int numSkill = skillList.count();
for(int i=0;i<numSkill;i++)
listItems.append(skillList.at(i)["name"]);
if(checkItemExist(text, listItems) == true) // item exist -> not add
return;
QList<QString> skList;
skList.append(text);
dbFile->insertItemWithKeyId("skill",skList);
ui.leftWidget->addItem(text);
}
}
void AddCourse:: left2RightAction()
{
ui.rightWidget->addItem(ui.leftWidget->takeItem(ui.leftWidget->currentRow()));
}
void AddCourse:: right2LeftAction()
{
ui.leftWidget->addItem(ui.rightWidget->takeItem(ui.rightWidget->currentRow()));
}
void AddCourse:: all2LeftAction()
{
int numElements = ui.rightWidget->count();
for(int i =0;i<numElements;i++)
{
QListWidgetItem *item = ui.rightWidget->takeItem(0);
ui.leftWidget->addItem(item);
}
}
void AddCourse:: all2RightAction()
{
int numElements = ui.leftWidget->count();
for(int i =0;i<numElements;i++)
{
QListWidgetItem *item = ui.leftWidget->takeItem(0);
ui.rightWidget->addItem(item);
}
}
void AddCourse:: left2RightClickAction()
{
QListWidgetItem *item2 = ui.leftWidget->takeItem(ui.leftWidget->currentRow());
ui.rightWidget->addItem(item2);
}
void AddCourse:: right2LeftClickAction()
{
QListWidgetItem *item2 = ui.rightWidget->takeItem(ui.rightWidget->currentRow());
ui.leftWidget->addItem(item2);
}
/**
* Clisk to "edit material" button
* @param skillNIndex : "<skill>,<index>" (index: index trong skillWidgets [thu tu skills])
*/
void AddCourse:: listMaterialAction(QString skillNIndex)
{
QStringList stringlist = skillNIndex.split(",");
QString skill = stringlist.at(0);
QString index = stringlist.at(1);
std::string temp1 = index.toStdString();
const char* temp2 = temp1.c_str();
int indexInt = atoi(temp2);
listMaterialDialog *dialog = new listMaterialDialog(this,dbFile,skill,courseID);
dialog->exec();
bool isChange = dialog->isChanged;
if(isChange == false)
return;
QList< QMap<QString,QString> > skillList = dbFile->getListByField("skill", "name", skill);
QString skillId = skillList.at(0)["id"];
//Clear old list, and add new list --> Box Info
QListWidget *listWidget = skillWidgets.at(indexInt);
listWidget->clear();
QString courseIdStr = QString::number(courseID);
//getListByFields
QList<QString> fieldList;
QList<QString> valueList;
fieldList << "skill_id" << "course_id" ;
valueList << skillId << courseIdStr;
QList< QMap<QString,QString > > skiMaList = dbFile->getListByFields("skill_material",fieldList,valueList);
int numRow = skiMaList.count();
if(numRow <= 0)
return;
for(int i=0; i <numRow; i++)
{
QString maId = skiMaList.at(i)["material_id"];
QList< QMap<QString,QString> > maList = dbFile->getListByField("material","id",maId);
if(maList.count() <= 0)
continue;
QString ma = maList.at(0)["name"];
listWidget->addItem(ma);
}
}
/**
* @param skillNID : "<skill>,<id>"
*/
void AddCourse:: addMaterialAction(QString skillNIndex)
{
bool isAdd = isAddMaterial(skillNIndex);
while(isAdd ==true)
{
ui.resultLabel->setText("<span style='color:green'><b>Material: saved</b></span>");
isAdd = isAddMaterial(skillNIndex);
}
}
void AddCourse:: saveCourseAction()
{
if(courseMode == EDIT_COURSE_MODE)
step1SaveAction();
close();
}
void AddCourse:: cancelCourseAction()
{
if(courseMode == CREATE_COURSE_MODE && courseID != ADD_MODE_COURSE)
deleteCourse(QString::number(courseID));
close();
}
bool AddCourse:: isItemExist(QString item,QListWidget *list)
{
int numItem = list->count();
for(int i=0;i<numItem;i++)
{
QString maComp = list->item(i)->text();
if(maComp==item)
return true;
}
return false;
}
void AddCourse:: clearItemsLayout(QLayout* layout)
{
while(QLayoutItem *item = layout->takeAt(0))
{
if (item->layout())
{
clearItemsLayout(item->layout());
delete item->layout();
}
else if (item->widget())
delete item->widget();
}
}
bool AddCourse:: checkItemExist(QString itemCheck, QList<QString> listItems)
{
int numExMember = listItems.count();
for(int j=0;j<numExMember;j++)
if(listItems.at(j)==itemCheck)
return true;
return false;
}
void AddCourse:: deleteCourse(QString courseId) // delete course base on course id --> delete all thing related to course
{
//delete database ( children --> parent)
QList< QMap<QString,QString> > courseList = dbFile->getListByField("course","id",courseId);
QString nameCourse = courseList.at(0)["name"];
QList< QMap<QString,QString> > coSkList = dbFile->getListByField("course_skill","course_id",courseId);
int numCoSk = coSkList.count();
for(int i=0;i<numCoSk;i++)
{
QString skillId = coSkList.at(i)["skill_id"];
QList<QString> fields;
QList<QString> fieldValues;
fields << "skill_id" << "course_id";
fieldValues << skillId << courseId;
QList< QMap<QString,QString> > skMaList = dbFile->getListByFields("skill_material",fields, fieldValues);
int numSkMa = skMaList.count();
for(int i =0;i< numSkMa;i++)
{
QString materialId = skMaList.at(i)["material_id"];
dbFile->deleteByField("material","id",materialId);
dbFile->deleteByField("skill_material","material_id",materialId);
}
dbFile->deleteByField("course_skill","course_id",courseId);
}
dbFile->deleteByField("course","id",courseId);
dbFile->deleteByField("class","course_id",courseId);
// Delete row of QTableView
/*
int rowCount = listCourseModel->rowCount();
for(int i =0; i < rowCount; i++)
if(nameCourse == listCourseModel->data(listCourseModel->index(i,0), Qt::DisplayRole).toString())
listCourseModel->removeRow(i);
*/
}
void AddCourse:: refreshAddCourseAction()
{
} |
d027141e6fd6b4331764fe69a2c6c1384859009d | b00feb6a615e836e94da418a65bcfdf0f857478a | /mopedCPU_v1.0/mopedCPU_v1.0.ino | bc0580b450e184fe4fab2b8429f8f975ad1d064f | [] | no_license | Gioeledeo/MopedCPU | 623857ee9ca21282466d3ff456047b67de5a7978 | 3d9995aa982debb87b7c96af20adba65fd3525b7 | refs/heads/master | 2020-05-19T17:48:30.618178 | 2019-05-07T08:03:54 | 2019-05-07T08:03:54 | 185,143,278 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | ino | mopedCPU_v1.0.ino | #include <TFT.h>
#include <SPI.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
#define cs 10
#define dc 9
#define rst 8
TFT TFTscreen = TFT(cs,dc,rst);
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup(){
Serial.begin(9600);
sensors.begin();
TFTscreen.begin();
TFTscreen.background(0,0,0); //black background
TFTscreen.setTextSize(2);
}
void loop(){
sensors.requestTemperatures();
int engineTemperature = sensors.getTempCByIndex(0);
Serial.print("Engine temperature: ");
Serial.print(engineTemperature);
Serial.print(" °C");
}
|
9f09dc946a883597546028111f23cd771dea5e00 | 07e7958bb57d6caa25225c6bc6db2194daea671c | /spree-master/project2/Script/XFunctionalObjectTriggerItem.h | 79c40122d10fabc50ffa989ad1da46bb75090861 | [] | no_license | pedromela/9d | 34eb86d1acc863586c8e7338fc5f5c6ccaaacaa9 | c65024fba16eca04b4eec897d312eb295ce60cfa | refs/heads/master | 2021-07-21T07:34:18.570081 | 2017-10-30T17:58:45 | 2017-10-30T17:58:45 | 108,886,922 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 1,855 | h | XFunctionalObjectTriggerItem.h | // XFunctionalObjectTriggerItem.h: interface for the _XFunctionalObjectTriggerItem class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_XFUNCTIONALOBJECTTRIGGERITEM_H__7114D361_312F_42CA_BAF0_2F9B3C66FCFA__INCLUDED_)
#define AFX_XFUNCTIONALOBJECTTRIGGERITEM_H__7114D361_312F_42CA_BAF0_2F9B3C66FCFA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "XKernel.h"
#include "XQuestScriptBaseType.h"
#include "XQuestScriptDefine.h"
#include "XFunctionalObjectScriptDefine.h"
#include "XFunctionalObjectActionItem.h"
#include "XFunctionalObjectConditionItem.h"
#include <map>
using namespace std;
typedef struct
{
DWORD condition;/// 조건식 진행 리스트
DWORD normalaction;/// normal 행동식 진행 리스트
DWORD exceptedaction;/// excepted 행동식 진행 리스트
}_XPROGRESS_FUNCTIONALOBJECTTRIGGER;
class _XFunctionalObjectTriggerItem : public _XItem
{
public:
LPTSTR m_lpszTriggerName;
BOOL m_bEnable;
BYTE m_byCompareClass;
int m_TriggerID;
map <int, _XFunctionalObjectConditionItem*> m_mapConditionList;
map <int, _XFunctionalObjectActionItem*> m_mapNormalActionList;
map <int, _XFunctionalObjectActionItem*> m_mapExceptedActionList;
_XPROGRESS_FUNCTIONALOBJECTTRIGGER m_ProgressFunctionalObjectTrigger;
public:
_XFunctionalObjectTriggerItem();
virtual ~_XFunctionalObjectTriggerItem();
void SetTriggerName(LPCTSTR triggername);
BOOL Load(FILE* fileptr);
BOOL LoadString(FILE* fileptr, LPTSTR& string);
void SetProgressCondition(int conditionid);
void SetProgressNormalAction(int actionid);
void SetProgressExceptedAction(int actionid);
DWORD GetCompareValue(int comparecount);
};
#endif // !defined(AFX_XFUNCTIONALOBJECTTRIGGERITEM_H__7114D361_312F_42CA_BAF0_2F9B3C66FCFA__INCLUDED_)
|
a67aa91b49cfab65eb25db1f9645f7a573a3b195 | 09e2b53244083ada09217e601eb57837634ae927 | /上课练习代码/zuote2(4).cpp | 12d3a55ff13b90f21776f989ee27123ec95cd93e | [] | no_license | lzt666/lzt666 | 2338cffd06d205f650165b8d1eb8982fe65882ab | 186cfe76285cf6b9b57dec022f04bd49c7be1594 | refs/heads/master | 2022-12-23T20:24:53.188391 | 2019-10-17T11:02:30 | 2019-10-17T11:02:30 | 178,135,922 | 3 | 0 | null | 2022-12-16T04:55:36 | 2019-03-28T05:57:28 | JavaScript | GB18030 | C++ | false | false | 401 | cpp | zuote2(4).cpp | #include <stdio.h>
#include <stdlib.h>
void Swap(int *px,int *py)
{
int tmp=0;
tmp=*px;
*px=*py;
*py=tmp;
}
int main()
{
int a,b,c;
printf("请输入三个整数:\n");//将三个数从大到小输出
scanf("%d%d%d",&a,&b,&c);
if(a<b)
{
Swap(&a,&b);
}
if(a<c)
{
Swap(&a,&c);
}
if(b<b)
{
Swap(&b,&c);
}
printf("%d %d %d\n",a,b,c);
system("pause");
return 0;
}
|
964b3e286482dacd56428e9dfd4e41891a33dc3b | 395eb49cf815a3cd29927a7d13f79195050f0850 | /2016/code-snapshot/y2014/actors/drivetrain_actor.cc | c0ee47bc8f2bad9027018a704f2d0f93ba634acb | [
"BSD-2-Clause"
] | permissive | adsnaider/Robotics-Project | d7c83cc2a544a5b79062ccef7c41a271587ccab0 | a5d76b51bdb6b2ba4c71b35dab770c43894d3d81 | refs/heads/master | 2021-01-10T14:55:32.922745 | 2017-10-10T15:57:52 | 2017-10-10T15:59:09 | 53,287,887 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,917 | cc | drivetrain_actor.cc | #include "y2014/actors/drivetrain_actor.h"
#include <functional>
#include <numeric>
#include <Eigen/Dense>
#include "aos/common/util/phased_loop.h"
#include "aos/common/logging/logging.h"
#include "aos/common/util/trapezoid_profile.h"
#include "aos/common/commonmath.h"
#include "aos/common/time.h"
#include "frc971/control_loops/drivetrain/drivetrain.q.h"
#include "y2014/actors/drivetrain_actor.h"
#include "y2014/constants.h"
#include "y2014/control_loops/drivetrain/drivetrain_dog_motor_plant.h"
namespace y2014 {
namespace actors {
namespace chrono = ::std::chrono;
DrivetrainActor::DrivetrainActor(actors::DrivetrainActionQueueGroup* s)
: aos::common::actions::ActorBase<actors::DrivetrainActionQueueGroup>(s),
loop_(constants::GetValues().make_drivetrain_loop()) {
loop_.set_controller_index(3);
}
bool DrivetrainActor::RunAction(const actors::DrivetrainActionParams ¶ms) {
static const auto K = loop_.K();
const double yoffset = params.y_offset;
const double turn_offset =
params.theta_offset * control_loops::drivetrain::kRobotRadius;
LOG(INFO, "Going to move %f and turn %f\n", yoffset, turn_offset);
// Measured conversion to get the distance right.
::aos::util::TrapezoidProfile profile(chrono::milliseconds(5));
::aos::util::TrapezoidProfile turn_profile(chrono::milliseconds(5));
const double goal_velocity = 0.0;
const double epsilon = 0.01;
::Eigen::Matrix<double, 2, 1> left_goal_state, right_goal_state;
profile.set_maximum_acceleration(params.maximum_acceleration);
profile.set_maximum_velocity(params.maximum_velocity);
turn_profile.set_maximum_acceleration(
params.maximum_turn_acceleration *
control_loops::drivetrain::kRobotRadius);
turn_profile.set_maximum_velocity(params.maximum_turn_velocity *
control_loops::drivetrain::kRobotRadius);
while (true) {
::aos::time::PhasedLoopXMS(5, 2500);
::frc971::control_loops::drivetrain_queue.status.FetchLatest();
if (::frc971::control_loops::drivetrain_queue.status.get()) {
const auto &status = *::frc971::control_loops::drivetrain_queue.status;
if (::std::abs(status.uncapped_left_voltage -
status.uncapped_right_voltage) > 24) {
LOG(DEBUG, "spinning in place\n");
// They're more than 24V apart, so stop moving forwards and let it deal
// with spinning first.
profile.SetGoal(
(status.estimated_left_position + status.estimated_right_position -
params.left_initial_position - params.right_initial_position) /
2.0);
} else {
static const double divisor = K(0, 0) + K(0, 2);
double dx_left, dx_right;
if (status.uncapped_left_voltage > 12.0) {
dx_left = (status.uncapped_left_voltage - 12.0) / divisor;
} else if (status.uncapped_left_voltage < -12.0) {
dx_left = (status.uncapped_left_voltage + 12.0) / divisor;
} else {
dx_left = 0;
}
if (status.uncapped_right_voltage > 12.0) {
dx_right = (status.uncapped_right_voltage - 12.0) / divisor;
} else if (status.uncapped_right_voltage < -12.0) {
dx_right = (status.uncapped_right_voltage + 12.0) / divisor;
} else {
dx_right = 0;
}
double dx;
if (dx_left == 0 && dx_right == 0) {
dx = 0;
} else if (dx_left != 0 && dx_right != 0 &&
::aos::sign(dx_left) != ::aos::sign(dx_right)) {
// Both saturating in opposite directions. Don't do anything.
LOG(DEBUG, "Saturating opposite ways, not adjusting\n");
dx = 0;
} else if (::std::abs(dx_left) > ::std::abs(dx_right)) {
dx = dx_left;
} else {
dx = dx_right;
}
if (dx != 0) {
LOG(DEBUG, "adjusting goal by %f\n", dx);
profile.MoveGoal(-dx);
}
}
} else {
// If we ever get here, that's bad and we should just give up
LOG(ERROR, "no drivetrain status!\n");
return false;
}
const auto drive_profile_goal_state =
profile.Update(yoffset, goal_velocity);
const auto turn_profile_goal_state = turn_profile.Update(turn_offset, 0.0);
left_goal_state = drive_profile_goal_state - turn_profile_goal_state;
right_goal_state = drive_profile_goal_state + turn_profile_goal_state;
if (::std::abs(drive_profile_goal_state(0, 0) - yoffset) < epsilon &&
::std::abs(turn_profile_goal_state(0, 0) - turn_offset) < epsilon) {
break;
}
if (ShouldCancel()) return true;
LOG(DEBUG, "Driving left to %f, right to %f\n",
left_goal_state(0, 0) + params.left_initial_position,
right_goal_state(0, 0) + params.right_initial_position);
::frc971::control_loops::drivetrain_queue.goal.MakeWithBuilder()
.control_loop_driving(true)
.highgear(true)
.left_goal(left_goal_state(0, 0) + params.left_initial_position)
.right_goal(right_goal_state(0, 0) + params.right_initial_position)
.left_velocity_goal(left_goal_state(1, 0))
.right_velocity_goal(right_goal_state(1, 0))
.Send();
}
if (ShouldCancel()) return true;
::frc971::control_loops::drivetrain_queue.status.FetchLatest();
while (!::frc971::control_loops::drivetrain_queue.status.get()) {
LOG(WARNING,
"No previous drivetrain status packet, trying to fetch again\n");
::frc971::control_loops::drivetrain_queue.status.FetchNextBlocking();
if (ShouldCancel()) return true;
}
while (true) {
if (ShouldCancel()) return true;
const double kPositionThreshold = 0.05;
const double left_error =
::std::abs(::frc971::control_loops::drivetrain_queue.status
->estimated_left_position -
(left_goal_state(0, 0) + params.left_initial_position));
const double right_error =
::std::abs(::frc971::control_loops::drivetrain_queue.status
->estimated_right_position -
(right_goal_state(0, 0) + params.right_initial_position));
const double velocity_error = ::std::abs(
::frc971::control_loops::drivetrain_queue.status->robot_speed);
if (left_error < kPositionThreshold && right_error < kPositionThreshold &&
velocity_error < 0.2) {
break;
} else {
LOG(DEBUG, "Drivetrain error is %f, %f, %f\n", left_error, right_error,
velocity_error);
}
::frc971::control_loops::drivetrain_queue.status.FetchNextBlocking();
}
LOG(INFO, "Done moving\n");
return true;
}
::std::unique_ptr<DrivetrainAction> MakeDrivetrainAction(
const ::y2014::actors::DrivetrainActionParams ¶ms) {
return ::std::unique_ptr<DrivetrainAction>(
new DrivetrainAction(&::y2014::actors::drivetrain_action, params));
}
} // namespace actors
} // namespace y2014
|
c3a62303aa06978f1c94101909b393a961b6ff7d | 494c26f6678ecfb6d2ea67bda94da860fb29e422 | /proj10/Song.cpp | f2176ebbb34bcd0239bdfb7be9915da5c80c33a3 | [] | no_license | mattmenna/CSE231 | 8d0b6cd62ecf8f280c5fe448ceeb0c5fb8299e1e | 390d7344dcbb04148b29c9651d6f725f23074094 | refs/heads/master | 2020-12-02T19:22:11.292805 | 2017-07-05T15:04:25 | 2017-07-05T15:04:25 | 96,331,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,564 | cpp | Song.cpp | /*
Project 10 - Song.cpp
Matthew Menna
Section 10 (Tues 3:00)
A33948969
*/
#include "Song.h"
Song::Song(void)
{}
Song::Song(string ss)
{
sg=sparse(ss,"\x09\x0A\x0C\x0D");
}
Song::Song(const Song& sp)
{
for (unsigned int i=0; i<(sp.sg).size(); i++)
sg.push_back((sp.sg).at(i));
}
ostream & operator<<(ostream &os, Song& sp)
{
int end=0;
for(unsigned int i=0;i<(sp.sg).size();i++)
{
os<<"\""<<(sp.sg).at(i)<<"\""<<",";
}
return os;
}
Song &Song::operator =(Song sp)
{
sg = sp.sg;
return (*this);
}
bool Song::operator==(Song sp)
{
return (sp.sg[0]==sg[0]);
}
vector <string> Song::sparse(string sm, string sp)
{
vector <string> srpar; // hold all the fields parsed from the string
string stemp=""; // holds the individual field
int i; // general loop variable
int ip1=0; //location of parse character
for(i=0;i<sm.length();i++) // for all the character in sm see if they are a parse code
{
//cout<<i<<" "<<(int)sm[i]<<" "<<sm[i]<<" ";
if(sm[i]<1) continue;// skip over invalid characters
ip1=sp.find(sm[i],0); // see if current character is a parse character
if(ip1==string::npos)
stemp=stemp+sm[i]; // not a parse code add to string
else // was a parse code add entry or throw away
{
if(stemp.length()>0||sm[i]=='\x09') // the parsed string has characters or is tab
{srpar.push_back(stemp);stemp="";}
}
}// end of for every character
if(stemp.length()>0 || sm[i]=='\x09') srpar.push_back(stemp); //Check for one left at end
return srpar; // return the string parsed into fields as the array srpar
} |
9bb0c184f32cd796d80b725686c7de6fb673cca5 | 7f296c0247edd773640d75e43f59f671235f9115 | /실습/1809/180906_01/MainGame.h | 1cba382ae5f8efd594762699749fe1886d3812bb | [] | no_license | alpenglow93/SGA | 43007ec9c8713465e69479d278bc5d93bfb29c43 | 265241b56f834fc7b0ee4f7f830877c6a7eb7725 | refs/heads/master | 2020-03-28T04:04:14.756772 | 2019-02-11T13:56:01 | 2019-02-11T13:56:01 | 147,687,677 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,136 | h | MainGame.h | #pragma once
#include <iostream>
using namespace std;
//클래스를 쓰는 이유
//1. C 언어 -> C++ 변화
//2. 절차지향 -> 객체 지향(특정 객체만 수정하면 됨)
//3. 유지보수 힘들다 (시간이 오래 걸린다)
//객체 지향 코딩 _기본적인 클래스 생성
//.h(헤더 파일) -> 대부분을 선언으로 작성
//ex) player class -> hp, mp, att, def, Attack, Move
//hp, mp, att, def -> private
//attack, move -> public
class MainGame
{
//접근 지정자: 보안 단계를 설정하는 키워드
private: //현 클래스 내부에서만 사용 가능
//멤버 변수: 클래스 내부에 있는 변수들
int data;
float distance;
int *pInt;
protected: //클래스 상속 관계에서 현 클래스의 자식까지는 사용할 수 있는 지정자
bool bCheck;
public: //누구나 그냥 가져다 쓸 수 있는 지정자
int nInt;
int hp;
int att;
MainGame(); //생성자: 객체가 생성될때 실행되는 함수
~MainGame(); //소멸자: 객체가 소멸될때 실행되는 함수
void SetDistance(float f);
float GetDistance();
void SetDamage(MainGame* target);
};
|
72e6680ed91a7188d20e323151843a8658d09ab6 | 9e33a75b8a1125abaeab3ac95d5e21e9587ce395 | /Game.h | ab76b012ff68eb75b5d29d2e92c04c03a815ecc5 | [] | no_license | 1274136007/test3 | b6114eb81808b30a93b6bea0c1bcf030d7ce1361 | ecc0b45ec10e12ec37f97ffe85124daa8b99744c | refs/heads/master | 2021-01-07T23:50:45.387263 | 2020-02-20T10:21:43 | 2020-02-20T10:21:43 | 241,855,261 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,842 | h | Game.h | #pragma once
#include <vector>
#include <array>
#include "Card.h"
#include "View.h"
#include "CardsSlots.h"
// 难度
enum Difficulty
{
// 简单
easy,
// 普通
normal,
// 困难
hard,
};
// 牌槽数量
const int SlotsNum = 10;
// 卡组数量
const int GroupsNum = 8;
// 预留数 预留的牌组数量 = 预留数 * 槽数量 = 5 * 10 = 50 可以发五次
const int ReservedQuantity = 5;
struct Point {
int x, y;
Point()
:x(0), y(0)
{}
Point(int a, int b)
:x(a), y(b)
{}
void SetValue(int a, int b)
{
x = a, y = b;
}
bool operator == (const Point p) const
{
return x == p.x && y == p.y;
}
};
enum Dir {
left,
up,
right,
down
};
class View;
class Game
{
private:
// 本场游戏的所有牌
std::array<Card, GroupsNum * CardValueNum> _Cards;
// 游戏难度
Difficulty _Difficulty;
View *_pView;
std::array<CardsSlots, SlotsNum> Scenes;
// 预留发牌的次数
int ReservedCount;
// 成功完成组合的计数器
int SuccessCount;
Point PSelected;
Point PCurrent;
bool IsVictory;
public:
friend class View;
Game(Difficulty difficulty = Difficulty::easy);
~Game();
void Show();
void SetDifficulty(Difficulty newDifficulty);
Difficulty GetDifficulty() const { return _Difficulty; }
bool GetIsVictory() const { return IsVictory; }
// 洗牌
void Shuffle();
// 初始化场景
void InitScenes();
// 开始一场新游戏
void StartNewGame();
// 发牌(预留发牌次数足够的情况下才会发成功)
void Deal();
public:
// 光标移动
void CurMove(Dir dir);
// 选择当前光标指向的牌 返回是否选择成功
bool Select();
private:
void MoveCards(Point point, int SlotsIndex);
bool CheckIsOptional(Point point);
bool CheckIsOrderly(Card cur, Card next, Difficulty difficulty);
bool CheckIsSuccess(int SlotsIndex);
};
|
6a19dc7fa96c034bb08d5ae9e159c04048f6af0a | 6d3dc5ec1a562724888ac7b56178c2b4aa32754c | /src/interfaces/matlab/opengm/mex-src/model/addFunction.cpp | 95fa4d5a4752861b82d6ba8c71f908dcae80ba54 | [
"MIT"
] | permissive | lijx10/opengm | 82ef2cfd7dc19e1e8c69826e088e11adddf02509 | 3ee326e544a54d92e2981f1dd65ca9949b93c220 | refs/heads/master | 2020-04-15T20:57:44.696418 | 2019-01-10T08:03:10 | 2019-01-10T08:03:10 | 165,015,640 | 8 | 0 | MIT | 2019-01-10T07:53:22 | 2019-01-10T07:53:22 | null | UTF-8 | C++ | false | false | 9,350 | cpp | addFunction.cpp | //include matlab headers
#include "mex.h"
// matlab handle
#include "../helper/handle/handle.hxx"
#include "matlabModelType.hxx"
#include "../helper/mexHelper.hxx"
/**
* @brief This file implements an interface to add a function to an opengm model in MatLab.
*
* This routine accepts a matrix containing the data for the function and creates a explicit function from it.
*
* @param[in] nlhs number of output arguments expected from MatLab.
* (needs to be 1).
* @param[out] plhs pointer to the mxArrays containing the results.
* @param[in] nrhs number of input arguments provided from MatLab.
* (needs to be 2)
* @param[in] prhs pointer to the mxArrays containing the input data provided by
* matlab. prhs[0] needs to contain the handle for the model. prhs[1] needs to contain the data for the explicit function.
*/
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
//check if data is in correct format
if(nrhs != 2) {
mexErrMsgTxt("Wrong number of input variables specified (two needed)\n");
}
if(nlhs != 1) {
mexErrMsgTxt("Wrong number of output variables specified (one needed)\n");
}
// get model out of handle
typedef opengm::interface::MatlabModelType::GmType GmType;
GmType& gm = opengm::interface::handle<GmType>::getObject(prhs[0]);
// get shape
mxArray* shapeIn = mxGetProperty(prhs[1], 0, "shape");
size_t numDimensions = mxGetNumberOfElements(shapeIn);
std::vector<GmType::IndexType> shape;
shape.resize(numDimensions);
typedef opengm::interface::helper::copyValue<GmType::ValueType, std::vector<GmType::IndexType>::iterator> copyFunctor;
typedef opengm::interface::helper::forAllValues<copyFunctor> copyValues;
typedef opengm::interface::helper::getDataFromMXArray<copyValues> coppyShape;
copyFunctor variableAdder(shape.begin());
copyValues functor(variableAdder);
coppyShape()(functor, shapeIn);
// create function corresponding to function type
GmType::FunctionIdentifier functionID;
if(mxIsClass(prhs[1], "openGMExplicitFunction")) {
// create function
opengm::interface::MatlabModelType::ExplicitFunction function(shape.begin(), shape.end());
mxArray* functionValues = mxGetProperty(prhs[1], 0, "functionValues");
typedef opengm::interface::helper::copyValue<GmType::ValueType, opengm::ExplicitFunction<GmType::ValueType>::iterator> copyFunctor;
typedef opengm::interface::helper::forAllValues<copyFunctor> copyValues;
typedef opengm::interface::helper::getDataFromMXArray<copyValues> coppyExplicitFunctionValues;
copyFunctor variableAdder(function.begin());
copyValues functor(variableAdder);
coppyExplicitFunctionValues()(functor, functionValues);
// add function to model
functionID = gm.addFunction(function);
} else if(mxIsClass(prhs[1], "openGMPottsFunction")) {
// get values for PottsFunction
GmType::ValueType valueEqual;
GmType::ValueType valueNotEqual;
typedef opengm::interface::helper::copyValue<GmType::ValueType> copyFunctor;
typedef opengm::interface::helper::forFirstValue<copyFunctor> copyValue;
typedef opengm::interface::helper::getDataFromMXArray<copyValue> coppyPottsFunctionValues;
{
copyFunctor copy(&valueEqual);
copyValue functor(copy);
coppyPottsFunctionValues()(functor, mxGetProperty(prhs[1], 0, "valueEqual"));
}
{
copyFunctor copy(&valueNotEqual);
copyValue functor(copy);
coppyPottsFunctionValues()(functor, mxGetProperty(prhs[1], 0, "valueNotEqual"));
}
// create function
opengm::interface::MatlabModelType::PottsFunction function(shape[0], shape[1], valueEqual, valueNotEqual);
// add function to model
functionID = gm.addFunction(function);
} else if(mxIsClass(prhs[1], "openGMPottsNFunction")) {
// get values for PottsNFunction
GmType::ValueType valueEqual;
GmType::ValueType valueNotEqual;
typedef opengm::interface::helper::copyValue<GmType::ValueType> copyFunctor;
typedef opengm::interface::helper::forFirstValue<copyFunctor> copyValue;
typedef opengm::interface::helper::getDataFromMXArray<copyValue> coppyPottsNFunctionValues;
{
copyFunctor copy(&valueEqual);
copyValue functor(copy);
coppyPottsNFunctionValues()(functor, mxGetProperty(prhs[1], 0, "valueEqual"));
}
{
copyFunctor copy(&valueNotEqual);
copyValue functor(copy);
coppyPottsNFunctionValues()(functor, mxGetProperty(prhs[1], 0, "valueNotEqual"));
}
// create function
opengm::interface::MatlabModelType::PottsNFunction function(shape.begin(), shape.end(), valueEqual, valueNotEqual);
// add function to model
functionID = gm.addFunction(function);
} else if(mxIsClass(prhs[1], "openGMPottsGFunction")) {
// copy values
mxArray* functionValues = mxGetProperty(prhs[1], 0, "values");
std::vector<GmType::ValueType> values(mxGetNumberOfElements(functionValues));
typedef opengm::interface::helper::copyValue<GmType::ValueType, std::vector<GmType::ValueType>::iterator> copyFunctor;
typedef opengm::interface::helper::forAllValues<copyFunctor> copyValues;
typedef opengm::interface::helper::getDataFromMXArray<copyValues> coppyPottsGValues;
copyFunctor valuesAdder(values.begin());
copyValues functor(valuesAdder);
coppyPottsGValues()(functor, functionValues);
// create function
opengm::interface::MatlabModelType::PottsGFunction function(shape.begin(), shape.end(), values.begin());
// add function to model
functionID = gm.addFunction(function);
} else if(mxIsClass(prhs[1], "openGMTruncatedSquaredDifferenceFunction")) {
// get values for TruncatedSquaredDifferenceFunction
GmType::ValueType truncation;
GmType::ValueType weight;
typedef opengm::interface::helper::copyValue<GmType::ValueType> copyFunctor;
typedef opengm::interface::helper::forFirstValue<copyFunctor> copyValue;
typedef opengm::interface::helper::getDataFromMXArray<copyValue> coppyPottsFunctionValues;
{
copyFunctor copy(&truncation);
copyValue functor(copy);
coppyPottsFunctionValues()(functor, mxGetProperty(prhs[1], 0, "truncation"));
}
{
copyFunctor copy(&weight);
copyValue functor(copy);
coppyPottsFunctionValues()(functor, mxGetProperty(prhs[1], 0, "weight"));
}
// create function
opengm::interface::MatlabModelType::TruncatedSquaredDifferenceFunction function(shape[0], shape[1], truncation, weight);
// add function to model
functionID = gm.addFunction(function);
} else if(mxIsClass(prhs[1], "openGMTruncatedAbsoluteDifferenceFunction")) {
// get values for PottsFunction
GmType::ValueType truncation;
GmType::ValueType weight;
typedef opengm::interface::helper::copyValue<GmType::ValueType> copyFunctor;
typedef opengm::interface::helper::forFirstValue<copyFunctor> copyValue;
typedef opengm::interface::helper::getDataFromMXArray<copyValue> coppyPottsFunctionValues;
{
copyFunctor copy(&truncation);
copyValue functor(copy);
coppyPottsFunctionValues()(functor, mxGetProperty(prhs[1], 0, "truncation"));
}
{
copyFunctor copy(&weight);
copyValue functor(copy);
coppyPottsFunctionValues()(functor, mxGetProperty(prhs[1], 0, "weight"));
}
// create function
opengm::interface::MatlabModelType::TruncatedAbsoluteDifferenceFunction function(shape[0], shape[1], truncation, weight);
// add function to model
functionID = gm.addFunction(function);
} else {
mexErrMsgTxt("Unsupported function class!");
}
// return function id
const size_t maxSize = sizeof(GmType::FunctionIdentifier::FunctionIndexType) > sizeof(GmType::FunctionIdentifier::FunctionTypeIndexType) ? sizeof(GmType::FunctionIdentifier::FunctionIndexType) : sizeof(GmType::FunctionIdentifier::FunctionTypeIndexType);
if(maxSize > 8) {
mexErrMsgTxt("Unsupported size of opengm IndexType!");
} else if(maxSize > 4) {
plhs[0] = mxCreateNumericMatrix(1, 2, mxUINT64_CLASS, mxREAL);
reinterpret_cast<uint64_T*>(mxGetData(plhs[0]))[0] = static_cast<uint64_T>(functionID.getFunctionIndex());
reinterpret_cast<uint64_T*>(mxGetData(plhs[0]))[1] = static_cast<uint64_T>(functionID.getFunctionType());
} else if(maxSize > 2) {
plhs[0] = mxCreateNumericMatrix(1, 2, mxUINT32_CLASS, mxREAL);
reinterpret_cast<uint32_T*>(mxGetData(plhs[0]))[0] = static_cast<uint32_T>(functionID.getFunctionIndex());
reinterpret_cast<uint32_T*>(mxGetData(plhs[0]))[1] = static_cast<uint32_T>(functionID.getFunctionType());
} else if(maxSize > 1) {
plhs[0] = mxCreateNumericMatrix(1, 2, mxUINT16_CLASS, mxREAL);
reinterpret_cast<uint16_T*>(mxGetData(plhs[0]))[0] = static_cast<uint16_T>(functionID.getFunctionIndex());
reinterpret_cast<uint16_T*>(mxGetData(plhs[0]))[1] = static_cast<uint16_T>(functionID.getFunctionType());
} else {
plhs[0] = mxCreateNumericMatrix(1, 2, mxUINT8_CLASS, mxREAL);
reinterpret_cast<uint8_T*>(mxGetData(plhs[0]))[0] = static_cast<uint8_T>(functionID.getFunctionIndex());
reinterpret_cast<uint8_T*>(mxGetData(plhs[0]))[1] = static_cast<uint8_T>(functionID.getFunctionType());
}
}
|
49e345312a4e4101af368898dabec50d2c1547bf | e4355967555857fd536787dce39ca30426ffa702 | /867/Game Platform/小游戏/港式五张/游戏客户端/GoldControl.h | b3bc0f98e30028f5a7b11afe5d2dfcf192ba13f9 | [] | no_license | herox25000/oathx-ogrex-editor | f0fd6044f8065db9cb50a80376e52f502734e877 | f645c7997f27e11a9063a0d352accd98a474cef1 | refs/heads/master | 2020-12-24T14:35:34.912603 | 2013-08-24T06:20:06 | 2013-08-24T06:20:06 | 32,935,652 | 6 | 9 | null | null | null | null | GB18030 | C++ | false | false | 1,758 | h | GoldControl.h | #ifndef GOLD_CONTROL_HEAD_FILE
#define GOLD_CONTROL_HEAD_FILE
#pragma once
#include "Stdafx.h"
//////////////////////////////////////////////////////////////////////////
//金币控制
class CGoldControl : public CWnd
{
//变量定义
protected:
__int64 m_lCellScore; //单元注
LONG m_lTimes; //倍数
//位置变量
protected:
CPoint m_BenchmarkPos; //基准位置
//资源变量
protected:
CSkinImage m_ImageBack; //背景资源
CSkinImage m_ImageNumber; //数字资源
//按钮控件
protected:
CSkinButton m_btAddTimes1; //1倍
CSkinButton m_btAddTimes2; //2倍
CSkinButton m_btAddTimes3; //3倍
CSkinButton m_btAddTimes4; //4倍
CSkinButton m_btCancel; //取消
//函数定义
public:
//构造函数
CGoldControl();
//析构函数
virtual ~CGoldControl();
//功能函数
public:
//设置筹码
void SetCellScore(__int64 lCellSocre);
//设置位置
void SetBenchmarkPos(int nXPos, int nYPos);
//设置倍数
void SetAddTimes( LONG lTimes );
//获取倍数
LONG GetAddTimes() { return m_lTimes; }
//内部函数
private:
//调整控件
void RectifyControl();
//消息映射
protected:
//重画函数
afx_msg void OnPaint();
//创建控件
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//1倍按钮
afx_msg void OnBnAddTimes1();
//2倍按钮
afx_msg void OnBnAddTimes2();
//3倍按钮
afx_msg void OnBnAddTimes3();
//4倍按钮
afx_msg void OnBnAddTimes4();
//取消
afx_msg void OnBnCancel();
DECLARE_MESSAGE_MAP()
};
//////////////////////////////////////////////////////////////////////////
#endif |
f642cd5a97a43e8641da4458d2960857faca8de2 | d764192cd97d15a22af8da54f87d548ee94ed483 | /dlib/strong_type.hpp | ff29602046d7976d0d48ce317452ade237f46cbb | [] | no_license | dekibeki/dlib | b9df683fe4b8f6f03724423d3916d1a93dfa41bf | c449b33ed7df98522436ea2b95cff5fa58ce9838 | refs/heads/master | 2021-07-08T21:48:58.788048 | 2020-07-03T14:05:14 | 2020-07-03T14:05:14 | 140,269,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,748 | hpp | strong_type.hpp | #pragma once
#include <type_traits>
#include <dlib/meta.hpp>
/*
Used for creating strong types.
All operations including construction are disallowed be default, and must be enabled
by specifying them in the template args. A tag to make each template a unique type can be given by any type, as these allowed operations are pulled out of the variadic template args.
*/
namespace dlib::strong_type {
namespace impl {
/*
This is used to allow one option to allow multiple operations.
e.g. <A, B, ExpandTo<C, ExpandTo<D, E>>> is seen as <A, B, C, D, E> when looking
for allowed operations
*/
template<typename ...>
struct ExpandTo;
/*
*/
template<typename ...Args>
using NestedExpandTo = ChangeContainer<ExpandTo, ExpandEx<ExpandTo, Args...>>;
/* Forward decl of the impl version with no variadic*/
template<typename Type, typename Options>
struct Strong_type;
template<typename T>
constexpr bool is_valid_impl(void*) {
return false;
}
template<typename T, typename = typename T::Strong_type_tag>
constexpr bool is_valid_impl(nullptr_t) {
return true;
}
struct Wrap_escape_hatch {};
constexpr Wrap_escape_hatch wrap_escape_hatch{};
}
template<typename T>
constexpr auto is_strong_type = impl::is_valid_impl<std::decay_t<T>>(nullptr);
namespace impl {
/*Declaration of a class to pull type and options out of a strong value*/
template<typename T, bool is_strong_type = is_strong_type<T>>
struct Strong_type_info;
/*Partial spec to pull type and options out of a strong value*/
template<typename T>
struct Strong_type_info<T, true> {
using Type = typename std::decay_t<T>::Type;
using Options = typename std::decay_t<T>::Options;
};
/*If it isn't a strong_type, just return what it is*/
template<typename T>
struct Strong_type_info<T, false> {
using Type = std::decay_t<T>;
using Options = List<>;
};
}
/* Helper typedef to get type of a strong value*/
template<typename T>
using Strong_type_type = typename impl::Strong_type_info<T>::Type;
/* Helper typedef to get the options of a strong value*/
template<typename T>
using Strong_type_options = typename impl::Strong_type_info<T>::Options;
/*Unwraps a strong value if it is one, otherwise returns t*/
template<typename T>
constexpr decltype(auto) unwrap(T&& t) noexcept {
if constexpr (is_strong_type<T>) {
return t.get();
} else {
return std::forward<T>(t);
}
}
/*
Gets the unwrapped (the type if its a strong value, otherwise T) type of T
*/
template<typename T>
using Unwrap = decltype(unwrap(std::declval<T>()));
template<typename T>
constexpr T wrap(Strong_type_type<T> val) noexcept {
return T{ impl::wrap_escape_hatch, std::move(val) };
}
namespace defaults {
/*Default conversion operator functor*/
template<typename To>
struct Convert_to {
template<typename From, typename = decltype(static_cast<To>(std::declval<From>()))>
To operator()(From&& t) {
return static_cast<To>(t);
}
};
/*Default < operator functor*/
struct Less {
template<typename L, typename R, typename = decltype(std::declval<L>() < std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l < r;
}
};
/*Default > operator functor*/
struct Greater {
template<typename L, typename R, typename = decltype(std::declval<L>() > std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l > r;
}
};
/*Default <= operator functor*/
struct Less_equal {
template<typename L, typename R, typename = decltype(std::declval<L>() <= std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l <= r;
}
};
/*Default >= operator functor*/
struct Greater_equal {
template<typename L, typename R, typename = decltype(std::declval<L>() >= std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l >= r;
}
};
/*Default == operator functor*/
struct Equal {
template<typename L, typename R, typename = decltype(std::declval<L>() == std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l == r;
}
};
/*Default != operator functor*/
struct Not_equal {
template<typename L, typename R, typename = decltype(std::declval<L>() != std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l != r;
}
};
/* Default = operator functor*/
struct Assign {
template<typename L, typename R, typename = decltype(std::declval<L>() = std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l = r;
}
};
/*Default + operator functor*/
struct Add {
template<typename L, typename R, typename = decltype(std::declval<L>() + std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l + r;
}
};
/*Default += operator functor*/
struct Add_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() += std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l += r;
}
};
/*Default - operator functor*/
struct Sub {
template<typename L, typename R, typename = decltype(std::declval<L>() - std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l - r;
}
};
/*Default -= operator functor*/
struct Sub_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() -= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l -= r;
}
};
/*Default * operator functor*/
struct Mult {
template<typename L, typename R, typename = decltype(std::declval<L>() * std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l * r;
}
};
/*Default *= operator functor*/
struct Mult_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() *= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l *= r;
}
};
/*Default / operator functor*/
struct Div {
template<typename L, typename R, typename = decltype(std::declval<L>() / std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l / r;
}
};
/*Default /= operator functor*/
struct Div_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() /= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l /= r;
}
};
/*Default % operator functor*/
struct Mod {
template<typename L, typename R, typename = decltype(std::declval<L>() % std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l % r;
}
};
/*Default %= operator functor*/
struct Mod_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() %= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l %= r;
}
};
/*Default & operator functor*/
struct Binary_and {
template<typename L, typename R, typename = decltype(std::declval<L>() & std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l & r;
}
};
/*Default &= operator functor*/
struct Binary_and_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() &= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l &= r;
}
};
/*Default | operator functor*/
struct Binary_or {
template<typename L, typename R, typename = decltype(std::declval<L>() | std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l | r;
}
};
/*Default |= operator functor*/
struct Binary_or_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() |= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l |= r;
}
};
/*Default ^ operator functor*/
struct Xor {
template<typename L, typename R, typename = decltype(std::declval<L>() ^ std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l ^ r;
}
};
/*Default ^= operator functor*/
struct Xor_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() ^= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l ^= r;
}
};
/*Default << operator functor*/
struct Left_shift {
template<typename L, typename R, typename = decltype(std::declval<L>() << std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l << r;
}
};
/*Default <<= operator functor*/
struct Left_shift_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() <<= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l <<= r;
}
};
/*Default >> operator functor*/
struct Right_shift {
template<typename L, typename R, typename = decltype(std::declval<L>() >> std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l >> r;
}
};
/*Default >>= operator functor*/
struct Right_shift_assign {
template<typename L, typename R, typename = decltype(std::declval<L>() >>= std::declval<R>())>
constexpr decltype(auto) operator()(L&&l, R&& r) const {
return l >>= r;
}
};
/*Default ~ operator functor*/
struct Binary_not {
template<typename L, typename = decltype(~std::declval<L>())>
constexpr decltype(auto) operator()(L&&l) const {
return ~l;
}
};
/*Default unary + (e.g. +strongType) operator functor*/
struct Unary_plus {
template<typename L, typename = decltype(+std::declval<L>())>
constexpr decltype(auto) operator()(L&&l) const {
return +l;
}
};
/*Default unary - (e.g. -strongType) operator functor*/
struct Unary_minus {
template<typename L, typename = decltype(-std::declval<L>())>
constexpr decltype(auto) operator()(L&&l) const {
return -l;
}
};
/*Default [] operator functor*/
struct Subscript {
template<typename L, typename R, typename = decltype(std::declval<L>()[std::declval<R>()])>
constexpr decltype(auto) operator()(L&& l, R && r) const {
return l[r];
}
};
/*Default unary * / indirection (e.g. *strongType) operator functor */
struct Indirection {
template<typename L, typename = decltype(*std::declval<L>())>
constexpr decltype(auto) operator()(L&& l) const {
return *l;
}
};
/*Default pre ++ (e.g. ++strongType) operator functor*/
struct Pre_increment {
template<typename L, typename = decltype(++std::declval<L>())>
constexpr decltype(auto) operator()(L&&l) const {
return ++l;
}
};
/*Default pre -- (e.g. --strongType) operator functor*/
struct Pre_decrement {
template<typename L, typename = decltype(--std::declval<L>())>
constexpr decltype(auto) operator()(L&&l) const {
return --l;
}
};
/*Default post ++ (e.g. strongType++) operator functor*/
struct Post_increment {
template<typename L, typename = decltype(std::declval<L>()++)>
constexpr decltype(auto) operator()(L&&l) const {
return l++;
}
};
/*Default post -- (e.g. strongType--) operator functor*/
struct Post_decrement {
template<typename L, typename = decltype(std::declval<L>()--)>
constexpr decltype(auto) operator()(L&&l) const {
return l--;
}
};
/*Default ! operator functor*/
struct Logical_not {
template<typename L, typename = decltype(!std::declval<L>())>
constexpr decltype(auto) operator()(L&& l) const {
return !l;
}
};
/*Default && operator functor*/
struct Logical_and {
template<typename L, typename R, typename = decltype(std::declval<L>() && std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l && r;
}
};
/*Default || operator functor*/
struct Logical_or {
template<typename L, typename R, typename = decltype(std::declval<L>() || std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l || r;
}
};
/*Default & operator functor*/
struct Address_of {
template<typename L, typename = decltype(&std::declval<L>())>
constexpr decltype(auto) operator()(L&& l) const {
return &l;
}
};
/*Default -> operator functor*/
struct Member_of_pointer {
template<typename L, typename = std::enable_if_t<std::is_pointer_v<std::decay_t<L>>>>
constexpr decltype(auto) operator()(L&& l) const {
return l;
}
template<typename L, typename = std::enable_if_t<!std::is_pointer_v<std::decay_t<L>>>, typename = decltype(std::declval<L>().operator->())>
constexpr decltype(auto) operator()(L&& l) const {
return l.operator->();
}
};
/*Default () operator functor*/
struct Function_call {
template<typename L, typename ...Rest, typename = std::enable_if_t<std::is_invocable_v<L, Rest...>>>
constexpr decltype(auto) operator()(L&& l, Rest&&... rest) const {
return l(std::forward<Rest>(rest)...);
}
};
/*Default , operator functor*/
struct Comma {
template<typename L, typename R, typename = decltype(std::declval<L>(), std::declval<R>())>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return l, r;
}
};
}
/*
These allow or disallow operators based on type signatures.
e.g. An int + char is allowed in C++, but not having an appropriate filter disallows it
*/
namespace filters {
template<typename Operator, typename T>
decltype(auto) operator_forwarder(T&& t) {
return Operator{}(std::forward<T>(t));
}
template<typename Operator, typename L, typename R>
decltype(auto) operator_forwarder(L&& l, R&& r) {
return Operator{}(std::forward<L>(l), std::forward<R>(r));
}
/*Allows operations with a specific type on the right of the operator*/
template<typename Operator, typename Right>
struct Right_is {
private:
template<typename L, typename R>
static constexpr bool enabled_ = std::is_same_v<std::decay_t<R>, Right>
&& std::is_invocable_v<Operator, L, R>;
public:
template<typename L, typename R, typename = std::enable_if_t<enabled_<L, R>>>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return operator_forwarder<Operator>(std::forward<L>(l), std::forward<R>(r));
}
};
/*Allows operations with a specific type on the left of the operator*/
template<typename Operator, typename Left>
struct Left_is {
private:
template<typename L, typename R>
static constexpr bool enabled_ = std::is_same_v<std::decay_t<L>, Left>
&& std::is_invocable_v<Operator, L, R>;
public:
template<typename L, typename R, typename = std::enable_if_t<enabled_<L, R>>>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return operator_forwarder<Operator>(std::forward<L>(l), std::forward<R>(r));
}
};
/*Allows operations if both types are the same (same type as self)*/
template<typename Operator>
struct Both_same {
private:
template<typename L, typename R>
static constexpr bool enabled_ = std::is_same_v<std::decay_t<L>, std::decay_t<R>>
&& std::is_invocable_v<Operator, L, R>;
public:
template<typename L, typename R, typename = std::enable_if_t<enabled_<L, R>>>
constexpr decltype(auto) operator()(L&& l, R&& r) const {
return operator_forwarder<Operator>(std::forward<L>(l), std::forward<R>(r));
}
};
/*Allow operations with specific types*/
template<typename Operator, typename ...Args>
struct Variadic_is {
private:
template<typename L, typename ...GivenArgs>
static constexpr bool enabled_ =
std::is_same_v<List<std::decay_t<Args>...>, List<std::decay_t<GivenArgs>...>>
&& std::is_invocable_v<Operator, Args...>;
public:
template<typename L, typename ...GivenArgs, typename = std::enable_if_t<enabled_<L, GivenArgs...>>>
constexpr decltype(auto) operator()(L&& l, GivenArgs&&... rest) const {
return Operator{}(std::forward<L>(l), std::forward<GivenArgs>(rest)...);
}
};
}
/*
These are used to change the return values of the operators.
E.g. + should probably rewrap the result as the leftmost strong value while ()
should probably return as is
*/
namespace wrapping {
/*Wrap the output in a strongvalue the same as the ith type*/
template<typename Nested, size_t i>
struct Wrap_as_ith {
template<typename ...Args>
static constexpr bool enabled = std::is_invocable_v<Nested, Args...>;
template<typename ...Args, typename = std::enable_if_t<enabled<Args...>>>
constexpr decltype(auto) operator()(Args&&... args) const {
return wrap<GetEx<i, std::decay_t<Args>...>>(
Nested{}(std::forward<Args>(args)...));
}
};
template<typename Nested>
using Wrap_as_first = Wrap_as_ith<Nested, 0>;
template<typename Nested>
using Wrap_as_second = Wrap_as_ith<Nested, 1>;
/*Wrap the result as a Wrapping*/
template<typename Nested, typename Wrapping>
struct Static_wrapping {
template<typename ...Args>
static constexpr bool enabled = std::is_invocable_v<Nested, Args...>;
template<typename ...Args, typename = std::enable_if_t<enabled<Args...>>>
constexpr decltype(auto) operator()(Args&&... args) const {
return wrap<Wrapping>(Nested{}(std::forward<Args>(args)...));
}
};
/*Returns the ith parameter as the result*/
template<typename Nested, size_t i>
struct Return_ith {
template<typename ...Args>
static constexpr bool enabled = std::is_invocable_v<Nested, Args...>;
template<typename ...Args, typename = std::enable_if_t<enabled<Args...>>>
constexpr decltype(auto) operator()(Args&&... args) {
Nested{}(std::forward<Args>(args)...);
return get_ith_<i>(std::forward<Args>(args)...);
}
private:
template<size_t i, typename First, typename ...Rest>
constexpr decltype(auto) get_ith_(First&& first, Rest&&... rest) {
if constexpr (i == 0) {
return std::forward<First>(first);
} else {
return get_ith_<i - 1>(std::forward<Rest>(rest)...);
}
}
};
template<typename Nested>
using Return_first = Return_ith<Nested, 0>;
template<typename Nested>
using Return_second = Return_ith<Nested, 1>;
template<typename Nested>
struct Unwrap_all {
template<typename ...Args>
static constexpr bool enabled = std::is_invocable_v<Nested, Unwrap<Args>...>;
template<typename ...Args, typename = std::enable_if_t<enabled<Args...>>>
constexpr decltype(auto) operator()(Args&&... args) const {
return Nested{}(unwrap(std::forward<Args>(args))...);
}
};
template<typename Nested>
struct Unwrap_first {
template<typename First, typename ...Rest>
static constexpr bool enabled = std::is_invocable_v<Nested, Unwrap<First>, Rest...>;
template<typename First, typename ...Rest, typename = std::enable_if_t<enabled<First, Rest...>>>
constexpr decltype(auto) operator()(First&& first, Rest&&... rest) const {
return Nested{}(unwrap(std::forward<First>(first)), std::forward<Rest>(rest)...);
}
};
}
namespace impl {
template<typename Functor>
struct Convert_to;
template<typename Functor>
struct Less;
template<typename Functor>
struct Greater;
template<typename Functor>
struct Less_equal;
template<typename Functor>
struct Greater_equal;
template<typename Functor>
struct Equal;
template<typename Functor>
struct Not_equal;
template<typename Functor>
struct Assign;
template<typename Functor>
struct Add;
template<typename Functor>
struct Add_assign;
template<typename Functor>
struct Sub;
template<typename Functor>
struct Sub_assign;
template<typename Functor>
struct Mult;
template<typename Functor>
struct Mult_assign;
template<typename Functor>
struct Div;
template<typename Functor>
struct Div_assign;
template<typename Functor>
struct Mod;
template<typename Functor>
struct Mod_assign;
template<typename Functor>
struct Binary_and;
template<typename Functor>
struct Binary_and_assign;
template<typename Functor>
struct Binary_or;
template<typename Functor>
struct Binary_or_assign;
template<typename Functor>
struct Xor;
template<typename Functor>
struct Xor_assign;
template<typename Functor>
struct Left_shift;
template<typename Functor>
struct Left_shift_assign;
template<typename Functor>
struct Right_shift;
template<typename Functor>
struct Right_shift_assign;
template<typename Functor>
struct Binary_not;
template<typename Functor>
struct Unary_plus;
template<typename Functor>
struct Unary_minus;
template<typename Functor>
struct Subscript;
template<typename Functor>
struct Indirection;
template<typename Functor>
struct Pre_increment;
template<typename Functor>
struct Post_increment;
template<typename Functor>
struct Pre_decrement;
template<typename Functor>
struct Post_decrement;
template<typename Functor>
struct Logical_not;
template<typename Functor>
struct Logical_and;
template<typename Functor>
struct Logical_or;
template<typename Functor>
struct Address_of;
template<typename Functor>
struct Member_of_pointer;
template<typename Functor>
struct Function_call;
template<typename Functor>
struct Comma;
/*An operator with no arguments (e.g. ->)*/
template<template<typename Functor> typename Holder, typename Default>
struct Nullary_op {
template<typename Functor>
using Ex = Holder<Functor>;
using Allow = Ex<Default>;
};
/*An operator with 1 arg (e.g. [], =)*/
template<template<typename Functor> typename Holder, typename Default>
struct Unary_op {
template<typename Functor>
using Ex = Holder<Functor>;
template<typename Arg>
using Allow = Ex<filters::Right_is<Default, Arg>>;
};
/*An operator with 1 arg, but either side (e.g. +)*/
template<template<typename Functor> typename Holder, typename Default>
struct Binary_op {
template<typename Functor>
using Ex = Holder<Functor>;
template<typename Right>
using LeftOf = Ex<filters::Right_is<Default, Right>>;
template<typename Left>
using RightOf = Ex<filters::Left_is<Default, Left>>;
using Self = Ex<filters::Both_same<Default>>;
};
/*An operator with a variadic number of args (e.g. ())*/
template<template<typename Functor> typename Holder, typename Default>
struct Variadic_op {
template<typename Functor>
using Ex = Holder<Functor>;
template<typename ...Args>
using Allow = Ex<filters::Variadic_is<Default, Args...>>;
};
}
/*Allows copy construction of the type*/
struct Copy;
/*Allows move construction of the type*/
struct Move;
/*Allows construction of the type with Types...*/
template<typename ...Types>
struct Construct;
/*Removes the destructor. Destructor is the only operation allows by default*/
struct NoDestructor;
/*Allows conversion to To*/
template<typename To>
using Convert_to = impl::Convert_to<defaults::Convert_to<To>>;
/*<*/
using Less = impl::Binary_op<impl::Less,
wrapping::Unwrap_all<defaults::Less>>;
/*>*/
using Greater = impl::Binary_op<impl::Greater,
wrapping::Unwrap_all<defaults::Greater>>;
/*<=*/
using Less_equal = impl::Binary_op<impl::Less_equal,
wrapping::Unwrap_all<defaults::Less_equal>>;
/*>=*/
using Greater_equal = impl::Binary_op<impl::Greater_equal,
wrapping::Unwrap_all<defaults::Greater_equal>>;
/*==*/
using Equal = impl::Binary_op<impl::Equal,
wrapping::Unwrap_all<defaults::Equal>>;
/*!=*/
using Not_equal = impl::Binary_op<impl::Not_equal,
wrapping::Unwrap_all<defaults::Not_equal>>;
/*=*/
using Assign = impl::Unary_op<impl::Assign,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Assign>>>;
/*+*/
using Add = impl::Binary_op<impl::Add,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Add>>>;
/*+=*/
using Add_assign = impl::Binary_op<impl::Add_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Add_assign>>>;
/*-*/
using Sub = impl::Binary_op<impl::Sub,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Sub>>>;
/*-=*/
using Sub_assign = impl::Binary_op<impl::Sub_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Sub_assign>>>;
/***/
using Mult = impl::Binary_op<impl::Mult,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Mult>>>;
/**=*/
using Mult_assign = impl::Binary_op<impl::Mult_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Mult_assign>>>;
/*/*/
using Div = impl::Binary_op<impl::Div,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Div>>>;
/*/=*/
using Div_assign = impl::Binary_op<impl::Div_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Div_assign>>>;
/*%*/
using Mod = impl::Binary_op<impl::Mod,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Mod>>>;
/*%=*/
using Mod_assign = impl::Binary_op<impl::Mod_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Mod_assign>>>;
/*&*/
using Binary_and = impl::Binary_op<impl::Binary_and,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Binary_and>>>;
/*&=*/
using Binary_and_assign = impl::Binary_op<impl::Binary_and_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Binary_and_assign>>>;
/*|*/
using Binary_or = impl::Binary_op<impl::Binary_or,
wrapping::Wrap_as_first < wrapping::Unwrap_all<defaults::Binary_or>>>;
/*|=*/
using Binary_or_assign = impl::Binary_op<impl::Binary_or_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Binary_or_assign>>>;
/*^*/
using Xor = impl::Binary_op<impl::Xor,
wrapping::Wrap_as_first < wrapping::Unwrap_all< defaults::Xor>>>;
/*^=*/
using Xor_assign = impl::Binary_op<impl::Xor_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Xor_assign>>>;
/*<<*/
using Left_shift = impl::Binary_op<impl::Left_shift,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Left_shift>>>;
/*<<=*/
using Left_shift_assign = impl::Binary_op<impl::Left_shift_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Left_shift_assign>>>;
/*>>*/
using Right_shift = impl::Binary_op<impl::Right_shift,
wrapping::Wrap_as_first < wrapping::Unwrap_all< defaults::Right_shift>>>;
/*>>=*/
using Right_shift_assign = impl::Binary_op<impl::Right_shift_assign,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Right_shift_assign>>>;
/*~*/
using Binary_not = impl::Nullary_op<impl::Binary_not,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Binary_not>>>;
/*+*/
using Unary_plus = impl::Nullary_op<impl::Unary_plus,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Unary_plus>>>;
/*-*/
using Unary_minus = impl::Nullary_op<impl::Unary_minus,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Unary_minus>>>;
/*[]*/
using Subscript = impl::Unary_op<impl::Subscript,
wrapping::Unwrap_all<defaults::Subscript>>;
/*++*/
using Pre_increment = impl::Nullary_op<impl::Pre_increment,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Pre_increment>>>;
/*--*/
using Pre_decrement = impl::Nullary_op<impl::Pre_decrement,
wrapping::Return_first<wrapping::Unwrap_all<defaults::Pre_decrement>>>;
/*++*/
using Post_increment = impl::Nullary_op<impl::Post_increment,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Post_increment>>>;
/*--*/
using Post_decrement = impl::Nullary_op<impl::Post_decrement,
wrapping::Wrap_as_first<wrapping::Unwrap_all<defaults::Post_decrement>>>;
/*!*/
using Logical_not = impl::Nullary_op<impl::Logical_not,
wrapping::Unwrap_all<defaults::Logical_not>>;
/*&&*/
using Logical_and = impl::Binary_op<impl::Logical_and,
wrapping::Unwrap_all<defaults::Logical_and>>;
/*||*/
using Logical_or = impl::Binary_op<impl::Logical_or,
wrapping::Unwrap_all<defaults::Logical_or>>;
/***/
using Indirection = impl::Nullary_op<impl::Indirection,
wrapping::Unwrap_all<defaults::Indirection>>;
/*&*/
using Address_of = impl::Nullary_op<impl::Address_of,
wrapping::Unwrap_all<defaults::Address_of>>;
/*->*/
using Member_of_pointer = impl::Nullary_op<impl::Member_of_pointer,
wrapping::Unwrap_all<defaults::Member_of_pointer>>;
//NYI using PointerToMember_of_pointer = impl::Unary_op<impl::PointerToMember_of_pointer>;
/*()*/
using Function_call = impl::Variadic_op<impl::Function_call,
wrapping::Unwrap_first<defaults::Function_call>>;
/*,*/
using Comma = impl::Binary_op<impl::Comma,
wrapping::Return_second<wrapping::Unwrap_all<defaults::Comma>>>;
using Orderable = impl::NestedExpandTo<Less::Self, Greater::Self, Less_equal::Self, Greater_equal::Self, Equal::Self, Not_equal::Self>;
using Regular = impl::NestedExpandTo<Construct<>, Copy, Move, Orderable>;
using Group = impl::NestedExpandTo<Add::Self, Add_assign::Self, Sub::Self, Sub_assign::Self>;
using Field = impl::NestedExpandTo<Add::Self, Sub::Self, Mult::Self, Div::Self, Add_assign::Self, Sub_assign::Self, Mult_assign::Self, Div_assign::Self>;
namespace impl {
/*SFINAE for allowing a constructor overload*/
template<typename ArgsConstructable, typename Options>
using AllowConstructor = std::enable_if_t <contains<ArgsConstructable, Options>>;
/*helper template struct for disallowing destructors*/
template<bool>
struct DisallowDestructorImpl;
/*if we should not disallow, nothing*/
template<>
struct DisallowDestructorImpl<false> {
};
/*If we should disallow destruction, delete the destructor*/
template<>
struct DisallowDestructorImpl<true> {
~DisallowDestructorImpl() = delete;
};
/*Helper typedef to choose the appropriate DisallowDestructorImpl specialization*/
template<typename Options>
using DisallowDestructor =
DisallowDestructorImpl<contains<NoDestructor, Options>>;
/*Helper template struct for allowing copy*/
template<bool>
struct AllowCopyImpl;
/*If we should allow, nothing special*/
template<>
struct AllowCopyImpl<true> {
};
/*If we shouldn't allow copying, delete copying*/
template<>
struct AllowCopyImpl<false> {
AllowCopyImpl() = default;
AllowCopyImpl(AllowCopyImpl const&) = delete;
AllowCopyImpl(AllowCopyImpl&&) = default;
AllowCopyImpl& operator=(AllowCopyImpl const&) = delete;
AllowCopyImpl& operator=(AllowCopyImpl&&) = default;
};
/*Helper typedef to choose the appropriate AllowCopyImpl specialization*/
template<typename Options>
using AllowCopy = AllowCopyImpl<contains<Copy, Options>>;
/*Helper template struct for allowing move*/
template<bool>
struct AllowMoveImpl;
/*if we should allow, nothing special*/
template<>
struct AllowMoveImpl<true> {
};
/*If we shouldn't allow moving, delete moving*/
template<>
struct AllowMoveImpl<false> {
AllowMoveImpl() = default;
AllowMoveImpl(AllowMoveImpl const&) = default;
AllowMoveImpl(AllowMoveImpl&&) = delete;
AllowMoveImpl& operator=(AllowMoveImpl const&) = default;
AllowMoveImpl& operator=(AllowMoveImpl&&) = delete;
};
/*Helper typedef to choose the appropriate AllowMoveImpl specialization*/
template<typename Options>
using AllowMove = AllowMoveImpl<contains<Move, Options>>;
/*A helper to filter functors by type, Value is true_type if T is Option<SomethingElse>*/
template<template<typename> typename Option>
struct GetFunctorsHelper {
template<typename T>
using Value = ToIntegralConstant<isWrappedBy<Option, T>>;
};
/*Get a list of all functors of a particular option in options*/
template<template<typename> typename Option, typename Options>
using GetFunctors = Transform<
First,
Filter<GetFunctorsHelper<Option>::template Value, Options>>;
template<typename Target, typename Type>
struct AllowConversionToHelper {
template<typename T>
using Value = std::is_same<
std::invoke_result_t<T, Type>,
Target>;
};
template<typename Target, typename Type, typename Options>
using AllowConversionTo = First<Filter<AllowConversionToHelper<Target, Type>::template Value, GetFunctors<Convert_to, Options>>>;
template<typename ...Args>
struct GetMatchingFunctorHelper {
template<typename Functor>
using Value = std::is_invocable<Functor, Args...>;
};
template<template<typename> typename Option, typename ...Ts>
using GetFunctor = First<Filter<GetMatchingFunctorHelper<Ts...>::template Value, GetFunctors<Option, Concat<Strong_type_options<Ts>...>>>>;
template<typename L, typename R, typename Functor = GetFunctor<Less, L, R>>
decltype(auto) operator<(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Greater, L, R>>
decltype(auto) operator>(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Less_equal, L, R>>
decltype(auto) operator<=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Greater_equal, L, R>>
decltype(auto) operator>=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Not_equal, L, R>>
decltype(auto) operator!=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Equal, L, R>>
decltype(auto) operator==(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Add, L, R>>
decltype(auto) operator+(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Add_assign, L, R>>
decltype(auto) operator+=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Sub, L, R>>
decltype(auto) operator-(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Sub_assign, L, R>>
decltype(auto) operator-=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Mult, L, R>>
decltype(auto) operator*(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Mult_assign, L, R>>
decltype(auto) operator*=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Div, L, R>>
decltype(auto) operator/(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Div_assign, L, R>>
decltype(auto) operator/=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Mod, L, R>>
decltype(auto) operator%(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Mod_assign, L, R>>
decltype(auto) operator%=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Binary_and, L, R>>
decltype(auto) operator&(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Binary_and_assign, L, R>>
decltype(auto) operator&=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Binary_or, L, R>>
decltype(auto) operator|(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Binary_or_assign, L, R>>
decltype(auto) operator|=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Xor, L, R>>
decltype(auto) operator^(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Xor_assign, L, R>>
decltype(auto) operator^=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Left_shift, L, R>>
decltype(auto) operator<<(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Left_shift_assign, L, R>>
decltype(auto) operator<<=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Right_shift, L, R>>
decltype(auto) operator>>(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Right_shift_assign, L, R>>
decltype(auto) operator>>=(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename Functor = GetFunctor<Binary_not, L>>
decltype(auto) operator~(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Unary_plus, L>>
decltype(auto) operator+(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Unary_minus, L>>
decltype(auto) operator-(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Pre_increment, L>>
decltype(auto) operator++(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Pre_decrement, L>>
decltype(auto) operator--(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Post_increment, L>>
decltype(auto) operator++(L&& l, int) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Post_decrement, L>>
decltype(auto) operator--(L&& l, int) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Logical_not, L>>
decltype(auto) operator!(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename R, typename Functor = GetFunctor<Logical_and, L, R>>
decltype(auto) operator&&(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename R, typename Functor = GetFunctor<Logical_or, L, R>>
decltype(auto) operator||(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename L, typename Functor = GetFunctor<Indirection, L>>
decltype(auto) operator*(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename Functor = GetFunctor<Address_of, L>>
decltype(auto) operator&(L&& l) {
return Functor{}(std::forward<L>(l));
}
template<typename L, typename R, typename Functor = GetFunctor<Comma, L, R>>
decltype(auto) operator,(L&& l, R&& r) {
return Functor{}(std::forward<L>(l), std::forward<R>(r));
}
template<typename Type_, typename Options_>
struct Strong_type :
private DisallowDestructor<Options_>,
private AllowCopy<Options_>,
private AllowMove<Options_> {
public:
using Strong_type_tag = Strong_type;
using Type = Type_;
using Options = Options_;
constexpr Strong_type(Wrap_escape_hatch, Type val) noexcept :
val_{ std::move(val) } {
}
template<typename ...Args, typename = AllowConstructor<Construct<Args...>, Options>>
explicit Strong_type(Args&&... args) :
val_{ std::forward<Args>(args)... } {
}
Strong_type(Strong_type&& t) = default;
Strong_type(Strong_type const& t) = default;
Strong_type& operator=(Strong_type&& t) = default;
Strong_type& operator=(Strong_type const& t) = default;
template<typename T, typename Functor = GetFunctor<Assign, Strong_type&, T>>
decltype(auto) operator=(T&& t) {
return Functor{}(*this, std::forward<T>(t));
}
template<typename T, typename Functor = GetFunctor<Assign, Strong_type const&, T>>
decltype(auto) operator=(T&& t) const {
return Functor{}(*this, std::forward<T>(t));
}
template<typename T, typename Functor = AllowConversionTo<T, Type&, Options>>
explicit operator T() {
return Functor{}(val_);
}
template<typename T, typename Functor = AllowConversionTo<T, Type const&, Options>>
explicit operator T() const {
return Functor{}(val_);
}
template<typename T, typename Functor = GetFunctor<Subscript, Strong_type&, T>>
decltype(auto) operator[](T&& t) {
return Functor{}(*this, std::forward<T>(t));
}
template<typename T, typename Functor = GetFunctor<Subscript, Strong_type const&, T>>
decltype(auto) operator[](T&& t) const {
return Functor{}(*this, std::forward<T>(t));
}
template<typename T = Strong_type & , typename Functor = GetFunctor<Member_of_pointer, T>>
decltype(auto) operator->() {
return Functor{}(*this);
}
template<typename T = Strong_type const&, typename Functor = GetFunctor<Member_of_pointer, T>>
decltype(auto) operator->() const {
return Functor{}(*this);
}
template<typename ...Args, typename Functor = GetFunctor<Function_call, Strong_type&, Args...>>
decltype(auto) operator()(Args&&... args) {
return Functor{}(*this, std::forward<Args>(args)...);
}
template<typename ...Args, typename Functor = GetFunctor<Function_call, Strong_type const&, Args...>>
decltype(auto) operator()(Args&&... args) const {
return Functor{}(*this, std::forward<Args>(args)...);
}
template<typename L, typename R, typename Functor>
friend decltype(auto) operator<(L&& l, R&& r);
template<typename L, typename R, typename Functor>
friend decltype(auto) operator>(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator<=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator>=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator!=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator==(L&& l, R&& r);
template<typename L, typename R, typename Functor>
friend decltype(auto) operator+(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator+=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator-(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator-=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator*(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator*=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator/(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator/=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator%(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator%=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator&(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator&=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator|(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator|=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator^(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator^=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator<<(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator<<=(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator>>(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator>>=(L&& l, R&& r) ;
template<typename L, typename Functor>
friend decltype(auto) operator~(L&& l) ;
template<typename L, typename Functor>
friend decltype(auto) operator+(L&& l) ;
template<typename L, typename Functor>
friend decltype(auto) operator-(L&& l) ;
template<typename L, typename Functor>
friend decltype(auto) operator++(L&& l) ;
template<typename L, typename Functor>
friend decltype(auto) operator--(L&& l) ;
template<typename L, typename Functor>
friend decltype(auto) operator++(L&& l, int) ;
template<typename L, typename Functor>
friend decltype(auto) operator--(L&& l, int) ;
template<typename L, typename Functor>
friend decltype(auto) operator!(L&& l) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator&&(L&& l, R&& r) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator||(L&& l, R&& r) ;
template<typename L, typename Functor>
friend decltype(auto) operator*(L&& l) ;
template<typename L, typename Functor>
friend decltype(auto) operator&(L&& l) ;
template<typename L, typename R, typename Functor>
friend decltype(auto) operator,(L&& l, R&& r) ;
Type& get() noexcept {
return val_;
}
Type const& get() const noexcept {
return val_;
}
private:
Type val_;
};
}
template<typename Type, typename ...Options>
using Strong_type = impl::Strong_type<Type, ExpandEx<impl::ExpandTo, Options...>>;
struct Strong_type_hash {
template<typename T, typename = std::enable_if_t<is_strong_type<T>>, typename = std::enable_if_t<std::is_invocable_v<std::hash<Strong_type_type<T>>,Strong_type_type<T> const&>>>
std::size_t operator()(T const& t) const noexcept {
std::hash<Strong_type_type<T>> hasher;
return hasher(unwrap(t));
}
};
struct Strong_type_eq {
template<typename T, typename = std::enable_if_t<is_strong_type<T>>>
bool operator()(T const& v1, T const& v2) const noexcept {
return (v1 == v2);
}
};
} |
aa4236cbe0f331cf4b19a2991ed2af670a98ddd6 | a3332df18fb0be30d1f31ac9f4aa22a18c7cb1e8 | /sklad/Item.hpp | 8cc47c20cc1340739868f02a8aff0aaa855e9270 | [] | no_license | toniuyt123/oop_proekti | 700fd7f094f3762b8feaf16829047500c2ef109d | 4c073bfc32926113cfea60383bab8858e046d8f3 | refs/heads/master | 2022-09-19T00:28:19.532543 | 2020-05-31T14:16:18 | 2020-05-31T14:16:18 | 265,844,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,330 | hpp | Item.hpp | #ifndef ITEM_H
#define ITEM_H
#include <string>
#include "Date.hpp"
enum Metric {kg, l};
class Item {
private:
std::string name;
Date expirationDate;
Date admissionDate;
std::string manufacturerName;
Metric metric;
int quantity;
std::string comment;
public:
Item();
Item(std::string, Date, Date, std::string, Metric, int, std::string);
Item(std::string, Date, Date, std::string, Metric, int);
Item(std::string, Date, std::string, Metric, int, std::string);
Item(std::string, Date, std::string, Metric, int);
std::string getName() const;
Date getExpirationDate() const;
Date getAdmissionDate() const;
std::string getManufacturerName() const;
Metric getMetric() const;
int getQuantity() const;
std::string getComment() const;
void setName(std::string);
void setExpirationDate(Date);
void setAdmissionDate(Date);
void setManufacturerName(std::string);
void setMetric(Metric);
void setQuantity(int);
void setComment(std::string);
void print();
int updateQuantity(int);
friend std::ostream& operator<<(std::ostream&, const Item&);
friend std::istream& operator>>(std::istream&, Item&);
};
std::ostream& operator<<(std::ostream&, const Metric&);
std::istream& operator>>(std::istream&, Metric&);
#endif
|
080720455fb568593467809638f194620bb4495f | 909590ea1f915ee9f25751757772bc8e41619133 | /7th_sprint/simple_vector.h | b08471e97e30114850ce52dbcb245b769cebc0f1 | [] | no_license | MYamborisov/YandexPraktikum | 43fe591abce7d931bb3621661dd81a2d63b15e1e | 78fd45a436b6e3bfcf4426ba2db3658e6949fd1d | refs/heads/master | 2023-08-30T19:01:18.854312 | 2021-11-07T14:09:37 | 2021-11-07T14:09:37 | 293,508,805 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,961 | h | simple_vector.h | #pragma once
#include <initializer_list>
#include "array_ptr.h"
#include <algorithm>
#include <utility>
struct ReserveProxyObj {
explicit ReserveProxyObj(std::size_t size) : capacity(size) { }
std::size_t capacity;
};
template <typename Type>
class SimpleVector {
public:
using Iterator = Type*;
using ConstIterator = const Type*;
SimpleVector() noexcept = default;
SimpleVector(ReserveProxyObj obj) {
Reserve(obj.capacity);
}
SimpleVector(size_t size, const Type& value = Type{}) : size_(size), capacity_(size), items(size_) {
std::fill(begin(), end(), value);
}
SimpleVector(std::initializer_list<Type> init) : size_(init.size()), capacity_(size_), items(size_) {
std::move(init.begin(), init.end(), begin());
}
SimpleVector(const SimpleVector& other) : size_(other.GetSize()), capacity_(other.GetCapacity()), items(other.GetSize()) {
std::copy(other.begin(), other.end(), begin());
}
SimpleVector(SimpleVector&& other) {
swap(other);
}
SimpleVector& operator=(const SimpleVector& rhs) {
if (rhs == *this) {
return *this;
}
SimpleVector copy(rhs);
swap(copy);
return *this;
}
SimpleVector& operator=(SimpleVector&& other) {
size_ = std::exchange(other.size_, 0);
capacity_ = std::exchange(other.capacity_, 0);
std::move(other.begin(), other.end(), items.Get());
return *this;
}
// Добавляет элемент в конец вектора
// При нехватке места увеличивает вдвое вместимость вектора
void PushBack(const Type& item) {
Insert(end(), item);
}
void PushBack(Type&& value) {
Insert(end(), std::move(value));
}
// Вставляет значение value в позицию pos.
// Возвращает итератор на вставленное значение
// Если перед вставкой значения вектор был заполнен полностью,
// вместимость вектора должна увеличиться вдвое, а для вектора вместимостью 0 стать равной 1
Iterator Insert(ConstIterator pos, const Type& value) {
return InsertInVector(pos, value);
}
Iterator Insert(ConstIterator pos, Type&& value) {
return InsertInVector(pos, std::move(value));
}
Iterator InsertInVector(ConstIterator pos, Type&& value) {
int dist = pos - begin();
if (size_ == capacity_) {
size_t new_capacity = std::max(1, (int)capacity_ * 2);
ArrayPtr<Type> tmp(new_capacity);
std::move(begin(), end(), tmp.Get());
items.swap(tmp);
capacity_ = new_capacity;
}
std::move_backward(begin() + dist, end(), end() + 1);
*(begin() + dist) = std::move(value);
++size_;
return begin() + dist;
}
// "Удаляет" последний элемент вектора. Вектор не должен быть пустым
void PopBack() noexcept {
if (!IsEmpty()) {
--size_;
}
}
// Удаляет элемент вектора в указанной позиции
Iterator Erase(ConstIterator pos) {
int dist = pos - begin();
std::move(begin() + dist + 1, end(), begin() + dist);
--size_;
return begin() + dist;
}
void Reserve(size_t new_capacity) {
if (new_capacity > capacity_) {
ArrayPtr<Type> tmp(new_capacity);
std::move(begin(), end(), tmp.Get());
items.swap(tmp);
capacity_ = new_capacity;
}
}
// Обменивает значение с другим вектором
void swap(SimpleVector& other) noexcept {
std::swap(size_, other.size_);
std::swap(capacity_, other.capacity_);
items.swap(other.items);
}
size_t GetSize() const noexcept {
return size_;
}
size_t GetCapacity() const noexcept {
return capacity_;
}
bool IsEmpty() const noexcept {
if(size_ == 0) {
return true;
}
return false;
}
Type& operator[](size_t index) noexcept {
return items[index];
}
const Type& operator[](size_t index) const noexcept {
return items[index];
}
Type& At(size_t index) {
if(index >= size_) {
throw std::out_of_range("Index over size");
}
return items[index];
}
const Type& At(size_t index) const {
if(index >= size_) {
throw std::out_of_range("Index over size");
}
return items[index];
}
void Clear() noexcept {
size_ = 0;
}
void Resize(size_t new_size) {
if (new_size > capacity_) {
size_t new_capacity = std::max(new_size, capacity_ * 2);
ArrayPtr<Type> tmp(new_capacity);
std::copy(begin(), end(), tmp.Get());
items.swap(tmp);
std::fill(end(), begin() + (new_capacity - capacity_), Type{});
capacity_ = new_capacity;
} else if (new_size > size_) {
std::fill(end(), begin() + new_size, Type{});
}
size_ = new_size;
}
Iterator begin() noexcept {
return items.Get();
}
Iterator end() noexcept {
return items.Get() + size_;
}
ConstIterator begin() const noexcept {
return items.Get();
}
ConstIterator end() const noexcept {
return items.Get() + size_;
}
ConstIterator cbegin() const noexcept {
return items.Get();
}
ConstIterator cend() const noexcept {
return items.Get() + size_;
}
private:
size_t size_ = 0;
size_t capacity_ = 0;
ArrayPtr<Type> items;
};
template <typename Type>
inline bool operator==(const SimpleVector<Type>& lhs, const SimpleVector<Type>& rhs) {
return (lhs.GetSize() == rhs.GetSize() and std::equal(lhs.begin(), lhs.end(), rhs.begin()));
}
template <typename Type>
inline bool operator!=(const SimpleVector<Type>& lhs, const SimpleVector<Type>& rhs) {
return !(lhs == rhs);
}
template <typename Type>
inline bool operator<(const SimpleVector<Type>& lhs, const SimpleVector<Type>& rhs) {
return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
}
template <typename Type>
inline bool operator<=(const SimpleVector<Type>& lhs, const SimpleVector<Type>& rhs) {
return !(lhs > rhs);
}
template <typename Type>
inline bool operator>(const SimpleVector<Type>& lhs, const SimpleVector<Type>& rhs) {
return std::lexicographical_compare(rhs.begin(), rhs.end(), lhs.begin(), lhs.end());
}
template <typename Type>
inline bool operator>=(const SimpleVector<Type>& lhs, const SimpleVector<Type>& rhs) {
return !(lhs < rhs);
}
ReserveProxyObj Reserve(size_t capacity_to_reserve) {
return ReserveProxyObj(capacity_to_reserve);
} |
1aec8d3d65c63556c64a3e47a939cd56269f7062 | fe83f0e87ade566364a6563c3300fb7ab8afb257 | /NULL Engine/Source/M_GameManager.cpp | ca68000b8d9fb02f44d167eb36709194d7c10540 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asdlei99/Projecte3 | 73bcf7abd59aca6652786bb8e2259605f0a082f4 | 2946d1d8f5a0a68250f759b120420f5b5f58caf5 | refs/heads/main | 2023-06-03T02:24:30.204749 | 2021-06-16T15:49:37 | 2021-06-16T15:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | M_GameManager.cpp | #include "GameApplication.h"
#include "M_GameManager.h"
#include "M_Renderer3D.h"
#include "M_ScriptManager.h"
#include "MC_Time.h"
M_GameManager::M_GameManager(bool isActive) : Module("GameManager", isActive)
{
}
// Destructor
M_GameManager::~M_GameManager()
{
}
bool M_GameManager::Init(ParsonNode& config)
{
return true;
}
bool M_GameManager::Start()
{
MC_Time::Game::Play();
GameApp->gameState = GameState::PLAY;
GameApp->renderer->SetRenderWorldGrid(false);
GameApp->renderer->SetRenderWorldAxis(false);
//TODO: InitScripts??? Crec k amb l'init de l'scene ia es fa?
//GameApp->scriptManager->InitScripts();
return true;
}
void M_GameManager::PostSceneRendering()
{
GameApp->renderer->RenderFramebufferTexture();
}
|
20e9d716535e5db6dfd526427851e885d80dd314 | c42c4a76d97cb199ea90df016f749a769ba48e0e | /tools/verification/ISS/arithmetic instructions/mulhsu.cpp | f095b9f1993da755b32b5c8bcbf46482eb8fc4af | [
"BSD-3-Clause"
] | permissive | 2122aaor/shakti_custom | 70cdff5a7af13cff2df8631a66374545a2c6d44f | 48c74274ac92136dfc4d70ef3ebdb92ebd07edcf | refs/heads/master | 2021-05-11T17:04:02.730329 | 2018-01-17T04:39:44 | 2018-01-17T04:39:44 | 117,783,692 | 7 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | mulhsu.cpp | //Program for the MULHSU opcode
//Program to multiply one 32 bit signed number to a 32 bit unsigned number and store the higher 32 bits of the result in destination.
#include <stdio.h>
#include <stdint.h>
void mulhsu(int rd, int rs1, int rs2)
{
int64_t numrs1;
uint64_t numrs2;
int64_t numrd;
numrs1 = bin2dec(Rreg[rs1]);
numrs2 = ubin2dec(Rreg[rs2]);
numrd = numrs2 * numrs1;
/*printf("%ld\n",numrs1 );
printf("%lu\n",numrs2 );
printf("%ld\n",numrd );*/
if(rd!=0)
dec2bin64('H',Rreg[rd],numrd);
/*printf("MULHSU\n");
printreg(rs1);
printreg(rs2);
printreg(rd);*/
}
|
6ff0c6680ce3c923014328fcbb0e98aa6d594929 | 5fe3f6f6a6feeabb964bebdb735559fac57f8b98 | /sphericalchess/src/collision.cpp | 1e2533592d591ca33da41b946df11f8d367b5df8 | [] | no_license | skl131313/spherical-chess | 924a2e6b01ad76d02815ccec26e08a20ae416ab4 | 551ef0e259354fa588e729b7d6ce6403a62d3e41 | refs/heads/master | 2020-06-03T08:57:40.484004 | 2017-06-12T17:46:58 | 2017-06-12T18:15:25 | 94,124,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,071 | cpp | collision.cpp |
#include "collision.hpp"
namespace
{
Collision::Axis CalculateProjectionAxis(const Vec3& normal)
{
using Axis = Collision::Axis;
float x = std::abs(normal.x);
float y = std::abs(normal.y);
float z = std::abs(normal.z);
if(x >= y && x >= z)
{
if(normal.x < 0) return Axis::NegX;
else return Axis::PosX;
}
else if(y >= z)
{
if(normal.y < 0) return Axis::NegY;
else return Axis::PosY;
}
else
{
if(normal.z < 0) return Axis::NegZ;
else return Axis::PosZ;
}
}
Vec2 Project(Collision::Axis axis, const Vec3& point)
{
using Axis = Collision::Axis;
switch(axis)
{
case Axis::PosX: return Vec2(point.y, point.z);
case Axis::NegX: return Vec2(point.z, point.y);
case Axis::PosY: return Vec2(point.z, point.x);
case Axis::NegY: return Vec2(point.x, point.z);
case Axis::PosZ: return Vec2(point.x, point.y);
case Axis::NegZ: return Vec2(point.y, point.x);
}
return { 0.0f, 0.0f };
}
bool CheckInsidePoints(const Vec2& point, const Vec2 points[3])
{
for(int i = 0; i < 3; ++i)
{
Vec2 a = points[i] - point;
Vec2 b = points[(i + 1) % 3] - point;
if(Math::PerpDot(a, b) < 0)
{
return false;
}
}
return true;
}
}
void Collision::Load(const ModelData::Collision& collision)
{
triangles.clear();
triangles.reserve(collision.triangles.size());
// todo possible to use polygons here instead
// eg: a flat circle would be one polygon instead of multiple triangles
for(auto& t : collision.triangles)
{
Triangle triangle;
triangle.plane = Math::ConstructPlaneFromPoints(t.points[0], t.points[1], t.points[2]);
triangle.axis = CalculateProjectionAxis(triangle.plane.normal);
for(int i = 0; i < 3; ++i)
{
triangle.points[i] = Project(triangle.axis, t.points[i]);
}
triangles.push_back(triangle);
}
}
bool Collision::Collide(const Vec3& start, const Vec3& end, float percentStart, float& output) const
{
float percent = percentStart;
bool hit = false;
Vec3 segment = end - start;
for(int i = 0; i < triangles.size(); ++i)
{
auto& triangle = triangles[i];
float s = Math::Dot(triangle.plane.normal, segment);
if(s >= 0)
{
continue;
}
float p = Math::Distance(triangle.plane, start) / -s;
if(p > percent)
{
continue;
}
Vec3 point = start + segment * p;
if(CheckInsidePoints(Project(triangle.axis, point), triangle.points))
{
hit = true;
percent = p;
}
}
if(hit)
{
output = percent;
}
return hit;
} |
4abed556024c56751d654ad64a2c1051c0f0f2fb | 93b786eacb5604e68daaeb880631285d6add7db7 | /Div2C/154A.cpp | 966a7a5d574b841037da0fb0a92a0fbff57e226e | [] | no_license | kunal1244/A2OJ-Ladders | bb33e3ccf6c804c3618fb690528e1f69186bc36d | 46579cd4192bbcf250604ae594acc78ee6da8807 | refs/heads/master | 2023-04-23T14:26:32.091401 | 2021-05-13T20:33:09 | 2021-05-13T20:33:09 | 337,064,078 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | 154A.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
void solve(){
string input;
ll k;
cin >> input >> k;
ll ans = 0;
while(k--){
char a, b;
cin >> a >> b;
ll ac = 0, bc = 0;
for (ll i = 0; i <= input.size(); i++){
if (input[i] == a) ac++;
else if (input[i] == b) bc++;
else ans += min(ac, bc), ac = 0, bc = 0;
}
}
cout << ans << endl;
}
int main(){
std::ios_base::sync_with_stdio(NULL);
cin.tie(NULL);
cout.tie(NULL);
ll t = 1;
// cin >> t;
while(t--){
solve();
}
return 0;
} |
bace2f45591d8193fc7681769321a259721013da | 7e2222c7623877560cf0cfb2117a30e6b495dcab | /Fibonacci/Untitled12.cpp | bf85731191a567569044e3f9f121bdd6539afc74 | [] | no_license | shahhimtest/Data-Structures-and-Algo | ab22f88b2095b6e72a8f4a056032657ab438f5d6 | ee293fcd2336e678efa310ee6ab57f9c4e3f5d0d | refs/heads/main | 2023-07-17T17:27:48.210766 | 2021-07-28T16:16:49 | 2021-07-28T16:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 189 | cpp | Untitled12.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a=-1,b=1,c;
for(int i=0;i<20;i++)
{
cout<<a+b<<" ";
c=a+b;
a=b;
b=c;
}
}
|
0516d3f05218f104de35e3f49b2a91eae8586191 | fa92a2900b47944aa933b450c920c417b4ab2091 | /Spell.h | 4e4770fa8bc29c8a1cc78958a9d8b8bba7289e7c | [] | no_license | mameen-omar/COS110_Assignment-1 | bb8469c5a7a94861f329e8ac94ac68fc4d957cb5 | 451a2f99e85fc8558648c78b241ed49929195228 | refs/heads/master | 2020-04-12T12:43:49.338194 | 2018-12-19T23:11:18 | 2018-12-19T23:11:18 | 162,500,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | h | Spell.h | /*
* Class Spell
*/
#ifndef SPELL_H
#define SPELL_H
#include <string>
#include <iostream>
using namespace std;
#include "Wizard.h"
#include "Hobbit.h"
class Spell;
ostream& operator << (ostream & stream, const Spell& spell);
class Spell
{
private:
string name;
int difficultyLevel;
int skillLevel;
public:
Spell(string name="Unknown", int difficultyLevel=10, int skillLevel = 5);
Spell(const Spell& sp);
~Spell();
void setName(string n);
string getName() const;
void setDifficultyLevel(int d);
int getDifficultyLevel() const;
void setSkillLevel(int s);
int getSkillLevel() const;
//Overloaded Functions
const Spell& operator= (const Spell& right);
Spell& operator++();
Spell& operator++(int);
Spell& operator--();
Spell& operator--(int);
Spell& operator-=(const int n);
friend ostream& operator << (ostream & strm, const Spell& obj);
friend void Hobbit::dropWizardSpells(Wizard &);
};
#endif /* SPELL_H */
|
406192e3c88caeef0d51603b226fb4e8924f620c | b83c6406aff1ebf20e05aaf4dff9411e8aebe468 | /c/twoSpk/tool.cc | ce99f0f5797bdaec398d102de32a922e6aab8c1c | [] | no_license | zayan2009/supervised_two_speaker | a9ff0c6a67e97a75bbb21a7ef1e86b0930a4da35 | ced035733f889c27d216d8d8dbff86b2c2e8d5c5 | refs/heads/master | 2021-05-18T04:53:20.421993 | 2016-07-20T19:49:21 | 2016-07-20T19:49:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,415 | cc | tool.cc | #include "tool.h"
#include <dirent.h>
#include <errno.h>
#include <numeric>
#include <iterator>
using namespace std;
void sum(const vector< vector<double> > &in, int type, vector<double> &out)
{
if (type==1)
{
for (vector<double>::size_type j=0; j!=in[0].size(); ++j)
{
double tmp=0;
for (vector<double>::size_type i=0; i!=in.size(); ++i)
{
tmp += in[i][j];
}
out.push_back(tmp);
}
}
else if (type==2)
{
for (vector< vector<double> >::size_type i=0; i!=in.size(); ++i)
{
double tmp = accumulate(in[i].begin(),in[i].end(),0);
out.push_back(tmp);
}
}
}
void operator+=(vector<double> &x, const vector<double> &y)
{
for (vector<double>::size_type k=0; k<x.size(); ++k)
x[k] += y[k];
}
vector<double> operator+(const vector<double> &x, const vector<double> &y)
{
vector<double> z(x);
z += y;
return z;
}
void operator*=(vector<double> &x, const double &a)
{
for (vector<double>::size_type k=0; k<x.size(); ++k)
x[k] *= a;
}
vector<double> operator*(const vector<double> &x, const double &a)
{
vector<double> z(x);
z *= a;
return z;
}
istream& operator>>(istream &in, vector<string> &out)
{
string line;
while(getline(in,line))
out.push_back(line);
return in;
}
istream& operator>>(istream &in, vector< vector<double> > &s)
{
string line;
while(getline(in,line))
{
stringstream ss(line);
vector<double> vc;
double tmp;
while(ss>>tmp)
vc.push_back(tmp);
s.push_back(vc);
}
return in;
}
istream& operator>>(istream &in, vector<double> &s)
{
double val;
while (in>>val)
s.push_back(val);
return in;
}
bool getDir(string fdFN, string ext, vector<string> &files)
{
DIR *dp;
struct dirent *dirp;
if((dp = opendir(fdFN.c_str())) == NULL) {
cout << "Error(" << errno << ") opening " << fdFN << endl;
return errno;
}
while ( ((dirp = readdir(dp)) != NULL)) {
string ent = string(dirp->d_name);
int pos = ent.find_first_of(".");
if (ent.substr(pos+1)==ext)
files.push_back(fdFN+"/"+ent);
}
closedir(dp);
return 0;
}
istream& dlmread(istream &in, vector<double> &s, const char delim)
{
string line;
while (getline(in,line))
{
stringstream ss(line);
string tmp;
while (getline(ss,tmp,delim))
s.push_back(atof(tmp.c_str()));
}
return in;
}
ostream& operator<<(ostream &out, const vector<double> &s)
{
for (vector<double>::const_iterator it=s.begin(); it!=s.end(); ++it)
out<<*it<<" "<<flush;
return out;
}
ostream& operator<<(ostream &out, const vector< vector<double> > &s)
{
ostream_iterator<double> out_iter(out," ");
for (vector< vector<double> >::const_iterator it=s.begin(); it!=s.end(); ++it)
{
for(vector<double>::const_iterator it0=it->begin(); it0!=it->end(); ++it0)
*out_iter++=*it0;
out<<endl;
}
return out;
}
ostream& operator<<(ostream &out, const vector< vector< vector<double> > > &s)
{
ostream_iterator<double> out_iter(out," ");
for (vector< vector< vector<double> > >::size_type i=0; i!=s.size(); ++i)
{
for (vector< vector<double> >::size_type j=0; j!=s[i].size(); ++j)
{
for(vector<double>::size_type k=0; k!=s[i][j].size(); ++k)
*out_iter++=s[i][j][k];
out<<endl;
}
}
return out;
}
ostream& operator<<(ostream &out, const vector< pair<int,int> > &s)
{
ostream_iterator<double> out_iter(out," ");
for (vector< pair<int,int> >::const_iterator it=s.begin(); it!=s.end(); ++it)
{
*out_iter++ = it->first;
*out_iter++ = it->second;
out<<endl;
}
return out;
}
void loadFile(string filename, vector< vector<double> > &data)
{
ifstream f_str(filename.c_str());
string line;
if (f_str.is_open())
{
vector<double> row;
while(getline(f_str,line))
{
istringstream iss(line);
double val;
while(iss>>val)
row.push_back(val);
data.push_back(row);
row.clear();
}
}
else
{
cerr<<"Open file "<<filename<<" error!"<<endl;
}
}
double* readFileAsciiDouble(string filename, unsigned int &nSample)
{
//cout<<"Reading file "<<filename<<" ";
double* in;
ifstream ifile(filename.c_str());
if (!ifile.is_open())
{
cerr<<"Open file error: "<<filename<<endl;
return NULL;
}
else
{
double tmp[MAX_SAMPLE];
nSample = 0;
while (!ifile.eof()){
ifile>>tmp[nSample++];
}
nSample--;
in=new double[nSample];
for (int k=0; k<nSample; k++){
in[k] = tmp[k];
}
ifile.close();
// cout<<nSample<<" samples read."<<endl;
}
return in;
}
int* readFileAsciiInt(string filename, unsigned int &nSample)
{
cout<<"Reading file "<<filename<<" ";
int* in;
ifstream ifile(filename.c_str());
if (!ifile.is_open())
{
cerr<<"Open file error: "<<filename<<endl;
return NULL;
}
else
{
int tmp[MAX_SAMPLE];
nSample = 0;
while (!ifile.eof()){
ifile>>tmp[nSample++];
}
nSample--;
in=new int[nSample];
for (int k=0; k<nSample; k++){
in[k] = tmp[k];
}
ifile.close();
// cout<<nSample<<" samples read."<<endl;
}
return in;
}
void writeFileAsciiDouble(string fn, double *mat, unsigned int n)
{
ofstream ofile(fn.c_str());
if (!ofile.is_open()){
cerr<<"Open file error: "<<fn<<endl;
}
else
{
for (int r=0; r<n; r++)
ofile<<mat[r]<<" ";
}
ofile.close();
}
void writeFileAsciiVecDouble(string fn, vector<double> mat)
{
ofstream ofile(fn.c_str());
if (!ofile.is_open()){
cerr<<"Open file error: "<<fn<<endl;
}
else
{
for (vector<double>::size_type k=0; k!=mat.size(); ++k)
ofile<<mat[k]<<" ";
}
ofile.close();
}
void writeMatAsciiDouble(string fn, double **mat, unsigned int row, unsigned int col)
{
ofstream ofile(fn.c_str());
if (!ofile.is_open()){
cerr<<"Open file error: "<<fn<<endl;
}
else
{
for (int r=0; r<row; r++){
for (int c=0; c<col; c++)
ofile<<mat[r][c]<<" ";
ofile<<endl;
}
}
ofile.close();
}
void writeMatAsciiVecDouble(string fn, vector< vector<double> > mat)
{
ofstream ofile(fn.c_str());
if (!ofile.is_open()){
cerr<<"Open file error: "<<fn<<endl;
}
else
{
for (int r=0; r!=mat.size(); ++r){
for (int c=0; c!=mat[r].size(); ++c)
ofile<<mat[r][c]<<" ";
ofile<<endl;
}
}
ofile.close();
}
double sinc(double tim, double wn)
{
if(tim == 0) return(wn);
else return( sin(wn * PI * tim) / (PI * tim) );
}
double sincDiffOne(double tim, double wn)
{
if(tim == 0) return(0);
else
{
return( cos(wn * PI * tim) * wn / tim - sin(wn * PI *tim) / (PI * tim * tim) );
}
}
double sincDiffTwo(double tim, double wn)
{
if(tim == 0) return( -wn*wn*wn/PI/PI);
else
{
return( -wn*wn*PI*sin(wn*PI*tim)/tim - 2*wn*cos(wn*PI*tim)/tim/tim + 2*sin(wn*PI*tim)/PI/tim/tim/tim );
}
}
void fft(double *inputR, double *inputI, int N, double direct)
{
long sigL, i, j, k, n, period, twoPeriod;
double tmpR, tmpI, uR, uI, wR, wI;
sigL = long(pow((double)2, N));
j = 1;
for(i=1; i<sigL; i++)
{
if(i < j)
{
tmpR = inputR[j-1];
tmpI = inputI[j-1];
inputR[j-1] = inputR[i-1];
inputI[j-1] = inputI[i-1];
inputR[i-1] = tmpR;
inputI[i-1] = tmpI;
}
k = sigL/2;
while (k < j){ j -= k; k /= 2; }
j += k;
}
for(n=1; n<=N; n++ )
{
twoPeriod = long(pow(2.0, n));
period = twoPeriod/2;
uR = 1.0;
uI = 0.0;
wR = double( cos( PI/period ) );
wI = double( -1.0 * sin( PI/period * direct) );
for(j=0; j<period; j++ )
{
for(i=j; i<sigL; i+=twoPeriod)
{
tmpR = inputR[i+period]*uR - inputI[i+period]*uI;
tmpI = inputR[i+period]*uI + inputI[i+period]*uR;
inputR[i+period] = inputR[i] - tmpR;
inputI[i+period] = inputI[i] - tmpI;
inputR[i] += tmpR ;
inputI[i] += tmpI;
}
tmpR = uR*wR - uI*wI;
tmpI = uR*wI + uI*wR;
uR = tmpR;
uI = tmpI;
}
}
}
int maxPos(double *input, int d1, int d2)
{
int judge=d1;
double mv=input[d1];
for(int step=d1+1; step<=d2; step++)
{
if (input[step]>mv)
{
judge=step;
mv=input[step];
}
}
return(judge);
}
int minPos(double *input, int d1, int d2)
{
int judge=d1;
double mv=input[d1];
for(int step=d1+1; step<=d2; step++)
{
if (input[step]<mv)
{
judge=step;
mv=input[step];
}
}
return(judge);
}
double bessi0(double x)
{
double ax,ans;
double y;
ax = fabs(x);
if (ax < 3.75)
{
y = x/3.75;
y *= y;
ans = 1.0 + y * (3.5156229 + y * (3.0899424 + y * (1.2067492 + y * (0.2659732 + y * (0.360768e-1 + y*0.45813e-2)))));
}
else
{
y = 3.75 / ax;
ans = (exp(ax) / sqrt(ax)) * (0.39894228 + y * (0.1328592e-1 + y * (0.225319e-2 + y * (-0.157565e-2 + y * (0.916281e-2 + y * (-0.2057706e-1 + y * (0.2635537e-1 + y * (-0.1647633e-1 + y * 0.392377e-2))))))));
}
return ans;
}
double bessi1(double x)
{
double ax, y, ans;
if (fabs(x)<3.75)
{
y = x/3.75;
y *= y;
ans = x * ( 0.5 + y*( 0.87890594 + y*( 0.51498869 + y*( 0.15084934 + y*( 0.02658733 + y* (0.00301532 + y*0.00032411 ) ) ) ) ) );
}
else
{
ax = fabs(x);
y = 3.75/ax;
ans = (exp(ax)/sqrt(ax)) * (0.39894228 + y*( -0.03988024 + y*( -0.00362018 + y*( 0.00163801 + y*( -0.01031555 + y*( 0.02282967 + y*( -0.02895312 + y*( 0.01787654 + y*(-0.00420059) ) ) ) ) ) ) ) );
if (x<0) ans *= -1;
}
return(ans);
}
double zeroCross(double *input, int sLen)
{
int nCross=-1;
double currentSign=1, sp, ep;
double zC=sLen*2;
if (input[0]<0) currentSign=-1;
for(int n=1; n<sLen; n++)
{
if ((input[n]*currentSign)<0)
{
nCross++;
if (nCross==0) sp=n;
else ep=n;
currentSign *= -1;
if ( ((nCross%2)==0) && (nCross>0))
zC=(ep-sp)/double(nCross);
}
}
if(nCross==1) zC=ep*2.0/3.0;
return(zC);
}
double zeroCross(vector<double> &input, int sLen)
{
int nCross=-1;
double currentSign=1, sp, ep;
double zC=sLen*2;
if (input[0]<0) currentSign=-1;
for(int n=1; n<sLen; n++)
{
if ((input[n]*currentSign)<0)
{
nCross++;
if (nCross==0) sp=n;
else ep=n;
currentSign *= -1;
if ( ((nCross%2)==0) && (nCross>0))
zC=(ep-sp)/double(nCross);
}
}
if(nCross==1) zC=ep*2.0/3.0;
return(zC);
}
void processBar(double cur, double tot)
{
//backspace
if (cur!=tot)
{
printf("%04.1f%%", 100*cur/tot);
cout << "\b\b\b\b\b" << flush;
}
else
cout<<"Done!"<<endl;
}
unsigned int* readUnsignedInt(string filename, unsigned int &nSample)
{
cout<<"Reading file "<<filename<<" ";
unsigned int *in;
ifstream ifile(filename.c_str());
if (!ifile.is_open())
{
cerr<<"Open file error: "<<filename<<endl;
return NULL;
}
else
{
unsigned int tmp[MAX_SAMPLE];
nSample = 0;
while (!ifile.eof()){
ifile>>tmp[nSample++];
}
in=new unsigned int[nSample];
for (int k=0; k<nSample; k++){
in[k] = tmp[k];
}
ifile.close();
cout<<nSample<<" samples read."<<endl;
}
return in;
}
void normWavSig(double* sig, unsigned int length, double dB)
{
double eng=0, scale;
for (unsigned int i=0; i<length; i++)
eng += sig[i]*sig[i];
eng /=length;
scale = pow(10.0, (dB-10*log10(eng))/20 );
eng = 0;
for (unsigned int i=0; i<length; i++)
{
sig[i] = sig[i]*scale; // 16-bit wav signals
eng +=sig[i]*sig[i];
}
eng /= length;
// cout<<"Normalized to "<<10*log10(eng)<<" dB average intensity."<<endl;
}
double normpdf(double data, double me, double var)
{
double out = -.5*(data-me)*(data-me)/var - .5*log(2*PI*var);
return out;
}
double normcdf(double data, double me, double var)
{
data = (data-me)/sqrt(var);
double L, K, w ;
double const a1 = 0.31938153, a2 = -0.356563782, a3 = 1.781477937;
double const a4 = -1.821255978, a5 = 1.330274429;
L = fabs(data);
K = 1.0 / (1.0 + 0.2316419 * L);
w = 1.0 - 1.0 / sqrt(2 * PI) * exp(-L *L / 2) * (a1 * K + a2 * K *K + a3 * pow(K,3) + a4 * pow(K,4) + a5 * pow(K,5));
if (data < 0 ){
w= 1.0 - w;
}
return w;
}
|
37608828ec86982f6c9dfc976d2bdbb39b9027b4 | 0633291e715a2597bf8e4112e354998c0441b7b9 | /Traceroute/src/ICMPChecksum.cpp | 8c6cf2e3edbca8d675ee7a4d8e607f28117bb257 | [] | no_license | vinterdo/SK2016 | a41308a79b4e8b9e3890d78841785f98f30adb1a | 8d3e1bafb3a64430419247605f1671323cd17b6c | refs/heads/master | 2021-01-10T01:26:15.034178 | 2016-03-19T20:27:22 | 2016-03-19T20:27:22 | 54,285,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 467 | cpp | ICMPChecksum.cpp | #include <netinet/ip_icmp.h>
#include "ICMPChecksum.h"
short checksum( short *addr, register int len, short csum)
{
register int nleft = len;
short *w = addr;
register short answer;
register int sum = csum;
while (nleft > 1) {
sum += *w++;
nleft -= 2;
}
if (nleft == 1)
sum += htons(*(char *)w << 8);
sum = (sum >> 16) + (sum & 0xffff);
sum += (sum >> 16);
answer = ~sum;
return (answer);
}
|
45498b6f4c3ae5c101ba5770a24bf325af2282e9 | 550e9c4a8d56d47aaf1df2e15a71cd4cd35d16b9 | /2out/dirty/Test.cpp | 919268222938bc58fc91999998b75ac6fd11ee96 | [
"MIT"
] | permissive | DronMDF/2out | 6ceadcdf74c63e46d8f5c769a619ce76afc162c5 | d41a8e8ca6bfb5c66a8b77cd62ac9ab69e61b295 | refs/heads/master | 2021-09-08T11:49:15.507642 | 2021-09-05T06:31:16 | 2021-09-05T06:31:16 | 91,911,330 | 12 | 3 | MIT | 2021-09-05T06:31:17 | 2017-05-20T19:23:16 | C++ | UTF-8 | C++ | false | false | 444 | cpp | Test.cpp | // Copyright (c) 2017-2021 Andrey Valyaev <dron.valyaev@gmail.com>
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
#include "Test.h"
#include "../Result.h"
using namespace std;
using namespace oout;
dirty::Test::Test(const shared_ptr<const oout::Test> &tests)
: tests(tests)
{
}
unique_ptr<const Result> dirty::Test::result() const
{
return tests->result();
}
|
764700c98ef70ef482efd7d79612c3a5880fb52a | 8a980f6da4feeaa460fc8562d2563341e7b51556 | /designer/src/build-GUI_Builder-Desktop_Qt_5_3_MinGW_32bit-Debug/.uic/ui_qdesigner_appearanceoptions.h | 0d9d96fa0cb80d51ded8c9fbf6191038d60cdf15 | [] | no_license | KhuramAli/GUI_Editor | 34f5db3298a2b9360d404a3a018071877f3b982d | 98cd9c0f62880d0789783efa33d2055e960472f5 | refs/heads/master | 2021-01-19T08:43:43.709903 | 2015-06-18T11:25:59 | 2015-06-18T11:25:59 | 37,644,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,894 | h | ui_qdesigner_appearanceoptions.h | /********************************************************************************
** Form generated from reading UI file 'qdesigner_appearanceoptions.ui'
**
** Created by: Qt User Interface Compiler version 5.3.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_QDESIGNER_APPEARANCEOPTIONS_H
#define UI_QDESIGNER_APPEARANCEOPTIONS_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "fontpanel.h"
QT_BEGIN_NAMESPACE
class Ui_AppearanceOptionsWidget
{
public:
QVBoxLayout *verticalLayout;
QGroupBox *m_uiModeGroupBox;
QVBoxLayout *vboxLayout;
QComboBox *m_uiModeCombo;
FontPanel *m_fontPanel;
QSpacerItem *verticalSpacer;
void setupUi(QWidget *AppearanceOptionsWidget)
{
if (AppearanceOptionsWidget->objectName().isEmpty())
AppearanceOptionsWidget->setObjectName(QStringLiteral("AppearanceOptionsWidget"));
AppearanceOptionsWidget->resize(325, 360);
verticalLayout = new QVBoxLayout(AppearanceOptionsWidget);
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
m_uiModeGroupBox = new QGroupBox(AppearanceOptionsWidget);
m_uiModeGroupBox->setObjectName(QStringLiteral("m_uiModeGroupBox"));
vboxLayout = new QVBoxLayout(m_uiModeGroupBox);
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
m_uiModeCombo = new QComboBox(m_uiModeGroupBox);
m_uiModeCombo->setObjectName(QStringLiteral("m_uiModeCombo"));
vboxLayout->addWidget(m_uiModeCombo);
verticalLayout->addWidget(m_uiModeGroupBox);
m_fontPanel = new FontPanel(AppearanceOptionsWidget);
m_fontPanel->setObjectName(QStringLiteral("m_fontPanel"));
verticalLayout->addWidget(m_fontPanel);
verticalSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout->addItem(verticalSpacer);
retranslateUi(AppearanceOptionsWidget);
QMetaObject::connectSlotsByName(AppearanceOptionsWidget);
} // setupUi
void retranslateUi(QWidget *AppearanceOptionsWidget)
{
AppearanceOptionsWidget->setWindowTitle(QApplication::translate("AppearanceOptionsWidget", "Form", 0));
m_uiModeGroupBox->setTitle(QApplication::translate("AppearanceOptionsWidget", "User Interface Mode", 0));
} // retranslateUi
};
namespace Ui {
class AppearanceOptionsWidget: public Ui_AppearanceOptionsWidget {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_QDESIGNER_APPEARANCEOPTIONS_H
|
37fc46f9902065a705b34e5637860f2b3df6da3b | 67c008496d5dfa313a81d1d38b4458f546f2a868 | /Till October 2020/maximum_ad_revenue.cpp | c58c1d8957724b752cd3c9bcde8bfe4a0093769e | [] | no_license | Dgeneration11/Codeforces | dc08dd7e99e149dbdc327ac7bcbd7f085131c6a5 | 84d1b644baa31446112484699c115eac8ce23059 | refs/heads/main | 2023-05-10T10:32:46.491432 | 2021-06-04T16:47:39 | 2021-06-04T16:47:39 | 309,379,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | cpp | maximum_ad_revenue.cpp | #include<bits/stdc++.h>
#include<vector>
#include<algorithm>
using namespace std;
long long max_product(vector<int> a, vector<int> b){
sort(begin(a), end(a));
sort(begin(b), end(b));
long long result=0;
for(int i=0; i<a.size(); i++){
result += (long long) a[i]*b[i];
}
return result;
}
int main()
{
int n;
cin>>n;
vector<int> a(n), b(n);
for(int i=0; i<n; i++){
cin>>a[i];
}
for(int i=0; i<n; i++){
cin>>b[i];
}
cout<<max_product(a,b)<<endl;
} |
1837435a1a8f85ea2b86518f6a0f14eb45b48785 | 4f3ca870385f532dccff9602131d15bfdd2ea961 | /ios/chrome/browser/crash_report/crash_report_flags.cc | b30b56cfc0c36933027923d212f509a0d2c4c138 | [
"BSD-3-Clause"
] | permissive | nmhung1210/chromium | 6090ef1b8812990ce5f437900a9951d67c577d26 | 67d0ec786c8fac2dfe4bd92851aa70c96aae9829 | refs/heads/master | 2023-01-07T02:47:49.751768 | 2018-11-25T06:52:39 | 2018-11-25T06:52:39 | 159,008,512 | 1 | 0 | NOASSERTION | 2018-11-25T07:31:29 | 2018-11-25T07:31:29 | null | UTF-8 | C++ | false | false | 410 | cc | crash_report_flags.cc | // Copyright 2018 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.
#include "ios/chrome/browser/crash_report/crash_report_flags.h"
namespace crash_report {
const base::Feature kBreakpadNoDelayInitialUpload{
"BreakpadNoDelayInitialUpload", base::FEATURE_DISABLED_BY_DEFAULT};
} // namespace crash_report
|
d7cf0eb126f1127a40850a18239c203c722be26f | df6c3d7d95507bf452ce8eda24e779a82049fcad | /final-project/simulationInertial/57/p | b63690b06255037bd6d0be8cfede9350f8be320a | [] | no_license | aeronau/CFD-course | 5c555e7869f0170f90e9d3532b06f7e78683b770 | e891eb94950cfa0992d6ff003dbe45315af377c5 | refs/heads/master | 2021-09-01T04:18:32.111694 | 2017-12-24T18:18:44 | 2017-12-24T18:18:44 | 104,058,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,640 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "57";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField nonuniform List<scalar>
4432
(
100836
100837
100837
100839
100842
100845
100849
100853
100857
100863
100871
100879
100888
100896
100904
100911
100916
100920
100925
100937
100956
100975
100995
101017
101041
101066
101089
101107
101119
101128
101134
101137
101140
101145
101148
101140
101128
101132
101136
101134
101133
101136
101146
101157
101166
101181
101168
101177
101217
101227
101163
101088
101030
101058
100836
100837
100837
100839
100842
100845
100849
100852
100857
100863
100871
100879
100888
100896
100904
100911
100916
100920
100925
100937
100956
100976
100997
101018
101042
101068
101090
101106
101119
101129
101136
101139
101142
101143
101145
101140
101132
101128
101128
101133
101138
101142
101147
101150
101157
101189
101189
101178
101203
101214
101160
101109
101010
101035
100835
100835
100835
100837
100840
100843
100846
100850
100855
100861
100868
100876
100885
100895
100906
100917
100933
100951
100965
100977
100991
101008
101025
101041
101058
101074
101090
101106
101121
101134
101142
101146
101145
101141
101134
101122
101116
101118
101122
101129
101132
101133
101141
101153
101162
101172
101179
101188
101212
101220
101212
101182
100878
101167
100835
100835
100835
100837
100840
100843
100846
100850
100855
100861
100868
100876
100885
100895
100905
100917
100933
100951
100966
100978
100991
101007
101023
101039
101055
101071
101088
101104
101119
101131
101138
101139
101139
101140
101136
101126
101118
101117
101123
101131
101136
101137
101142
101154
101161
101171
101180
101186
101211
101223
101203
101193
100863
101162
100833
100834
100834
100836
100839
100842
100845
100849
100854
100859
100867
100875
100884
100894
100905
100916
100929
100940
100953
100969
100986
101004
101021
101038
101054
101073
101092
101110
101127
101143
101152
101157
101164
101165
101147
101122
101113
101121
101132
101144
101142
101133
101138
101150
101160
101168
101186
101196
101205
101197
101191
101171
101163
101299
100833
100834
100834
100836
100839
100842
100845
100849
100854
100859
100867
100875
100884
100894
100905
100916
100929
100940
100952
100968
100986
101004
101020
101036
101053
101071
101090
101108
101125
101141
101151
101153
101155
101156
101149
101130
101122
101124
101129
101137
101140
101135
101140
101153
101160
101166
101180
101196
101206
101204
101193
101159
101124
101320
100831
100831
100832
100834
100836
100839
100842
100846
100851
100856
100863
100872
100881
100891
100901
100912
100923
100933
100944
100963
100982
101000
101016
101033
101052
101075
101097
101118
101139
101159
101172
101186
101203
101195
101157
101106
101089
101106
101127
101152
101141
101122
101132
101146
101158
101168
101189
101200
101212
101210
101198
101193
101203
101192
100831
100831
100832
100834
100836
100839
100842
100846
100851
100856
100864
100872
100881
100891
100901
100912
100923
100933
100944
100962
100982
101000
101016
101032
101052
101074
101096
101117
101139
101158
101171
101183
101197
101190
101164
101127
101114
101119
101131
101141
101138
101128
101134
101144
101157
101169
101186
101204
101211
101214
101203
101197
101159
101168
100828
100829
100829
100831
100833
100836
100839
100843
100847
100853
100860
100868
100877
100887
100897
100907
100918
100928
100938
100953
100971
100989
101007
101026
101048
101075
101103
101129
101156
101178
101196
101218
101237
101235
101261
101077
101074
101093
101113
101151
101145
101117
101135
101149
101163
101174
101174
101185
101219
101240
101251
101201
101170
101307
100828
100828
100829
100831
100833
100836
100839
100843
100847
100853
100860
100868
100877
100887
100897
100907
100918
100928
100938
100952
100970
100989
101007
101026
101049
101076
101103
101129
101158
101181
101198
101215
101230
101220
101195
101130
101099
101105
101125
101151
101154
101129
101135
101143
101155
101168
101183
101201
101219
101233
101233
101230
101142
101263
100825
100825
100825
100827
100829
100832
100835
100839
100843
100849
100855
100863
100872
100881
100891
100901
100911
100921
100931
100944
100960
100978
100996
101015
101038
101067
101099
101130
101161
101189
101210
101234
101269
101441
101736
101204
101082
101081
101095
101101
101099
101143
101155
101156
101161
101174
101170
101181
101213
101246
101262
101205
101169
101293
100825
100825
100825
100827
100829
100832
100835
100839
100843
100849
100855
100863
100872
100881
100891
100901
100911
100921
100931
100944
100960
100978
100996
101016
101040
101068
101099
101128
101161
101190
101207
101221
101235
101281
101315
101170
101090
101089
101105
101128
101140
101140
101145
101150
101157
101164
101171
101186
101211
101235
101248
101205
101185
101331
100821
100821
100821
100823
100825
100828
100831
100834
100838
100843
100850
100858
100866
100875
100884
100894
100903
100913
100924
100936
100950
100967
100984
101002
101021
101050
101083
101115
101143
101169
101194
101231
101327
101744
101547
101462
101101
101087
101097
101101
101108
101148
101164
101162
101164
101174
101174
101178
101197
101230
101266
101246
101181
101267
100821
100821
100821
100823
100825
100828
100831
100834
100838
100843
100850
100858
100866
100875
100884
100894
100903
100913
100924
100936
100951
100968
100984
101003
101024
101052
101082
101110
101140
101168
101188
101209
101244
101337
101408
101214
101077
101077
101097
101108
101118
101137
101154
101161
101167
101170
101166
101172
101194
101222
101242
101223
101215
101271
100816
100816
100816
100818
100820
100823
100825
100828
100832
100837
100844
100851
100859
100868
100876
100885
100895
100905
100915
100927
100940
100955
100970
100985
101000
101021
101053
101081
101103
101119
101136
101161
101193
101303
101306
101153
101091
101087
101098
101108
101120
101136
101153
101160
101165
101176
101179
101173
101176
101201
101250
101257
101209
101279
100816
100816
100816
100818
100820
100823
100825
100828
100832
100837
100844
100851
100859
100868
100876
100885
100895
100905
100915
100927
100941
100955
100970
100987
101003
101025
101052
101075
101098
101121
101135
101153
101188
101226
101261
101164
101089
101088
101107
101122
101127
101132
101145
101155
101170
101177
101169
101163
101176
101209
101250
101247
101213
101291
100811
100811
100811
100812
100814
100817
100819
100822
100826
100831
100837
100844
100851
100859
100868
100877
100886
100896
100906
100918
100930
100942
100954
100965
100975
100987
101009
101032
101054
101074
101092
101110
101140
101164
101182
101124
101092
101096
101108
101113
101120
101128
101144
101162
101175
101183
101180
101166
101159
101178
101226
101246
101232
101303
100811
100811
100811
100812
100814
100817
100819
100822
100826
100831
100837
100844
100851
100859
100868
100877
100886
100896
100906
100918
100930
100942
100953
100965
100975
100989
101009
101030
101051
101071
101089
101110
101140
101164
101181
101151
101121
101113
101119
101130
101138
101138
101139
101151
101172
101182
101174
101159
101162
101191
101234
101241
101230
101323
100805
100805
100805
100806
100808
100810
100813
100815
100819
100823
100829
100835
100842
100850
100858
100867
100876
100886
100897
100907
100918
100927
100935
100941
100944
100948
100961
100985
101012
101038
101061
101087
101119
101145
101173
101163
101146
101138
101137
101140
101145
101147
101155
101174
101194
101203
101195
101174
101156
101165
101207
101241
101266
101303
100805
100805
100805
100806
100808
100810
100813
100815
100819
100823
100829
100835
100842
100850
100858
100867
100876
100886
100897
100907
100918
100927
100934
100939
100942
100947
100963
100987
101012
101037
101060
101086
101117
101150
101175
101173
101160
101153
101153
101157
101160
101156
101154
101166
101190
101203
101190
101168
101157
101168
101201
101231
101252
101318
100799
100799
100799
100800
100801
100803
100805
100808
100811
100815
100820
100826
100833
100840
100848
100856
100866
100876
100886
100897
100907
100914
100917
100914
100904
100899
100914
100946
100981
101012
101043
101076
101110
101145
101176
101187
101189
101192
101197
101201
101202
101200
101197
101200
101208
101220
101218
101193
101162
101157
101193
101229
101234
101172
100799
100799
100799
100800
100802
100803
100805
100808
100811
100815
100820
100826
100833
100840
100848
100856
100866
100876
100886
100897
100907
100914
100916
100912
100902
100898
100917
100949
100981
101011
101043
101077
101113
101147
101175
101187
101191
101198
101206
101213
101215
101211
101203
101200
101211
101223
101214
101186
101160
101158
101184
101218
101200
101173
100792
100792
100792
100793
100794
100796
100798
100800
100802
100806
100810
100816
100822
100829
100836
100845
100854
100865
100876
100889
100900
100907
100906
100889
100852
100831
100854
100899
100941
100978
101017
101059
101100
101139
101173
101200
101222
101244
101260
101267
101262
101251
101237
101226
101217
101221
101224
101210
101179
101160
101177
101211
101218
101189
100792
100792
100792
100793
100794
100796
100798
100800
100802
100806
100810
100816
100822
100829
100836
100845
100854
100865
100876
100888
100899
100906
100904
100887
100849
100831
100857
100901
100940
100977
101017
101059
101101
101139
101173
101200
101224
101246
101265
101273
101269
101257
101241
101226
101221
101226
101222
101200
101172
101161
101178
101207
101200
101237
100785
100785
100785
100786
100787
100788
100789
100791
100793
100796
100800
100805
100810
100816
100823
100832
100841
100852
100866
100881
100897
100908
100906
100874
100788
100745
100776
100840
100893
100938
100985
101034
101083
101130
101176
101222
101264
101299
101323
101327
101312
101286
101259
101238
101225
101222
101225
101220
101199
101176
101172
101184
101196
101172
100785
100785
100785
100786
100787
100788
100789
100791
100793
100796
100800
100805
100810
100816
100823
100832
100841
100852
100866
100881
100896
100907
100903
100866
100776
100741
100785
100846
100894
100938
100986
101035
101083
101130
101177
101223
101267
101303
101328
101330
101314
101287
101260
101239
101227
101225
101224
101211
101190
101173
101172
101182
101193
101162
100778
100778
100778
100778
100779
100780
100781
100782
100783
100786
100789
100793
100797
100803
100809
100817
100826
100838
100853
100873
100900
100929
100947
100893
100716
100584
100672
100777
100842
100893
100950
101007
101062
101119
101181
101247
101310
101358
101392
101390
101357
101312
101271
101244
101229
101224
101225
101222
101210
101190
101177
101176
101188
101169
100778
100778
100778
100778
100779
100780
100781
100782
100783
100786
100789
100793
100798
100803
100809
100817
100826
100838
100853
100873
100899
100928
100944
100883
100675
100597
100688
100776
100839
100894
100952
101008
101062
101119
101182
101246
101312
101359
101410
101405
101363
101310
101266
101239
101225
101223
101225
101220
101206
101187
101177
101177
101192
101164
100770
100770
100770
100770
100771
100771
100772
100772
100773
100775
100777
100780
100784
100788
100793
100800
100808
100819
100835
100858
100896
100964
101035
101041
100548
100253
100505
100718
100797
100842
100904
100969
101031
101098
101177
101264
101350
101405
101466
101465
101404
101327
101273
101241
101224
101217
101218
101219
101214
101201
101188
101181
101191
101170
100770
100770
100770
100770
100771
100771
100772
100772
100773
100775
100777
100780
100784
100788
100793
100800
100808
100819
100835
100858
100895
100961
101029
101017
100316
100411
100591
100726
100795
100851
100914
100975
101034
101099
101182
101273
101365
101388
101465
101469
101398
101320
101270
101242
101226
101219
101220
101219
101212
101199
101188
101183
101194
101170
100763
100763
100762
100762
100762
100762
100762
100762
100762
100763
100764
100766
100769
100772
100775
100780
100786
100795
100808
100827
100857
100905
101026
101305
100275
100503
100701
100765
100791
100845
100909
100973
101049
101147
101262
101385
101424
101489
101527
101450
101347
101283
101246
101222
101208
101205
101208
101210
101205
101197
101188
101193
101167
100763
100762
100762
100762
100762
100762
100762
100762
100762
100763
100764
100766
100769
100772
100775
100780
100786
100795
100808
100827
100856
100903
101022
101278
100223
100533
100696
100765
100806
100863
100922
100980
101052
101138
101274
101395
101378
101357
101498
101433
101341
101285
101250
101224
101209
101205
101207
101208
101203
101195
101188
101194
101171
100755
100755
100754
100754
100754
100753
100753
100752
100751
100751
100751
100752
100753
100754
100756
100758
100761
100766
100772
100781
100789
100786
100749
100679
100336
100387
100679
100792
100784
100776
100805
100843
100886
100955
101060
101181
101317
101346
101400
101565
101483
101376
101301
101251
101214
101191
101182
101185
101193
101198
101201
101197
101203
101167
100755
100755
100754
100754
100754
100753
100753
100752
100751
100751
100751
100752
100753
100754
100756
100758
100761
100766
100772
100781
100788
100784
100743
100659
100360
100442
100710
100800
100788
100787
100819
100856
100892
100947
100999
101176
101188
101420
101354
101362
101371
101335
101290
101249
101216
101193
101183
101185
101191
101196
101198
101194
101200
101171
100747
100747
100746
100746
100745
100744
100743
100742
100740
100739
100738
100737
100737
100736
100735
100735
100734
100734
100734
100731
100725
100706
100670
100594
100523
100534
100679
100749
100761
100772
100781
100782
100786
100833
100999
101177
101158
101357
101625
101415
101361
101328
101273
101224
101188
101164
101154
101156
101167
101181
101196
101203
101224
101184
100747
100747
100746
100746
100745
100744
100743
100742
100740
100739
100738
100737
100737
100736
100735
100735
100734
100734
100734
100731
100724
100705
100668
100592
100511
100541
100684
100752
100762
100773
100785
100788
100786
100807
100855
101090
100895
101244
101681
100742
101163
101299
101272
101225
101190
101169
101158
101158
101167
101180
101193
101200
101217
101178
100740
100740
100739
100738
100737
100736
100734
100732
100729
100727
100725
100722
100720
100717
100714
100711
100706
100702
100695
100686
100673
100651
100621
100577
100529
100526
100580
100643
100689
100717
100724
100704
100672
100663
100768
101032
102082
101154
100267
100655
101161
101288
101243
101189
101154
101135
101127
101128
101139
101156
101174
101184
101215
101172
100740
100739
100739
100738
100737
100736
100734
100732
100729
100727
100725
100722
100720
100717
100714
100711
100706
100701
100695
100686
100672
100651
100620
100576
100530
100534
100591
100649
100687
100710
100718
100703
100680
100593
100731
101059
101569
99294.1
99762.6
99368.3
100196
101112
101234
101191
101153
101135
101129
101132
101141
101155
101171
101182
101214
101184
100732
100732
100731
100730
100728
100727
100724
100722
100718
100715
100711
100708
100703
100698
100693
100686
100679
100670
100659
100645
100626
100602
100573
100538
100506
100497
100520
100559
100591
100611
100612
100593
100473
100528
100575
99518.1
98631.4
98101.5
98389.9
99185.9
100164
101044
101182
101126
101099
101091
101093
101100
101115
101136
101153
101157
101168
101111
100732
100732
100731
100730
100728
100727
100724
100722
100718
100715
100711
100708
100703
100698
100693
100686
100679
100670
100659
100644
100626
100602
100573
100539
100509
100503
100527
100562
100588
100602
100605
100596
100595
100617
100537
100069
101633
98671.6
98513.8
98776.4
99519.6
100538
101103
101133
101100
101085
101089
101101
101118
101136
101147
101146
101176
101151
100725
100725
100724
100722
100721
100718
100715
100712
100708
100703
100698
100693
100687
100680
100672
100663
100652
100639
100624
100606
100584
100558
100528
100498
100471
100456
100456
100464
100468
100472
100472
100497
100228
100429
100781
99988.9
97725.8
97682.2
98514.5
99195.8
99853.8
100692
101015
101028
101029
101036
101050
101068
101095
101133
101168
101181
101190
101196
100725
100725
100724
100722
100721
100718
100715
100712
100708
100703
100698
100693
100687
100680
100672
100663
100652
100639
100624
100606
100584
100558
100529
100499
100472
100458
100458
100464
100463
100461
100460
100507
100480
100543
100724
98817.7
98897.9
98057.8
98697.9
99281
99954.3
100608
100894
100988
101030
101036
101046
101067
101099
101134
101157
101167
101156
101105
100719
100718
100717
100715
100713
100710
100707
100703
100697
100692
100686
100679
100671
100662
100652
100640
100626
100610
100592
100570
100545
100516
100485
100452
100419
100390
100366
100345
100324
100321
100347
100599
100373
99411.3
99191.9
98319.6
97478.3
97999.3
98939.6
99653
100073
100478
100874
100935
100961
100980
100999
101023
101061
101118
101179
101217
101267
101282
100719
100718
100717
100715
100713
100710
100707
100702
100697
100692
100686
100679
100671
100662
100652
100640
100626
100610
100592
100570
100545
100516
100485
100452
100420
100391
100366
100343
100316
100293
100262
100328
100594
99726.3
95326.1
95469.9
97102.9
97977.5
99020.3
99776
100262
100510
100717
100885
100958
100984
100999
101024
101066
101123
101179
101212
101212
101220
100713
100712
100711
100708
100706
100703
100699
100694
100688
100681
100674
100666
100657
100646
100633
100619
100603
100584
100562
100537
100508
100475
100439
100398
100355
100309
100260
100210
100159
100136
100239
100451
100654
99457
96915.2
96630.1
97439.1
98419.8
99243.2
99703.7
99977.1
100182
100601
100846
100907
100930
100945
100970
101012
101066
101131
101186
101236
101211
100713
100712
100711
100709
100706
100703
100699
100694
100688
100681
100674
100666
100657
100646
100633
100619
100603
100584
100562
100537
100508
100475
100439
100399
100355
100309
100260
100208
100148
100101
100024
100272
100413
99185
95905.6
96365.2
97466.5
98496.3
99311.4
99765.1
100069
100259
100516
100793
100895
100930
100948
100973
101014
101070
101141
101200
101250
101264
100707
100707
100705
100702
100700
100696
100692
100686
100679
100672
100663
100654
100643
100631
100616
100600
100581
100559
100534
100506
100473
100435
100392
100342
100286
100222
100148
100055
99958.2
99755.8
100023
100207
100267
90330.6
92531.8
96016.5
97842.5
98971.4
99418.5
99477.6
99665.3
100010
100416
100720
100822
100871
100893
100918
100956
101003
101082
101149
101208
101248
100707
100707
100705
100702
100700
100696
100692
100686
100679
100672
100663
100654
100643
100631
100616
100600
100581
100559
100534
100506
100473
100435
100392
100342
100286
100222
100147
100058
99951.9
99812.7
99721.6
99792.5
97479.7
95998.4
95938.7
96882.6
98157.8
99130.5
99473.6
99465
99678.4
100070
100432
100690
100810
100867
100896
100922
100958
101002
101078
101155
101189
101145
100702
100702
100700
100697
100694
100690
100685
100679
100671
100663
100654
100643
100631
100617
100601
100583
100562
100537
100510
100477
100440
100397
100347
100287
100218
100135
100035
99904
99737.3
99419.9
98935.7
100261
96174.9
91977.6
94792.6
97580.6
99360.4
100056
99798.5
99382.2
99480.8
99870
100271
100568
100722
100808
100845
100871
100900
100938
101007
101079
101146
101231
100702
100702
100700
100697
100694
100690
100685
100679
100671
100663
100654
100643
100631
100617
100601
100583
100562
100538
100510
100478
100440
100397
100347
100287
100218
100134
100034
99914.4
99748
99506.2
99205.5
98864.3
96025.7
93573.7
96019
98106.8
99639.2
100208
99832.1
99339.5
99463.4
99930.2
100322
100555
100705
100800
100845
100878
100903
100929
100990
101057
101108
101216
100698
100697
100695
100693
100689
100685
100679
100673
100665
100656
100645
100634
100621
100606
100588
100568
100545
100519
100488
100453
100411
100363
100305
100237
100154
100054
99929.8
99772.3
99557.5
99258
98690.8
98426.4
100075
100426
99772.9
100527
101435
101290
100241
99290.5
99257.2
99682.2
100120
100453
100647
100756
100816
100837
100855
100857
100823
100826
100984
101233
100698
100697
100695
100693
100689
100685
100679
100673
100665
100656
100645
100634
100621
100606
100588
100568
100545
100519
100488
100453
100411
100363
100305
100237
100154
100053
99922.8
99775.2
99587.4
99344.2
99041.1
98341.7
97014
97540.4
99152.7
100680
101678
101415
100251
99242.6
99230.6
99724.3
100160
100444
100629
100747
100811
100843
100862
100862
100825
100749
100886
101172
100695
100694
100692
100689
100685
100681
100675
100668
100659
100650
100639
100626
100612
100596
100578
100556
100531
100503
100470
100432
100387
100334
100270
100194
100101
99986.4
99845.1
99668.9
99428.9
99123.6
98621.6
98004.4
98235.6
99655
99861
100698
101719
101548
100372
99137.5
99035.1
99540.7
100075
100419
100601
100717
100815
100851
100871
100834
100743
100689
100702
101108
100695
100694
100692
100689
100685
100681
100675
100668
100659
100650
100639
100627
100612
100596
100578
100556
100532
100503
100470
100432
100387
100334
100270
100193
100100
99980.5
99842.9
99669.6
99436.1
99149.3
98871.3
97712.2
97224.6
98557.7
99853.7
101181
101938
101556
100385
99170.3
99006.9
99543
100093
100428
100601
100711
100801
100848
100893
100896
100830
100672
100514
101014
100692
100691
100689
100686
100682
100677
100671
100664
100655
100645
100634
100621
100606
100589
100569
100547
100521
100491
100456
100415
100368
100311
100242
100160
100060
99937.5
99786.6
99594.1
99342.7
99019.4
98620.8
97980
97588.3
98150.9
97795.5
99084.2
100374
100772
100324
99483.8
99271.5
99698.1
100175
100497
100627
100729
100830
100867
100890
100859
100859
100774
100342
100928
100692
100691
100689
100686
100682
100677
100671
100664
100655
100645
100634
100621
100606
100589
100569
100547
100521
100491
100456
100416
100368
100311
100242
100160
100060
99936.7
99792.9
99599.4
99336.5
99012.4
98578.3
97919.5
97584
98178.4
99040
99846.6
99952.1
100234
100101
99573.3
99325.7
99667.3
100162
100510
100650
100725
100812
100867
100912
100925
101002
100942
100299
100792
100691
100690
100688
100684
100680
100675
100669
100661
100652
100642
100630
100617
100602
100584
100564
100541
100514
100483
100447
100404
100354
100295
100223
100137
100032
99903.4
99744.3
99544.2
99289.8
98966.9
98584.8
98068.3
97575.4
96936.4
96094.5
96308.4
95668.1
95808.2
96415.6
97889.9
98953.1
99850.9
100315
100597
100743
100834
100887
100899
100907
100917
101039
100994
100224
100607
100691
100690
100688
100684
100680
100675
100669
100661
100652
100642
100630
100617
100602
100584
100564
100541
100514
100483
100447
100405
100354
100295
100223
100137
100032
99903.7
99746.4
99550.8
99291.5
98957.9
98600
98083.2
97597.8
97440.6
96962.5
96047.8
94993.5
95256
96076
97694.9
99030.4
99857.6
100311
100592
100740
100833
100884
100904
100911
100943
101154
101236
100372
100630
100689
100688
100686
100683
100679
100674
100668
100660
100651
100640
100628
100615
100599
100582
100561
100538
100510
100479
100442
100399
100348
100287
100213
100125
100017
99885.1
99722.1
99518.8
99264.1
98945.9
98557.3
98057.3
97429.8
96830.4
96215.8
94931.9
92718.4
92033.2
92960.1
95306.6
97680.5
99200.4
99977.1
100372
100649
100826
100889
100897
100890
100900
100904
100737
100362
100571
100689
100688
100686
100683
100679
100674
100668
100660
100651
100640
100628
100615
100599
100582
100561
100538
100510
100479
100442
100399
100348
100287
100213
100125
100017
99885.2
99722.6
99521
99266.4
98949.7
98578.6
98122.8
97610.6
96893.2
95587.1
93940.2
92687
92209.9
93036.1
95171.3
97583.4
99198.3
99979.8
100361
100620
100812
100894
100899
100893
100914
100941
100803
100435
100565
100642
101025
100449
101435
101433
100444
100371
100445
100340
100220
100410
101011
100399
101441
101393
100440
100235
100388
100199
100228
101298
100758
100421
100723
100318
100405
100242
100407
100205
100293
100175
101275
100711
100302
100708
100280
100211
100235
100266
100210
100245
100281
100816
100888
100803
100942
100826
100931
100803
100645
100695
100627
100635
100547
100605
100521
100788
100877
100779
100919
100759
100914
100732
100616
100667
100616
100527
100479
100480
100456
101103
101033
101098
101083
101236
101083
101238
100468
100587
100523
100581
100494
100359
100325
100435
100226
100251
100187
100250
101089
101025
101087
101080
101222
101073
101225
100037
100486
100270
100340
100278
100490
100436
100522
100194
100307
100255
100388
101111
101025
101116
100889
100875
100887
100866
100542
101316
101001
100998
100603
100284
100364
100299
100210
100299
100244
100336
100227
100348
101109
101018
101110
100881
100855
100880
100855
100487
101281
101006
100490
100994
100215
100222
100343
100271
100406
100276
100387
100334
100431
100513
100670
100505
100631
100521
100632
100525
100135
100342
100218
100419
100395
100427
100424
100507
100656
100505
100632
100530
100632
100532
100295
100361
100316
100435
100429
100436
100425
100913
100836
100619
100828
100961
100902
100591
100762
100809
100904
101273
101357
101446
101363
101292
101065
101113
101276
101356
101444
101362
101263
101063
101048
100412
100494
100537
100548
100336
100456
100473
100439
100324
100305
100305
100456
100419
100326
100414
100259
100243
100269
100318
100809
100722
100434
100733
100970
100868
100404
100709
100705
100846
101279
101323
101416
101209
101361
101132
100977
101251
101354
101410
101347
101261
101059
101050
99999.6
100232
100284
100289
99983.7
100098
100285
100236
100251
100204
100309
100256
100051
100039
100216
100227
100210
100247
100185
100239
100306
100526
101312
101000
100991
100512
100209
100165
100293
100523
100394
100512
100347
100267
100357
100463
100180
100494
100328
100362
100388
100326
100397
100229
100211
100270
100287
100211
100244
100219
100284
100383
100384
100361
100334
100249
100343
100300
100248
100331
100129
100141
100497
101280
100974
100981
100511
100159
100198
100098
100444
100282
100141
100427
100134
100294
100425
100438
100199
100207
100210
100192
100225
100190
100171
100244
100209
100223
100225
100212
100239
100225
100283
100234
100245
100264
100194
100247
100273
100245
100246
101109
100972
101037
101180
100966
101180
101117
101070
100928
101008
101152
100911
101092
101154
101101
101030
100940
101170
100954
101176
101099
100501
100541
100447
100336
100524
100324
100513
100453
100441
100488
100324
100492
100311
100399
101079
101018
100926
101184
100926
101174
101075
100330
100471
100409
100350
100389
100388
100342
100292
100392
100348
100294
100349
100317
100268
100689
100832
100686
100751
100823
100681
100700
100662
100803
100741
100635
100811
100627
100666
100261
100286
100266
100165
100219
100230
100315
100191
100168
100152
100238
100166
100186
100218
100580
100792
100611
100701
100592
100774
100596
100594
100786
100706
100607
100781
100607
100606
100192
100173
100256
100251
100192
100183
100256
100196
100228
100269
100274
100209
100246
100220
100528
100550
100434
100494
100567
100484
100489
100344
100267
100234
100344
100331
100147
100201
100280
100526
100498
100560
100502
100571
100508
100501
99989.1
100209
100120
99623
100293
99872
99752.9
99763.4
99609.4
99756.4
99674.4
100131
100205
100468
99958.8
100215
100393
99877.2
99661
99596.5
99665
99559.1
100974
100728
100791
100560
100739
100960
100809
101183
101449
101457
101194
101174
101435
101441
101160
100987
100562
100784
100807
100759
100815
100981
100329
100364
101079
100695
100490
100793
100777
100963
100793
101278
101467
101299
101209
101276
101480
101367
101083
101108
100493
100785
100758
101000
100787
100806
100208
100220
100519
100859
100505
100928
100876
100487
100532
100391
100312
100277
100408
100363
100183
100231
100326
100521
100931
100874
100569
100878
100536
100573
100419
100845
100473
100886
100459
100824
100434
100202
99902.2
99951.6
100323
100245
100151
100302
100094
100430
100880
100839
100303
100819
100446
100561
101500
101326
101485
101274
101325
101485
101497
101560
101536
101547
101544
101553
101531
101536
101546
101508
101286
101328
101492
101331
101496
101486
101073
101084
101500
101326
101289
101489
101326
101499
101485
101555
101542
101527
101525
101504
101296
101346
101493
101328
101484
101496
101550
101541
101553
101531
101069
101071
100343
100497
100356
100373
100416
100460
100269
100046
99710.7
99852.1
99890.9
100128
100090
100206
100028
100316
100326
100484
100120
100290
100429
100205
100470
100469
100361
100418
100369
100448
100434
100374
100353
100361
100408
100411
100367
100339
100359
100325
100387
100377
100452
100441
100388
100444
100388
100381
100381
100342
100323
100390
100383
100348
100378
100324
100342
100270
100252
100275
100266
100318
100349
100337
100313
100355
100331
100316
100279
100311
100287
100287
100355
100748
100786
100266
100769
100346
100251
100051
99748.1
99801
100104
100287
100893
100850
100605
100789
100406
100387
100160
99826.5
99877.1
100138
100238
100741
100388
100839
100259
100738
100341
100005
99787.9
99730.4
100054
100002
99756.2
100043
99715.1
100246
100774
100741
100333
100731
100276
100323
101563
101319
101345
101632
101287
101508
101564
101955
101538
101366
101462
101479
101311
101356
101690
101271
101483
101467
101662
101690
101402
101646
101185
101146
101606
101311
101622
101253
101279
101495
101576
101611
101501
101572
101521
101590
101574
101593
101568
101587
101266
101290
101586
101245
101649
101458
101120
101072
99925.4
100192
99580.3
99999.7
99867.5
100224
99605.1
99563
99649.3
99562.4
99644.2
99574.4
99558.9
99547.2
99539.3
99879.9
99991.6
100155
99597.1
100188
99600.1
99889.2
100168
100237
100249
100245
100284
100247
100289
100264
100241
100268
100239
100267
100242
100283
100272
100322
100306
100297
100312
100286
100246
100228
100236
100233
100032
100049
100214
100273
100227
100184
100245
100240
100199
100227
100237
100234
100247
100228
100223
100234
100225
100201
100181
100231
100215
100227
100203
100217
100251
100252
100965
100736
100775
100528
100952
100753
100783
101166
101439
101160
101429
101169
101442
101161
101441
100977
100530
100763
100774
100974
100770
100782
100191
100183
100295
100014
100474
100314
100038
100487
100268
100375
100415
100410
100375
100377
100360
100337
100397
100279
100301
100062
100478
100022
100481
100317
100190
99965.7
100238
100457
99916
100236
100427
100226
100216
100241
100195
100256
100315
100299
100270
100156
100211
99840.6
100371
99876.3
100400
100125
100439
100401
100323
100373
100449
100392
100368
100479
100437
100445
100464
100456
100394
100425
100412
100466
100400
100471
100403
100478
100396
100457
100212
100208
100295
100338
100267
100238
100334
100294
100234
100295
100265
100287
100271
100324
100348
100314
100363
100267
100225
100250
100214
100266
100220
100251
100330
100280
100281
100316
100299
100301
100318
100392
100418
100419
100393
100384
100380
100411
100361
100351
100338
100329
100319
100324
100317
100361
100286
100263
100243
100253
100256
100302
100247
100280
100244
100268
100262
100298
100339
100295
100335
100278
100243
100259
100242
100261
100246
100265
100121
100117
100952
100728
100776
100468
100963
100700
100737
101160
101435
101480
101153
101174
101384
101093
101474
100938
100473
100727
100726
100692
100733
100939
100151
100162
100042
100086
99729.4
100303
99715.5
100294
100042
100152
100200
100173
100183
100059
100109
99793
100342
100094
99751.1
100307
100147
100126
100134
100188
100070
99775.8
100333
100152
99785.3
100072
100345
100122
100157
100141
100124
100157
100205
100166
100174
100036
100139
99800.4
100331
99752.5
100336
100086
100232
100235
100211
100194
100243
100224
100201
100246
100244
100240
100255
100240
100233
100236
100233
100239
100221
100245
100212
100243
100246
100206
100332
100201
100224
100240
100209
100229
100225
100235
100211
100234
100236
100235
100231
100229
100228
100228
100228
100221
100211
100234
100235
100229
100216
100227
100220
100233
100228
100195
100231
100213
100230
100218
100231
100243
100216
100231
100240
100255
100234
100240
100247
100224
100226
100068
100236
100271
100198
100208
100196
100193
100164
100180
100213
100217
100187
100147
100222
100211
100241
100191
100226
100230
100225
100221
100236
100227
100227
100225
)
;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 101325;
}
rightSide
{
type symmetryPlane;
}
leftSide
{
type symmetryPlane;
}
duct
{
type zeroGradient;
}
cylinder
{
type zeroGradient;
}
}
// ************************************************************************* //
| |
b5e890135a89bca86f4be7c7f40cef1970d1d03a | c1d7ad4560af96dbb70c69c00a4316a5ec4e79d3 | /P17363.cpp | 99a5d0f4af994ef2802c6304b05e6eb91ec45e79 | [] | no_license | daily-boj/yoonki1207 | 486cf3919794a297938d2a62708e812a5aac2d4a | 7e3aec7443ba4a32563e3f1fb280fff26713a1d8 | refs/heads/master | 2021-06-13T03:20:00.654122 | 2020-06-27T07:15:48 | 2020-06-27T07:15:48 | 254,419,284 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 975 | cpp | P17363.cpp | #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
#define FOR(i, n) for(int i = 0 ; i < n ; i++)
#define MAXX 9876543987654321LL
int N, M;
char board[101][101];
char milk[101][101];
char B_[9] = { "|-\\/<v>^" };
int main() {
//char c = '|';
//printf("%c",c);
scanf("%d %d", &N, &M);
for (int i = 0; i < N; i++)
scanf("%s", board[i]);
for (int i = 0; i < M; i++) {
for (int j = 0; j < N; j++) {
milk[i][j] = board[j][M-i-1];
}
}
//printf("%d\n", '\\');
for (int i = 0; i < M; i++, printf("\n"))
for (int j = 0; j < N; j++) {
char& t = milk[i][j];
switch (t) {
case '-':
t = '|';
break;
case '|':
t = '-';
break;
case '/':
t = '\\';
break;
case '\\':
t = '/';
break;
case '^':
t = '<';
break;
case '<':
t = 'v';
break;
case 'v':
t = '>';
break;
case '>':
t = '^';
break;
}
printf("%c", t);
}
} |
e6bc9046a6b4317401d39a38f4c6b1841a166b41 | cc7661edca4d5fb2fc226bd6605a533f50a2fb63 | /Assembly-CSharp/PrimitiveTaskSelector.h | 6f8dbcf1c8745ef3eaa4f852a477435635655790 | [
"MIT"
] | permissive | g91/Rust-C-SDK | 698e5b573285d5793250099b59f5453c3c4599eb | d1cce1133191263cba5583c43a8d42d8d65c21b0 | refs/heads/master | 2020-03-27T05:49:01.747456 | 2017-08-23T09:07:35 | 2017-08-23T09:07:35 | 146,053,940 | 1 | 0 | null | 2018-08-25T01:13:44 | 2018-08-25T01:13:44 | null | UTF-8 | C++ | false | false | 519 | h | PrimitiveTaskSelector.h | #pragma once
#include "..\UnityEngine\UnicodeString*.h"
#include "..\UnityEngine\List.h"
namespace Rust
{
namespace Ai
{
{
namespace HTN
{
class PrimitiveTaskSelector : public Selector // 0x30
{
public:
UnityEngine::UnicodeString* Name; // 0x30 (size: 0x8, flags: 0x6, type: 0xe)
UnityEngine::List<Apex.AI.ICompositeScorer>* _preconditions; // 0x38 (size: 0x8, flags: 0x1, type: 0x15)
UnityEngine::List<Apex.AI.ICompositeScorer>* _effects; // 0x40 (size: 0x8, flags: 0x1, type: 0x15)
}; // size = 0x48
}
|
e4594794033783234845a85e63fc7877213e78dd | 0d3dba0dfd85d1516a124429edbaa2159185864e | /ConsoleApplication8/ConsoleApplication8/Source.cpp | 089e238eb9fde52ad2a467219a7efa73a08bda89 | [] | no_license | hk2t/GIT-IP | fe91b5e0d9b494baf10e071d609cdff279c7e0f4 | ab638e5ab1882b8cf8f533866458e8bc65ce7d09 | refs/heads/master | 2021-01-17T17:54:46.136846 | 2016-06-26T16:50:44 | 2016-06-26T16:50:44 | 60,456,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,789 | cpp | Source.cpp | #include "cv.h"
#include "highgui.h"
#include "stdio.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <list>
#include <conio.h>
#include "MyPoint.h"
#include "MyPic.h"
#include "MyMath.h"
using namespace std;
using namespace cv;
void Create_week(int day, Mat img_small);
void Helper(MyPic pic, String lable);
int main(void) {
char window_name[] = "Smoothing Demo";
//String imgName = "IMG_R0_GF.png";
//String imgName = "IMG_R1_GF.png";
//String imgName = "IMG_R2_GF.png";
//String imgName = "IMG_R3_GF.png";
String imgName = "IMG_R4_GF.png";
//String imgName = "IMG_R5_GF.png";
//String imgName = "IMG_R6_GF.png";
MyPic pic7x3("C:/Users/KIM/Desktop/GIT-PROJECT/MY-GIT/Image/"+imgName, CV_8UC1, 7);// 7
//pic7x3.Cal(3);
pic7x3.Cal(0);
//pic7x3.Show("7x3");
cout<<"LOF 7X3"<<endl;
pic7x3.ShowAllLOF(pic7x3.nMat);
Helper(pic7x3, "7x3");
/*
MyPic pic5x3("C:/Users/KIM/Desktop/GIT-PROJECT/MY-GIT/Image/"+imgName, CV_8UC1, 5);
pic5x3.Cal(2);
cout<<"LOF 5X3"<<endl;
pic5x3.ShowAllLOF(pic5x3.nMat);
Helper(pic5x3, "5x3");
MyPic pic3x3("C:/Users/KIM/Desktop/GIT-PROJECT/MY-GIT/Image/"+imgName, CV_8UC1, 3);
//pic3x3.Cal(1.5);
//pic3x3.Cal(0);
cout<<"LOF 3X3"<<endl;
pic3x3.ShowAllLOF(pic3x3.nMat);
Helper(pic3x3, "3x3");
// Merge------------------
Mat matMerge;
matMerge.create(pic7x3.mat.rows, pic7x3.mat.cols, CV_32F);
for (int j=0; j<matMerge.rows; j++) {
for (int i=0; i<matMerge.cols; i++) {
float result7x3 = pic7x3.nOMat.at<float>(Point(i, j));
float result5x3 = pic5x3.nOMat.at<float>(Point(i, j));
float result3x3 = pic3x3.nOMat.at<float>(Point(i, j));
float mean7x3 = pic7x3.means.at<float>(Point(i, j));
float mean5x3 = pic5x3.means.at<float>(Point(i, j));
float mean3x3 = pic3x3.means.at<float>(Point(i, j));
//float result = (result3x3*5 + result5x3*3 + result7x3*2)/(float)10;
float result = (result3x3*3 + result7x3*1)/(float)4;
//float mean = (mean7x3*5 + mean5x3*3 + mean3x3*2)/(float)10;
float mean = (mean7x3*1 + mean3x3*3)/(float)4;
//float result = (result3x3*5 + result5x3*2 + result7x3*1) /8;
if (result >= 2.5) {//-----------------------------------------------------------<<
matMerge.at<float>(Point(i, j)) = result;
}
else {
matMerge.at<float>(Point(i, j)) = 0;
}
}
}
//imwrite("matMerge.png",matMerge);
//ShowAllLOF(matMerge);
MyPic picMerge("C:/Users/KIM/Desktop/GIT-PROJECT/MY-GIT/Image/"+imgName, CV_8UC1, matMerge);
cout<<"LOF MERGE"<<endl;
picMerge.ShowAllLOF(picMerge.nMat);
Helper(picMerge, "MERGE");
*/
waitKey(0);
return 0;
}
void Create_week(int day, Mat img_small) {
Mat result(img_small.rows, img_small.cols / 7, CV_8UC1);
for (int i = 0, x = day; i<result.cols; i++) {
for (int j = 0, y = 0; j<result.rows; j++) {
if (x<img_small.cols && j<img_small.rows) {
result.at<uchar>(Point(i, j)) = img_small.at<uchar>(Point(x, j));
}
}
x = x + 7;
}
//cvtColor( "IMG_R"+to_string(day)+".png", gray_image, CV_BGR2GRAY );
imwrite("IMG_R" + to_string(day) + ".png", result);
}
void Helper(MyPic pic, String lable){
//Mat Source_Color;
Mat dst1;
Mat result1;
result1.create(pic.mat.rows, pic.mat.cols, CV_8UC1);
for (int j=0; j<pic.mat.rows; j++) {
for (int i=0; i<pic.mat.cols; i++) {
if ((double)pic.nMat.at<float>(Point(i, j)) != 0) {
result1.at<uchar>(Point(i, j)) = 200;
}
else {
result1.at<uchar>(Point(i, j)) = 0;
}
}
}
/*
for (int j=0; j<result1.rows; j++) {
printf("%2d-row: ", j);
for (int i=0; i<result1.cols; i++) {
int data = result1.at<uchar>(Point(i,j));
if (data == 0) {
printf("--- - ");
continue;
}
else if (data < 10) {
printf("00%d - ", data);
continue;
}
else if (data < 100) {
printf("0%d - ", data);
continue;
}
printf("%d - ", data);
}
cout<<endl;
}
cout<<endl;
*/
Mat big;
Mat big1;
/////////re_big and laplacian
resize(result1, big,Size(), 10, 10, INTER_NEAREST);
resize(pic.mat, big1, Size(), 10, 10, INTER_NEAREST);
Laplacian( big, dst1, CV_8UC1, 1, 15, 0, BORDER_DEFAULT );
imshow(lable+"laplacian", dst1);
imwrite(lable+"lapla.png", dst1);
imwrite(lable+"Gray_big.png", big);
Mat dst_color(dst1.size(), CV_8UC3);
Mat big_color(big1.size(),CV_8UC3);
Mat result2(big1.size(), CV_8UC3);
cvtColor(dst1, dst_color, COLOR_GRAY2BGR);
cvtColor(big1, big_color, COLOR_GRAY2BGR);
for (int j=0; j<big1.rows; j++) {
for (int i=0; i<big1.cols; i++) {
int B = dst_color.at<Vec3b>(Point(i, j))[0];
int G = dst_color.at<Vec3b>(Point(i, j))[1];
int R = dst_color.at<Vec3b>(Point(i, j))[2];
if ( B==0 && G==0 && R==0) {
result2.at<Vec3b>(Point(i, j))[0] = big_color.at<Vec3b>(Point(i, j))[0];
result2.at<Vec3b>(Point(i, j))[1] = big_color.at<Vec3b>(Point(i, j))[1];
result2.at<Vec3b>(Point(i, j))[2] = big_color.at<Vec3b>(Point(i, j))[2];
}
else {
result2.at<Vec3b>(Point(i, j))[0] = 0;
result2.at<Vec3b>(Point(i, j))[1] = 0;
result2.at<Vec3b>(Point(i, j))[2] = 255;
}
}
}
imshow(lable+"result2", result2);
imwrite(lable+"result2.png", result2);
} |
26f02f9bbfead33d98628e50ff51ca9e5f1d4c96 | 69ccb3187db5c5a98865ae17f91d33d5ef6c76e5 | /CP3/1.2.3/8subsets.cpp | 88de612c65426f04dd3cffd3643889e2854f228a | [] | no_license | for-learning-stuff/algorithmic-problem-solving | 32c1442ba48ef3a74b46e20cffe2546ad004013e | afe84f76c5166bdf6fec20239fc636d0d63b5b24 | refs/heads/master | 2021-09-10T08:17:05.642835 | 2018-03-22T19:09:44 | 2018-03-22T19:09:44 | 119,687,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | 8subsets.cpp | // Generate all subsets of a set of numbers
#include <bits/stdc++.h>
#include <vector>
using namespace std;
// https://stackoverflow.com/a/9430993
int main(){
int n = 4;
vector<int> numbers(n);
iota(numbers.begin(), numbers.end(), 0);
// cout << sizeof(int);
for (int m = 0; m < (1 << n); ++m){
for (int k = 0; k < 32; ++k){
if ((m >> k) & 1){ // bit at k
cout << numbers[n-k]; // Start enumerating from left end
}
}
cout << "\n";
}
}
|
6f891c666fb0cb288e45dc4a958c99285767484c | 27bde9bdb775a853723a470691d8b2957ca0e679 | /Data_Stractures/3-Trees/Postorder_Traversal/tree-postorder-traversal.cpp | 20c5507f2f1786b00c99a1b51cbaf055f208ec48 | [
"MIT"
] | permissive | christosg88/hackerrank | e8d5f10ea815982783ff5489639dc4fd5aac8fce | 21bc44aac842325ad0a48265658f7674984aeff2 | refs/heads/main | 2023-07-10T09:52:08.858783 | 2021-08-08T22:27:20 | 2021-08-08T22:31:00 | 340,516,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | tree-postorder-traversal.cpp | /**
* struct node
* {
* int data;
* node *left;
* node *right;
* }
*/
/**
* Prints the values of the binary tree in postorder traversal.
* @param root a pointer to the root of the binary tree
*/
void Postorder(node *root)
{
if (root->left != NULL)
Postorder(root->left);
if (root->right != NULL)
Postorder(root->right);
std::cout << root->data << ' ';
}
|
84b3ced60c9a88e90e0e3d38db167753ac805c17 | 5d01a2a16078b78fbb7380a6ee548fc87a80e333 | /ETS/MsgStruct/FixGatewayStatusRequest.cpp | 6a84a05b438fe6abc8d6a8abf51ef7d605e6869c | [] | no_license | WilliamQf-AI/IVRMstandard | 2fd66ae6e81976d39705614cfab3dbfb4e8553c5 | 761bbdd0343012e7367ea111869bb6a9d8f043c0 | refs/heads/master | 2023-04-04T22:06:48.237586 | 2013-04-17T13:56:40 | 2013-04-17T13:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | FixGatewayStatusRequest.cpp | // FixGatewayStatusRequest.cpp : Implementation of CFixGatewayStatusRequest
#include "stdafx.h"
#include "MsgStruct.h"
#include "FixGatewayStatusRequest.h"
// CFixGatewayStatusRequest
|
3b9f1040e3f9bb9a5298131df86789687cda6504 | b1e9f5afd333acd1c4f75fd26da4deac956860f8 | /audioplayer.cpp | 5b9975a48404633f3e9699790165964119a3abb3 | [] | no_license | JucovAllexandr/AudioStreamingDesktopClient | d737ef2b9aa3da15d26b4a36835a44c5a75e9119 | e37517d79a9c22168e1372770e6cbf8934552e2f | refs/heads/master | 2023-04-08T14:09:39.434595 | 2021-04-29T20:43:42 | 2021-04-29T20:43:42 | 358,368,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,656 | cpp | audioplayer.cpp | #include "audioplayer.h"
#include <QBuffer>
#include <QTime>
AudioPlayer::AudioPlayer(QObject *parent) : QObject(parent)
{
mediaPlayer = new QMediaPlayer(this, QMediaPlayer::StreamPlayback);
connect(mediaPlayer, &QMediaPlayer::positionChanged, this, &AudioPlayer::changePosition);
connect(mediaPlayer, &QMediaPlayer::stateChanged, this, &AudioPlayer::changeState);
connect(mediaPlayer, &QMediaPlayer::mediaStatusChanged, this, &AudioPlayer::changeStatus);
}
void AudioPlayer::play(QByteArray *audio)
{
QByteArray ad = *audio;
QBuffer *buffer = new QBuffer(mediaPlayer);
buffer->setData(*audio);
buffer->open(QBuffer::ReadOnly);
mediaPlayer->setMedia(QMediaContent(),buffer);
mediaPlayer->play();
qDebug() << "Player error = " << mediaPlayer->errorString();
}
void AudioPlayer::play(QNetworkRequest request)
{
mediaPlayer->setMedia(request);
mediaPlayer->play();
}
void AudioPlayer::play()
{
mediaPlayer->play();
}
void AudioPlayer::pause()
{
mediaPlayer->pause();
}
void AudioPlayer::stop()
{
mediaPlayer->stop();
}
void AudioPlayer::setVolume(int volume)
{
mediaPlayer->setVolume(volume);
}
void AudioPlayer::setPosition(double level)
{
if(level > 100){
level = 100;
}else if(level < 0){
level = 0;
}
if(mediaPlayer->duration() > 0){
mediaPlayer->setPosition(mediaPlayer->duration() * (level/100));
}
}
void AudioPlayer::changePosition(qint64 position)
{
//qDebug()<<"positionChanged"<<position;
if(mediaPlayer->duration() > 0){
//qDebug()<<"level"<<(((double)position)/((double)mediaPlayer->duration())) * 100;
emit positionChanged((((double)position)/((double)mediaPlayer->duration())) * 100.0);
QTime playTime(0,0,0,0);
playTime = playTime.addMSecs(position);
QTime trackTime(0,0,0,0);
trackTime = trackTime.addMSecs(mediaPlayer->duration());
//qDebug()<<"playTime"<<playTime.toString("mm:ss");
//qDebug()<<"trackTime"<<trackTime.toString("mm:ss");
emit trackTimeChanged(playTime.toString("mm:ss"), trackTime.toString("mm:ss"));
}
}
void AudioPlayer::changeState(QMediaPlayer::State state)
{
switch (state) {
case QMediaPlayer::StoppedState:
emit stoppedState();
break;
case QMediaPlayer::PlayingState:
emit playingState();
break;
case QMediaPlayer::PausedState:
emit pausedState();
break;
}
}
void AudioPlayer::changeStatus(QMediaPlayer::MediaStatus status)
{
switch (status) {
case QMediaPlayer::EndOfMedia:
emit endOfAudio();
break;
}
}
|
1f7dcb54b3c8e1e0080500fc97959931693e8412 | 2398c2a717214be48f3d93da89ba11155263757b | /Sem_04/OOP/Lab_03/upload/uploader.hpp | 11915a37627158887cc8f633901c4fe4f25b5544 | [] | no_license | lieroz/University | 9af687787e3c468b34e2bfb8ffeadf44f2063bc7 | c7ee70e77e6426045fac6c5b43aab10e1ffdcddb | refs/heads/master | 2020-04-06T19:53:40.479191 | 2019-01-19T09:16:35 | 2019-01-19T09:16:35 | 68,386,115 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,172 | hpp | uploader.hpp | #ifndef UPLOADER_HPP
#define UPLOADER_HPP
#include <fstream>
#include <cstring>
#include <functional>
#include "exceptions/upload_exceptions.hpp"
#include "containers/vector/vector.hpp"
#include "containers/pair/pair.hpp"
#include "objects/model.hpp"
#include "3dparty/jsmn.h"
#include "base_uploader.hpp"
class uploader : public base_uploader {
public:
explicit uploader(std::string);
virtual ~uploader() = default;
void open() override;
model get_model() override;
void close() override;
protected:
void serialize_json();
model deserialize_json();
static int json_equal(const char*, jsmntok_t*, const char*);
pair<int, point3d<double>> get_point(int, jsmntok_t*, int);
pair<int, vector<int>> get_link(int, jsmntok_t*, int);
template <class T>
void import_data(vector<T>&, int, jsmntok_t*, std::function<T(int, jsmntok_t*, int)>&, const char*, const char*);
void retrieve_lines(vector<pair<point3d<double>, point3d<double>>>&,
vector<pair<int, point3d<double>>>&,
vector<pair<int, vector<int>>>&);
void normalize_points(vector<pair<int, point3d<double>>>&,
vector<point3d<double>>&);
private:
std::string file_name;
std::ifstream input_stream;
std::string json_string;
jsmn_parser json_parser;
};
template<class T>
void uploader::import_data(vector<T>& data, int i, jsmntok_t* buffer,
std::function<T (int, jsmntok_t*, int)>& func, const char* str1, const char* str2) {
if (json_equal(this->json_string.c_str(), &buffer[i], str1) == 0 &&
json_equal(this->json_string.c_str(), &buffer[i + 2], str2) == 0) {
data.push_back(func(i, buffer, 0));
} else if (json_equal(this->json_string.c_str(), &buffer[i], str2) == 0 &&
json_equal(this->json_string.c_str(), &buffer[i + 2], str1) == 0) {
data.push_back(func(i, buffer, 2));
} else {
throw json_exception("uploader::jsmn(corrupted data)!");
}
}
#endif // UPLOADER_HPP
|
8d43295ee30971b35723580f64834ee8d8e348cb | 80e08512a69b537313e1350508797ed8ae6138c9 | /test/include/nbdl_test/test_state_consumer.hpp | 8119fa90e2f9bcf5482ed4e0f9ba9239af596f86 | [
"BSL-1.0"
] | permissive | jonajonlee/nbdl | 960f41fe3295fe0ecbc3f030561e4d1cf5f64c82 | c1e025dc67a9ffbcac1b112b0be50fdc987064e8 | refs/heads/master | 2021-01-11T16:13:59.578895 | 2017-01-01T05:47:49 | 2017-01-01T05:47:49 | 80,044,090 | 0 | 0 | null | 2017-01-25T18:30:54 | 2017-01-25T18:30:54 | null | UTF-8 | C++ | false | false | 1,056 | hpp | test_state_consumer.hpp | //
// Copyright Jason Rice 2016
// 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)
//
#ifndef NBDL_TEST_ASSETS_TEST_STATE_CONSUMER_HPP
#define NBDL_TEST_ASSETS_TEST_STATE_CONSUMER_HPP
#include <nbdl/concept/StateConsumer.hpp>
#include <boost/hana.hpp>
#include <utility>
namespace nbdl_test
{
struct state_consumer { };
template <typename PushApi>
struct state_consumer_impl
{
using hana_tag = state_consumer;
PushApi push_api;
};
}
namespace nbdl
{
template <>
struct make_state_consumer_impl<nbdl_test::state_consumer>
{
template <typename PushApi>
static auto apply(PushApi&& p)
{
return nbdl_test::state_consumer_impl<std::decay_t<PushApi>>{std::forward<PushApi>(p)};
}
};
template <>
struct notify_state_change_impl<nbdl_test::state_consumer>
{
template <typename StateConsumer, typename Path>
static void apply(StateConsumer&&, Path&&)
{
// ???
}
};
}
#endif
|
ee487d5b6867586ceaf8c05287b44c426fe13d6a | 1f5306c3e0078995f23c3071d1406899b69baa18 | /include/LifetimeModule.h | 9aa100d7407a777873248592ae8341df0b703250 | [] | no_license | oinkatron/PathfindingDemo | edd15b697b8dc92a42eeba25ba2bbc91aedb75f4 | caff736066f24b9e37e8b3c136ae5d30cef24863 | refs/heads/master | 2020-02-26T17:26:54.821124 | 2016-10-25T16:31:01 | 2016-10-25T16:31:01 | 71,756,730 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 665 | h | LifetimeModule.h | #ifndef LIFETIMEMODULE_H
#define LIFETIMEMODULE_H
#include "Module.h"
#include <SDL/SDL.h>
class LifetimeModule : public Module
{
public:
LifetimeModule() { start_time = SDL_GetTicks(); life_span = -1; }
LifetimeModule(int val) { start_time = SDL_GetTicks(); life_span = val; }
virtual ~LifetimeModule();
void setLifeSpan(int val);
int getLifeSpan() { return life_span; }
void resetLife() { start_time = SDL_GetTicks(); }
int getStartTime() { return start_time; }
protected:
private:
int life_span;
int start_time;
};
#endif // LIFETIMEMODULE_H
|
adff1ddce9f1de1c13ca0915a2b5ebba52cbc203 | 66862c422fda8b0de8c4a6f9d24eced028805283 | /cmake-3.17.5/Tests/Module/FindDependency/main.cpp | 4ee460fbf0596627ddece10c78e3abb495c30f60 | [
"MIT",
"BSD-3-Clause"
] | permissive | zhh2005757/slambook2_in_Docker | 57ed4af958b730e6f767cd202717e28144107cdb | f0e71327d196cdad3b3c10d96eacdf95240d528b | refs/heads/main | 2023-09-01T03:26:37.542232 | 2021-10-27T11:45:47 | 2021-10-27T11:45:47 | 416,666,234 | 17 | 6 | MIT | 2021-10-13T09:51:00 | 2021-10-13T09:12:15 | null | UTF-8 | C++ | false | false | 565 | cpp | main.cpp |
#ifndef HAVE_PACK1
# error Expected HAVE_PACK1
#endif
#ifndef HAVE_PACK2
# error Expected HAVE_PACK2
#endif
#ifndef HAVE_PACK3
# error Expected HAVE_PACK3
#endif
#ifndef HAVE_PACK4
# error Expected HAVE_PACK4
#endif
#ifndef HAVE_PACK5
# error Expected HAVE_PACK5
#endif
#ifndef HAVE_PACK6
# error Expected HAVE_PACK6
#endif
#ifndef HAVE_PACK7
# error Expected HAVE_PACK7
#endif
#ifndef HAVE_PACK7_COMP1
# error Expected HAVE_PACK7_COMP1
#endif
#ifndef HAVE_PACK8
# error Expected HAVE_PACK8
#endif
int main(int argc, char** argv)
{
return 0;
}
|
9a734f7251ac7ad00b0c48448de29d6dc18b9c60 | 9c35411c7a3884a17cde2f3b62b04d81600b29fc | /BUSYMAN.cpp | d10055af72761f42c5f3912da575dc37f5090b02 | [] | no_license | lakshmi8/SPOJ | 5f0d7947ca869dd8474ba13b8df3f2dc637d9ada | f6cecf68fe0c0e308defec2f34aed8743b233c54 | refs/heads/master | 2021-01-13T01:45:23.854633 | 2014-12-02T08:09:14 | 2014-12-02T08:09:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | BUSYMAN.cpp | // Runtime: 0.87 s
#include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
int t,n,countify,i,end;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
pair<long,long> a[n];
for(i=0;i<n;i++)
{
scanf("%ld %ld",&a[i].second,&a[i].first);
}
sort(a,a+n);
countify = 1;
end = a[0].first;
for(i=1;i<n;i++)
{
if(a[i].second >= end)
{
countify++;
end = a[i].first;
}
}
printf("%d\n",countify);
}
return 0;
}
|
c47895a80c1341c1a4f7bcf208c03e628df8c57a | cb80a8562d90eb969272a7ff2cf52c1fa7aeb084 | /inletTest7/0.036/phi | 87e05b580b3b0d813e5b1a7ce942439c4acb6146 | [] | no_license | mahoep/inletCFD | eb516145fad17408f018f51e32aa0604871eaa95 | 0df91e3fbfa60d5db9d52739e212ca6d3f0a28b2 | refs/heads/main | 2023-08-30T22:07:41.314690 | 2021-10-14T19:23:51 | 2021-10-14T19:23:51 | 314,657,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242,780 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "0.036";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 0 -1 0 0 0 0];
oriented oriented;
internalField nonuniform List<scalar>
19982
(
-2.87971e-05
-0.00197571
0.00195497
4.93778e-05
-0.00185705
0.00182835
4.45663e-06
0.000102496
-3.01132e-05
0.00211013
3.46793e-05
0.00229001
-7.34462e-05
0.00232426
-1.56038e-05
0.00235802
-3.34473e-05
0.00232223
-4.68783e-06
0.0023042
-5.55053e-06
0.002279
-6.30187e-07
0.0022645
-1.87435e-06
0.00225347
-1.85601e-06
0.00224692
-2.26895e-06
0.00224154
-2.4452e-06
0.0022367
-2.61126e-06
0.00223202
-2.76779e-06
0.00222714
-2.91487e-06
0.00222207
-3.05259e-06
0.00221679
-3.18127e-06
0.00221133
-3.30136e-06
0.00220569
-3.41332e-06
0.00219987
-3.51752e-06
0.00219389
-3.61418e-06
0.00218776
-3.70335e-06
0.00218148
-3.78495e-06
0.00217507
-3.85882e-06
0.00216853
-3.92471e-06
0.00216187
-3.98236e-06
0.00215511
-4.0315e-06
0.00214826
-4.07186e-06
0.00214134
-4.10316e-06
0.00213435
-4.12519e-06
0.00212731
-4.1377e-06
0.00212024
-4.14053e-06
0.00211315
-4.13369e-06
0.00210605
-4.11609e-06
0.00209897
-4.08919e-06
0.00209191
-4.05191e-06
0.0020849
-4.00433e-06
0.00207794
-3.94632e-06
0.00207105
-3.87772e-06
0.00206425
-3.79824e-06
0.00205756
-3.70753e-06
0.00205098
-3.60514e-06
0.00204453
-3.49062e-06
0.00203823
-3.36364e-06
0.00203209
-3.22399e-06
0.00202614
-3.07146e-06
0.00202037
-2.90493e-06
0.0020148
-2.62051e-06
0.00200932
-1.50983e-06
0.00200327
-2.26033e-06
0.00199802
-1.95121e-06
0.00198891
-4.55476e-06
0.00197593
-7.1056e-06
0.0019574
-2.94923e-05
0.00192506
-4.40649e-05
0.00188349
-0.000128017
0.00182472
-0.000212102
0.00178359
-0.000492222
0.0017862
-0.00105156
0.00203617
-0.000309934
0.000530486
6.82303e-05
0.000894012
-8.07425e-06
0.00113141
-2.27236e-06
0.0010752
-5.97362e-05
0.000906763
-5.94791e-06
0.000821078
-4.37005e-06
0.000298669
-3.92657e-06
0.000248526
0.000200195
7.741e-06
0.000192454
1.61e-05
0.000240167
0.000290202
2.45668e-05
-9.41415e-06
0.000286221
1.33952e-05
-5.12127e-06
0.000235874
0.000187332
2.45291e-06
0.00018488
2.91604e-06
0.000235411
0.000286292
2.84444e-06
-3.71708e-06
0.000286117
3.8921e-06
-2.09386e-06
0.000233788
0.000182786
2.96052e-06
0.000179825
3.675e-06
0.000233073
0.000284898
4.8941e-06
-3.49877e-06
0.000283572
4.82534e-06
-1.79044e-06
0.000231365
0.000178035
2.59536e-06
0.000175439
2.40249e-06
0.000231558
0.000283183
2.79099e-06
-2.29572e-06
0.000281756
3.72315e-06
-1.54318e-06
0.000230805
0.000173896
1.44037e-06
0.000172456
2.21231e-06
0.000230033
0.000281269
2.69899e-06
-3.09205e-06
0.000281717
2.64463e-06
-1.34932e-06
0.000228291
0.000171107
1.2666e-06
0.00016984
1.09977e-06
0.000228457
0.000280196
2.62015e-06
-2.95187e-06
0.000280579
2.56881e-06
-1.20944e-06
0.000226715
0.000168631
1.14632e-06
0.000167484
9.88643e-07
0.000226873
0.000279014
2.55408e-06
-2.8408e-06
0.00027934
2.51492e-06
-1.10147e-06
0.000225134
0.000166383
1.05797e-06
0.000165325
9.05241e-07
0.000225286
0.000277744
2.50144e-06
-2.75506e-06
0.000278035
2.46389e-06
-1.02355e-06
0.000223555
0.000164302
9.83236e-07
0.000163318
8.38429e-07
0.0002237
0.000276405
2.46861e-06
-2.69306e-06
0.000276663
2.43495e-06
-9.66947e-07
0.000221974
0.000162352
9.31256e-07
0.00016142
7.92792e-07
0.000222112
0.000275012
2.44431e-06
-2.64118e-06
0.00027524
2.41371e-06
-9.20535e-07
0.000220392
0.0001605
8.90183e-07
0.00015961
7.5963e-07
0.000220522
0.000273569
2.43075e-06
-2.60321e-06
0.000273766
2.40575e-06
-8.85575e-07
0.000218805
0.000158724
8.59477e-07
0.000157865
7.39531e-07
0.000218925
0.000272076
2.42983e-06
-2.57661e-06
0.000272243
2.40949e-06
-8.59591e-07
0.000217208
0.000157006
8.36546e-07
0.000156169
7.29606e-07
0.000217315
0.000270534
2.43909e-06
-2.55908e-06
0.00027067
2.42284e-06
-8.40482e-07
0.000215597
0.000155329
8.19729e-07
0.000154509
7.2802e-07
0.000215689
0.000268942
2.45691e-06
-2.54911e-06
0.000269047
2.44451e-06
-8.26898e-07
0.000213967
0.000153682
8.08009e-07
0.000152875
7.33784e-07
0.000214041
0.000267298
2.48268e-06
-2.54612e-06
0.00026737
2.47445e-06
-8.18106e-07
0.000212313
0.000152057
8.01013e-07
0.000151256
7.46976e-07
0.000212367
0.0002656
2.51732e-06
-2.55025e-06
0.000265636
2.51359e-06
-8.13853e-07
0.000210631
0.000150442
7.98395e-07
0.000149644
7.67487e-07
0.000210662
0.000263843
2.56115e-06
-2.56127e-06
0.000263842
2.56206e-06
-8.13794e-07
0.000208915
0.00014883
7.99778e-07
0.000148031
7.94956e-07
0.00020892
0.000262024
2.61404e-06
-2.57868e-06
0.000261983
2.61955e-06
-8.17527e-07
0.000207159
0.000147213
8.04645e-07
0.000146409
8.28705e-07
0.000207135
0.000260137
2.67523e-06
-2.60185e-06
0.000260054
2.68536e-06
-8.24577e-07
0.000205358
0.000145584
8.12854e-07
0.000144772
8.68788e-07
0.000205303
0.000258177
2.74513e-06
-2.63092e-06
0.000258049
2.76005e-06
-8.3489e-07
0.000203507
0.000143937
8.2445e-07
0.000143113
9.15592e-07
0.000203416
0.00025614
2.82462e-06
-2.66601e-06
0.000255962
2.84411e-06
-8.48426e-07
0.000201598
0.000142265
8.39082e-07
0.000141426
9.686e-07
0.000201469
0.000254018
2.91302e-06
-2.70657e-06
0.000253788
2.93685e-06
-8.64848e-07
0.000199628
0.000140561
8.56627e-07
0.000139705
1.02773e-06
0.000199457
0.000251806
3.0103e-06
-2.75277e-06
0.00025152
3.0387e-06
-8.84183e-07
0.000197589
0.000138821
8.77182e-07
0.000137944
1.09334e-06
0.000197373
0.000249497
3.11712e-06
-2.80496e-06
0.000249152
3.15041e-06
-9.06563e-07
0.000195475
0.000137037
9.00907e-07
0.000136137
1.1659e-06
0.00019521
0.000247083
3.2343e-06
-2.86355e-06
0.000246675
3.27272e-06
-9.32141e-07
0.000193279
0.000135205
9.2791e-07
0.000134277
1.24575e-06
0.000192961
0.000244558
3.36244e-06
-2.92879e-06
0.000244081
3.40624e-06
-9.6101e-07
0.000190994
0.000133316
9.58303e-07
0.000132358
1.33327e-06
0.000190619
0.000241913
3.5022e-06
-3.00106e-06
0.000241362
3.5517e-06
-9.93313e-07
0.000188612
0.000131365
9.9224e-07
0.000130373
1.4289e-06
0.000188175
0.000239137
3.65437e-06
-3.08076e-06
0.000238508
3.70989e-06
-1.02921e-06
0.000186124
0.000129344
1.02987e-06
0.000128315
1.5331e-06
0.000185621
0.000236222
3.81971e-06
-3.16818e-06
0.000235509
3.88145e-06
-1.06881e-06
0.000183522
0.000127246
1.07124e-06
0.000126175
1.64609e-06
0.000182947
0.000233157
3.99861e-06
-3.26323e-06
0.000232354
4.06638e-06
-1.11206e-06
0.000180797
0.000125063
1.11614e-06
0.000123947
1.76755e-06
0.000180145
0.000229932
4.19059e-06
-3.36516e-06
0.000229034
4.26365e-06
-1.15859e-06
0.000177939
0.000122789
1.1641e-06
0.000121625
1.89655e-06
0.000177207
0.000226536
4.39419e-06
-3.47302e-06
0.000225538
4.47179e-06
-1.20796e-06
0.000174942
0.000120418
1.2148e-06
0.000119203
2.0324e-06
0.000174125
0.000222962
4.60821e-06
-3.58622e-06
0.000221859
4.68999e-06
-1.25986e-06
0.000171799
0.000117943
1.26789e-06
0.000116676
2.17463e-06
0.000170893
0.000219202
4.83203e-06
-3.70424e-06
0.000217989
4.91761e-06
-1.31401e-06
0.000168503
0.000115362
1.32313e-06
0.000114039
2.32272e-06
0.000167503
0.000215247
5.06484e-06
-3.8263e-06
0.000213921
5.15343e-06
-1.37007e-06
0.000165047
0.000112669
1.37999e-06
0.00011129
2.47557e-06
0.000163952
0.000211092
5.30487e-06
-3.95083e-06
0.000209648
5.39504e-06
-1.42732e-06
0.000161429
0.000109863
1.43756e-06
0.000108425
2.63118e-06
0.000160236
0.00020673
5.54897e-06
-4.07532e-06
0.000205168
5.63854e-06
-1.48462e-06
0.000157645
0.000106941
1.49443e-06
0.000105447
2.78654e-06
0.000156353
0.000202162
5.79237e-06
-4.19619e-06
0.00020048
5.87826e-06
-1.54031e-06
0.000153698
0.000103907
1.54868e-06
0.000102358
2.93749e-06
0.000152309
0.00019739
6.02847e-06
-4.30871e-06
0.000195592
6.10659e-06
-1.59214e-06
0.000149593
0.000100766
1.59774e-06
9.91688e-05
3.07848e-06
0.000148113
0.000192423
6.24842e-06
-4.40652e-06
0.000190516
6.3133e-06
-1.63722e-06
0.000145344
9.75318e-05
1.63829e-06
9.58937e-05
3.2021e-06
0.00014378
0.000187278
6.44049e-06
-4.48137e-06
0.000185275
6.4851e-06
-1.67177e-06
0.000140971
9.42222e-05
1.66605e-06
9.25564e-05
3.299e-06
0.000139338
0.000181984
6.58987e-06
-4.5231e-06
0.000179902
6.60555e-06
-1.69105e-06
0.000136506
9.08656e-05
1.67608e-06
8.91897e-05
3.35794e-06
0.000134825
0.000176582
6.67879e-06
-4.51928e-06
0.000174447
6.65432e-06
-1.68944e-06
0.000131995
8.75005e-05
1.66131e-06
8.58394e-05
3.36323e-06
0.000130293
0.000171128
6.68197e-06
-4.4566e-06
0.000168976
6.60941e-06
-1.66074e-06
0.000127498
8.41789e-05
1.61664e-06
8.25624e-05
3.30314e-06
0.000125812
0.000165699
6.58062e-06
-4.32277e-06
0.000163571
6.45036e-06
-1.59955e-06
0.000123089
8.09631e-05
1.5367e-06
7.94266e-05
3.16487e-06
0.000121461
0.000160382
6.35479e-06
-4.10569e-06
0.000158331
6.15654e-06
-1.50038e-06
0.000118856
7.79264e-05
1.41677e-06
7.65098e-05
2.93711e-06
0.000117336
0.000155283
5.98562e-06
-3.79677e-06
0.000153367
5.71264e-06
-1.35943e-06
0.000114898
7.51506e-05
1.25406e-06
7.38967e-05
2.61265e-06
0.00011354
0.000150519
5.46124e-06
-3.39368e-06
0.000148801
5.1123e-06
-1.17596e-06
0.000111323
7.27209e-05
1.04959e-06
7.16715e-05
2.19191e-06
0.00011018
0.000146213
4.78019e-06
-2.90652e-06
0.000144751
4.36849e-06
-9.55187e-07
0.000108229
7.07165e-05
8.11431e-07
6.99052e-05
1.69013e-06
0.000107351
0.000142476
3.96487e-06
-2.3559e-06
0.000141325
3.50738e-06
-7.07041e-07
0.000105702
6.91983e-05
5.55079e-07
6.86433e-05
1.13844e-06
0.000105119
0.000139398
3.06596e-06
-1.78058e-06
0.000138584
2.59438e-06
-4.50656e-07
0.000103789
6.81928e-05
3.00139e-07
6.78928e-05
5.77784e-07
0.000103512
0.000137022
2.14026e-06
-1.22239e-06
0.000136553
1.69113e-06
-2.05139e-07
0.000102495
6.76878e-05
6.21985e-08
6.76257e-05
4.48823e-08
0.000102512
0.000135344
1.25465e-06
-7.01004e-07
0.000135192
8.53424e-07
2.70906e-08
0.000101784
6.76528e-05
-1.59768e-07
6.78127e-05
-4.33539e-07
0.000102058
0.000134302
4.56586e-07
-2.74965e-07
0.000134439
1.37923e-07
2.13412e-07
0.00010157
6.80262e-05
-3.10627e-07
6.83369e-05
-8.04985e-07
0.000102064
0.00013384
-2.0653e-07
5.02703e-08
0.000134244
-4.53482e-07
3.37162e-07
0.000101777
6.86741e-05
-4.1007e-07
6.90842e-05
-1.08757e-06
0.000102455
0.000133876
-7.19286e-07
2.82691e-07
0.000134479
-8.86404e-07
4.17613e-07
0.00010232
6.95018e-05
-4.66579e-07
6.99684e-05
-1.2691e-06
0.000103123
0.000134272
-1.06122e-06
4.11835e-07
0.000135011
-1.15092e-06
4.5476e-07
0.00010308
7.04232e-05
-4.851e-07
7.09083e-05
-1.36063e-06
0.000103955
0.000134904
-1.25434e-06
4.65384e-07
0.000135731
-1.2916e-06
4.60937e-07
0.00010396
7.13692e-05
-4.76591e-07
7.18458e-05
-1.38654e-06
0.00010487
0.000135682
-1.33772e-06
4.63438e-07
0.000136558
-1.33985e-06
4.44836e-07
0.000104888
7.22906e-05
-4.52889e-07
7.27434e-05
-1.37236e-06
0.000105808
0.000136535
-1.34899e-06
4.31462e-07
0.000137436
-1.33238e-06
4.1825e-07
0.000105821
7.31616e-05
-4.21635e-07
7.35831e-05
-1.33494e-06
0.000106734
0.000137418
-1.31775e-06
3.81267e-07
0.000138325
-1.28782e-06
3.86091e-07
0.000106729
7.39691e-05
-3.87847e-07
7.43568e-05
-1.28718e-06
0.000107628
0.000138305
-1.26703e-06
3.28452e-07
0.000139208
-1.23232e-06
3.56176e-07
0.0001076
7.47129e-05
-3.54217e-07
7.5067e-05
-1.23666e-06
0.000108483
0.000139177
-1.20594e-06
2.73658e-07
0.000140072
-1.1688e-06
3.27255e-07
0.000108429
7.53941e-05
-3.28441e-07
7.57223e-05
-1.19055e-06
0.000109291
0.000140021
-1.1395e-06
2.16823e-07
0.000140905
-1.10144e-06
2.96199e-07
0.000109211
7.60183e-05
-3.02329e-07
7.63205e-05
-1.14563e-06
0.000110054
0.000140836
-1.07684e-06
1.67982e-07
0.000141707
-1.03847e-06
2.71908e-07
0.00010995
7.65921e-05
-2.79671e-07
7.68716e-05
-1.11512e-06
0.000110785
0.000141617
-1.02531e-06
6.25563e-07
0.000142008
-1.01716e-06
2.80922e-07
0.00011113
7.71522e-05
-7.05916e-07
7.78579e-05
-1.1028e-06
0.000111526
0.00014346
-2.55497e-06
2.09811e-06
0.000144923
-3.56172e-06
7.48267e-07
0.000112876
7.86058e-05
-1.58865e-06
8.01942e-05
-3.01242e-06
0.000114299
0.000146968
-5.05767e-06
2.1442e-06
0.000148457
-3.63362e-06
7.53904e-07
0.000115689
8.09477e-05
-7.55283e-07
8.17027e-05
-2.12604e-06
0.000117059
0.000149988
-3.65774e-06
5.51755e-06
0.000154148
-9.67777e-06
2.5353e-06
0.000120041
8.42377e-05
-7.7718e-07
-2.07169e-06
-2.94747e-06
-2.71472e-05
-0.000438735
-2.06396e-08
-0.00049076
-1.62636e-05
-0.00054777
9.28582e-06
-0.000574188
-2.26378e-06
-0.000592794
2.89481e-06
-0.000598667
-2.65624e-06
-0.000602598
-2.70576e-06
-0.000604805
-3.98536e-06
-0.00060741
-3.36506e-06
-0.000610487
-3.36023e-06
-0.000613351
-3.29472e-06
-0.000614891
-2.60917e-06
-0.000615828
-1.22982e-06
-0.000614235
6.41503e-06
-0.000608341
1.10284e-05
-0.000599809
3.64219e-05
-0.000585673
6.06929e-05
-0.000576884
0.000147333
-0.000581787
0.000319949
-0.000661043
9.22834e-05
-0.000183158
-3.3775e-05
-0.000279792
-1.722e-05
-0.00033884
1.11019e-05
-0.000344556
6.09803e-06
-0.000100298
3.18312e-06
-8.01195e-05
-5.67167e-05
-3.24826e-05
-2.41289e-05
-7.6319e-05
-3.64467e-05
-4.64349e-05
-0.000130101
-1.5675e-05
-5.9567e-05
2.73272e-05
-2.79396e-06
-4.57735e-05
-2.92012e-05
2.9505e-06
-3.18575e-05
6.28874e-06
-4.9533e-05
-6.54025e-05
1.22599e-05
-3.51005e-06
-6.85465e-05
6.65392e-06
-1.17441e-06
-5.18563e-05
-3.30469e-05
-9.82723e-07
-3.20639e-05
-1.59055e-06
-5.12487e-05
-6.73541e-05
-2.78312e-06
-5.93431e-07
-6.69081e-05
1.47356e-07
-4.66392e-07
-5.13758e-05
-3.25303e-05
-8.73858e-07
-3.16565e-05
-1.99638e-06
-5.02534e-05
-6.62756e-05
-2.62891e-06
-6.64243e-07
-6.69879e-05
1.37642e-06
-5.23619e-07
-5.0394e-05
-3.21802e-05
-8.47198e-07
-3.1333e-05
-8.53021e-07
-5.03883e-05
-6.58197e-05
-2.02127e-06
-1.25047e-06
-6.59875e-05
1.4182e-06
-5.32402e-07
-5.11064e-05
-3.18655e-05
-3.58455e-07
-3.1507e-05
-1.4035e-06
-5.00614e-05
-6.59893e-05
-1.40171e-06
-1.2939e-06
-6.67402e-05
2.04478e-06
-5.99654e-07
-5.07557e-05
-3.21067e-05
-3.45979e-07
-3.17608e-05
-8.34633e-07
-5.02671e-05
-6.61882e-05
-1.38673e-06
-1.32337e-06
-6.69433e-05
2.07847e-06
-6.04806e-07
-5.09857e-05
-3.23656e-05
-3.43816e-07
-3.20219e-05
-8.27525e-07
-5.0502e-05
-6.63966e-05
-1.37432e-06
-1.33781e-06
-6.71568e-05
2.098e-06
-6.12836e-07
-5.1227e-05
-3.26347e-05
-3.39412e-07
-3.22954e-05
-8.18506e-07
-5.0748e-05
-6.66159e-05
-1.35951e-06
-1.35462e-06
-6.73828e-05
2.12149e-06
-6.22139e-07
-5.14805e-05
-3.29175e-05
-3.35923e-07
-3.25816e-05
-8.11234e-07
-5.10052e-05
-6.68464e-05
-1.34766e-06
-1.37031e-06
-6.76185e-05
2.14238e-06
-6.30997e-07
-5.17445e-05
-3.32127e-05
-3.3108e-07
-3.28816e-05
-8.01369e-07
-5.12743e-05
-6.7088e-05
-1.33194e-06
-1.38959e-06
-6.78679e-05
2.16951e-06
-6.41551e-07
-5.20224e-05
-3.35232e-05
-3.27032e-07
-3.31962e-05
-7.92585e-07
-5.15568e-05
-6.73437e-05
-1.31681e-06
-1.40861e-06
-6.81296e-05
2.19443e-06
-6.51928e-07
-5.23135e-05
-3.38481e-05
-3.20744e-07
-3.35274e-05
-7.79688e-07
-5.18546e-05
-6.76122e-05
-1.29714e-06
-1.432e-06
-6.84087e-05
2.22853e-06
-6.6453e-07
-5.26221e-05
-3.41919e-05
-3.14878e-07
-3.38771e-05
-7.66883e-07
-5.21701e-05
-6.78999e-05
-1.27576e-06
-1.45713e-06
-6.87052e-05
2.26238e-06
-6.77817e-07
-5.29494e-05
-3.45549e-05
-3.06006e-07
-3.42489e-05
-7.48388e-07
-5.25071e-05
-6.82059e-05
-1.24766e-06
-1.48778e-06
-6.90253e-05
2.30711e-06
-6.93903e-07
-5.3301e-05
-3.49428e-05
-2.96557e-07
-3.46463e-05
-7.28046e-07
-5.28695e-05
-6.85384e-05
-1.21489e-06
-1.52418e-06
-6.93715e-05
2.35721e-06
-7.12691e-07
-5.3681e-05
-3.5359e-05
-2.8188e-07
-3.50771e-05
-6.97803e-07
-5.32651e-05
-6.88997e-05
-1.16961e-06
-1.56979e-06
-6.97532e-05
2.42326e-06
-7.36354e-07
-5.40985e-05
-3.58135e-05
-2.63788e-07
-3.55497e-05
-6.61114e-07
-5.37012e-05
-6.92995e-05
-1.11474e-06
-1.62887e-06
-7.01767e-05
2.50606e-06
-7.67362e-07
-5.45627e-05
-3.63171e-05
-2.34471e-07
-3.60826e-05
-6.06361e-07
-5.41909e-05
-6.97484e-05
-1.03473e-06
-1.70773e-06
-7.0656e-05
2.61537e-06
-8.09394e-07
-5.50892e-05
-3.6892e-05
-1.9496e-07
-3.66971e-05
-5.31615e-07
-5.47525e-05
-7.02592e-05
-9.28412e-07
-1.82266e-06
-7.12083e-05
2.7717e-06
-8.73369e-07
-5.57018e-05
-3.75704e-05
-1.28126e-07
-3.74423e-05
-4.1356e-07
-5.54164e-05
-7.08586e-05
-7.63227e-07
-1.98449e-06
-7.18604e-05
2.98631e-06
-9.67476e-07
-5.64334e-05
-3.84098e-05
-1.97535e-08
-3.839e-05
-2.30714e-07
-5.62224e-05
-7.15752e-05
-5.1591e-07
-2.2369e-06
-7.2656e-05
3.31765e-06
-1.12132e-06
-5.7338e-05
-3.95113e-05
1.32713e-07
-3.9644e-05
4.22746e-08
-5.72476e-05
-7.24917e-05
-1.21931e-07
-2.7563e-06
-7.31064e-05
3.37097e-06
-1.40624e-06
-5.85976e-05
-4.10503e-05
3.1724e-07
-4.13675e-05
3.21302e-07
-5.86017e-05
-7.30567e-05
2.71578e-07
-2.46684e-06
-7.4783e-05
4.19313e-06
-1.27566e-06
-5.97929e-05
-4.26432e-05
9.61492e-08
-4.27393e-05
4.17287e-07
-6.0114e-05
-7.43746e-05
8.90542e-09
-2.50929e-06
-7.61842e-05
4.31897e-06
-1.2707e-06
-6.13526e-05
-4.401e-05
7.73557e-07
-4.47835e-05
7.16034e-07
-6.1295e-05
-7.6032e-05
5.63866e-07
-2.54227e-06
-7.77017e-05
4.21198e-06
-7.91056e-07
-6.30462e-05
-4.55746e-05
1.26684e-06
-4.68414e-05
1.08313e-06
-6.28625e-05
-7.80361e-05
1.41752e-06
-2.79327e-06
-8.01428e-05
4.89995e-06
-1.14871e-06
-6.45071e-05
-4.79901e-05
6.563e-07
-4.86464e-05
1.56028e-06
-6.5411e-05
-8.03212e-05
1.73875e-06
-3.82284e-06
-8.24021e-05
5.9038e-06
-1.67238e-06
-6.75615e-05
-5.03188e-05
7.32002e-07
-5.10507e-05
1.68407e-06
-6.85135e-05
-8.36983e-05
2.98028e-06
-3.82817e-06
-8.63791e-05
6.50896e-06
-2.31213e-06
-7.00295e-05
-5.33628e-05
1.75218e-06
-5.5115e-05
3.80314e-06
-7.20805e-05
-8.81796e-05
5.60368e-06
-6.83218e-06
-9.21593e-05
1.08115e-05
-3.49154e-06
-7.54203e-05
-5.86073e-05
4.51468e-06
-6.30992e-05
9.39384e-06
-8.03247e-05
-9.77578e-05
1.5002e-05
7.2569e-05
-4.97193e-05
-0.000120653
3.2062e-05
-3.96237e-05
-3.11837e-05
1.15884e-05
-3.98859e-05
2.01233e-05
-5.27308e-05
-6.4242e-05
3.65721e-05
-1.28001e-05
-7.31367e-05
2.16602e-05
-5.33042e-06
-5.99858e-05
-4.54272e-05
3.76364e-06
-4.91864e-05
7.51472e-06
-6.37353e-05
-7.84712e-05
1.28461e-05
-5.7375e-06
-8.19035e-05
9.16991e-06
-2.62491e-06
-6.6848e-05
-5.18113e-05
2.47045e-06
-5.42818e-05
5.24257e-06
-6.96201e-05
-8.50112e-05
8.35022e-06
-6.05478e-06
-8.8089e-05
9.13285e-06
-2.71561e-06
-7.29599e-05
-5.69967e-05
2.69808e-06
-5.97141e-05
3.32748e-06
-7.35652e-05
-8.8613e-05
3.84612e-06
6.84423e-05
-4.43181e-05
-0.000112695
3.12641e-05
-3.6536e-05
-2.83512e-05
5.99009e-06
-3.62689e-05
1.85164e-05
-4.61117e-05
-5.71123e-05
3.01554e-05
-9.27228e-06
-6.26149e-05
1.47842e-05
-4.08145e-06
-5.1419e-05
-4.02315e-05
2.29824e-06
-4.25342e-05
3.88087e-06
-5.29993e-05
-6.49994e-05
6.26581e-06
-3.06953e-06
-6.3675e-05
1.75249e-06
-2.28828e-06
-5.38063e-05
-4.48035e-05
-2.35531e-05
-2.13778e-05
-5.07307e-05
-2.64206e-05
-3.1749e-05
-8.27574e-05
-1.16752e-05
-4.02597e-05
2.14299e-05
-7.4363e-06
-3.35181e-05
-2.7048e-05
2.73204e-06
-2.99023e-05
5.51997e-06
-3.61626e-05
-4.3419e-05
8.64151e-06
6.88789e-06
-3.22407e-05
-1.80646e-05
9.04984e-07
-3.01848e-05
-2.89913e-05
-1.9896e-05
-9.09502e-06
-4.13292e-05
-8.7522e-06
-8.84839e-06
-6.47214e-05
2.85177e-05
6.29795e-06
-4.3673e-05
1.36427e-05
6.13356e-06
4.5541e-06
-2.62636e-05
3.03493e-05
-5.69115e-05
3.72367e-05
4.47729e-05
-9.54505e-05
4.27722e-05
6.47277e-05
-5.86379e-05
1.2684e-05
5.54775e-05
5.15497e-05
-2.06268e-05
7.06088e-05
-4.40553e-05
8.03519e-05
9.49441e-05
-7.44102e-05
6.9343e-05
0.000145977
-0.00012039
2.83884e-05
0.00012131
9.90461e-05
3.95639e-05
5.9478e-05
8.31544e-05
7.77245e-05
9.3108e-05
0.00013602
9.49746e-05
0.000158661
-0.000160528
4.28052e-05
0.000129895
0.000102283
2.92734e-05
7.30296e-05
6.37423e-05
9.53983e-05
0.000117107
0.000105308
-5.60018e-05
7.97777e-05
9.31837e-05
-2.45581e-05
6.43301e-05
4.82343e-05
-4.106e-05
8.93784e-05
-9.38632e-05
0.000116993
0.000145334
-0.000159363
-4.88986e-05
0.00011105
8.31111e-05
-2.10419e-05
8.94665e-05
6.81346e-05
2.38985e-05
4.67525e-05
4.84584e-05
6.07088e-05
7.6918e-05
8.43433e-05
9.2285e-05
0.000141198
-0.000156813
4.00134e-05
0.000113584
8.64463e-05
2.02911e-05
6.64125e-05
4.65447e-05
8.69591e-05
0.000108374
7.95163e-05
-4.89949e-05
7.53007e-05
8.02542e-05
-1.81826e-05
6.02594e-05
4.56401e-05
-3.95352e-05
8.54758e-05
-9.20801e-05
0.000112342
0.000139898
-0.000156442
-4.51411e-05
0.000107687
7.72945e-05
-1.91813e-05
8.65895e-05
6.61737e-05
2.1662e-05
4.56517e-05
4.65651e-05
5.97908e-05
7.55398e-05
7.95076e-05
9.10468e-05
0.000139032
-0.000154659
3.94305e-05
0.00011166
8.49545e-05
1.93095e-05
6.56862e-05
4.47009e-05
8.62054e-05
0.000106997
7.67682e-05
-4.67127e-05
7.50334e-05
7.83963e-05
-1.99185e-05
5.99504e-05
4.54461e-05
-3.98786e-05
8.53597e-05
-9.18215e-05
0.000111823
0.000138385
-0.000155113
-4.44911e-05
0.000107317
7.55518e-05
-1.91024e-05
8.64491e-05
6.62478e-05
2.06113e-05
4.56808e-05
4.67043e-05
6.02838e-05
7.48471e-05
7.9208e-05
9.08367e-05
0.000138117
-0.000154117
3.94622e-05
0.000111671
8.51364e-05
1.9115e-05
6.60225e-05
4.5011e-05
8.57734e-05
0.000107137
7.5992e-05
-4.61142e-05
7.45423e-05
7.87088e-05
-2.02766e-05
5.99364e-05
4.57455e-05
-3.95847e-05
8.53302e-05
-9.09506e-05
0.000111302
0.000137871
-0.000154279
-4.44531e-05
0.000106933
7.53913e-05
-1.92737e-05
8.61229e-05
6.60565e-05
2.03127e-05
4.57438e-05
4.66486e-05
5.97868e-05
7.46917e-05
7.88895e-05
9.03184e-05
0.000136999
-0.000152625
3.9467e-05
0.000110638
8.52108e-05
1.95524e-05
6.56585e-05
4.5029e-05
8.51614e-05
0.000106258
7.57699e-05
-4.6072e-05
7.39098e-05
7.84191e-05
-2.00088e-05
5.91004e-05
4.56483e-05
-3.86926e-05
8.43416e-05
-8.94162e-05
0.000109823
0.000135848
-0.000151354
-4.45404e-05
0.00010555
7.48351e-05
-1.92922e-05
8.45807e-05
6.50447e-05
2.01932e-05
4.49172e-05
4.64932e-05
5.81759e-05
7.28003e-05
7.92903e-05
8.75158e-05
0.000132869
-0.000147614
3.80018e-05
0.000107771
8.28622e-05
2.07085e-05
6.26586e-05
4.63555e-05
8.14883e-05
0.000101314
7.80826e-05
-5.05678e-05
6.77532e-05
8.05473e-05
-1.52627e-05
5.52029e-05
4.15782e-05
-3.24512e-05
7.52804e-05
-7.67149e-05
9.7265e-05
0.00011985
-0.000127742
-5.25613e-05
8.45012e-05
8.76316e-05
-2.25957e-05
6.77862e-05
5.23994e-05
-4.03727e-05
9.28058e-05
-9.2772e-05
0.000120126
0.00014787
-0.000156098
-5.3993e-05
0.000110822
9.10212e-05
-2.35239e-05
8.96974e-05
6.92534e-05
2.22152e-05
4.72138e-05
5.01235e-05
6.151e-05
7.66233e-05
8.44441e-05
8.89625e-05
0.000137608
-0.000149976
3.88138e-05
0.000111742
8.59793e-05
2.06373e-05
6.58487e-05
4.70808e-05
8.46783e-05
0.000104938
7.99049e-05
-5.26967e-05
7.02056e-05
8.39613e-05
-1.66464e-05
5.73612e-05
4.35632e-05
-3.30358e-05
7.7824e-05
-7.84476e-05
0.00010063
0.000123866
-0.000131115
-5.40374e-05
8.75006e-05
9.01688e-05
-2.32889e-05
7.03327e-05
5.42669e-05
-4.21139e-05
9.64044e-05
-9.55796e-05
0.000123745
0.000152375
-0.000160414
-5.69615e-05
0.000113337
9.59903e-05
-2.49698e-05
9.17658e-05
7.14271e-05
2.39196e-05
4.75865e-05
5.45163e-05
6.10452e-05
7.54913e-05
9.24158e-05
7.98742e-05
0.000131085
-0.000135482
3.44551e-05
0.000106496
8.20229e-05
2.48272e-05
5.72013e-05
5.75696e-05
7.37446e-05
9.07621e-05
9.78967e-05
9.68159e-05
0.000157009
-0.000163063
4.27791e-05
0.000127783
9.99794e-05
2.6469e-05
7.35137e-05
6.01993e-05
9.4049e-05
0.000116317
0.000100892
-5.61313e-05
7.75106e-05
9.49035e-05
-2.47538e-05
6.27445e-05
4.8715e-05
-3.64163e-05
8.51422e-05
-8.27423e-05
0.000109051
0.000134326
-0.00013955
-5.8983e-05
9.33854e-05
9.99218e-05
-2.61398e-05
7.62129e-05
5.89996e-05
-4.49187e-05
0.000103919
-0.000101083
0.000132377
0.000162146
-0.000169844
-6.1829e-05
0.000119879
0.000104096
-2.71766e-05
9.77248e-05
7.67419e-05
2.65587e-05
5.01833e-05
5.94537e-05
6.48296e-05
8.04941e-05
9.88383e-05
8.50131e-05
0.000137459
-0.000141978
3.7818e-05
0.000112025
8.80012e-05
2.72346e-05
6.07665e-05
6.22024e-05
7.70569e-05
9.55414e-05
0.00010412
0.000101025
0.000164254
-0.000169737
4.44429e-05
0.000133639
0.000105209
2.79829e-05
7.72269e-05
6.32998e-05
9.83213e-05
0.000121187
0.000106367
-5.95426e-05
8.07336e-05
9.99933e-05
-2.63299e-05
6.51153e-05
5.08927e-05
-3.8011e-05
8.89058e-05
-8.59587e-05
0.00011306
0.000138235
-0.000143459
-6.23828e-05
9.58394e-05
0.000104777
-2.77061e-05
7.8388e-05
6.11967e-05
-4.54462e-05
0.000106666
-0.000103043
0.000135955
0.000165837
-0.000173035
-6.4513e-05
0.000122974
0.000107277
-2.8021e-05
9.98712e-05
7.82483e-05
3.10176e-05
5.13633e-05
5.87729e-05
6.57227e-05
8.06882e-05
0.000103597
8.33798e-05
0.000137901
-0.000142666
3.98859e-05
0.000113588
8.87805e-05
3.08114e-05
5.87528e-05
6.7708e-05
7.52975e-05
9.19486e-05
0.000114362
9.03107e-05
0.00015359
-0.0001521
4.05079e-05
0.000125454
9.90547e-05
3.2173e-05
6.70084e-05
7.20896e-05
8.53152e-05
0.000104524
0.000121255
0.000106419
0.000177139
-0.000179052
4.68644e-05
0.000144928
0.000113827
3.17585e-05
8.26091e-05
7.20487e-05
0.000104006
0.000127765
0.000121558
-6.78055e-05
8.33155e-05
0.000108811
-2.36922e-05
6.86642e-05
5.32703e-05
-3.58255e-05
9.25038e-05
-8.93142e-05
0.000116248
0.000143487
-0.000146692
-7.12304e-05
9.50656e-05
0.00011865
-3.05927e-05
7.75277e-05
6.08104e-05
-4.05751e-05
0.000101614
-9.22055e-05
0.000128804
0.000158528
-0.000155535
-7.35081e-05
0.000107394
0.00012457
-3.22926e-05
8.77642e-05
6.92025e-05
-4.89253e-05
0.000118121
-0.000110212
0.00014905
0.000181669
-0.000184479
-7.35412e-05
0.0001321
0.000123187
-3.28564e-05
0.000107742
8.57947e-05
2.46013e-05
5.5125e-05
7.0654e-05
7.10581e-05
8.60987e-05
0.000113094
9.33214e-05
0.000147243
-0.000150757
3.56758e-05
0.000120942
9.52607e-05
3.15487e-05
6.21809e-05
7.51068e-05
8.00776e-05
9.74032e-05
0.00012356
9.37312e-05
0.000161267
-0.000157296
4.16296e-05
0.000131474
0.000104255
3.57331e-05
6.82369e-05
8.16218e-05
8.60147e-05
0.000104818
0.000137871
9.7178e-05
0.000170219
-0.000162502
4.26796e-05
0.000140319
0.000111054
3.66085e-05
7.43406e-05
8.26665e-05
9.44113e-05
0.000115022
0.000137806
0.000113351
0.000191872
-0.000190202
5.07191e-05
0.000157062
0.000125036
3.59765e-05
8.9695e-05
7.91807e-05
0.000113123
0.000138619
0.000132563
-7.36678e-05
8.98033e-05
0.000118489
-2.50971e-05
7.49761e-05
5.78361e-05
-3.63519e-05
9.99063e-05
-9.65782e-05
0.000125376
0.000153974
-0.00015611
-7.86423e-05
0.000102088
0.000128665
-3.25602e-05
8.29303e-05
6.52593e-05
-4.2625e-05
0.000108416
-9.80833e-05
0.000137516
0.000166694
-0.000162248
-8.52607e-05
0.000109158
0.000142486
-3.68643e-05
8.96295e-05
7.12358e-05
-4.44541e-05
0.000115776
-0.000101506
0.000146562
0.000178506
-0.000170801
-8.50657e-05
0.000120559
0.000142992
-3.76292e-05
9.91799e-05
7.81051e-05
-5.40142e-05
0.000132105
-0.000121494
0.000166659
0.00020233
-0.000203256
-8.29464e-05
0.000146532
0.000138759
-3.69832e-05
0.000120167
9.55674e-05
2.91566e-05
6.11643e-05
7.86658e-05
7.88244e-05
9.61003e-05
0.000126022
0.000102586
0.000162467
-0.000165235
4.01449e-05
0.000133408
0.000105833
3.5068e-05
6.92308e-05
8.34792e-05
8.76831e-05
0.000107219
0.000137379
0.000101979
0.000176137
-0.000170591
4.5215e-05
0.000143729
0.000114887
4.03517e-05
7.42674e-05
9.05273e-05
9.39649e-05
0.000114236
0.000152239
0.000104557
0.000183925
-0.000174148
4.66095e-05
0.000151651
0.000121043
4.26093e-05
7.82751e-05
9.50242e-05
9.94881e-05
0.000120353
0.000158498
0.000109377
0.000194655
-0.000183637
4.89858e-05
0.000159766
0.00012734
4.21306e-05
8.51529e-05
9.38785e-05
0.000108098
0.000131098
0.000157409
0.000129346
0.000218704
-0.000216943
5.7522e-05
0.000179914
0.000142668
4.08505e-05
0.000102196
9.14599e-05
0.000128845
0.000155723
0.000154513
-8.35374e-05
0.000101695
0.000134894
-3.20675e-05
8.41793e-05
6.58148e-05
-4.3241e-05
0.000113044
-0.00010723
0.000141208
0.000171547
-0.000173793
-8.88171e-05
0.000113225
0.000145831
-3.7811e-05
9.28279e-05
7.37527e-05
-4.64856e-05
0.000120783
-0.00010713
0.000152559
0.000184379
-0.000177828
-9.63479e-05
0.00012025
0.000160142
-4.21219e-05
9.89398e-05
7.82825e-05
-4.78614e-05
0.000126382
-0.000108588
0.000159313
0.000193221
-0.000181412
-9.95038e-05
0.000126477
0.000166121
-4.37721e-05
0.000103884
8.24093e-05
-5.08789e-05
0.000133411
-0.000115388
0.000168212
0.000202872
-0.000191716
-9.80711e-05
0.00013705
0.000163841
-4.27295e-05
0.000113023
9.05766e-05
-6.05683e-05
0.000151192
-0.000136907
0.000189295
0.00022975
-0.000229588
-9.54413e-05
0.000166033
0.000159147
-4.19001e-05
0.000135948
0.000109126
4.00746e-05
7.09358e-05
8.49881e-05
8.79535e-05
0.000108991
0.00014323
0.000110136
0.000182807
-0.000185524
5.08043e-05
0.000150757
0.000119827
4.2017e-05
7.85122e-05
9.20115e-05
9.95114e-05
0.000120171
0.000155244
0.000114362
0.000196839
-0.000191294
5.11884e-05
0.000163439
0.000129276
4.59786e-05
8.36188e-05
0.000103372
0.000105473
0.000128831
0.000171601
0.000116573
0.000206398
-0.000194275
5.16306e-05
0.000170815
0.00013502
4.66284e-05
8.86083e-05
0.000106651
0.000110401
0.000134454
0.000178727
0.000122067
0.000217068
-0.000204746
5.41512e-05
0.000178506
0.000142652
4.67226e-05
9.60075e-05
0.000105192
0.000119912
0.00014596
0.000176342
0.000144158
0.000242266
-0.00024048
6.35508e-05
0.0002006
0.000159498
4.57747e-05
0.000114145
0.000103099
0.000142714
0.000173239
0.000172192
-9.28044e-05
0.000113056
0.000149927
-3.58968e-05
9.37204e-05
7.32619e-05
-4.70675e-05
0.000125439
-0.000119504
0.000157141
0.000190685
-0.000192925
-9.95374e-05
0.000124824
0.000163566
-4.20763e-05
0.000103428
8.13203e-05
-5.25702e-05
0.000134738
-0.000119221
0.000168689
0.000204874
-0.000198613
-0.000107462
0.000133464
0.000178397
-4.69944e-05
0.000109076
8.71951e-05
-5.2943e-05
0.00014057
-0.000120898
0.000176404
0.000213449
-0.000200639
-0.000110787
0.000139594
0.000184398
-4.92894e-05
0.000115496
9.08818e-05
-5.66234e-05
0.0001478
-0.000127429
0.000185904
0.000225152
-0.000212856
-0.000109215
0.000152038
0.000182217
-4.76993e-05
0.000124708
9.98663e-05
-6.74125e-05
0.000167396
-0.000151945
0.000209105
0.000253932
-0.000253798
-0.000105168
0.000183768
0.000175267
-4.61044e-05
0.000150432
0.000120832
4.66758e-05
7.82565e-05
9.30043e-05
9.76625e-05
0.000120248
0.000159071
0.000121742
0.000202008
-0.000206712
5.89039e-05
0.000167586
0.000133231
4.78368e-05
8.68999e-05
0.000103056
0.000109689
0.000133966
0.000172394
0.000127551
0.000217904
-0.000211983
5.72893e-05
0.000181192
0.000143507
5.0721e-05
9.3221e-05
0.000113797
0.000117264
0.000142366
0.000189685
0.000129829
0.000229043
-0.000216724
5.80805e-05
0.000189709
0.000150915
5.31151e-05
9.81543e-05
0.000119011
0.000123172
0.000148901
0.000199364
0.000136192
0.00024124
-0.000228677
6.10531e-05
0.000198802
0.000158925
5.2513e-05
0.000106665
0.000116989
0.000133916
0.000162067
0.000196288
0.00016115
0.000269634
-0.000268786
7.17893e-05
0.000223467
0.000178328
5.09762e-05
0.000127217
0.000115213
0.000159308
0.00019455
0.000190256
-9.86123e-05
0.000126099
0.000168887
-4.73791e-05
0.000103557
8.26402e-05
-6.13623e-05
0.000140577
-0.000128458
0.000176815
0.00021253
-0.000217645
-0.000108786
0.000140326
0.000182306
-4.95345e-05
0.0001149
9.25221e-05
-6.01184e-05
0.000151779
-0.000133143
0.000189477
0.000229223
-0.000222631
-0.000119933
0.000150438
0.000199149
-5.46552e-05
0.000123124
9.77045e-05
-6.18469e-05
0.000159127
-0.000136591
0.000198577
0.000240598
-0.000227003
-0.000123526
0.000156665
0.000207691
-5.62567e-05
0.000130673
0.000103231
-6.5494e-05
0.000168469
-0.000143809
0.000209445
0.000254612
-0.000241893
-0.000121626
0.000172597
0.000203763
-5.50998e-05
0.000142525
0.000113594
-7.67455e-05
0.000190238
-0.000172694
0.000238651
0.000288264
-0.000288408
-0.000118877
0.000209218
0.000197946
-5.24447e-05
0.000172113
0.000137848
4.86547e-05
8.95464e-05
0.000107253
0.000112912
0.000137055
0.000179619
0.000140499
0.000232089
-0.000236257
6.38093e-05
0.00019186
0.000152066
5.2269e-05
0.000100637
0.000116666
0.000125971
0.000152974
0.00019626
0.00014569
0.000251446
-0.00024431
6.50673e-05
0.000206967
0.000165513
5.74589e-05
0.000108126
0.000128516
0.00013576
0.00016458
0.000215441
0.000151706
0.000265601
-0.000252743
6.72094e-05
0.000220308
0.000175308
5.7782e-05
0.000117538
0.000130188
0.00014788
0.000180156
0.000215642
0.000178499
0.000297916
-0.000296264
7.86905e-05
0.000247708
0.000196215
5.46531e-05
0.000141588
0.000124987
0.000177346
0.000216034
0.000206874
-0.000110915
0.000141791
0.000184993
-4.88284e-05
0.000115706
9.24251e-05
-6.41792e-05
0.000158484
-0.000149478
0.000198228
0.000238073
-0.00024471
-0.000122015
0.000158595
0.000200901
-5.34889e-05
0.000131263
0.000103877
-6.79792e-05
0.000172576
-0.000152856
0.000215169
0.000260404
-0.000254322
-0.00013274
0.000171644
0.000221138
-5.93202e-05
0.000142634
0.000112631
-7.2218e-05
0.000185377
-0.000160451
0.000230167
0.000280179
-0.000268777
-0.000132136
0.000190538
0.00022159
-5.85275e-05
0.000157165
0.000126421
-8.54757e-05
0.000212077
-0.000194107
0.0002655
0.000319386
-0.000322861
-0.000131295
0.000233732
0.000216875
-5.70679e-05
0.000191569
0.000154785
5.45723e-05
0.000100802
0.00011926
0.000125924
0.000154093
0.000199252
0.000160453
0.000259401
-0.000266356
7.23326e-05
0.000215681
0.000172258
5.83545e-05
0.000114492
0.000129857
0.000143019
0.000174904
0.000214785
0.000170775
0.000288702
-0.000284854
7.6289e-05
0.00023855
0.000190204
6.07617e-05
0.000129917
0.00013643
0.000162067
0.000197634
0.000227717
0.000201398
0.000331585
-0.000335459
8.91579e-05
0.000274672
0.000218857
6.13695e-05
0.000157652
0.000137209
0.000198565
0.000240343
0.000228522
-0.000122945
0.000158313
0.000204892
-5.37978e-05
0.0001296
0.000103743
-7.22719e-05
0.000176038
-0.000165272
0.000222561
0.000267639
-0.000274582
-0.000132674
0.000179661
0.000220642
-5.86013e-05
0.000148506
0.000117427
-7.92876e-05
0.00019672
-0.000176843
0.000246052
0.000298554
-0.000295733
-0.000139754
0.000205519
0.000232788
-6.19893e-05
0.000168291
0.000134729
-9.51842e-05
0.000229914
-0.000212864
0.000285969
0.000347054
-0.000354397
-0.000138708
0.000255753
0.000230008
-6.19079e-05
0.00020917
0.000168005
5.76253e-05
0.000110379
0.000128072
0.000138723
0.000167923
0.000215901
0.000177244
0.00028837
-0.00029769
7.88294e-05
0.000237137
0.00018921
5.92508e-05
0.00012995
0.000132814
0.000163591
0.000199446
0.000221733
0.000214075
0.00034021
-0.000354782
9.52534e-05
0.000282323
0.000225314
5.90825e-05
0.000165741
0.000132936
0.000208989
0.00025292
0.000220063
-0.000123324
0.000168039
0.000211809
-6.00154e-05
0.000137549
0.000110508
-8.49549e-05
0.000192059
-0.000180472
0.000239757
0.000288642
-0.000303768
-0.000130755
0.000200729
0.000220441
-6.11902e-05
0.000165832
0.000133127
-9.77595e-05
0.000230408
-0.000219692
0.000288581
0.000348605
-0.000367804
-0.000134721
0.000260306
0.000223028
-5.98724e-05
0.000213641
0.000170623
5.63192e-05
0.000112763
0.000129984
0.000142252
0.000172024
0.000217224
0.000188912
0.000297957
-0.000313481
8.26125e-05
0.000245203
0.000197706
6.00948e-05
0.000136198
0.000137052
0.000170348
0.00020573
0.000228466
0.000225669
0.000353755
-0.000373351
0.000100124
0.000294684
0.00023706
6.11329e-05
0.000175154
0.000138032
0.000218805
0.000262976
0.000228561
-0.000131762
0.000176957
0.00022011
-6.31647e-05
0.000144242
0.000115624
-8.83956e-05
0.000202558
-0.000196876
0.000255526
0.000306292
-0.000327111
-0.000137418
0.000216105
0.000228155
-6.16068e-05
0.000178265
0.000141684
-0.000108206
0.000249277
-0.000241839
0.000313011
0.000375632
-0.000401712
-0.00014304
0.000283013
0.000236132
-6.42091e-05
0.000232804
0.000185959
5.90213e-05
0.000124367
0.000141508
0.000154473
0.000187361
0.000235253
0.000206107
0.000326834
-0.000345507
9.11499e-05
0.000269334
0.000215531
6.49112e-05
0.000150604
0.000144733
0.000189574
0.000230399
0.00024109
0.00025578
0.000399638
-0.000424992
0.000114673
0.000330553
0.000265363
6.31866e-05
0.000201743
0.00014119
0.000253355
0.000307208
0.000233337
-0.000136826
0.000213426
0.000231654
-6.2268e-05
0.00017631
0.000140919
-0.000117783
0.000258355
-0.000258761
0.000317702
0.000382487
-0.00042797
-0.000129365
0.000301886
0.00021
-5.97649e-05
0.000247985
0.000198792
6.04409e-05
0.000138297
0.00013481
0.000173696
0.000210407
0.000226263
0.00026052
0.000382913
-0.00043289
0.000116112
0.000317679
0.000254715
5.34239e-05
0.000199847
0.000120756
0.000253088
0.000304161
0.000198431
-0.000129737
0.00021409
0.000226687
-6.56619e-05
0.000175556
0.000141853
-0.000120021
0.000260195
-0.000264027
0.000322481
0.000385687
-0.000437481
-0.000127061
0.000307254
0.000205751
-5.92513e-05
0.000254141
0.000201265
5.96114e-05
0.000142037
0.000135388
0.000177688
0.000216839
0.000226077
0.000274015
0.000394627
-0.000452428
0.000123555
0.000330366
0.000264531
5.54471e-05
0.000212483
0.000118746
0.000262473
0.000318555
0.000197177
-0.000146396
0.000223366
0.000232573
-5.48953e-05
0.000189188
0.000146412
-0.000126221
0.000273685
-0.000282881
0.000342735
0.000415183
-0.000472973
-0.000122372
0.000334135
0.000203145
-5.44226e-05
0.000275019
0.000219028
6.03898e-05
0.000159346
0.000136208
0.000198278
0.000241989
0.000228751
0.000322544
0.000446792
-0.000527414
0.000148769
0.000372391
0.000307618
4.3431e-05
0.000264541
8.32707e-05
0.000332413
0.000404398
0.000125681
-0.000114207
0.000327776
0.000190839
-5.1772e-05
0.000269979
0.00021274
5.28651e-05
0.000160838
0.000123336
0.00019819
0.000241213
0.000210558
0.000339807
0.000459293
-0.000558245
0.00015683
0.000382437
0.000316018
3.69278e-05
0.000279972
6.43812e-05
0.000354657
0.000429601
9.41095e-05
-7.7261e-05
0.000377009
0.000129838
-3.37716e-05
0.000311309
0.000245909
3.55727e-05
0.000211408
8.60088e-05
0.000259877
0.000309719
0.00015365
-0.000127442
0.000237176
0.000199261
-5.93506e-05
0.000193619
0.000150607
-0.000150861
0.000301556
-0.000333246
0.000375883
0.00045698
-0.000552985
-5.37929e-05
0.000423531
8.71786e-05
-2.49433e-05
0.000347084
0.00027659
2.86055e-05
0.000248012
5.20219e-05
0.000323608
0.000395421
8.01837e-05
-2.719e-05
0.000376123
4.64833e-05
-1.06143e-05
0.000307038
0.000237396
1.96916e-05
0.000217705
3.33963e-05
0.000293331
0.000362805
4.67177e-05
-1.51463e-05
0.000355561
2.23856e-05
-8.68213e-06
0.000286869
0.000209022
1.13757e-05
0.000197646
1.91939e-05
0.00027905
0.000348846
2.59118e-05
-1.32833e-05
0.000345123
1.70056e-05
-7.97131e-06
0.000273738
0.000189675
1.03698e-05
0.000179305
1.99513e-05
0.000264156
0.000335969
2.91056e-05
-1.29634e-05
0.000331663
1.72692e-05
-7.0547e-06
0.000258248
0.000172251
8.50084e-06
0.00016375
1.71676e-05
0.000249581
0.000323179
2.56519e-05
-9.56902e-06
0.000319969
1.27784e-05
-5.10768e-06
0.000245119
0.000158642
6.72285e-06
0.000151919
1.41032e-05
0.000237739
0.000312613
2.14594e-05
-7.18424e-06
0.000309908
9.88892e-06
-3.78252e-06
0.000234337
0.000148136
5.56036e-06
0.000142576
1.23452e-05
0.000227552
0.000303288
1.89655e-05
-5.95035e-06
0.000301171
8.06759e-06
-2.93259e-06
0.000224534
0.000139643
4.76284e-06
0.00013488
1.07348e-05
0.000218562
0.000294707
1.71981e-05
-4.63661e-06
0.00029263
6.71346e-06
-2.28926e-06
0.000216215
0.000132591
4.11563e-06
0.000128475
9.71125e-06
0.000210619
0.000286695
1.56463e-05
-3.7287e-06
0.000285151
5.27334e-06
-1.7045e-06
0.000208595
0.000126771
3.50881e-06
0.000123262
8.33638e-06
0.000203767
0.000279413
1.40738e-05
-2.57568e-06
0.000277964
4.02438e-06
-1.19979e-06
0.000202392
0.000122062
3.00575e-06
0.000119056
7.50689e-06
0.00019789
0.000272762
1.27087e-05
-1.88528e-06
0.000271823
2.82437e-06
-7.59037e-07
0.000196764
0.000118297
2.56756e-06
0.00011573
6.44028e-06
0.000192891
0.00026679
1.14732e-05
-1.00687e-06
0.000265925
1.87222e-06
-4.03959e-07
0.000192288
0.000115326
2.21935e-06
0.000113106
5.89563e-06
0.000188612
0.000261366
1.04541e-05
-5.6551e-07
0.000260955
9.76239e-07
-9.71583e-08
0.000188143
0.000113009
1.88241e-06
0.000111127
5.07353e-06
0.000184952
0.000256509
9.52019e-06
1.42386e-07
0.000256152
2.1394e-07
1.94432e-07
0.0001849
0.000111321
1.60855e-06
0.000109712
4.68825e-06
0.00018182
0.000252162
8.6789e-06
4.42688e-07
0.000252225
-5.05882e-07
4.30432e-07
0.000181833
0.000110143
1.38783e-06
0.000108755
4.03155e-06
0.000179189
0.00024836
7.89592e-06
1.00801e-06
0.000248468
-1.11532e-06
6.13886e-07
0.000179583
0.000109369
1.22671e-06
0.000108142
3.81528e-06
0.000176994
0.000245047
7.23612e-06
1.15613e-06
0.00024557
-1.67985e-06
7.47255e-07
0.000177403
0.000108889
1.10288e-06
0.000107786
3.32167e-06
0.000175184
0.00024223
6.66148e-06
1.59259e-06
0.000242781
-2.14331e-06
8.51696e-07
0.000175925
0.000108638
1.00938e-06
0.000107628
3.21726e-06
0.000173717
0.000239841
6.15711e-06
1.63911e-06
0.00024076
-2.55833e-06
9.22307e-07
0.000174434
0.000108551
9.28333e-07
0.000107622
2.80344e-06
0.000172559
0.000237875
5.68881e-06
1.97638e-06
0.000238765
-2.86694e-06
9.75402e-07
0.00017356
0.000108598
8.68635e-07
0.000107729
2.76487e-06
0.000171663
0.000236242
5.28798e-06
1.9509e-06
0.00023745
-3.15881e-06
1.01015e-06
0.000172604
0.000108739
8.25966e-07
0.000107913
2.43902e-06
0.000170991
0.000234929
4.96018e-06
2.24098e-06
0.000236083
-3.39483e-06
1.04249e-06
0.000172189
0.000108956
7.85359e-07
0.00010817
2.44938e-06
0.000170525
0.000233881
4.65095e-06
2.17205e-06
0.000235314
-3.60544e-06
1.06008e-06
0.000171637
0.00010923
7.63748e-07
0.000108466
2.18095e-06
0.00017022
0.000233071
4.42436e-06
2.42741e-06
0.000234422
-3.77837e-06
1.08062e-06
0.000171567
0.000109547
7.34884e-07
0.000108812
2.22864e-06
0.000170073
0.00023246
4.19031e-06
2.32851e-06
0.000234059
-3.92818e-06
1.08937e-06
0.000171312
0.000109901
7.24733e-07
0.000109177
1.99955e-06
0.000170037
0.000232019
4.03981e-06
2.55751e-06
0.000233515
-4.05381e-06
1.10358e-06
0.000171491
0.00011028
6.9972e-07
0.00010958
2.06875e-06
0.000170122
0.000231714
3.86966e-06
2.42681e-06
0.00023345
-4.16235e-06
1.10156e-06
0.000171447
0.000110682
6.95415e-07
0.000109986
1.8626e-06
0.00017028
0.000231533
3.7797e-06
2.63482e-06
0.000233358
-4.45994e-06
1.10932e-06
0.000171805
0.000111096
6.74475e-07
0.000110421
1.9505e-06
0.000170529
0.000231484
3.82459e-06
2.48658e-06
0.000233321
-4.32418e-06
1.10503e-06
0.000171911
0.000111526
6.75635e-07
0.00011085
1.76801e-06
0.000170818
0.00023147
3.61893e-06
2.68243e-06
0.000233198
-4.41063e-06
1.113e-06
0.000172388
0.000111963
6.57578e-07
0.000111306
1.8758e-06
0.000171169
0.000231566
3.50821e-06
2.52622e-06
0.000233481
-4.44188e-06
1.10629e-06
0.000172589
0.000112412
6.58776e-07
0.000111753
1.72116e-06
0.000171527
0.000231694
3.50855e-06
2.72236e-06
0.00023348
-4.50811e-06
1.1049e-06
0.000173144
0.000112858
6.45481e-07
0.000112212
1.84008e-06
0.000171949
0.000231901
3.41814e-06
2.55469e-06
0.000233861
-4.51445e-06
1.09839e-06
0.000173406
0.000113311
6.50907e-07
0.00011266
1.69907e-06
0.000172357
0.000232115
3.4452e-06
2.7438e-06
0.000233938
-4.56723e-06
1.09569e-06
0.000174005
0.000113755
6.40678e-07
0.000113115
1.82768e-06
0.000172818
0.000232394
3.37159e-06
2.56349e-06
0.000234383
-4.55187e-06
1.08608e-06
0.000174296
0.000114201
6.60374e-07
0.00011354
1.70398e-06
0.000173252
0.000232663
3.42313e-06
2.74796e-06
0.000234504
-4.58849e-06
1.09133e-06
0.000174909
0.000114632
6.49827e-07
0.000113982
1.84002e-06
0.000173718
0.000232978
3.36549e-06
2.56155e-06
0.000234984
-4.56724e-06
1.07927e-06
0.000175201
0.000115061
6.71477e-07
0.000114389
1.71928e-06
0.000174153
0.000233282
3.42101e-06
2.7351e-06
0.000235128
-4.58112e-06
1.08128e-06
0.000175807
0.000115471
6.67864e-07
0.000114803
1.8712e-06
0.000174603
0.000233609
3.39036e-06
2.54463e-06
0.00023562
-4.55569e-06
1.06682e-06
0.000176081
0.000115869
6.88589e-07
0.000115181
1.74718e-06
0.000175022
0.000233925
3.44177e-06
2.7149e-06
0.000235771
-4.56099e-06
1.06758e-06
0.000176669
0.000116248
6.87191e-07
0.000115561
1.907e-06
0.00017545
0.000234254
3.42452e-06
2.51948e-06
0.000236264
-4.52978e-06
1.05179e-06
0.000176917
0.000116613
7.07974e-07
0.000115905
1.78408e-06
0.000175841
0.000234569
3.47853e-06
2.68671e-06
0.000236411
-4.52819e-06
1.05196e-06
0.000177476
0.000116957
7.09237e-07
0.000116247
1.94981e-06
0.000176235
0.000234888
3.4724e-06
2.49229e-06
0.000236896
-4.50079e-06
1.03595e-06
0.000177691
0.000117283
7.29659e-07
0.000116554
1.82486e-06
0.000176596
0.000235195
3.52621e-06
2.65567e-06
0.000237031
-4.49152e-06
1.03382e-06
0.000178218
0.000117587
7.31917e-07
0.000116855
1.99278e-06
0.000176957
0.0002355
3.52311e-06
2.46623e-06
0.000237506
-4.47147e-06
1.0206e-06
0.000178403
0.000117876
7.4987e-07
0.000117126
1.86298e-06
0.000177289
0.000235795
3.57359e-06
2.6298e-06
0.000237627
-4.462e-06
1.01828e-06
0.000178901
0.000118144
7.52254e-07
0.000117392
2.03208e-06
0.000177621
0.000236086
3.57271e-06
2.44129e-06
0.000238088
-4.44313e-06
1.00601e-06
0.000179056
0.000118398
7.68483e-07
0.000117629
1.89864e-06
0.000177926
0.000236367
3.61934e-06
2.60559e-06
0.000238194
-4.43198e-06
1.00427e-06
0.000179527
0.000118634
7.70371e-07
0.000117863
2.06813e-06
0.000178229
0.000236642
3.61954e-06
2.41869e-06
0.000238639
-4.4157e-06
9.93285e-07
0.000179655
0.000118856
7.8473e-07
0.000118072
1.93098e-06
0.000178508
0.000236908
3.66222e-06
2.58404e-06
0.000238728
-4.40413e-06
9.92201e-07
0.0001801
0.000119064
7.86e-07
0.000118278
2.10029e-06
0.000178786
0.000237166
3.66222e-06
2.39795e-06
0.000239159
-4.39151e-06
9.82155e-07
0.000180202
0.00011926
7.99396e-07
0.00011846
1.96128e-06
0.00017904
0.000237421
3.69991e-06
2.56415e-06
0.000239237
-4.38019e-06
9.81593e-07
0.000180622
0.000119442
8.00694e-07
0.000118641
2.13206e-06
0.000179291
0.00023767
3.69878e-06
2.38189e-06
0.000239653
-4.36519e-06
9.73715e-07
0.000180699
0.000119615
8.12623e-07
0.000118802
1.99074e-06
0.000179521
0.000237908
3.73521e-06
2.55003e-06
0.000239712
-4.35349e-06
9.73901e-07
0.000181097
0.000119776
8.13267e-07
0.000118963
2.16016e-06
0.00017975
0.000238139
3.73283e-06
2.37144e-06
0.00024011
-4.34237e-06
9.66187e-07
0.000181155
0.000119929
8.24587e-07
0.000119104
2.0137e-06
0.000179966
0.000238358
3.76511e-06
2.53719e-06
0.000240151
-4.32975e-06
9.67585e-07
0.000181535
0.000120072
8.26211e-07
0.000119245
2.18388e-06
0.000180178
0.00023857
3.76433e-06
2.35692e-06
0.000240532
-4.31871e-06
9.62112e-07
0.000181572
0.000120207
8.36343e-07
0.000119371
2.03558e-06
0.000180373
0.000238773
3.79496e-06
2.52431e-06
0.000240555
-4.30689e-06
9.64887e-07
0.000181932
0.000120336
8.36127e-07
0.0001195
2.20446e-06
0.000180564
0.000238966
3.79328e-06
2.34494e-06
0.000240919
-4.29756e-06
9.59914e-07
0.000181949
0.00012046
8.44207e-07
0.000119615
2.05395e-06
0.000180739
0.000239151
3.82186e-06
2.51066e-06
0.000240925
-4.28491e-06
9.58753e-07
0.000182291
0.000120574
8.44787e-07
0.000119729
2.22421e-06
0.000180911
0.000239328
3.82138e-06
2.33101e-06
0.000241272
-4.27576e-06
9.53655e-07
0.000182289
0.000120683
8.52475e-07
0.00011983
2.07271e-06
0.000181068
0.000239496
3.84909e-06
2.49744e-06
0.000241262
-4.26358e-06
9.52745e-07
0.000182613
0.000120783
8.52479e-07
0.00011993
2.24213e-06
0.000181223
0.000239657
3.84741e-06
2.31876e-06
0.000241594
-4.25631e-06
9.48272e-07
0.000182594
0.000120879
8.59388e-07
0.000120019
2.08883e-06
0.000181364
0.00023981
3.87293e-06
2.48628e-06
0.000241569
-4.24525e-06
9.47822e-07
0.000182903
0.000120967
8.58946e-07
0.000120108
2.25756e-06
0.000181504
0.000239957
3.8698e-06
2.30883e-06
0.000241888
-4.24042e-06
9.44011e-07
0.000182869
0.000121052
8.65016e-07
0.000120187
2.10228e-06
0.000181631
0.000240097
3.89292e-06
2.47741e-06
0.00024185
-4.23039e-06
9.44001e-07
0.000183165
0.000121131
8.64146e-07
0.000120267
2.27035e-06
0.000181758
0.000240232
3.8886e-06
2.30078e-06
0.000242158
-4.22724e-06
9.4068e-07
0.000183119
0.000121207
8.69726e-07
0.000120337
2.11381e-06
0.000181874
0.000240362
3.91026e-06
2.46981e-06
0.000242109
-4.21742e-06
9.408e-07
0.000183403
0.000121278
8.68711e-07
0.000120409
2.28175e-06
0.00018199
0.000240485
3.90558e-06
2.2936e-06
0.000242407
-4.21535e-06
9.37736e-07
0.000183346
0.000121347
8.73963e-07
0.000120473
2.12432e-06
0.000182096
0.000240605
3.92616e-06
2.46299e-06
0.000242348
-4.20571e-06
9.37959e-07
0.000183621
0.000121411
8.72739e-07
0.000120538
2.29196e-06
0.000182201
0.000240719
3.92108e-06
2.28719e-06
0.000242636
-4.2046e-06
9.35154e-07
0.000183553
0.000121473
8.77644e-07
0.000120596
2.13359e-06
0.000182297
0.000240829
3.94049e-06
2.45693e-06
0.000242567
-4.19515e-06
9.35477e-07
0.000183819
0.000121531
8.76419e-07
0.000120654
2.30134e-06
0.000182394
0.000240933
3.93518e-06
2.28142e-06
0.000242847
-4.19495e-06
9.32839e-07
0.000183742
0.000121587
8.81086e-07
0.000120706
2.14224e-06
0.000182481
0.000241035
3.9538e-06
2.45139e-06
0.000242769
-4.1855e-06
9.33183e-07
0.000183999
0.000121639
8.79711e-07
0.000120759
2.30981e-06
0.000182569
0.00024113
3.94825e-06
2.2761e-06
0.00024304
-4.18593e-06
9.30718e-07
0.000183914
0.00012169
8.84135e-07
0.000120806
2.15001e-06
0.000182648
0.000241224
3.96603e-06
2.44626e-06
0.000242954
-4.17647e-06
9.31092e-07
0.000184163
0.000121737
8.82837e-07
0.000120854
2.31782e-06
0.000182728
0.000241311
3.96049e-06
2.27105e-06
0.000243218
-4.17739e-06
9.28685e-07
0.000184071
0.000121783
8.87089e-07
0.000120895
2.15747e-06
0.0001828
0.000241397
3.97781e-06
2.44123e-06
0.000243124
-4.16764e-06
9.29017e-07
0.000184312
0.000121824
8.85797e-07
0.000120939
2.32541e-06
0.000182873
0.000241477
3.97233e-06
2.26614e-06
0.000243379
-4.16903e-06
9.26713e-07
0.000184212
0.000121865
8.89869e-07
0.000120975
2.16453e-06
0.000182937
0.000241555
3.98892e-06
2.43675e-06
0.000243278
-4.15976e-06
9.27182e-07
0.000184447
0.000121902
8.88273e-07
0.000121014
2.33193e-06
0.000183003
0.000241627
3.98269e-06
2.26216e-06
0.000243527
-4.16213e-06
9.2518e-07
0.00018434
0.000121939
8.91972e-07
0.000121047
2.17014e-06
0.000183062
0.000241699
3.99802e-06
2.43341e-06
0.000243419
-4.15366e-06
9.25908e-07
0.000184569
0.000121973
8.90202e-07
0.000121083
2.33723e-06
0.000183122
0.000241765
3.99095e-06
2.25946e-06
0.000243663
-4.15732e-06
9.24213e-07
0.000184457
0.000122007
8.93488e-07
0.000121113
2.1744e-06
0.000183176
0.000241833
4.00483e-06
2.43171e-06
0.000243551
-4.1503e-06
9.2535e-07
0.000184682
0.000122039
8.91183e-07
0.000121147
2.34043e-06
0.000183233
0.000241895
3.99617e-06
2.25868e-06
0.000243792
-4.15555e-06
9.2414e-07
0.000184567
0.000122071
8.93994e-07
0.000121177
2.17645e-06
0.000183285
0.00024196
4.00824e-06
2.43216e-06
0.000243678
-4.1504e-06
9.25781e-07
0.000184791
0.000122103
8.91204e-07
0.000121212
2.34147e-06
0.000183341
0.000242022
3.99783e-06
2.2601e-06
0.000243919
-4.15737e-06
9.25038e-07
0.000184676
0.000122137
8.93526e-07
0.000121243
2.17628e-06
0.000183393
0.000242087
4.00822e-06
2.43464e-06
0.000243806
-4.15376e-06
9.27108e-07
0.0001849
0.00012217
8.90465e-07
0.00012128
2.34071e-06
0.00018345
0.00024215
3.99646e-06
2.26331e-06
0.000244049
-4.16216e-06
9.26688e-07
0.000184787
0.000122206
8.92504e-07
0.000121314
2.17471e-06
0.000183504
0.000242218
4.00568e-06
2.43869e-06
0.000243939
-4.15983e-06
9.29058e-07
0.000185014
0.000122243
8.8914e-07
0.000121353
2.3385e-06
0.000183564
0.000242284
3.99287e-06
2.26748e-06
0.000244185
-4.16862e-06
9.28728e-07
0.000184903
0.000122282
8.91584e-07
0.00012139
2.17319e-06
0.000183621
0.000242355
4.00337e-06
2.44086e-06
0.000244077
-4.16276e-06
9.30101e-07
0.000185132
0.00012232
8.89546e-07
0.000121431
2.33977e-06
0.000183682
0.000242422
3.99459e-06
2.26761e-06
0.000244323
-4.16884e-06
9.28759e-07
0.000185021
0.00012236
8.92911e-07
0.000121467
2.17622e-06
0.000183737
0.000242491
4.00808e-06
2.43878e-06
0.000244211
-4.15912e-06
9.29037e-07
0.000185247
0.000122395
8.91887e-07
0.000121504
2.34502e-06
0.000183794
0.000242554
4.00255e-06
2.26395e-06
0.000244453
-4.16336e-06
9.26962e-07
0.00018513
0.00012243
8.95597e-07
0.000121535
2.1821e-06
0.000183844
0.000242618
4.01733e-06
2.4367e-06
0.000244337
-4.15602e-06
9.27738e-07
0.000185353
0.000122462
8.94694e-07
0.000121568
2.34454e-06
0.000183903
0.000242676
4.0051e-06
2.43638e-06
0.0002444
-4.16081e-06
9.28585e-07
0.00018541
0.000122496
8.83527e-07
0.000121612
2.18162e-06
0.000184112
0.000242744
3.83776e-06
2.25586e-06
0.000244651
-4.16239e-06
1.07559e-06
0.000185292
0.000122688
8.98631e-07
0.000121789
2.01853e-06
0.000184172
0.000242843
3.82597e-06
2.43863e-06
0.000244942
-4.53805e-06
9.19336e-07
0.000185692
0.000122709
7.54239e-07
0.000121954
2.02276e-06
0.000184423
0.000243489
3.4758e-06
2.92959e-06
0.000245638
-5.07831e-06
1.21187e-06
0.000186141
0.000123166
6.092e-07
0.000122557
1.34923e-06
0.0001854
0.000244619
2.36821e-06
3.48363e-06
0.000247396
-6.26058e-06
1.37022e-06
0.000187514
0.000123927
2.75009e-07
0.000123652
7.4749e-07
0.000187041
0.00024668
1.46255e-06
3.90476e-06
0.000250159
-7.38391e-06
1.48728e-06
0.000189459
0.000125139
-1.61751e-06
0.000126756
-3.93084e-06
0.000191772
0.000253515
-7.28612e-06
1.66297e-05
0.000267181
-3.02961e-05
6.81461e-06
0.000201587
0.000133571
-9.66289e-06
0.000143234
-2.37034e-05
0.000215627
0.000285735
-4.22573e-05
1.41026e-05
-2.47325e-05
5.94359e-06
-6.65443e-05
-0.000865449
-1.90732e-05
-0.00105795
2.52442e-05
-0.00124005
-0.000365152
-0.00101067
-0.00149299
-0.000603017
-0.000426674
-0.00281734
-9.95157e-06
-0.00241058
-0.000723707
-0.00185754
-0.00229379
-0.00107195
-0.00120095
-0.00439873
-0.000515926
-0.00410671
-0.000326251
-0.00421612
-0.00010459
-0.00437581
-7.10111e-05
-0.00456062
-1.17632e-05
-0.00467941
-7.76269e-06
-0.00476609
2.33292e-07
-0.00481254
-1.7566e-07
-0.00483783
-4.71508e-08
-0.00485126
1.25797e-07
-0.00485863
-8.80852e-07
-0.00486463
1.30417e-06
-0.00487241
-9.86909e-06
-0.00488895
-8.61228e-06
-0.00491267
-7.11251e-05
-0.00495948
-3.33056e-05
-0.0049917
-0.000157876
-0.00506393
7.4103e-05
-0.00498939
-6.48767e-05
-0.0049155
0.000219869
-0.00452966
9.80159e-06
-0.0042411
-0.00398627
-0.00392478
-6.14914e-05
-0.00393093
6.14334e-06
-0.00396861
3.76827e-05
-0.00399114
2.25286e-05
-0.00399664
5.49889e-06
-0.00399699
3.52897e-07
-0.00399552
-1.47814e-06
-0.00399506
-4.61632e-07
-0.00399471
-3.50305e-07
-0.00399488
1.67282e-07
-0.00399511
2.34246e-07
-0.00399539
2.83149e-07
-0.0039956
2.09535e-07
-0.00399578
1.75733e-07
-0.00399581
2.53902e-08
-0.00399565
-1.56378e-07
-0.00399524
-4.12298e-07
-0.00399453
-7.12609e-07
-0.00399352
-1.00496e-06
-0.00399229
-1.23312e-06
-0.00399088
-1.40605e-06
-0.0039893
-1.58006e-06
-0.00398761
-1.69665e-06
-0.0039857
-1.91079e-06
-0.00398357
-2.12976e-06
-0.00398119
-2.37553e-06
-0.00397854
-2.64948e-06
-0.00397559
-2.95688e-06
-0.00397228
-3.30504e-06
-0.00396858
-3.7011e-06
-0.00396443
-4.15091e-06
-0.00395977
-4.65894e-06
-0.00395454
-5.2263e-06
-0.00394868
-5.86837e-06
-0.00394208
-6.594e-06
-0.00393475
-7.33784e-06
-0.00392652
-8.22184e-06
-0.00391734
-9.18824e-06
-0.00390711
-1.02322e-05
-0.00389571
-1.13973e-05
-0.00388306
-1.26505e-05
-0.00386905
-1.40079e-05
-0.00385354
-1.55142e-05
-0.00383649
-1.70451e-05
-0.0038178
-1.86931e-05
-0.00379733
-2.04713e-05
-0.00377507
-2.22646e-05
-0.00375092
-2.41494e-05
-0.00372487
-2.60508e-05
-0.00369698
-2.78868e-05
-0.00366717
-2.98122e-05
-0.00363554
-3.16319e-05
-0.00360214
-3.33972e-05
-0.00356714
-3.50025e-05
-0.00353054
-3.66016e-05
-0.00349257
-3.79741e-05
-0.0034533
-3.92699e-05
-0.00341297
-4.0328e-05
-0.00337167
-4.13006e-05
-0.00332963
-4.20396e-05
-0.00328698
-4.26474e-05
-0.00324395
-4.30275e-05
-0.00320065
-4.33054e-05
-0.00315724
-4.34086e-05
-0.00311387
-4.33661e-05
-0.00307069
-4.31881e-05
-0.0030278
-4.28856e-05
-0.00298533
-4.24706e-05
-0.00294338
-4.19533e-05
-0.00290203
-4.13443e-05
-0.00286139
-4.06397e-05
-0.00282145
-3.99431e-05
-0.00278239
-3.90589e-05
-0.00274412
-3.82702e-05
-0.00270682
-3.7298e-05
-0.0026704
-3.64189e-05
-0.00263498
-3.54242e-05
-0.0026005
-3.4483e-05
-0.00256704
-3.34591e-05
-0.00253456
-3.24793e-05
-0.00250306
-3.1497e-05
-0.0024726
-3.04679e-05
-0.00244309
-2.95053e-05
-0.00241459
-2.85058e-05
-0.00238706
-2.75307e-05
-0.0023605
-2.6557e-05
-0.00233487
-2.56364e-05
-0.00231017
-2.46945e-05
-0.0022864
-2.3772e-05
-0.00226352
-2.28864e-05
-0.00224151
-2.20119e-05
-0.00222035
-2.11577e-05
-0.00220002
-2.03377e-05
-0.00218051
-1.95108e-05
-0.0021618
-1.87074e-05
-0.00214385
-1.79518e-05
-0.00212665
-1.72024e-05
-0.00211018
-1.64751e-05
-0.00209442
-1.57689e-05
-0.00207933
-1.50836e-05
-0.00206492
-1.44187e-05
-0.00205115
-1.37741e-05
-0.002038
-1.31492e-05
-0.00202546
-1.25437e-05
-0.00201351
-1.19571e-05
-0.00200213
-1.13888e-05
-0.00199129
-1.08384e-05
-0.00198099
-1.03053e-05
-0.00197121
-9.78897e-06
-0.00196191
-9.30069e-06
-0.00195311
-8.80349e-06
-0.00194479
-8.32223e-06
-0.00193692
-7.87885e-06
-0.00192948
-7.44806e-06
-0.00192247
-7.00701e-06
-0.0019159
-6.57828e-06
-0.00190972
-6.18437e-06
-0.00190394
-5.78943e-06
-0.00189854
-5.40445e-06
-0.00189351
-5.02864e-06
-0.00188886
-4.66119e-06
-0.00188456
-4.30124e-06
-0.00188062
-3.94789e-06
-0.00187702
-3.60013e-06
-0.00187377
-3.25674e-06
-0.00187086
-2.91607e-06
-0.00186828
-2.57592e-06
-0.00186609
-2.19915e-06
-0.00186428
-1.81536e-06
-0.00186305
-1.23019e-06
-0.00186226
-7.93998e-07
-0.00186229
2.36266e-08
-0.00186177
-5.16959e-07
-0.00185912
-2.65321e-06
-0.00184866
-1.04796e-05
-0.00183111
-1.75013e-05
-2.83096e-06
-5.70416e-06
0.00195796
-1.53673e-05
0.00215357
-0.00214398
-2.40725e-05
0.00231463
-0.00230589
-3.19046e-05
0.00236855
-0.00236074
-2.83851e-05
0.00234845
-0.00235196
-2.12532e-05
0.00231119
-0.00231833
-1.38745e-05
0.00228453
-0.00229191
-9.40297e-06
0.00226871
-0.00227318
-7.62744e-06
0.00225936
-0.00226113
-7.48892e-06
0.00225285
-0.00225298
-7.85259e-06
0.00224754
-0.00224718
-8.83363e-06
0.00224296
-0.00224198
-9.87487e-06
0.00223814
-0.0022371
-1.06434e-05
0.00223338
-0.00223261
-1.14741e-05
0.00222842
-0.00222759
-1.22544e-05
0.00222327
-0.00222249
-1.29833e-05
0.00221791
-0.00221718
-1.36606e-05
0.00221237
-0.00221169
-1.42871e-05
0.00220665
-0.00220602
-1.48639e-05
0.00220076
-0.00220018
-1.53926e-05
0.00219471
-0.00219418
-1.58749e-05
0.0021885
-0.00218802
-1.6312e-05
0.00218216
-0.00218172
-1.67051e-05
0.00217567
-0.00217528
-1.7055e-05
0.00216907
-0.00216872
-1.73622e-05
0.00216234
-0.00216204
-1.7627e-05
0.00215552
-0.00215526
-1.7742e-05
0.0021485
-0.00214838
-1.79221e-05
0.00214161
-0.00214143
-1.80595e-05
0.00213456
-0.00213442
-1.81537e-05
0.00212746
-0.00212736
-1.82042e-05
0.00212032
-0.00212027
-1.82104e-05
0.00211316
-0.00211315
-1.81716e-05
0.00210599
-0.00210603
-1.8088e-05
0.00209884
-0.00209892
-1.79545e-05
0.00209171
-0.00209184
-1.77751e-05
0.00208462
-0.0020848
-1.75465e-05
0.00207758
-0.00207781
-1.72677e-05
0.00207062
-0.0020709
-1.69369e-05
0.00206374
-0.00206407
-1.66551e-05
0.00205706
-0.00205735
-1.62142e-05
0.0020503
-0.00205074
-1.57149e-05
0.00204376
-0.00204426
-1.51549e-05
0.00203736
-0.00203792
-1.45321e-05
0.00203113
-0.00203175
-1.38445e-05
0.00202507
-0.00202576
-1.31905e-05
0.0020192
-0.00201985
-1.22631e-05
0.00201352
-0.00201444
-1.1456e-05
0.002008
-0.0020088
-1.13521e-05
0.00200259
-0.00200269
-1.02297e-05
0.00199623
-0.00199735
-1.0967e-05
0.00199086
-0.00199012
-1.35891e-05
0.00198264
-0.00198002
-1.92112e-05
0.00197203
-0.00196641
-3.59437e-05
0.00196081
-0.00194408
-6.48928e-05
0.00194753
-0.00191858
-0.000112965
0.00193682
-0.00188875
-0.000178096
0.00194657
-0.00188144
-0.000243397
0.00199997
-0.00193467
-0.000234726
0.00211579
-0.00212446
0.000287134
0.00213569
-0.000336438
-0.00232112
1.93656e-05
0.000981779
-0.000714011
-4.70647e-06
0.000823019
-0.000798947
0.000760694
-0.000760506
0.000756723
8.79679e-06
0.000757562
1.95221e-06
0.000754284
7.00038e-06
0.000755844
1.13939e-06
0.000752341
6.14746e-06
0.000754682
2.80014e-07
0.000751
6.25056e-06
0.000753156
3.98484e-07
0.000749322
6.34891e-06
0.000751323
5.00347e-07
0.000747357
6.43035e-06
0.000749227
5.99359e-07
0.000745144
6.5182e-06
0.000746892
6.96282e-07
0.000742709
6.59696e-06
0.000744344
7.96613e-07
0.000740067
6.68333e-06
0.00074159
9.06834e-07
0.000737223
6.77735e-06
0.000738637
1.02528e-06
0.000734183
6.87756e-06
0.000735489
1.15085e-06
0.000730951
6.98363e-06
0.00073215
1.28421e-06
0.000727527
7.09707e-06
0.000728616
1.429e-06
0.000723909
7.2211e-06
0.000724884
1.58684e-06
0.00072009
7.35715e-06
0.000720946
1.7584e-06
0.000716061
7.50572e-06
0.000716794
1.94278e-06
0.000711814
7.66608e-06
0.000712418
2.14198e-06
0.000707339
7.83995e-06
0.000707805
2.35888e-06
0.000702621
8.0289e-06
0.000702943
2.59198e-06
0.000697649
8.2318e-06
0.000697818
2.84171e-06
0.000692408
8.44978e-06
0.000692416
3.1097e-06
0.000686883
8.68445e-06
0.00068672
3.39787e-06
0.000681057
8.93745e-06
0.000680712
3.70775e-06
0.000674909
9.21019e-06
0.000674371
4.04101e-06
0.00066842
9.50429e-06
0.000667675
4.39951e-06
0.000661565
9.82145e-06
0.0006606
4.78504e-06
0.00065432
1.0163e-05
0.000653121
5.19872e-06
0.000646659
1.05292e-05
0.00064521
5.63998e-06
0.000638557
1.09179e-05
0.000636846
6.10598e-06
0.000629993
1.13265e-05
0.000628007
6.59451e-06
0.000620945
1.17533e-05
0.000618673
7.1048e-06
0.000611395
1.21974e-05
0.000608825
7.63562e-06
0.000601323
1.26566e-05
0.000598445
8.18387e-06
0.000590714
1.31266e-05
0.00058752
8.74383e-06
0.00057956
1.36001e-05
0.000576046
9.30674e-06
0.000567858
1.40668e-05
0.000564028
9.86035e-06
0.000555622
1.45126e-05
0.000551484
1.03881e-05
0.000542879
1.49186e-05
0.000538453
1.08681e-05
0.000529678
1.52604e-05
0.000524996
1.12727e-05
0.000516095
1.55078e-05
0.000511206
1.15683e-05
0.000502241
1.56206e-05
0.000497218
1.17052e-05
0.000488267
1.55618e-05
0.000483199
1.16488e-05
0.000474358
1.52928e-05
0.000469352
1.13609e-05
0.000460736
1.4774e-05
0.00045592
1.08024e-05
0.00044766
1.39736e-05
0.000443176
9.94518e-06
0.000435418
1.28714e-05
0.000431418
8.78067e-06
0.000424292
1.14952e-05
0.000420926
7.3316e-06
0.00041456
9.87373e-06
0.000411931
5.69556e-06
0.000406399
8.1269e-06
0.000404579
3.961e-06
0.000399901
6.36938e-06
0.000398903
2.25372e-06
0.000395044
4.7124e-06
0.00039482
6.81375e-07
0.000391718
3.23992e-06
0.000392171
-6.59067e-07
0.000389708
2.01028e-06
0.00039072
-1.73157e-06
0.000388789
1.04511e-06
0.000390246
-2.51827e-06
0.00038871
3.85139e-07
0.000390502
-3.04595e-06
0.000389251
-4.04633e-08
0.00039128
-3.36678e-06
0.000390215
-2.75319e-07
0.000392406
-3.53976e-06
0.000391465
-3.91369e-07
0.000393754
-3.60676e-06
0.000392886
-4.19997e-07
0.000395242
-3.6241e-06
0.000394409
-3.99203e-07
0.000396807
-3.6038e-06
0.000395985
-3.47716e-07
0.000398393
-3.548e-06
0.000397575
-2.8409e-07
0.000399988
-3.49045e-06
0.000399153
-2.04444e-07
0.00040156
-3.43238e-06
0.000401775
-1.23272e-06
0.000404795
-5.57583e-06
0.000406785
-5.55314e-06
0.000417065
-1.5339e-05
0.000425112
-1.16812e-05
0.000430398
-8.9453e-06
-1.80154e-05
-1.47401e-05
-0.000494037
-0.000551339
-1.11724e-05
1.33605e-05
-0.00055227
-1.24306e-05
-0.000489623
-2.74618e-05
-0.000473843
-0.000558491
-2.12423e-05
4.64291e-05
-0.00040448
-0.000200441
-0.000442754
6.70618e-06
-0.000455014
0.000159405
-0.00055718
0.000604325
0.000590818
-5.83488e-05
-0.00117784
0.000589696
-6.61432e-06
0.000583046
-5.7818e-06
-2.31499e-06
-0.000594394
-7.166e-07
-0.000595621
-4.55545e-06
-1.14186e-05
0.000601086
-4.45184e-06
-0.000608054
0.000599151
-2.62172e-06
-2.33733e-07
-0.000601187
-1.6453e-06
-0.000600149
-3.66131e-06
-0.000598151
-6.45086e-06
-0.0012344
-3.01566e-05
2.46589e-05
-0.00123973
-1.9338e-05
0.000185519
-0.000162884
-0.00117582
2.46311e-05
-0.000396293
-0.00043596
1.3325e-05
-0.000450518
-0.000545853
2.01838e-05
-0.000392155
-0.000173882
-0.000433768
1.43192e-05
-0.000448292
0.000164783
-0.00054262
-0.00117283
-1.2089e-05
0.000171399
-0.000165014
-0.0011714
-7.81378e-06
1.96712e-05
-0.000390893
-0.000432112
1.42145e-05
-0.000446611
-0.000541693
1.91345e-05
-0.000390244
-0.000170584
-0.000431025
1.41475e-05
-0.000445521
0.000164767
-0.000540864
-0.00117015
-7.07064e-06
0.000170307
-0.00016461
-0.00116904
-6.81114e-06
1.91165e-05
-0.000389674
-0.000430008
1.41194e-05
-0.000444527
-0.000540164
1.90605e-05
-0.000389205
-0.00017002
-0.000429091
1.41455e-05
-0.000443657
0.000164565
-0.000539624
-0.00116814
-6.35118e-06
0.000169706
-0.000164676
-0.00116765
-5.52953e-06
1.89454e-05
-0.000388864
-0.000428318
1.42576e-05
-0.000442967
-0.000539282
1.87241e-05
-0.00038867
-0.000169337
-0.000427783
1.45086e-05
-0.000442567
0.000165052
-0.000539213
-0.00116776
-4.17412e-06
0.000168833
-0.000165761
-0.00116872
-2.10347e-06
1.83477e-05
-0.000388728
-0.000427586
1.49289e-05
-0.000442555
-0.00053956
1.77868e-05
-0.000389184
-0.000168162
-0.000427814
1.56152e-05
-0.000443044
0.000166925
-0.000540494
-0.00117079
8.33035e-07
0.00016726
-0.000168734
-0.00117444
5.12174e-06
1.69744e-05
-0.000390208
-0.000428588
1.66756e-05
-0.000444218
-0.000542266
1.58012e-05
-0.000391944
-0.000166123
-0.000430148
1.81868e-05
-0.000446324
0.00017132
-0.000545076
-0.0011802
1.09555e-05
0.000164867
-0.000174824
-0.00118865
1.84141e-05
1.42223e-05
-0.000394431
-0.00043276
2.00702e-05
-0.00044959
-0.000549185
1.23033e-05
-0.000397966
-0.000163521
-0.000436605
2.23543e-05
-0.000454247
0.000179273
-0.000554885
-0.00120039
2.74921e-05
0.000162259
-0.000184613
-0.00121587
3.78401e-05
1.01028e-05
-0.000402728
-0.00044189
2.4958e-05
-0.000460478
-0.000562383
7.75387e-06
-0.000408825
-0.000161311
-0.000448762
2.77393e-05
-0.000468374
0.000190691
-0.000571776
-0.00123535
4.88641e-05
0.00016093
-0.000197264
-0.00125878
5.97628e-05
5.42829e-06
-0.000416274
-0.00045725
3.05196e-05
-0.000477895
-0.000583018
3.30417e-06
-0.00042499
-0.000161332
-0.000467258
3.31527e-05
-0.000488915
0.000204078
-0.000595914
-0.00128578
6.9754e-05
0.000162601
-0.000210852
-0.00131571
7.81847e-05
1.52374e-06
-0.000434837
-0.00047861
3.54485e-05
-0.000501187
-0.000610239
2.0422e-07
-0.00044549
-0.000164952
-0.000491036
3.7388e-05
-0.00051445
0.000217425
-0.000625526
-0.00134786
8.46264e-05
0.000168169
-0.00022363
-0.00138134
8.89474e-05
-5.58461e-07
-0.000456798
-0.000504205
3.89257e-05
-0.000528356
-0.000641502
-8.68594e-07
-0.000468492
-0.000172141
-0.000517863
4.00628e-05
-0.000542632
0.000229431
-0.00065786
-0.00141554
9.14888e-05
0.000176713
-0.000234806
-0.00144991
9.24723e-05
-7.85078e-07
-0.00048036
-0.000531768
4.08364e-05
-0.000557041
-0.000674329
-3.75009e-07
-0.000492219
-0.000181734
-0.00054571
4.13092e-05
-0.000571398
0.00023976
-0.000690669
-0.00148401
9.21272e-05
0.000187065
-0.000244318
-0.00151745
9.06955e-05
3.26799e-07
-0.00050393
-0.000559502
4.15507e-05
-0.000585544
-0.000706696
1.28671e-06
-0.000515391
-0.000192591
-0.000572984
4.15971e-05
-0.000599319
0.000248504
-0.000722296
-0.00154996
8.84365e-05
0.000198174
-0.000252357
-0.00158137
8.55946e-05
2.37979e-06
-0.000526502
-0.00058607
4.14889e-05
-0.00061264
-0.000737368
3.56237e-06
-0.000537204
-0.000203725
-0.000598688
4.12698e-05
-0.000625444
0.000255912
-0.000751846
-0.00161153
8.23506e-05
0.000209177
-0.000259203
-0.00164035
7.8854e-05
4.79352e-06
-0.000547462
-0.000610789
4.09745e-05
-0.000637696
-0.000765689
6.0409e-06
-0.000557252
-0.000214477
-0.000622347
4.06302e-05
-0.000649377
0.000262258
-0.000778879
-0.0016678
7.52336e-05
0.000219591
-0.000265102
-0.00169387
7.15869e-05
7.28026e-06
-0.000566567
-0.000633351
4.02575e-05
-0.000660481
-0.00079141
8.49413e-06
-0.000575408
-0.000224495
-0.000643802
3.98715e-05
-0.000671016
0.000267755
-0.000803291
-0.00171857
6.79688e-05
0.000229177
-0.000270236
-0.00174194
6.44358e-05
9.67023e-06
-0.000583783
-0.000653709
3.94833e-05
-0.000680994
-0.000814534
1.08008e-05
-0.000591704
-0.00023363
-0.000663087
3.90999e-05
-0.000690433
0.000272559
-0.000825162
-0.00176401
6.10042e-05
0.000237857
-0.000274735
-0.00178484
5.77138e-05
1.18823e-05
-0.000599187
-0.000671955
3.87249e-05
-0.000699352
-0.000835196
1.29142e-05
-0.000606248
-0.000241861
-0.000680331
3.83601e-05
-0.000707772
0.000276771
-0.000844658
-0.00180447
5.45441e-05
0.000245651
-0.000278675
-0.00182294
5.15046e-05
1.38966e-05
-0.000612903
-0.000688235
3.80081e-05
-0.000715713
-0.000853569
1.48267e-05
-0.000619167
-0.000249228
-0.000695686
3.7674e-05
-0.000723196
0.00028046
-0.000861952
-0.0018403
4.85977e-05
0.000252592
-0.000282141
-0.00185661
4.58623e-05
1.57006e-05
-0.00062506
-0.000702709
3.7362e-05
-0.000730249
-0.000869837
1.65184e-05
-0.000630603
-0.000255752
-0.00070933
3.70727e-05
-0.000736897
0.000283724
-0.000877253
-0.00187193
4.32917e-05
0.000258719
-0.000285217
-0.0018863
4.08784e-05
1.7283e-05
-0.000635817
-0.000715572
3.68047e-05
-0.000743166
-0.000884228
1.7998e-05
-0.00064072
-0.000261504
-0.000721459
3.65561e-05
-0.000749077
0.000286622
-0.000890786
-0.00189979
3.86136e-05
0.000264121
-0.000287945
-0.00191244
3.64798e-05
1.8667e-05
-0.000645331
-0.000727011
3.63253e-05
-0.000754651
-0.00089695
1.92934e-05
-0.000649665
-0.000266578
-0.000732247
3.61104e-05
-0.000759907
0.000289187
-0.000902741
-0.0019243
3.44691e-05
0.000268885
-0.000290352
-0.0019354
3.25707e-05
1.98803e-05
-0.000653735
-0.000737184
3.59094e-05
-0.00076486
-0.000908178
2.04312e-05
-0.000657556
-0.000271051
-0.000741836
3.57203e-05
-0.000769527
0.000291442
-0.000913277
-0.00194577
3.0772e-05
0.000273088
-0.000292456
-0.00195546
2.90575e-05
2.09496e-05
-0.000661138
-0.000746218
3.55412e-05
-0.000773918
-0.000918052
2.14372e-05
-0.000664489
-0.000274999
-0.000750338
3.53741e-05
-0.000778046
0.000293396
-0.00092251
-0.00196447
2.74161e-05
0.000276776
-0.000294266
-0.00197283
2.58555e-05
2.18897e-05
-0.000667623
-0.000754212
3.5217e-05
-0.000781923
-0.000926672
2.23129e-05
-0.000670548
-0.000278436
-0.000757851
3.5068e-05
-0.000785561
0.000295074
-0.000930553
-0.00198057
2.43772e-05
0.000279999
-0.000295823
-0.00198771
2.29716e-05
2.27127e-05
-0.000673267
-0.000761261
3.49281e-05
-0.000788967
-0.000934162
2.3088e-05
-0.000675789
-0.00028146
-0.00076445
3.47962e-05
-0.000792148
0.000296511
-0.000937503
-0.00199428
2.16252e-05
0.000282822
-0.000297131
-0.00200029
2.03223e-05
2.34399e-05
-0.00067812
-0.000767424
3.4669e-05
-0.000795108
-0.000940581
2.37704e-05
-0.000680266
-0.000284085
-0.000770187
3.45413e-05
-0.00079785
0.000297677
-0.000943401
-0.00200575
1.90455e-05
0.000285262
-0.000298145
-0.00201064
1.77762e-05
2.4087e-05
-0.000682225
-0.000772737
3.44101e-05
-0.000800369
-0.00094596
2.43914e-05
-0.000683994
-0.000286357
-0.000775071
3.4275e-05
-0.000802662
0.000298534
-0.000948253
-0.00201496
1.6503e-05
0.000287366
-0.000298844
-0.00201871
1.52259e-05
2.46823e-05
-0.000685568
-0.000777183
3.41375e-05
-0.000804723
-0.000950275
2.49578e-05
-0.000686948
-0.000288285
-0.000779068
3.39977e-05
-0.000806547
0.000299077
-0.000952026
-0.00202185
1.39361e-05
0.000289117
-0.000299218
-0.00202435
1.26073e-05
2.5224e-05
-0.000688133
-0.000780724
3.38376e-05
-0.000808131
-0.000953514
2.55067e-05
-0.000689106
-0.000289915
-0.000782123
3.36486e-05
-0.000809423
0.000299238
-0.000954695
-0.00202729
1.22647e-05
0.000290639
-0.000299116
-0.00203172
1.29017e-05
2.57827e-05
-0.000689838
-0.000783242
3.44125e-05
-0.000811403
-0.000954542
2.60949e-05
-0.000690349
-0.000290287
-0.000785028
3.41655e-05
-0.000813046
0.000300852
-0.000957036
-0.00204155
2.04026e-05
0.000289882
-0.000306397
-0.00206962
4.45845e-05
2.5429e-05
-0.000692583
-0.000786478
3.58273e-05
-0.000815305
-0.000963152
2.28635e-05
-0.000700491
-0.000285525
-0.000790489
4.13271e-05
0.000322615
0.000103164
0.00209712
0.000121833
0.00208692
5.47804e-05
0.00208223
2.50965e-05
0.00207905
1.60863e-05
0.00207633
1.49793e-05
0.00207408
1.48632e-05
0.0020713
1.67158e-05
0.00206798
1.85505e-05
0.00206411
2.03765e-05
0.00205969
2.21964e-05
0.00205473
2.40066e-05
0.00204923
2.58287e-05
0.00204317
2.76897e-05
0.00203653
2.96128e-05
0.00202929
3.16179e-05
0.00202143
3.3723e-05
0.00201291
3.59395e-05
0.00200371
3.82608e-05
0.00199381
4.0673e-05
0.00198318
4.32026e-05
0.00197179
4.58717e-05
0.00195958
4.86948e-05
0.00194651
5.16836e-05
0.00193254
5.48502e-05
0.00191763
5.82077e-05
0.00190173
6.17719e-05
0.00188477
6.55606e-05
0.00186671
6.95755e-05
0.00184747
7.37847e-05
0.00182701
7.81818e-05
0.00180524
8.27784e-05
0.00178212
8.75637e-05
0.00175758
9.25135e-05
0.00173159
9.75761e-05
0.00170413
0.000102697
0.0016752
0.000107794
0.00164481
0.000112748
0.001613
0.000117407
0.00157987
0.000121576
0.00154559
0.000124976
0.00151044
0.00012728
0.00147476
0.000128161
0.00143903
0.00012722
0.00140391
0.000124066
0.00137026
0.000118286
0.001339
0.000109447
0.00131104
9.77166e-05
0.00128725
8.35575e-05
0.00126825
6.78676e-05
0.00125411
5.19798e-05
0.00124438
3.72248e-05
0.00123833
2.44711e-05
0.0012351
1.41886e-05
0.0012338
6.42276e-06
0.00123361
1.02149e-06
0.00123417
-2.65933e-06
0.00123503
-5.04037e-06
0.00123603
-6.53205e-06
0.00123712
-7.43996e-06
0.00123824
-7.93157e-06
0.00123934
-8.17149e-06
0.00124042
-8.89106e-06
-1.14036e-05
0.00123303
-1.02027e-05
-0.00123424
0.00122635
-1.26553e-05
0.000607487
0.000604441
-1.57416e-05
0.000604465
-3.42917e-06
0.000603636
-2.83406e-06
-2.8147e-06
-0.000607278
-2.9488e-06
-0.000606361
-3.75198e-06
-5.34975e-06
0.000610209
-2.90306e-06
-0.000612657
0.000609958
-3.50117e-06
-3.47967e-06
-0.000613299
-3.53284e-06
-0.000613698
-3.10309e-06
-0.00061247
-4.13157e-06
-0.00123171
-9.16182e-06
-9.13928e-06
-0.00123523
0.00124443
-5.21366e-06
-0.00124836
0.000618399
0.000618352
-1.48502e-06
0.000616524
-2.2577e-06
0.000616252
-2.83165e-06
-2.17294e-06
-0.000617098
-9.04134e-07
-0.000618214
-1.71633e-06
-2.12067e-06
0.000620357
-2.628e-07
-0.000622216
0.000617537
1.10315e-06
2.39608e-06
-0.000614713
8.76748e-06
-0.000619691
6.07971e-06
-0.000623156
3.20105e-06
-0.0012635
1.66402e-05
-0.00127225
3.5268e-06
7.25563e-06
-0.00127467
-4.83827e-06
9.23251e-06
-0.00125034
-0.0012362
9.62534e-06
-0.00123642
-9.41485e-06
-0.00123351
-0.00123262
-9.0569e-06
-8.99957e-06
-0.00123156
0.00123582
-9.87522e-06
-0.00123494
-9.65765e-06
0.00125032
-9.87535e-06
-0.0012501
-9.43899e-06
-0.00127572
-8.39012e-06
-0.00127599
-9.60812e-06
1.0383e-05
-0.001276
-1.03707e-05
-0.0012496
9.98646e-06
-0.00124865
-1.09349e-05
8.73157e-06
-0.00123369
-0.00123027
-8.09738e-06
-0.0012287
-0.00123192
-9.86942e-06
6.85237e-06
-0.00122948
-9.29256e-06
-0.00122689
-4.6111e-06
-0.00122494
-7.86015e-06
-0.00122623
0.00124442
-1.18746e-05
-0.00124041
0.00124703
-1.19034e-05
-1.14866e-05
0.00127558
-1.26116e-05
-0.00127446
-1.13519e-05
0.00131646
-1.0926e-05
-0.00131689
0.00131571
-9.62016e-06
0.00131481
-8.70751e-06
0.00131317
-6.75862e-06
0.00131079
-2.45993e-06
0.00130012
1.41905e-05
0.000622468
0.00063061
6.36825e-05
0.00061934
6.32771e-06
0.00061013
1.52886e-05
1.9088e-05
-0.000604154
3.75682e-05
-0.00061873
2.98631e-05
1.8207e-05
0.000623792
1.93983e-05
-0.000624984
0.000605634
4.80192e-05
6.63177e-05
-0.000623181
0.00010771
-0.000643659
6.84963e-05
-0.000672959
4.86974e-05
-0.00129557
-0.000170297
0.000231601
0.000195869
-0.000185323
-0.00129193
0.000633487
1.99968e-05
-0.000457615
0.000470098
-6.90846e-06
0.000650743
5.09545e-05
0.000650906
4.85336e-05
0.000661915
5.7486e-05
0.00010858
0.000433445
0.000347839
7.85701e-05
-0.000115393
-0.000635882
-2.95055e-05
-2.05072e-05
-9.06053e-05
-0.000274462
-0.000193202
6.98879e-06
-0.000187925
-0.000188904
-2.30949e-05
-0.000281203
-0.000204367
-1.56581e-05
-0.000191492
-0.000106247
-0.000190614
-0.000593017
-9.16276e-05
0.00010248
-9.17482e-05
-0.000555216
0.000272732
1.55135e-05
-0.000185766
-9.50975e-06
-0.000200855
-0.000187971
1.14157e-05
-0.00019801
-0.000266099
-9.75323e-05
-0.000182818
1.42509e-05
-0.000509287
-9.25078e-05
-0.000515512
-9.45306e-05
9.38468e-05
-0.00049599
-9.34486e-05
9.39221e-05
1.78564e-05
-0.000511736
-9.42428e-05
9.21318e-05
-0.000625082
-0.000185869
-0.000455259
1.60455e-05
-0.00129122
-0.000189045
-0.00129237
-0.000189652
0.000184046
-0.00129418
-0.000190351
0.000183447
0.0001834
-0.00019121
-0.00129599
0.000626773
1.46688e-05
-0.000458042
0.000457051
-2.06288e-05
0.000625501
1.49968e-05
0.000456122
-2.02745e-05
0.00062494
1.52271e-05
-1.93645e-05
0.000494747
9.23332e-05
-9.46041e-05
-0.000511841
9.28557e-05
-9.37993e-05
0.000262433
1.29739e-05
-0.000182551
0.000182273
-1.40833e-05
0.000261424
1.29803e-05
0.000182014
-1.40385e-05
0.000262949
1.29868e-05
0.000181783
-1.33647e-05
0.000262623
1.30066e-05
-1.27022e-05
0.000185781
-0.000197065
-0.00018546
-0.00019678
-0.00018518
-0.00019714
-0.000185535
-0.00019752
-0.000185906
1.35245e-05
-0.000197309
-0.000262826
-0.000182843
1.235e-05
-1.41927e-05
-0.000263254
0.000186307
-0.000198357
-1.29623e-05
-0.000186727
-9.30679e-05
-0.000183149
-0.000495504
-9.41792e-05
9.2556e-05
-9.50092e-05
-0.000513325
0.000263693
1.23344e-05
-0.000183472
-1.36348e-05
-0.000198192
-0.000187175
1.43138e-05
-0.000199294
-0.000264167
-9.32969e-05
-0.000183815
1.29445e-05
-0.000497012
-9.46134e-05
-0.000514953
-9.54804e-05
9.27919e-05
-0.0004987
-9.51209e-05
9.35368e-05
2.11148e-05
-0.000516807
-9.60394e-05
9.30307e-05
-0.000628138
-0.000183183
-0.000459138
1.41832e-05
-0.00129774
-0.000192358
1.28376e-05
-0.00129914
-0.000194074
0.000182636
-0.00131666
1.42573e-05
-0.00131513
-1.57883e-05
-0.0012721
-0.00126841
-1.55659e-05
9.97363e-06
-0.00126133
-1.70508e-05
4.88373e-06
-0.00123532
9.11029e-07
-0.00122225
-0.001223
4.85579e-06
-0.00122143
-0.00121797
5.72421e-07
-1.36471e-05
-0.00121383
9.50952e-06
-0.00122089
2.67555e-05
-0.00122317
2.33445e-05
-0.00121042
0.00121942
1.49952e-05
-0.00121107
0.00122807
8.63744e-07
-6.67592e-06
-0.00125126
-1.67456e-05
-0.00123884
-1.15585e-05
1.97427e-07
-0.00122404
0.00127617
-2.48182e-05
-0.00125115
0.00129433
-2.97194e-05
0.00130486
-2.72729e-05
0.00131159
-2.37789e-05
-1.91088e-05
0.00129943
0.000179918
-0.00020022
-0.00129824
0.000181435
-0.000196927
0.000631433
1.19044e-05
-0.000461903
0.000460408
-2.30486e-05
0.000629658
1.33854e-05
-2.18386e-05
0.00050064
9.32516e-05
-9.67587e-05
-0.000518971
9.37652e-05
-9.57491e-05
0.000266359
1.28378e-05
-0.000185432
0.00018498
-1.46606e-05
0.000265755
1.22557e-05
0.000184566
-1.3932e-05
0.000265194
1.29092e-05
0.000184178
-1.44643e-05
0.000264662
1.23071e-05
-1.37662e-05
0.000187647
-0.000199185
-0.000188153
-0.000200355
-0.000188694
-0.000200319
-0.000189278
-0.000201581
-0.000189913
1.41594e-05
-0.000201649
-0.000267021
-0.000185924
1.21544e-05
-1.49438e-05
-0.000267739
0.00019061
-0.000203048
-1.26918e-05
-0.00019139
-9.39634e-05
-0.000186468
-0.000502961
-9.65881e-05
9.33986e-05
-9.77667e-05
-0.000521642
0.000268553
1.19387e-05
-0.000187093
-1.45027e-05
-0.000203278
-0.000192268
1.54027e-05
-0.000204899
-0.000269457
-9.40186e-05
-0.000187807
1.23685e-05
-0.000505882
-9.7874e-05
2.53485e-05
-0.000524988
-9.95337e-05
9.32911e-05
-0.000633481
-0.000463394
9.83047e-06
-2.875e-05
-0.000634863
0.000508905
9.36309e-05
-0.000101834
-0.000529452
9.43016e-05
-0.000100554
0.000271901
1.15197e-05
-0.000189119
0.000188679
-1.63113e-05
0.000270557
1.14123e-05
-1.51234e-05
0.000193293
-0.00020543
-0.000194534
-0.000207528
-0.00019613
1.6094e-05
-0.000208853
-0.000273579
-0.000190362
1.04143e-05
-1.73356e-05
-0.000274861
0.000198167
-0.000211309
-1.08737e-05
-0.000200427
-9.36279e-05
-0.000192107
-5.79869e-06
-0.000515961
-0.00010132
-0.00017596
-0.000464702
-0.00129497
-0.000203009
-0.00128837
-0.0002029
0.000169033
-0.00126479
-0.000208487
0.000155185
0.000139337
-0.000207792
-0.00122115
0.000623636
-3.4922e-05
-0.000449377
0.000468387
-5.32367e-05
0.000633133
-9.56112e-06
0.000466966
-3.67317e-05
0.000635951
4.75619e-08
-3.17595e-05
-0.000537816
-0.000102231
9.23273e-05
-0.000527099
-0.000101711
9.10422e-05
8.84507e-05
-0.000100372
-0.00055191
0.000277991
6.68217e-06
-0.000196223
0.000194754
-1.8474e-05
0.000277761
8.03495e-06
0.000193223
-1.76929e-05
0.000275707
9.84315e-06
-1.77191e-05
-0.000213827
-0.00020342
-0.000216901
-0.000207448
-0.000221022
-0.000212601
1.84324e-05
-0.00022513
-0.000278162
-8.45707e-05
-0.000197849
4.25856e-06
-0.000547102
-9.89398e-05
-0.000562948
-0.000111171
7.37809e-05
-0.000519346
-0.00013322
5.46969e-05
6.43338e-05
-0.000519468
-0.000115045
5.08333e-05
-0.000592835
-0.000139349
-0.000426898
-2.65873e-05
6.8533e-06
-0.00118311
-0.000184242
-2.25219e-05
-0.00122177
-3.82813e-05
-0.00120828
-4.45824e-05
-0.00120476
-4.34975e-05
-0.0012115
-0.00122944
6.27519e-05
-0.00124021
-0.00121906
7.03111e-05
-8.51207e-05
-0.00123271
9.87744e-05
-0.00125746
0.000106688
-0.00128059
0.00012891
-0.00125493
0.00121466
0.000150929
-0.00123668
0.00120469
0.000108746
7.02402e-05
-0.00119682
5.8789e-05
-0.00119857
0.000110491
-0.00122043
0.0001728
-0.000189134
-0.00125659
0.00022529
-0.000156102
-0.0012697
-0.000125987
-0.00128504
-0.00130886
0.000141537
-0.00134095
-0.00132021
0.000176713
-0.000152885
-0.00135803
0.000190705
-0.00137554
0.000160231
-0.0014117
0.000199067
-0.00139686
0.00135037
0.000240864
-0.00139217
0.00130846
0.000232622
0.000215473
-0.00130042
0.000259309
-0.00134752
0.00027973
-0.00139341
0.000286748
-0.000243004
-0.00143785
0.000287453
-0.000202298
-0.00143287
-0.000163922
-0.00143523
-0.0014484
0.000164472
-0.0014847
-0.00147252
0.00020177
-0.000162636
-0.00150838
0.000198493
-0.00152006
0.000159006
-0.00155408
0.000193205
-0.00154257
0.00150871
0.000227876
-0.00154337
0.00147184
0.000235363
0.000240746
-0.00147883
0.000281725
-0.00151692
0.000273464
-0.00155221
0.000263166
-0.000219039
-0.00158486
0.000251698
-0.000186556
-0.00157585
-0.000154148
-0.00157498
-0.00158665
0.000148438
-0.00161767
-0.00160556
0.000179031
-0.000142191
-0.00163437
0.000170997
-0.00164711
0.000135647
-0.00167496
0.000162724
-0.00166144
0.0016346
0.000189243
-0.00166112
0.00160622
0.000199381
0.000209407
-0.0016151
0.000239648
-0.00164313
0.000227417
0.000215275
-0.00166916
0.00165319
0.000240685
-0.00167859
0.00162566
0.000254952
0.00159572
0.000269585
0.00156306
0.000284363
0.0015273
0.00029893
0.00148804
0.000312726
0.0014449
0.000324878
0.00139763
0.000334719
0.00134634
0.000338046
0.0012926
0.000333472
0.00124023
0.000311685
0.00119749
0.000268032
0.00117494
0.000195353
0.00118756
9.78711e-05
2.45809e-05
-0.00113296
-0.000156917
0.00013135
-0.00112879
9.37019e-05
0.000226537
-0.00115997
0.00102165
0.000231868
4.17963e-05
-0.00106878
0.000542572
0.00050512
0.000142666
-7.49987e-05
0.000401863
-1.62071e-05
0.000557615
-2.4401e-05
-5.3525e-05
0.000503823
5.50232e-05
-9.97569e-05
-0.000512614
5.90721e-05
-0.000101303
0.000269287
-1.51082e-05
-0.000195107
0.000193122
-3.888e-05
0.000276536
-3.25804e-05
0.000209351
-6.60356e-05
0.000286441
-2.23933e-05
0.000201862
-2.6592e-05
0.0002775
-1.85639e-06
-1.92892e-05
0.000217891
-0.000230671
-0.000226924
-0.000242704
-0.000250097
-0.000214839
-0.000101287
-0.000213033
-3.43855e-05
-2.46106e-05
-0.000227303
0.00019832
-0.000210084
0.000185579
1.65434e-05
-0.000217457
-0.000225867
2.89898e-05
-0.000238337
-1.65205e-05
-0.00026742
-0.000196545
-1.58515e-05
-3.41224e-05
-0.000262179
0.000237393
-2.53273e-05
-0.000246188
-1.6795e-05
0.000225627
-0.000233289
-0.000254769
3.82232e-05
-0.00020621
-8.6793e-05
2.3748e-05
-0.000231713
-4.62558e-05
-0.000192175
-0.000487456
-9.58143e-05
1.45684e-06
0.000262877
0.000233454
5.44403e-05
-8.20777e-05
-0.000467236
-2.51126e-05
-2.3371e-05
-1.97287e-05
-0.000209852
0.000169203
-0.000174136
-1.00176e-08
-0.00016786
-0.000155422
-2.25577e-05
-0.000214942
-0.000188667
2.19397e-05
-0.00014905
-6.15502e-05
-4.7823e-05
-0.000145179
-0.000304841
-6.75513e-05
6.31095e-05
-2.5856e-05
-0.000417093
0.000191024
9.39569e-06
-0.00013731
-2.17064e-05
-0.000156289
-1.44679e-05
-0.000153441
6.54779e-06
-2.46501e-05
-0.000156348
2.75578e-05
-0.000187816
-0.000109831
-0.00013797
5.99857e-05
-0.000322826
2.77697e-05
-0.000431615
0.000150586
0.000493678
0.000640623
-0.00113811
-0.000427805
0.00017236
0.000210855
0.000261049
6.216e-05
0.000165373
0.000107642
6.90106e-05
0.000130057
7.8925e-05
-0.000139971
0.000140342
1.72728e-05
0.000128825
0.000122994
-9.11202e-05
-0.000129539
0.000117344
-9.18011e-05
-0.000187883
0.000150145
-0.000124131
-0.000310352
0.000259388
0.000530994
0.000941279
-0.001142
9.23394e-05
0.000226
0.000472044
0.000112572
0.000129913
0.00013444
-0.000121647
0.000197087
0.000234271
0.00012477
0.000207144
-9.76386e-05
0.000247358
-0.000232341
0.000359307
-0.000341121
0.000315924
-0.000366327
0.000399612
0.000832982
0.001065
-0.00132303
0.000241724
0.000439397
0.000551473
0.000319282
0.000238367
0.000370321
0.000308268
0.000345814
0.000441798
0.000289612
-0.000385597
0.000324795
0.000222312
0.000258622
0.000416657
0.0002198
-0.000377834
0.000313591
0.000186169
0.000240966
0.000400429
0.000213845
-0.000373306
0.000306238
0.000173712
0.000230241
0.000399607
0.000191368
-0.000360759
0.000306477
0.000170423
0.000231261
0.000394598
0.000201177
-0.000364512
0.000303631
0.000167736
0.000226941
0.000399829
0.000187211
-0.0003601
0.000306011
0.00016937
0.000231101
0.000395625
0.000201147
-0.000365672
0.000302871
0.000168746
0.000227301
0.000397996
0.000187913
-0.000358609
0.000303667
0.00016972
0.000229931
0.000391377
0.000200614
-0.00036206
0.00029857
0.000168576
0.000225635
0.000390559
0.000188156
-0.00035308
0.000295163
0.000170231
0.000226833
0.000372219
0.000205177
-0.000350561
0.000276628
0.00017371
0.000229655
0.000339305
0.000215214
-0.000324874
0.00027088
0.000408832
0.000224666
-0.000362623
0.0003047
0.000195155
0.000239149
0.000380921
0.000198274
-0.00034004
0.000286014
0.000174854
0.000239098
0.00034909
0.000225381
-0.000335384
0.000278872
0.000424067
0.00022993
-0.000375124
0.000309239
0.000210818
0.000266163
0.000366268
-0.000360752
0.000260651
0.000301101
0.000423394
0.000244891
-0.000367185
0.000314143
0.000210143
0.000269506
0.000378465
0.000254382
-0.000363344
0.000308544
0.00045364
0.000255383
-0.000400479
0.000326756
0.00023098
0.000283616
0.000382662
0.000279134
-0.000378181
0.000317045
0.000437632
0.000259704
-0.000380291
0.000322077
0.000221922
0.000278612
0.000382562
0.000264071
-0.000368021
0.000314303
0.000452701
0.000262612
-0.000401009
0.000324845
0.000235097
0.000285787
0.000374865
0.000286713
-0.000375766
0.000337
0.000417651
0.000317348
-0.000397973
0.000359842
0.000471023
0.00031504
-0.000426222
0.000335234
0.000257381
0.000297368
0.000378818
-0.000375635
0.000294158
0.000342107
0.000419827
-0.000392717
0.000314964
0.000359926
0.000488234
0.000300491
-0.0004288
0.000347474
0.000263993
0.00030969
0.000392787
0.000314162
-0.000397284
0.000359272
0.000418844
0.000349529
-0.000409147
0.000394232
0.000449254
0.000368946
-0.00042397
0.000396866
0.000496245
0.000326461
-0.000425841
0.00035718
0.000271681
0.000319343
0.000398299
0.000317514
-0.000396503
0.000365009
0.000428408
0.000344653
-0.000408098
0.000400138
0.000470649
0.000362089
-0.00043261
0.000410384
0.000541915
0.000340172
-0.000471702
0.000382862
0.000297848
0.000343496
0.000428341
0.000348728
-0.000433609
0.000395361
0.000453017
0.000384713
-0.000442424
0.000431125
0.000481757
0.000408542
-0.000459175
0.000456624
0.000522866
0.000421806
-0.000488048
0.000463335
0.000577415
0.000402569
-0.000516648
0.000404242
0.000327702
0.000365233
0.000444635
0.000364979
-0.000444425
0.000412799
0.000464446
0.000393456
-0.000445131
0.000443212
0.00049498
0.000411892
-0.000463664
0.000469392
0.000540423
0.000421558
-0.00049259
0.000474678
0.000615907
0.000393112
-0.000534341
0.000433181
0.000341852
0.000390885
0.0004824
0.000397514
-0.000488994
0.000446249
0.000507469
0.0004356
-0.000496795
0.000484776
0.000537158
0.000459725
-0.000512107
0.000511134
0.000580088
0.000471299
-0.000540252
0.000515947
0.000638642
0.000447293
-0.000569988
0.00044715
0.000363715
0.000403974
0.000488564
0.000404407
-0.000489039
0.000453785
0.000508695
0.000433631
-0.000488631
0.000486514
0.000542492
0.000451216
-0.000507206
0.000514056
0.000590813
0.00046231
-0.000539073
0.000519237
0.00067625
0.000430192
-0.000587204
0.000476315
0.000375188
0.000428642
0.000530165
0.000436041
-0.000537492
0.000490343
0.000559737
0.000477458
-0.00054677
0.000532644
0.000593728
0.000504128
-0.000565198
0.000564401
0.000644395
0.000520399
-0.000600394
0.000571902
0.000711941
0.000496501
-0.000636538
0.000498128
0.000404047
0.000449402
0.000549473
0.000449664
-0.000549745
0.000508947
0.000575622
0.000485077
-0.000551684
0.00054772
0.000617155
0.000507726
-0.00057715
0.000582899
0.000676698
0.00052188
-0.000615646
0.000592028
0.000777442
0.000486202
-0.000671599
0.000548675
0.000426708
0.000492055
0.00061636
0.000498345
-0.000622656
0.000568254
0.000656454
0.000549878
-0.000638049
0.000619145
0.0007017
0.000577529
-0.000660085
0.000621074
0.000771887
0.000509766
-0.000660577
0.000557057
0.000421703
0.00049723
0.000624367
0.000491506
-0.000618594
0.000571058
0.000676004
0.00053479
-0.000639807
0.000628434
0.000749278
0.000562964
-0.000683848
0.000648019
0.000870845
0.000527105
-0.000749932
0.000620542
0.00046718
0.000553437
0.000712028
0.00055037
-0.000708959
0.000641835
0.000790199
0.000598717
-0.000746997
0.000682443
0.000888982
0.000588098
-0.000794636
0.00063315
0.000484349
0.000563471
0.000723131
0.000548076
-0.000707737
0.000648044
0.000807121
0.000585829
-0.000744909
0.000685512
0.000947848
0.000557889
-0.000820225
0.000680389
0.000497467
0.000598598
0.000791613
-0.000779699
0.000586679
0.000658564
0.00089936
0.000537997
-0.000778792
0.000664667
0.000454773
0.000572224
0.00079635
0.000538123
-0.000762054
0.000648468
0.000949895
0.000535652
-0.000836843
0.000691769
0.000481149
0.000595599
0.000812214
0.000582829
-0.000799476
0.000667508
0.000938503
0.000539877
-0.00081096
0.000705748
0.000461314
0.00059856
0.000858159
-0.00081639
0.000556811
0.000684418
0.00103696
0.000556872
-0.000909286
0.000764231
0.000508839
0.000654408
0.000918549
0.000625378
-0.000889749
0.00073469
0.0010911
0.000565659
-0.000922074
0.000844868
0.000479584
0.000648198
0.00109149
0.000538804
-0.000981835
0.0008253
0.000476164
0.000618665
0.0010602
0.000481931
-0.000923463
0.000835025
0.00042371
0.000623146
0.00109414
0.000513798
-0.000984455
0.000841975
0.000457813
0.000615581
0.0010961
0.000465293
-0.00094581
0.00088036
0.000412726
0.000640824
0.00118349
0.000501817
-0.00104455
0.000938905
0.000447842
0.000640192
0.00129406
-0.00106644
0.00041257
0.00110332
0.000316421
0.000955775
0.000338381
0.000607973
0.00134507
0.000419611
-0.00115671
0.00114288
0.000296296
0.0010215
0.00025122
0.000904967
0.000270124
0.000551322
0.0011962
0.000406023
-0.00105091
0.00111265
0.000170742
0.00102281
0.000170012
0.00102404
4.52559e-05
0.000957507
0.000113251
0.000983585
-3.691e-06
0.000926246
8.32495e-05
0.000954424
-1.11727e-05
0.000900545
8.29849e-05
0.000927908
-1.00936e-05
0.000875611
7.79479e-05
0.000905131
-1.6741e-05
0.000856886
6.97038e-05
0.000887862
-2.10867e-05
0.000841302
6.55252e-05
0.000872418
-2.30492e-05
0.000827559
6.20573e-05
0.000859092
-2.48198e-05
0.000815242
5.94962e-05
0.000846834
-2.63185e-05
0.000804395
5.6512e-05
0.000836392
-2.79726e-05
0.000794691
5.44093e-05
0.000826623
-2.91073e-05
0.000785972
5.21232e-05
0.000818192
-3.03473e-05
0.000777986
5.06593e-05
0.000810022
-3.10598e-05
0.00077069
4.88524e-05
0.000802957
-3.20539e-05
0.00076393
4.77057e-05
0.000795989
-3.25647e-05
0.000757646
4.62393e-05
0.000789906
-3.33762e-05
0.000751779
4.53628e-05
0.000783794
-3.36948e-05
0.000746283
4.41726e-05
0.00077849
-3.43511e-05
0.000741123
4.35245e-05
0.000773088
-3.45239e-05
0.000736199
4.25773e-05
0.000768464
-3.51312e-05
0.000731733
4.20179e-05
0.00076375
-3.51752e-05
0.000727481
4.1229e-05
0.000759791
-3.57054e-05
0.000723675
4.07667e-05
0.000755711
-3.56419e-05
0.00072001
4.01257e-05
0.000752364
-3.61324e-05
0.000716796
3.97578e-05
0.000748858
-3.59905e-05
0.000713672
3.92259e-05
0.00074606
-3.64417e-05
0.00071099
3.89387e-05
0.000743076
-3.62483e-05
0.000708362
3.8494e-05
0.00074078
-3.68781e-05
0.000706131
3.84729e-05
0.000738242
-3.6435e-05
0.000703955
3.79057e-05
0.000736377
-3.68325e-05
0.000702154
3.77308e-05
0.000734271
-3.6559e-05
0.000700347
3.74319e-05
0.000732789
-3.69502e-05
0.000698909
3.72978e-05
0.00073104
-3.66449e-05
0.000697432
3.70531e-05
0.000729892
-3.7028e-05
0.000696303
3.6961e-05
0.000728454
-3.67031e-05
0.000695122
3.67541e-05
0.00072759
-3.70559e-05
0.000694241
3.67141e-05
0.000726427
-3.67538e-05
0.000693339
3.65094e-05
0.000725811
-3.70533e-05
0.000692664
3.65371e-05
0.000724872
-3.67638e-05
0.000691981
3.63323e-05
0.000724462
-3.70423e-05
0.000691484
3.64029e-05
0.000723716
-3.67621e-05
0.000690987
3.62074e-05
0.000723494
-3.7036e-05
0.000690675
3.62918e-05
0.000722928
-3.67543e-05
0.000690345
3.61094e-05
0.000722875
-3.70222e-05
0.000690188
3.62099e-05
0.000722451
-3.67341e-05
0.00068998
3.60443e-05
0.000722504
-3.69863e-05
0.00068991
3.61659e-05
0.000722171
-3.67034e-05
0.000689786
3.60034e-05
0.000722304
-3.69502e-05
0.000689786
3.61376e-05
0.000722044
-3.66733e-05
0.000689728
3.59776e-05
0.000722238
-3.69146e-05
0.000689779
3.61209e-05
0.000722032
-3.66441e-05
0.000689768
3.5963e-05
0.00072227
-3.68817e-05
0.000689855
3.61131e-05
0.000722105
-3.66155e-05
0.000689882
3.59586e-05
0.000722378
-3.68497e-05
0.000689997
3.61136e-05
0.000722243
-3.65892e-05
0.000690049
3.59594e-05
0.00072254
-3.68213e-05
0.000690183
3.61217e-05
0.000722427
-3.6563e-05
0.000690255
3.59672e-05
0.00072274
-3.67925e-05
0.000690398
3.61347e-05
0.000722639
-3.65379e-05
0.000690481
3.59794e-05
0.000722961
-3.67655e-05
0.000690631
3.61509e-05
0.000722868
-3.65127e-05
0.00069072
3.59975e-05
0.000723194
-3.67382e-05
0.000690872
3.61691e-05
0.000723106
-3.64905e-05
0.000690964
3.60152e-05
0.000723435
-3.67165e-05
0.000691118
3.61865e-05
0.00072335
-3.64731e-05
0.000691213
3.60305e-05
0.000723681
-3.66991e-05
0.000691368
3.62014e-05
0.0007236
-3.64597e-05
0.000691465
3.60451e-05
0.000723932
-3.66841e-05
0.000691621
3.62167e-05
0.000723853
-3.64478e-05
0.000691718
3.60603e-05
0.000724183
-3.66702e-05
0.000691871
3.62322e-05
0.000724104
-3.64374e-05
0.000691969
3.60755e-05
0.000724433
-3.66592e-05
0.000692119
3.62483e-05
0.000724352
-3.64282e-05
0.000692215
3.60912e-05
0.000724677
-3.66483e-05
0.000692361
3.62642e-05
0.000724595
-3.64199e-05
0.000692454
3.61069e-05
0.000724916
-3.66392e-05
0.000692596
3.62809e-05
0.00072483
-3.64115e-05
0.000692684
3.61234e-05
0.000725145
-3.66294e-05
0.000692819
3.62981e-05
0.000725053
-3.64031e-05
0.000692902
3.61399e-05
0.000725362
-3.66205e-05
0.000693031
3.63137e-05
0.000725266
-3.6397e-05
0.00069311
3.6154e-05
0.000725571
-3.66155e-05
0.000693235
3.63269e-05
0.000725471
-3.6394e-05
0.000693311
3.61648e-05
0.000725775
-3.66145e-05
0.000693436
3.63354e-05
0.000725677
-3.63966e-05
0.000693514
3.61705e-05
0.000725984
-3.66205e-05
0.000693643
3.63385e-05
0.000725891
-3.64058e-05
0.000693728
3.61712e-05
0.000726207
-3.66332e-05
0.000693866
3.63374e-05
0.000726124
-3.64209e-05
0.000693962
3.61682e-05
0.000726453
-3.6651e-05
0.000694113
3.63323e-05
0.000726385
-3.64412e-05
0.000694221
3.61669e-05
0.000726722
-3.66636e-05
0.000694378
3.63387e-05
0.00072666
-3.6451e-05
0.000694488
3.6179e-05
0.000726995
-3.66657e-05
0.000694641
3.63563e-05
0.000726928
-3.64513e-05
0.000694748
3.6197e-05
0.000727469
-3.68769e-05
0.000695105
3.63682e-05
0.000727206
-3.62619e-05
0.000695239
3.5805e-05
0.000728398
-3.73224e-05
0.000696267
3.59572e-05
0.000729455
-3.77265e-05
0.000698288
3.46424e-05
0.000733214
-4.00045e-05
0.00070316
3.24217e-05
0.000740282
-4.33821e-05
0.000710153
3.15909e-05
0.000747843
-4.50747e-05
0.000737563
2.99431e-06
0.000809494
-0.000102228
-9.82126e-05
-0.00103181
-0.000124356
-0.000418542
-0.000715497
-0.000262974
-0.00261021
-0.000523449
0.00138758
0.00159051
-0.000975477
-0.000333358
-0.000687195
-0.000314919
-0.0021655
-0.000463157
-0.000970523
-0.00033566
-0.000678246
-0.000308795
-0.00203181
-0.000160558
-0.00095462
-0.000324644
-0.000669981
-0.000307253
-0.00189147
-0.000157727
-0.000942592
-0.000314036
-0.000666282
-0.000310097
-0.0019046
9.18839e-06
-0.000940422
-0.000313216
-0.000664529
-0.000309196
-0.00182982
-7.8805e-05
-0.00093792
-0.000310575
-0.000663608
-0.000311279
-0.00187451
4.53921e-05
-0.000938519
-0.000311729
-0.000663667
-0.000309139
-0.00181552
-6.15777e-05
-0.000936609
-0.000309625
-0.000663435
-0.000310805
-0.00186745
5.31109e-05
-0.000937884
-0.00031123
-0.00066332
-0.00030908
-0.00181223
-5.73749e-05
-0.000936222
-0.000309366
-0.000663307
-0.000310538
-0.00186568
5.46258e-05
-0.000937507
-0.000310974
-0.000663196
-0.000308821
-0.00181136
-5.64785e-05
-0.000935851
-0.000309097
-0.000663196
-0.000310508
-0.00186525
5.52952e-05
-0.000937371
-0.000310927
-0.000663096
-0.000308797
-0.00181118
-5.61945e-05
-0.000935725
-0.000309033
-0.000663113
-0.000310504
-0.00186484
5.51326e-05
-0.00093728
-0.00031088
-0.000663033
-0.000308797
-0.00181103
-5.59042e-05
-0.000935658
-0.000308998
-0.000663066
-0.000310508
-0.00186474
5.52218e-05
-0.000937236
-0.000310855
-0.000663001
-0.000308802
-0.00181097
-5.58258e-05
-0.000935633
-0.000308983
-0.000663047
-0.000310516
-0.00186474
5.53025e-05
-0.000937229
-0.000310849
-0.000662994
-0.000308812
-0.00181101
-5.57685e-05
-0.000935642
-0.000308985
-0.000663051
-0.000310526
-0.00186483
5.53611e-05
-0.00093725
-0.00031086
-0.000663005
-0.000308823
-0.00181113
-5.57349e-05
-0.000935675
-0.000309001
-0.000663071
-0.000310539
-0.00186499
5.54e-05
-0.000937296
-0.000310885
-0.000663032
-0.000308835
-0.00181133
-5.57189e-05
-0.000935728
-0.000309026
-0.000663105
-0.000310555
-0.00186522
5.54222e-05
-0.000937362
-0.00031092
-0.000663072
-0.000308852
-0.00181157
-5.57163e-05
-0.000935801
-0.00030906
-0.000663153
-0.000310578
-0.0018655
5.54385e-05
-0.000937449
-0.000310963
-0.000663126
-0.000308877
-0.00181187
-5.57161e-05
-0.000935896
-0.000309099
-0.000663217
-0.000310612
-0.00186582
5.54642e-05
-0.000937565
-0.000311013
-0.0006632
-0.000308913
-0.00181222
-5.57031e-05
-0.000936022
-0.000309147
-0.000663303
-0.000310658
-0.00186621
5.55034e-05
-0.000937713
-0.000311075
-0.000663297
-0.000308962
-0.00181264
-5.56818e-05
-0.000936184
-0.000309205
-0.000663416
-0.00031072
-0.00186668
5.55528e-05
-0.000937904
-0.00031115
-0.000663424
-0.000309025
-0.00181315
-5.56544e-05
-0.00093639
-0.000309278
-0.00066356
-0.000310796
-0.00186725
5.56125e-05
-0.000938139
-0.00031124
-0.000663583
-0.000309106
-0.00181376
-5.56206e-05
-0.000936645
-0.000309365
-0.00066374
-0.000310892
-0.00186792
5.56829e-05
-0.000938431
-0.000311348
-0.000663782
-0.000309206
-0.00181448
-5.55796e-05
-0.000936958
-0.00030947
-0.000663962
-0.00031101
-0.00186871
5.57663e-05
-0.000938785
-0.000311476
-0.000664025
-0.000309328
-0.00181533
-5.55301e-05
-0.000937338
-0.000309598
-0.000664231
-0.000311149
-0.00186965
5.58702e-05
-0.000939211
-0.000311631
-0.000664318
-0.000309469
-0.00181635
-5.54639e-05
-0.00093779
-0.000309753
-0.00066455
-0.000311308
-0.00187079
5.59937e-05
-0.000939707
-0.000311811
-0.000664662
-0.000309636
-0.00181757
-5.53918e-05
-0.000938319
-0.000309933
-0.000664924
-0.000311497
-0.00187213
5.61202e-05
-0.000940286
-0.000312015
-0.000665064
-0.000309843
-0.00181897
-5.53311e-05
-0.00093894
-0.00031014
-0.000665363
-0.000311721
-0.00187366
5.62722e-05
-0.000940962
-0.000312251
-0.000665533
-0.000310091
-0.00182057
-5.52559e-05
-0.000939665
-0.000310376
-0.000665878
-0.00031199
-0.00187541
5.64586e-05
-0.000941755
-0.000312521
-0.000666084
-0.000310385
-0.0018224
-5.51503e-05
-0.000940511
-0.000310648
-0.000666478
-0.000312315
-0.00187741
5.66778e-05
-0.00094268
-0.000312832
-0.000666729
-0.00031073
-0.00182449
-5.50266e-05
-0.000941497
-0.000310961
-0.00066718
-0.000312695
-0.00187969
5.69332e-05
-0.000943754
-0.000313189
-0.000667479
-0.000311134
-0.00182687
-5.48769e-05
-0.000942636
-0.000311318
-0.000667992
-0.00031314
-0.00188228
5.72299e-05
-0.000944994
-0.000313596
-0.000668349
-0.000311607
-0.00182957
-5.46997e-05
-0.000943953
-0.000311721
-0.000668936
-0.00031365
-0.00188521
5.75715e-05
-0.000946419
-0.000314053
-0.000669353
-0.00031216
-0.00183261
-5.44921e-05
-0.000945468
-0.000312179
-0.000670024
-0.00031424
-0.00188853
5.7977e-05
-0.000948054
-0.000314573
-0.000670503
-0.000312804
-0.00183607
-5.42277e-05
-0.000947198
-0.000312677
-0.000671275
-0.000314942
-0.00189226
5.84493e-05
-0.000949925
-0.000315129
-0.000671832
-0.00031355
-0.00183991
-5.39284e-05
-0.000949174
-0.000313239
-0.000672698
-0.000315755
-0.00189641
5.9021e-05
-0.00095205
-0.00031574
-0.000673352
-0.000314416
-0.00184416
-5.35798e-05
-0.000951436
-0.000313873
-0.000674327
-0.000316691
-0.00190105
5.97127e-05
-0.000954481
-0.000316396
-0.000675139
-0.000315418
-0.0018489
-5.31388e-05
-0.000954047
-0.000314612
-0.00067619
-0.000317788
-0.00190625
6.05303e-05
-0.000957263
-0.000317069
-0.00067725
-0.000316579
-0.00185415
-5.25871e-05
-0.000957075
-0.000315462
-0.000678316
-0.000319061
-0.00191207
6.15101e-05
-0.000960416
-0.000317815
-0.00067963
-0.000317925
-0.00186007
-5.18857e-05
-0.000960502
-0.00031631
-0.000680837
-0.000320512
-0.00191854
6.26732e-05
-0.000964052
-0.000318662
-0.000682341
-0.000319458
-0.00186673
-5.10126e-05
-0.000964367
-0.000317211
-0.000683715
-0.000322156
-0.00192578
6.39908e-05
-0.000968141
-0.000319575
-0.000685398
-0.000321426
-0.00187375
-5.01799e-05
-0.000968919
-0.000318182
-0.000687172
-0.000324049
-0.00193367
6.57888e-05
-0.000972748
-0.000320553
-0.000689073
-0.000323248
-0.0018821
-4.88788e-05
-0.000973827
-0.000319431
-0.000690645
-0.000326234
-0.00194299
6.76876e-05
-0.000977941
-0.000321607
-0.000692776
-0.000325587
-0.00189194
-4.70638e-05
-0.000979136
-0.000320321
-0.000694806
-0.000328759
-0.00195326
6.97585e-05
-0.000983807
-0.000322722
-0.000697217
-0.000328303
-0.0019026
-4.50871e-05
-0.000985395
-0.000321496
-0.000699541
-0.0003317
-0.00196497
7.2575e-05
-0.000990474
-0.000323902
-0.000702278
-0.000331473
-0.0019148
-4.25976e-05
-0.000992522
-0.000322736
-0.000704961
-0.000335135
-0.00197843
7.60234e-05
-0.000998079
-0.000325188
-0.000708022
-0.000335218
-0.0019289
-3.94947e-05
-0.00100066
-0.000324107
-0.00071108
-0.000339226
-0.00199406
8.02717e-05
-0.00100678
-0.000326685
-0.000714447
-0.000339727
-0.00194541
-3.5605e-05
-0.00101
-0.0003257
-0.000717996
-0.000344201
-0.0020125
8.55891e-05
-0.00101683
-0.000328277
-0.000721934
-0.000345197
-0.00196502
-3.05631e-05
-0.00102089
-0.000327367
-0.00072609
-0.000350262
-0.00203458
9.24578e-05
-0.00102865
-0.000329931
-0.00073077
-0.000351911
-0.00198879
-2.38177e-05
-0.00103383
-0.000329153
-0.000735735
-0.0003577
-0.00206175
0.000101515
-0.00104278
-0.000331748
-0.000741375
-0.000360054
-0.00201876
-1.46907e-05
-0.00104931
-0.000331027
-0.000747386
-0.000366769
-0.00209615
0.000113136
-0.00105975
-0.000333394
-0.000754326
-0.00037062
-0.00205598
-2.95008e-06
-0.00106843
-0.000332927
-0.000761825
-0.000379122
-0.00214031
0.000130522
-0.00108145
-0.000335547
-0.000770724
-0.000384414
-0.0021058
1.43579e-05
-0.00109308
-0.000335997
-0.000780133
-0.00039462
-0.00220055
0.000153373
-0.00110923
-0.000339668
-0.000790647
-0.000403158
-0.00217472
3.76581e-05
-0.0011241
-0.000336514
-0.000804329
-0.000419835
-0.00227111
0.000179717
-0.00114622
-0.000333405
-0.000822905
-0.000432488
-0.00222923
5.71933e-05
-0.00117241
-0.000346074
-0.000837508
-0.000442343
-0.00236588
0.000232927
-0.0011966
-0.000334531
-0.000865761
-0.000478768
-0.00240041
0.000178765
-0.00123128
-0.000276079
-0.000909944
-0.000567707
-0.0025563
0.000447512
-0.00130764
-0.000152438
-0.000984461
-0.000732022
-0.00244486
0.000468147
-0.00131046
-0.000302278
-0.000953884
-5.42968e-05
-0.00108306
0.000371526
-0.00120337
0.000745828
-0.00132819
0.000729955
-0.00248329
0.001387
0.00204922
-0.00270627
0.000253675
0.00545019
0.00104472
-0.00536159
0.00277104
0.0011731
0.00204545
0.000474757
0.00538218
0.000766347
0.00269897
0.000971836
0.00196006
0.000594792
0.00525608
0.000503141
0.00261204
0.000887251
0.00190451
0.000602276
0.00519222
0.000348838
0.00254444
0.000841712
0.0018561
0.000619851
0.00512024
0.000293836
0.00249031
0.000800891
0.00181994
0.000635157
0.00504527
0.000240703
0.00245215
0.000768406
0.00179688
0.000638626
0.00498484
0.000190205
0.00242081
0.000745019
0.00177731
0.00064445
0.00493465
0.000150756
0.00239794
0.000728219
0.00176218
0.000647944
0.00489307
0.00012185
0.00237956
0.00071536
0.00174979
0.000649995
0.00485828
0.000100149
0.00236417
0.000705133
0.00173931
0.000651237
0.004829
8.31716e-05
0.00235105
0.000696757
0.00173032
0.000652015
0.00480421
6.95291e-05
0.00233974
0.000689779
0.00172253
0.000652476
0.00478309
5.84215e-05
0.00232992
0.000683895
0.00171578
0.000652582
0.00476505
4.93451e-05
0.0023213
0.000679348
0.00170964
0.000652324
0.00475026
4.18098e-05
0.00231308
0.000674202
0.00170467
0.000652654
0.00473625
3.55577e-05
0.00230714
0.000671035
0.0017001
0.000652227
0.00472468
3.03741e-05
0.00230131
0.000667934
0.00169605
0.000651948
0.00471463
2.6036e-05
0.00229611
0.000665321
0.0016923
0.000651743
0.00470585
2.23564e-05
0.00229145
0.000663097
0.00168889
0.000651558
0.0046981
1.9281e-05
0.0022873
0.000661168
0.00168585
0.000651322
0.00469127
1.66746e-05
0.00228359
0.000659492
0.00168312
0.000651083
0.0046852
1.44727e-05
0.00228027
0.000658036
0.00168069
0.000650833
0.0046798
1.26089e-05
0.00227729
0.000656753
0.00167851
0.000650584
0.00467494
1.10207e-05
0.00227461
0.000655617
0.00167656
0.000650326
0.00467057
9.66232e-06
0.00227218
0.000654615
0.0016748
0.000650071
0.00466661
8.49578e-06
0.00226999
0.000653722
0.0016732
0.000649824
0.00466302
7.48679e-06
0.002268
0.000652923
0.00167175
0.000649582
0.00465975
6.61002e-06
0.00226619
0.000652206
0.00167044
0.000649353
0.00465675
5.8425e-06
0.00226453
0.000651556
0.00166925
0.000649166
0.00465398
5.16158e-06
0.00226308
0.000650964
0.00166824
0.000648978
0.0046514
4.55921e-06
0.00226182
0.000650418
0.0016674
0.000648763
0.00464902
4.03378e-06
0.0022607
0.000649922
0.00166665
0.000648554
0.00464681
3.57631e-06
0.00225967
0.000649474
0.00166596
0.000648348
0.00464475
3.17639e-06
0.00225873
0.000649073
0.00166534
0.000648152
0.00464285
2.82442e-06
0.00225787
0.000648714
0.00166477
0.000647969
0.00464108
2.50862e-06
0.00225708
0.00064839
0.00166424
0.000647797
0.00463944
2.22573e-06
0.00225636
0.000648098
0.00166376
0.000647638
0.00463793
1.96834e-06
0.00225569
0.000647834
0.00166332
0.000647482
0.00463655
1.7247e-06
0.00225509
0.000647609
0.00166292
0.000647287
0.00463539
1.48309e-06
0.00225449
0.000647399
0.00166251
0.00064713
0.0046344
1.25714e-06
0.00225392
0.000647192
0.00166213
0.000647008
0.00463355
1.02341e-06
0.0022534
0.000646981
0.00166178
0.000646932
0.00463282
7.76875e-07
0.00225294
0.000646757
0.00166149
0.000646926
0.00463234
3.10569e-07
0.00225258
0.000646523
0.00166128
0.000647002
0.00463179
6.78965e-08
0.00225238
0.000646079
0.00166143
0.000647128
0.00463308
-2.34344e-06
0.00225236
0.000645711
0.00166195
0.000648154
0.00463948
-8.84818e-06
0.00225362
0.000645186
0.00166306
0.000651664
0.00466417
-3.11749e-05
0.00225735
0.000642086
0.00166837
0.000662761
0.0047396
-9.6111e-05
0.00226955
0.000630492
0.00168445
0.000701794
0.00493984
-0.000271547
0.00230744
0.000576157
0.00174047
0.000834235
0.00537894
-0.000697194
0.00241698
0.000324897
0.00193152
0.00133933
0.00292521
0.00294795
-0.00150865
0.00280769
-0.000533101
-1.84648e-05
-0.00102577
-0.00488161
-0.000612167
-0.00452032
-0.00447368
-0.000354604
0.000460663
-0.00465144
-0.000282909
0.000655376
-0.00471504
-0.00492344
-0.00488325
-0.000311739
-0.00485757
-0.00012179
-4.21052e-05
-0.00484665
0.00479273
-3.89468e-05
-0.00479589
0.00477707
-0.000106135
-0.000249714
-0.00473693
-0.000164224
-0.00476869
-7.43859e-05
-2.86145e-05
-0.00477902
0.00477491
-1.77522e-05
-0.00478578
0.00474453
-4.40062e-05
0.00467409
-9.37906e-05
0.00454741
-0.000156229
-0.000183008
-9.40817e-05
-0.00464955
-4.08173e-05
-0.00473268
-0.00478967
-1.72371e-05
3.68506e-05
-0.00481066
-1.58649e-05
7.94131e-05
-0.00477525
-0.00472637
-0.0047723
-4.78667e-05
-0.00479363
-2.26726e-05
-9.38103e-06
-0.00480201
0.00481326
-4.65473e-06
-0.00481799
0.00480108
-1.04982e-05
-2.20301e-05
-0.00482303
-9.66762e-06
-0.00482891
-4.61497e-06
-2.14401e-06
-0.00483142
0.0048405
-1.11083e-06
-0.00484153
0.00483825
-2.37398e-06
0.00483264
-4.0579e-06
0.00482343
-6.65494e-06
-6.35258e-06
-2.17041e-06
-0.00484201
-1.32561e-06
-0.00485211
-0.00485879
-1.16434e-06
1.40802e-06
-0.00485869
-1.51038e-06
2.96338e-06
-0.00485367
-0.00484571
-0.00484771
-2.05859e-06
-0.00484874
-1.34054e-06
-1.05255e-06
-0.0048488
0.00485433
-9.82874e-07
-0.0048544
0.00485424
-1.2588e-06
-1.4839e-06
-0.00485882
-1.35946e-06
-0.00485869
-1.39172e-06
-1.13256e-06
-0.00485854
0.00486216
-1.49424e-06
-0.0048618
0.00486226
-1.49089e-06
0.00486283
-1.92719e-06
0.00486386
-2.54699e-06
-1.93784e-06
-4.38283e-06
-0.00486997
-1.31291e-05
-0.00488021
-0.00489859
-2.72107e-05
1.15772e-05
-0.00488645
-2.37167e-05
5.25255e-06
-0.00487388
-0.00486726
-0.00486552
-3.674e-06
-0.00486473
-2.28327e-06
-1.57687e-06
-0.00486465
0.00486826
-2.35055e-06
-0.00486749
0.00487023
-4.25514e-06
-7.33326e-06
-0.00487893
-1.48546e-05
-0.00487481
-8.38057e-06
-4.78758e-06
-0.00487237
0.00489153
-9.13145e-06
-0.00488719
0.00490024
-1.70952e-05
0.00491333
-2.79449e-05
0.00493153
-4.19188e-05
-5.51599e-05
-6.48282e-05
-0.00498203
-7.86575e-05
-0.0050501
-0.00506722
-8.26468e-07
6.79263e-05
-0.00508339
-5.1756e-05
5.91233e-05
-0.0050413
-0.00496483
-0.00494738
-4.5389e-05
-0.00493384
-3.06443e-05
-1.73291e-05
-0.00492564
0.0050067
-2.70652e-05
-0.00499697
0.00502316
-4.71036e-05
-6.3532e-05
-0.00507278
-7.41418e-05
-0.00506087
-5.90181e-05
-3.26619e-05
-0.00505528
0.00496661
-2.78378e-05
-0.00497143
0.00496603
-5.84489e-05
0.00496812
-7.62244e-05
0.00494956
-3.31994e-05
3.32255e-05
0.000105874
-0.00460231
-0.00419672
1.25183e-05
-0.00420309
-0.004623
-0.00463503
-6.41878e-05
-0.00464929
-4.41924e-05
-1.61444e-05
-0.00466099
0.00425126
-0.00426191
0.0042296
3.14858e-06
-0.00426471
9.79183e-06
-0.00466763
1.40933e-05
-0.00497573
1.24495e-05
-0.00505363
7.90015e-06
-0.00499242
4.56406e-06
-0.00492231
2.64008e-06
-0.00488527
1.88847e-06
-0.00487162
1.57937e-06
-0.00486718
1.23013e-06
-0.0048643
1.08826e-06
-0.00486166
9.16678e-07
-0.00485837
7.24366e-07
-0.00485421
7.66657e-07
-0.00484885
8.18691e-07
-0.00484159
1.62697e-06
-0.00483224
3.45049e-06
-0.00481982
6.05642e-06
-0.00480462
9.44954e-06
-0.00478917
1.26633e-05
-0.00478224
1.29515e-05
-0.00479618
-0.00484255
-0.00484169
-3.20507e-06
-0.00484139
-2.35974e-07
7.54467e-07
-0.00484184
0.00479627
8.5116e-07
-0.00479637
0.0047962
-1.71043e-07
-3.18534e-06
-0.004783
-2.43e-06
-0.004783
-1.75315e-07
-0.00478303
8.79907e-07
-1.1319e-06
-0.00478309
1.19628e-06
-1.02136e-06
-0.00479648
-0.00484209
-0.00484238
1.31317e-06
-0.00484274
1.61626e-06
1.92153e-06
-0.00484318
0.00479678
2.13083e-06
-0.00479699
0.00479661
1.77732e-06
1.44006e-06
-0.00478315
1.49855e-06
-0.00478324
1.86187e-06
2.27668e-06
-0.00478339
0.00479062
2.35578e-06
-0.0047907
0.00479057
1.90903e-06
0.00479053
1.54223e-06
0.00479054
1.18334e-06
0.00479058
8.37765e-07
0.00479013
2.70331e-07
-1.47481e-06
-0.00480527
-8.19086e-07
-0.00480542
4.18711e-07
4.93395e-07
-0.00480508
0.00482002
5.63886e-07
-0.00482009
0.00482017
2.654e-07
-4.66404e-07
-0.0048323
-4.05579e-07
-0.00483209
6.03936e-08
-0.00483187
3.37947e-07
-9.10184e-07
-0.00483163
6.70916e-07
-1.08444e-06
-0.00481992
-0.00480498
-0.00480492
1.47281e-06
-0.00480492
1.90601e-06
2.36641e-06
-0.00480493
0.00481961
2.27416e-06
-0.00481952
0.00481975
1.75903e-06
1.30702e-06
-0.00483139
1.0623e-06
-0.00483115
1.51855e-06
-0.00483092
2.04466e-06
-2.85247e-06
-0.00483072
2.65155e-06
-2.90233e-06
-0.00481947
-2.87202e-06
-0.00480496
-2.72948e-06
-0.00479085
-2.49534e-06
-0.00478362
-2.20723e-06
-0.00479728
-0.00484367
-0.00484422
2.51714e-06
-0.00484485
2.85208e-06
3.21915e-06
-0.00484556
0.0047981
3.77152e-06
-0.00479866
0.00479765
3.30226e-06
2.88353e-06
-0.00478394
3.19546e-06
-0.00478434
3.70513e-06
-0.00478485
4.2771e-06
-4.28671e-06
-0.00478548
4.91283e-06
-3.63098e-06
-0.00479931
-0.00484637
-0.00484729
4.09353e-06
-0.00484833
4.61293e-06
5.20629e-06
-0.00484951
0.00480101
6.27268e-06
-0.00480208
0.0048001
5.52856e-06
4.87396e-06
-0.00478623
5.62513e-06
-0.00478713
6.42929e-06
7.32898e-06
-0.00478819
0.00479395
8.32301e-06
-0.00479494
0.00479312
7.2594e-06
0.00479243
6.31262e-06
0.00479187
5.46906e-06
0.00479143
4.71512e-06
0.00479109
4.0408e-06
3.44119e-06
-0.00480505
3.53216e-06
-0.00480525
4.24109e-06
5.01108e-06
-0.00480555
0.00481944
5.11077e-06
-0.00481954
0.00481944
4.24135e-06
3.49974e-06
-0.00483057
3.3504e-06
-0.00483047
4.13935e-06
-0.0048304
5.0358e-06
-6.07265e-06
-0.00483037
6.04055e-06
-5.87065e-06
-0.00481974
-0.00480595
-0.00480648
6.83587e-06
-0.00480714
7.91878e-06
9.13824e-06
-0.00480795
0.00482046
9.68316e-06
-0.00482101
0.00482005
8.33636e-06
7.13805e-06
-0.00483043
7.20046e-06
-0.00483059
8.49725e-06
-0.00483087
9.96307e-06
-1.11863e-05
-0.00483127
1.15791e-05
-1.04918e-05
-0.0048217
-9.51477e-06
-0.00480893
-8.34479e-06
-0.00479612
-7.11396e-06
-0.00478942
-5.88384e-06
-0.00480332
-0.00485083
-0.00485233
6.65708e-06
-0.00485403
7.53727e-06
8.537e-06
-0.00485596
0.00480638
1.04148e-05
-0.00480826
0.00480474
9.1756e-06
8.07756e-06
-0.00479086
9.50784e-06
-0.0047925
1.08142e-05
-0.00479438
1.23007e-05
-1.18585e-05
-0.00479655
1.40205e-05
-9.69766e-06
-0.00481042
-0.00485817
-0.0048607
1.10227e-05
-0.00486361
1.25653e-05
1.43643e-05
-0.00486695
0.00481576
1.7651e-05
-0.00481905
0.00481291
1.54207e-05
1.35059e-05
-0.00479901
1.59682e-05
-0.00480184
1.82513e-05
2.08735e-05
-0.00480507
0.00480804
2.39396e-05
-0.00481111
0.00480534
2.09528e-05
0.00480296
1.83494e-05
0.00480088
1.60952e-05
0.00479906
1.4125e-05
0.00479748
1.23885e-05
1.08738e-05
-0.00481009
1.20298e-05
-0.00481146
1.3759e-05
1.57133e-05
-0.00481305
0.0048236
1.69491e-05
-0.00482483
0.00482256
1.47944e-05
1.28855e-05
-0.00483179
1.34075e-05
-0.00483246
1.54649e-05
-0.0048333
1.77873e-05
-1.93838e-05
-0.00483433
2.04151e-05
-1.79288e-05
-0.00482629
-0.00481488
-0.004817
2.04611e-05
-0.00481937
2.33281e-05
2.66774e-05
-0.00482211
0.00482994
2.89082e-05
-0.00483217
0.00482798
2.52814e-05
2.21547e-05
-0.00483555
2.33747e-05
-0.00483702
2.67459e-05
-0.00483873
3.06223e-05
-3.30804e-05
-0.00484073
3.50808e-05
-3.0495e-05
-0.00483476
-2.74051e-05
-0.0048252
-2.39272e-05
-0.00481459
-2.02476e-05
-0.00480875
-1.64628e-05
-0.00482284
-0.00487081
-0.00487528
1.89456e-05
-0.00488047
2.18634e-05
2.53087e-05
-0.0048865
0.00483225
3.11259e-05
-0.00483807
0.00482721
2.69022e-05
2.33122e-05
-0.00481296
2.752e-05
-0.00481777
3.17135e-05
-0.00482328
3.66287e-05
-3.61e-05
-0.00482957
4.23958e-05
-2.93794e-05
-0.00484479
-0.00489353
-0.00490171
3.42112e-05
-0.00491125
3.99101e-05
4.6712e-05
-0.0049224
0.00486155
5.70929e-05
-0.00487194
0.00485257
4.88938e-05
4.19862e-05
-0.00483676
4.9169e-05
-0.004845
5.71338e-05
6.65487e-05
-0.00485446
0.00484787
7.49013e-05
-0.00485623
0.00484042
6.45803e-05
0.00483388
5.57117e-05
0.00482811
4.81639e-05
0.00482302
4.1713e-05
0.00481854
3.61949e-05
3.14691e-05
-0.00482871
3.49751e-05
-0.00483268
4.0166e-05
4.62032e-05
-0.00483717
0.00484107
5.00208e-05
-0.00484488
0.0048377
4.35278e-05
3.79194e-05
-0.00484308
4.02632e-05
-0.00484582
4.62662e-05
-0.00484895
5.31523e-05
-5.7539e-05
-0.00485248
6.10708e-05
-5.32336e-05
-0.00484919
-0.00484225
-0.00484796
6.14263e-05
-0.00485435
7.0969e-05
8.21103e-05
-0.00486156
0.00485945
8.7944e-05
-0.00486528
0.00485402
7.64003e-05
6.62501e-05
-0.00485636
7.01274e-05
-0.00486046
8.05028e-05
9.23552e-05
-0.00486488
0.00485904
9.48474e-05
-0.00486153
0.00485637
8.31708e-05
0.0048537
7.28022e-05
0.00485117
6.3597e-05
0.00484883
5.54885e-05
0.00484676
4.83378e-05
0.00484496
4.20663e-05
0.00484347
3.65684e-05
0.00484221
3.18822e-05
0.00484116
2.77959e-05
0.00484035
2.41823e-05
0.00483974
2.10257e-05
0.00483926
1.82588e-05
0.00483892
1.58096e-05
0.00483869
1.36356e-05
0.00483857
1.16948e-05
0.00483855
9.98522e-06
0.0048386
8.44956e-06
0.0048387
7.10011e-06
0.00483885
5.88444e-06
0.00483907
4.82051e-06
0.00483933
3.87945e-06
0.00483961
3.06343e-06
0.00483992
2.34907e-06
0.00484022
1.73432e-06
0.00484053
1.20791e-06
0.00484083
7.60822e-07
0.00484112
3.85118e-07
0.00484138
7.4007e-08
0.00484162
-1.78114e-07
-3.75963e-07
-0.00484863
-5.99832e-07
-0.00484838
-4.30249e-07
-2.07477e-07
-0.0048481
0.00485374
-4.88601e-07
-0.00485346
0.00485399
-6.7886e-07
-8.1805e-07
-0.00485817
-1.01709e-06
-0.00485795
-9.09932e-07
-0.00485768
-7.54349e-07
2.37781e-07
-0.00485738
-5.39195e-07
-7.5854e-08
-0.00485315
-0.00484779
-0.00484745
4.2732e-07
-0.0048471
8.5535e-07
1.36855e-06
-0.00484674
0.00485244
9.76719e-07
-0.00485205
0.00485281
4.84592e-07
8.32453e-08
-0.00485704
-2.53234e-07
-0.00485668
1.16014e-07
5.80564e-07
-0.00485628
0.00486012
1.98687e-07
-0.00485974
0.00486047
-2.33765e-07
0.00486078
-5.67171e-07
0.00486105
-8.15296e-07
0.00486129
-9.92896e-07
0.00486149
-1.11262e-06
-1.18713e-06
-0.00486417
-1.32089e-06
-0.004864
-1.27856e-06
-1.19463e-06
-0.0048638
0.00486672
-1.35131e-06
-0.00486657
0.00486684
-1.40089e-06
-1.6561e-06
-0.00487158
-1.702e-06
-0.00487126
-1.71684e-06
-0.00487116
-1.4552e-06
1.24914e-06
-0.00487102
-1.38772e-06
1.05517e-06
-0.00486637
-0.00486356
-0.00486329
-8.46176e-07
-0.00486297
-5.50662e-07
-1.52905e-07
-0.00486262
0.00486587
-4.5931e-07
-0.00486557
0.00486614
-8.21689e-07
-1.07898e-06
-0.00487085
-1.25435e-06
-0.00487064
-1.03383e-06
-0.00487039
-7.0628e-07
-2.85657e-08
-0.00487012
-2.47412e-07
-3.6526e-07
-0.00486523
-7.46256e-07
-0.00486224
-1.15473e-06
-0.00485933
-1.57264e-06
-0.00485586
-1.9791e-06
-0.00485164
-0.00484637
-0.004846
2.69561e-06
-0.00484565
3.52898e-06
4.49228e-06
-0.00484532
0.00485082
4.0949e-06
-0.00485042
0.00485123
3.11774e-06
2.28406e-06
-0.00485543
1.85226e-06
-0.004855
2.68189e-06
-0.00485457
3.66399e-06
-5.21259e-06
-0.00485415
4.79758e-06
-5.58782e-06
-0.00485005
-0.00484503
-0.00484477
6.84381e-06
-0.00484457
8.24842e-06
9.84828e-06
-0.00484444
0.0048494
9.59657e-06
-0.00484915
0.00484971
7.94651e-06
6.4999e-06
-0.00485376
6.11031e-06
-0.00485341
7.59315e-06
9.28838e-06
-0.0048531
0.00485686
8.97405e-06
-0.00485654
0.00485722
7.2325e-06
0.00485761
5.7135e-06
0.00485803
4.37648e-06
0.00485847
3.22945e-06
0.0048589
2.24603e-06
1.42497e-06
-0.00486184
1.02271e-06
-0.00486143
1.83441e-06
2.81493e-06
-0.00486101
0.0048645
2.44921e-06
-0.00486414
0.00486487
1.46579e-06
6.64275e-07
-0.00486982
3.66612e-07
-0.00486951
1.15803e-06
-0.00486921
2.14429e-06
-3.63355e-06
-0.00486892
3.3436e-06
-3.98326e-06
-0.00486379
-0.00486062
-0.00486024
5.33772e-06
-0.00485992
6.90797e-06
8.6866e-06
-0.00485963
0.00486319
8.4454e-06
-0.00486295
0.00486347
6.62495e-06
5.01721e-06
-0.00486865
4.75173e-06
-0.00486841
6.38587e-06
8.22504e-06
-0.00486819
0.00488241
7.98525e-06
-0.00488217
0.00488263
6.16368e-06
0.00488286
4.52766e-06
0.00488309
3.10452e-06
0.00488333
1.90447e-06
0.00488357
9.18793e-07
0.0048838
1.41473e-07
0.004884
-4.49682e-07
0.00488417
-8.79502e-07
0.00488431
-1.1742e-06
0.00488441
-1.3608e-06
0.00488449
-1.46117e-06
0.00488453
-1.49834e-06
0.00488454
-1.73332e-06
-2.42631e-06
-0.00492115
-3.58151e-06
-0.00492096
-1.93123e-06
-1.47221e-06
-0.00492098
0.00499091
-1.44101e-06
-0.00499094
0.00499111
-2.13202e-06
-4.896e-06
-0.00505348
-5.04829e-06
-0.00505377
-1.84383e-06
-0.00505408
-1.13261e-06
1.34769e-06
-0.00505431
-1.1204e-06
1.45933e-06
-0.00499105
-0.00492099
-0.00492096
-1.38682e-06
-0.00492091
-1.23072e-06
-9.67813e-07
-0.00492082
0.00499116
-9.62647e-07
-0.00499116
0.00499112
-1.19375e-06
-1.321e-06
-0.00505452
-1.11042e-06
-0.00505466
-1.0574e-06
-8.64702e-07
-0.00505476
0.0049812
-6.88635e-07
-0.00498138
0.00498095
-8.12769e-07
0.00498071
-8.63913e-07
0.0049803
-7.15733e-07
0.0049796
-4.33073e-07
0.0049783
-5.41336e-07
-2.48822e-06
-0.00467066
5.40487e-07
-0.00467193
7.24436e-07
1.85941e-07
-0.00467255
0.00426539
-0.00426555
0.00426565
3.13168e-07
-0.0042657
-0.00467295
-0.0046733
-5.19466e-07
-0.00467354
-5.67457e-07
-4.43802e-07
-0.00467379
0.00426627
-0.0042665
0.00426598
3.02953e-07
-0.00426663
4.44732e-07
-0.00467393
5.54555e-07
-0.00498149
6.02733e-07
-0.00505481
5.69254e-07
-0.00499113
-0.0049207
-0.00492055
-6.38841e-09
-0.00492038
7.46438e-07
1.71324e-06
-0.00492019
0.00499094
1.54621e-06
-0.00499077
0.00499105
6.26126e-07
-8.21823e-08
-0.00505479
-9.85093e-08
-0.0050547
5.31507e-07
-0.00505451
1.36019e-06
-2.68658e-06
-0.00505423
2.40143e-06
-2.89938e-06
-0.00499056
-0.00491999
-0.00491976
4.30666e-06
-0.00491951
5.90501e-06
7.6308e-06
-0.00491915
0.00498987
6.98508e-06
-0.00498923
0.00499028
5.49773e-06
4.03122e-06
-0.00505379
3.59178e-06
-0.00505309
4.80002e-06
5.90584e-06
-0.00505201
0.004979
4.4584e-06
-0.00497755
0.00498005
3.7529e-06
0.00498073
2.90392e-06
0.00498116
1.9741e-06
0.0049814
1.11475e-06
0.0049815
4.30364e-07
-8.05849e-08
-0.00467396
-5.27234e-08
-0.00467384
3.04294e-07
7.94488e-07
-0.00467352
0.00426651
-0.00426613
0.00426666
-1.39184e-06
-0.00426545
-0.00467293
-0.00467203
1.99959e-06
-0.00467078
2.50366e-06
2.89534e-06
-0.00466922
0.00426319
-0.0042617
0.00426446
-3.22087e-06
-0.00426006
-5.03362e-06
-0.00466741
-6.84902e-06
-0.00497574
-8.38113e-06
-0.00505048
-9.39706e-06
-0.00498821
-9.96426e-06
-0.00491859
-1.02759e-05
-0.00488186
-1.04922e-05
-0.00486798
-1.06953e-05
-0.00486274
-1.09243e-05
-0.00485941
-1.11823e-05
-0.00485628
-1.14356e-05
-0.00485285
-1.16285e-05
-0.00484896
-0.00484437
-0.00484438
1.36479e-05
-0.00484449
1.59144e-05
1.84717e-05
-0.0048447
0.00484879
1.85196e-05
-0.00484884
0.00484884
1.58685e-05
1.35225e-05
-0.00485266
1.33336e-05
-0.00485255
1.5755e-05
-0.00485252
1.8492e-05
-2.15264e-05
-0.00485258
2.15879e-05
-2.13698e-05
-0.004849
-0.00484505
-0.00484554
2.46714e-05
-0.0048462
2.84612e-05
3.27768e-05
-0.0048471
0.00484968
3.3287e-05
-0.00485019
0.00484927
2.88673e-05
2.49492e-05
-0.00485272
2.50832e-05
-0.00485287
2.90179e-05
3.34127e-05
-0.004853
0.00485569
3.30177e-05
-0.00485529
0.00485585
2.8854e-05
0.00485588
2.50543e-05
0.0048559
2.15656e-05
0.00485596
1.8429e-05
0.00485609
1.56279e-05
1.31391e-05
-0.00485923
1.29624e-05
-0.00485909
1.54886e-05
1.83004e-05
-0.00485896
0.00486236
1.80034e-05
-0.00486207
0.00486257
1.52809e-05
1.27873e-05
-0.00486771
1.25222e-05
-0.00486734
1.49052e-05
-0.0048667
1.73608e-05
-2.088e-05
-0.00486566
1.98415e-05
-2.13795e-05
-0.00486157
-0.00485878
-0.00485843
2.47064e-05
-0.00485779
2.82171e-05
3.20551e-05
-0.00485683
0.00485949
3.03016e-05
-0.00485773
0.00486073
2.69703e-05
2.38728e-05
-0.00486414
2.23484e-05
-0.00486212
2.49514e-05
-0.00485963
2.78139e-05
-3.39544e-05
-0.00485677
3.10942e-05
-3.61668e-05
-0.00485552
-3.75541e-05
-0.00485544
-3.82069e-05
-0.00485464
-3.82481e-05
-0.00485296
-3.77224e-05
-0.00485072
-0.00484825
-0.0048495
4.33088e-05
-0.00485071
4.95531e-05
5.67238e-05
-0.00485195
0.00485165
5.70885e-05
-0.00485202
0.0048512
5.00088e-05
4.37878e-05
-0.00485274
4.35742e-05
-0.00485234
4.96067e-05
-0.00485154
5.62864e-05
-6.49082e-05
-0.00485042
6.37849e-05
-6.48499e-05
-0.00485208
-0.0048532
-0.00485434
7.39424e-05
-0.00485531
8.41374e-05
9.55229e-05
-0.00485599
0.00485114
9.43335e-05
-0.00484996
0.00485183
8.34472e-05
7.36962e-05
-0.00484879
7.20722e-05
-0.00484666
8.13152e-05
9.16703e-05
-0.004844
0.00484199
8.77502e-05
-0.00483807
0.00484534
7.79577e-05
0.00484818
6.92408e-05
0.00485053
6.14328e-05
0.00485232
5.44926e-05
0.00485368
4.82504e-05
4.26077e-05
-0.00485361
4.07709e-05
-0.00485127
4.59078e-05
5.16803e-05
-0.00484845
0.00484974
4.81154e-05
-0.00484618
0.00485285
4.27949e-05
3.81024e-05
-0.00485351
3.48423e-05
-0.00484985
3.91316e-05
-0.00484573
4.40009e-05
-5.41167e-05
-0.0048411
4.94855e-05
-5.81608e-05
-0.00484213
-0.00484518
-0.00484138
6.5434e-05
-0.00483702
7.36026e-05
8.27745e-05
-0.00483205
0.00483238
7.69274e-05
-0.00482653
0.00483756
6.84213e-05
6.08597e-05
-0.00483588
5.56331e-05
-0.00482996
6.25066e-05
7.02138e-05
-0.00482325
0.00483666
6.27385e-05
-0.00482919
0.00484329
5.58788e-05
0.0048491
4.9823e-05
0.00485427
4.43201e-05
0.00485885
3.94193e-05
0.00486292
3.50531e-05
0.00486657
3.11916e-05
0.00486986
2.78089e-05
0.00487281
2.4862e-05
0.00487542
2.23388e-05
0.00487764
2.01324e-05
0.00487938
1.81037e-05
0.0048806
1.61359e-05
0.00488138
1.41222e-05
1.20459e-05
-0.00491767
1.1129e-05
-0.00491629
1.27373e-05
1.42532e-05
-0.0049144
0.00498476
1.19149e-05
-0.00498242
0.00498672
1.0777e-05
9.62986e-06
-0.00504853
7.68303e-06
-0.00504625
8.49462e-06
-0.00504371
9.37819e-06
-1.31592e-05
-0.00504094
1.03888e-05
-1.57872e-05
-0.00497979
-0.00491209
-0.00490943
1.74765e-05
-0.00490649
1.93967e-05
2.16268e-05
-0.00490325
0.00497375
1.81449e-05
-0.00497027
0.0049769
1.62495e-05
1.45861e-05
-0.00503791
1.15541e-05
-0.00503456
1.28919e-05
1.44215e-05
-0.00503083
0.00495938
1.05583e-05
-0.00495552
0.00496283
9.43995e-06
0.00496593
8.45492e-06
0.00496874
7.58614e-06
0.00497129
6.82257e-06
0.00497363
6.15699e-06
5.57453e-06
-0.00466539
3.55902e-06
-0.00466318
3.94293e-06
4.38553e-06
-0.00466074
0.00425616
-0.00425391
0.0042582
-4.88722e-06
-0.0042514
-0.00465804
-0.00465504
5.45059e-06
-0.00465168
6.08461e-06
6.80281e-06
-0.00464793
0.00424547
-0.00424197
0.0042486
-7.61922e-06
-0.00423805
-1.18292e-05
-0.00464372
-1.61638e-05
-0.00495119
-2.03472e-05
-0.00502665
-2.42297e-05
-0.00496639
-0.00489968
-0.00489569
2.72009e-05
-0.00489121
3.05734e-05
3.43706e-05
-0.00488616
0.00495713
2.88399e-05
-0.0049516
0.00496203
2.5668e-05
2.28447e-05
-0.00502195
1.81409e-05
-0.00501665
2.03729e-05
-0.00501069
2.28792e-05
-3.23867e-05
-0.00500398
2.56802e-05
-3.86212e-05
-0.00494536
-0.00488046
-0.004874
4.33628e-05
-0.00486677
4.86435e-05
5.45398e-05
-0.00485857
0.00493045
4.55917e-05
-0.00492151
0.00493836
4.07367e-05
3.63582e-05
-0.00499643
2.87993e-05
-0.00498795
3.22645e-05
3.61249e-05
-0.00497849
0.0049113
2.6352e-05
-0.00490153
0.00492002
2.35487e-05
0.00492778
2.10393e-05
0.00493469
1.87675e-05
0.00494084
1.6726e-05
0.00494632
1.48985e-05
1.32708e-05
-0.00463899
8.54593e-06
-0.00463369
9.59257e-06
1.07672e-05
-0.00462773
0.00422872
-0.00422318
0.00423366
-1.20791e-05
-0.00421697
-0.00462104
-0.00461354
1.35382e-05
-0.00460515
1.51572e-05
1.6957e-05
-0.00459576
0.00420221
-0.00419348
0.00421003
-1.89264e-05
-0.00418374
-2.94369e-05
-0.00458525
-4.03566e-05
-0.00489061
-5.10188e-05
-0.00496783
-6.09954e-05
-0.00491153
-7.0236e-05
-0.00484933
-7.8692e-05
-0.00482073
-8.63123e-05
-0.00481563
-9.30633e-05
-0.00481978
-9.87605e-05
-0.00482635
-0.000103313
-0.00483352
-0.000106545
-0.00484077
-0.000108236
-0.00484827
-0.000108099
-0.00485613
-0.000105882
-0.00486375
-0.000101378
-0.00486938
-9.49802e-05
-0.00487168
-8.70434e-05
-0.0048695
-7.75458e-05
-0.00486573
-6.67925e-05
-0.00486521
-5.48358e-05
-0.00488389
-0.00493543
-0.00495067
6.45772e-05
-0.00496856
7.63114e-05
9.04516e-05
-0.00498949
0.00491366
0.000108818
-0.00493203
0.00489773
9.22397e-05
7.84077e-05
-0.00487747
9.06614e-05
-0.00489144
0.000106211
-0.00490716
0.00012453
-0.000128839
-0.00492499
0.000146673
-0.000107749
-0.00495312
-0.00501407
-0.005043
0.00012908
-0.00507751
0.00015635
0.000191312
-0.00511806
0.00500523
0.000221671
-0.00503559
0.00497748
0.000184099
0.000153436
-0.00494504
0.000173476
-0.00496661
0.000205671
0.000242378
-0.00498732
0.0049463
0.000254986
-0.00495891
0.00493126
0.000220708
0.00491585
0.000188886
0.00490132
0.000161201
0.00488806
0.000137791
0.00487628
0.000117986
0.000101216
-0.00487838
0.000110096
-0.00488799
0.000127595
0.000148129
-0.00489833
0.00488556
0.000155381
-0.00489282
0.00487843
0.000134724
0.000116846
-0.00487378
0.000121247
-0.00487785
0.000138794
-0.00488118
0.000158709
-0.000178726
-0.00488228
0.000179825
-0.000172082
-0.00489946
-0.00490922
-0.00491989
0.00019956
-0.00492875
0.000229563
0.000260467
-0.00493423
0.00490555
0.00026862
-0.00491371
0.00490405
0.000231064
0.000204145
-0.00488249
0.000204346
-0.00488733
0.000235909
-0.00489119
0.000272472
-0.000316222
-0.00488856
0.000313597
-0.00030722
-0.00492271
-0.000292862
-0.00494859
-0.000278781
-0.004973
-0.000263559
-0.00500254
-0.000233599
-0.00506555
-0.00516146
-0.00520143
0.000280672
-0.00523178
0.00032418
0.000431502
-0.00531445
0.00513409
0.000484739
-0.00518733
0.00508614
0.000372125
0.00030126
-0.00503075
0.00032946
-0.00506909
0.000410465
-0.00509812
0.000513767
-0.000623718
-0.00509692
0.000622515
-0.000591047
-0.00522
-0.00540236
-0.00541539
0.000779375
-0.00535436
0.00098369
-0.00130666
-0.00522828
0.00118058
6.37054e-05
-0.00147721
-0.00525474
-0.000677199
-0.00196536
6.89942e-06
-0.000765647
-0.00240174
-0.000327862
-0.000993425
-0.00123493
0.000438586
-0.00125391
-0.00132049
-0.000380627
-0.00100781
6.79544e-05
-0.000398933
-0.0012356
-0.00121726
0.000379628
-0.00128047
-0.00120016
0.000344186
0.00147757
0.000790544
-0.00254626
-0.000846295
-7.572e-05
0.000813941
0.000890674
-0.00241052
-0.0025519
-0.000768647
-0.00192054
0.000137284
-0.00238862
-0.000888892
-0.00221936
0.000719631
-0.000160988
-0.00240113
-0.000873028
-0.000472186
0.00125464
-0.000943452
0.00115388
-0.00112419
0.000535275
0.000943617
-0.000489014
-0.00104821
0.000413031
-0.00112077
0.000192453
-0.000847939
-0.000886946
-0.00222756
0.000855299
0.00140345
-0.000573519
-0.00116137
-0.00106151
-0.00105448
0.00050675
-0.000508453
-0.000987274
0.000441251
-0.00106923
0.000227634
-0.000814935
0.00136301
0.00101513
-0.0022507
-0.000887079
0.000915932
0.000888327
-0.000233712
0.00111848
-0.0021964
0.00164289
0.00181653
-0.00234094
-0.000270691
0.00285013
0.00175119
-0.0049071
0.00164923
-0.00502545
0.00155722
0.001645
-0.00491927
0.00501479
0.00144479
-0.00481458
0.00134372
0.00504254
0.00119844
-0.00489726
0.00514909
0.00107403
0.00520843
0.000924343
0.000767801
-0.00507053
0.000741407
-0.00501218
0.000865996
0.000983814
-0.00492197
0.00491517
0.000905561
-0.00483692
0.00497196
0.000809206
0.00500598
0.000707385
0.00502048
0.000608017
0.00501806
0.000516183
0.00499673
0.000431795
0.000353189
-0.00496294
0.000367538
-0.00496533
0.000434186
0.000505937
-0.00495509
0.00491402
0.000489233
-0.00489732
0.00492298
0.000425221
0.000367807
-0.00488094
0.000360187
-0.00486754
0.000411816
-0.00484684
0.000468534
-0.000558255
-0.00481737
0.000528781
-0.000585169
-0.0048704
-0.00493224
-0.00489438
0.000669516
-0.00484007
0.000754899
0.000835252
-0.00476976
0.00477894
0.000771624
-0.00471532
0.0048313
0.000702541
0.000630412
-0.00477795
0.000590986
-0.00472821
0.000652801
-0.00466836
0.00071178
-0.000833649
-0.00460056
0.000765848
-0.000907911
-0.00464106
-0.000990372
-0.00468731
-0.00108597
-0.00474132
-0.0048095
-0.00128967
-0.00468536
0.00116553
-0.00474215
-0.00150015
-0.0045932
0.0013512
-0.00167962
-0.00463511
-0.00190666
-0.00469222
-0.000380319
-0.00177833
-0.00465512
-0.000974695
-0.00174657
-0.00215596
-0.00106578
-0.00194108
0.000850895
-0.000265167
-0.00214833
-0.000902984
-0.000527378
0.00111345
-0.000851238
0.00103586
-0.00102445
0.000588566
-0.000546952
-0.00092938
0.000451882
-0.0010492
0.000303203
-0.000786746
-0.000942438
-0.00199349
0.00100741
0.00130234
-0.000673579
-0.00105562
-0.000970252
-0.000593392
-0.00096277
0.00058591
-0.000974301
0.000572409
-0.000989843
-0.000868556
0.000478195
0.00125033
0.00110002
-0.00198255
-0.000312007
-0.000924356
0.000928207
0.000800314
-0.000330602
0.00121905
-0.00195373
0.00170043
0.0016231
-0.00210448
-0.000482184
0.002674
0.00202767
-0.00446015
-0.00453312
0.00190567
-0.00209223
-0.00432281
0.00188193
-0.000515444
-0.00178463
-0.00425231
-0.00104677
-0.00157316
-0.00190048
-0.00108327
-0.00170216
0.00088495
-0.00110415
-0.00196167
-0.000330017
0.000803873
0.0012195
-0.000892687
-0.00190482
0.000910395
-0.000700533
0.000555322
0.00088564
0.000473555
0.000533145
-0.0007687
-0.000640883
-0.000952338
-0.000869014
-0.000565773
-0.000869913
0.00056667
-0.000884091
-0.000906578
0.000558134
-0.000517678
-0.000703253
0.000314353
-0.000816408
-0.000543693
-0.000728906
0.000456196
-0.000850965
0.000345902
-0.000658877
0.00111601
0.00106277
-0.0016844
-0.00087739
0.000868949
0.000779387
0.00113613
0.00108942
-0.00182163
0.000467609
0.000880016
0.000723719
-0.000338049
-0.00173725
0.0010505
-0.00156666
0.000918825
-0.000623347
-0.00164479
-0.00382768
0.00218535
0.0023438
-0.0013822
-0.00122377
-0.00180322
-0.000362923
-0.00087595
-0.0016693
-0.000571249
-0.000687267
0.000895593
-0.000574805
-0.000829232
0.000832788
-0.000857036
0.000566275
-0.000865422
-0.000730277
0.00046732
0.0010959
-0.000348802
-0.000881606
-0.00169844
0.00110268
-0.000545878
-0.000668346
-0.000780274
-0.000585498
-0.000668716
0.00047394
-0.000782331
-0.000543447
-0.000612195
0.00037331
-0.000766835
0.000624035
-0.000802772
0.000845086
-0.000833247
0.00107601
0.00110293
-0.00162926
0.00108627
-0.00168179
0.00162408
0.000884585
-0.0014224
0.00105746
0.000612434
-0.0013582
-0.00171122
-0.00368324
0.00217921
-0.00218483
-0.000641291
-0.0016757
-0.00348529
0.00219505
-0.00103579
-0.00128729
-0.000360388
-0.000820617
-0.00148405
-0.000563701
-0.000629934
-0.000596888
-0.000769585
-0.000792811
-0.000570051
-0.00079491
0.00057215
-0.000766678
-0.000534241
-0.000749733
0.000517296
-0.000776022
-0.000784253
0.000535336
-0.000521787
-0.000599663
0.000337198
-0.000708754
-0.00055922
-0.000596596
0.000447062
-0.000708275
-0.000499629
0.000356295
-0.000564942
-0.000647933
-0.000506202
-0.000573084
0.000431354
-0.000703093
0.000354314
-0.00054764
-0.000797899
-0.00138003
0.000932326
0.00102683
-0.000605847
-0.000739692
-0.000688897
-0.000567742
-0.000668108
0.000546953
-0.00067795
-0.000529008
0.000544522
-0.000693464
-0.000668717
-0.000492649
-0.000662368
0.000486299
-0.0006886
-0.000702091
0.000499692
-0.000487612
-0.000544279
0.0003298
-0.000637332
-0.0005259
-0.000531385
0.000419952
-0.00063382
-0.00048282
-0.000505646
0.000354646
-0.000574896
-0.00049832
-0.000494624
0.000418051
-0.000600339
-0.000456884
-0.000482618
0.000339169
-0.000602571
0.000530341
-0.000636413
0.000707183
-0.000659462
0.00085119
0.000987015
-0.00128648
0.000763594
0.000893108
0.00102267
-0.00132892
0.000768781
0.000576925
0.000906602
0.000997203
-0.00138215
0.000414249
0.000768747
0.000552103
0.000564496
0.000910764
0.00102371
-0.00138529
-0.000344939
0.00044091
0.000790083
0.000561591
-0.000368853
0.00114711
-0.00136821
0.0015027
-0.00149189
0.00113631
0.00124941
0.00198576
0.00211561
-0.00317275
-0.000675338
-0.00108332
0.00145785
0.000874882
-0.000798737
0.000962917
-0.0014878
0.000810316
0.000649944
0.00098214
0.000973283
0.000435546
0.000799605
0.000618081
-0.000340466
0.0006536
0.000994387
-0.00155244
0.00104453
0.000456164
0.000650457
-0.00122962
-0.00163102
0.00132482
0.00207769
0.00218648
-0.00330752
0.000885304
-0.00340308
0.00210427
-0.00208618
-0.003299
0.00198209
-0.00327809
-0.00208545
-0.0031671
0.00197447
-0.000628354
-0.00154641
-0.00308345
-0.000990464
-0.00112978
-0.00133496
-0.00100191
-0.0011508
0.000817748
-0.00138999
-0.000931817
-0.00108086
0.000622682
-0.0012913
-0.000992493
-0.0010963
0.000797497
-0.0013344
-0.00092937
0.000625647
-0.00103068
-0.000330895
-0.000703134
-0.00118182
-0.000486812
-0.000503546
-0.000514357
-0.000608868
-0.000630497
-0.000506991
-0.000628092
0.000504586
-0.000603259
-0.000493723
-0.000575446
0.00046591
-0.000581469
-0.000464467
0.00048167
-0.000598673
-0.000575202
-0.000434223
-0.000572688
0.000431708
-0.000596526
-0.000613308
0.000446972
-0.000431202
-0.000474978
0.000292871
-0.000556097
-0.000468147
-0.000460322
0.000372371
-0.000556004
-0.000431419
-0.000440692
0.000316105
-0.000504991
-0.000449102
-0.000428926
0.000373036
-0.00053332
-0.000412384
-0.000428339
0.000307404
-0.000537707
0.000476242
-0.000566655
0.000634249
-0.000586346
0.000734568
0.000904176
-0.00112602
0.000666912
0.000770182
0.000856978
-0.00110447
0.000667576
0.000495487
0.000777149
0.000900497
-0.00121269
0.00036977
0.000669782
0.000477136
0.000483265
0.000785827
0.000856376
-0.00114552
-0.00031017
0.000389489
0.000689169
0.000486147
-0.000323966
0.000502759
0.000808203
-0.00123239
0.000934565
0.000398477
0.000611555
-0.000987572
-0.00140651
-0.00268205
0.00196539
0.00170391
0.00103081
-0.000755184
-0.0016389
-0.0010002
-0.0005983
-0.00136506
-0.00257958
0.00190384
-0.000954009
-0.000744805
-0.00157427
-0.000945096
-0.000616091
-0.00124635
-0.00247681
0.00181989
-0.00029435
-0.00061844
-0.000829321
-0.000438026
-0.000442671
-0.000463969
-0.000540713
-0.000562659
-0.00046222
-0.000559216
0.000458776
-0.000542746
-0.000450253
-0.000521081
0.000428588
-0.000526761
-0.000423826
0.000441442
-0.000544377
-0.000523113
-0.000395861
-0.000522082
0.00039483
-0.000543005
-0.000556552
0.000406658
-0.000395148
-0.000433804
0.000272399
-0.000507932
-0.000426978
-0.00042292
0.000341965
-0.000507675
-0.000392097
-0.000405572
0.000289994
-0.000462303
-0.000404615
-0.000397002
0.000339315
-0.000484766
-0.000372418
-0.000388703
0.000276356
-0.00048914
0.000429621
-0.00051619
0.00057391
-0.000532991
0.000685712
0.000804601
-0.00103705
0.000619456
0.000715047
0.000836581
-0.0010651
0.000623207
0.000453006
0.000723167
0.000820811
-0.00110138
0.000337582
0.00062415
0.000436599
0.00043744
0.000722788
0.000847732
-0.00109676
-0.000287054
0.000357801
0.000643603
0.000436987
-0.000306359
0.000438331
0.000704718
0.000897807
-0.0010909
0.000356393
-0.00117787
-0.000816944
-0.000898683
0.000537761
-0.00106011
-0.000832355
-0.000904546
0.000676792
-0.0011083
-0.000769933
-0.000864885
0.000526515
-0.00103473
-0.000814776
-0.000874599
0.000654645
-0.00107527
-0.000758292
-0.000832814
0.000515831
-0.000269324
-0.000569398
-0.000956622
-0.000395432
-0.000406884
-0.000416787
-0.000494835
-0.000511629
-0.000410578
-0.000509562
0.000408511
-0.000490084
-0.000398498
-0.000467812
0.000376226
-0.000472958
-0.000372604
-0.000487075
0.000386721
-0.000466298
-0.000346589
-0.000465319
0.000345609
-0.000482348
-0.000497575
0.0003554
-0.000340429
-0.000385794
0.000228648
-0.000450042
-0.000364404
-0.00037944
0.000293803
-0.000452361
-0.000325635
0.000236351
-0.000363079
-0.000416218
-0.000330906
-0.000369199
0.000283888
-0.000455727
0.000226963
-0.000356227
-0.000513005
-0.000941854
0.000708035
0.000604587
-0.000388846
-0.000480386
-0.000445742
-0.000363115
-0.000431729
0.000349103
-0.000437555
-0.000336451
-0.000451671
0.000350567
-0.000431433
-0.00030994
-0.000432568
0.000311075
-0.000443231
0.000316094
-0.000458835
-0.000382144
0.00026567
0.000598188
0.00064939
-0.000931489
-0.000202588
-0.000495645
0.000500455
0.000363403
-0.000222806
0.000362446
0.000574078
-0.000913395
0.000700131
0.000281284
0.000493975
0.000361387
-0.000230103
0.000470442
-0.000688218
0.000794841
0.00129476
0.0014453
-0.0020669
-0.000997561
0.000915951
0.000586925
-0.000525396
0.000624478
0.000673779
0.000532487
0.000404458
0.000631156
-0.000993536
0.000719056
0.000294539
0.000538514
0.000387181
-0.000245715
0.000393587
0.000637977
-0.00093658
0.000689244
0.000312496
0.000556323
0.000394149
-0.000260812
0.000407672
0.000654934
0.000757549
-0.00100302
0.000321348
-0.000835974
0.0006369
0.00138338
0.00160204
-0.00219176
-0.00113789
-0.000491744
0.00118746
0.00143794
0.00166123
-0.00227048
0.0012277
0.00149502
0.0017107
-0.00235605
0.00127313
0.00177772
-0.00244365
0.00257498
0.00171462
-0.00251188
0.00181528
0.00265132
0.00175947
-0.00259551
0.00187311
0.00276131
0.00180545
-0.00269364
0.00280534
0.00192136
-0.00145677
0.00178091
0.00201054
-0.000783549
0.00149755
0.00185844
-0.00293754
0.00204852
0.00195828
-0.00288529
0.0030198
0.00187256
-0.00293408
0.00198486
-0.00306925
0.00188701
0.00179839
-0.00299509
0.00313029
0.00172995
-0.00306185
0.0032109
0.0018064
0.00188636
0.00335266
0.00180331
-0.00326961
0.00345147
0.00188328
0.00357816
0.00197758
0.00208996
0.00377159
0.00194337
-0.003625
0.00393502
0.00201578
0.00401084
0.00210952
-0.000578836
-0.00177262
0.00247283
0.0021873
-0.00149001
0.00203515
-0.00410017
-0.00412736
0.00183969
-0.00194818
-0.00397562
0.00179644
-0.00393883
0.00188053
-0.00380358
-0.00384674
0.00175165
-0.00181908
-0.00373275
0.00170508
-0.00367929
-0.00186317
-0.00357372
0.0017576
-0.0035106
-0.0034169
0.00178957
0.0017222
-0.00333579
0.00348188
0.00163974
-0.00339942
0.00169773
0.00363214
0.00160697
-0.00354138
0.00165699
0.00378368
0.00155848
-0.00368517
0.00389379
0.00159497
0.00401681
0.00162863
0.00415521
0.00165803
0.00430991
0.00168499
0.00448921
0.00170262
0.00170266
0.00153438
-0.00446683
0.00139079
-0.00444962
0.00455858
0.00126646
-0.00443425
0.00122441
0.00463683
0.00111595
-0.00452836
0.00106103
-0.00459592
0.000969645
-0.00449951
0.00101954
-0.00115648
-0.00440115
0.00105812
-0.00441839
-0.00129268
-0.00431016
0.00118445
-0.00141254
-0.00431439
-0.00154733
-0.00431483
-0.00431154
-0.00417255
0.001546
-0.00404963
0.00153512
0.00151409
-0.0039351
0.00407252
0.00140714
-0.00396558
0.00418906
0.00141857
0.00142023
-0.00420047
0.00130631
-0.00409135
0.00130945
0.00130453
-0.00398874
0.00410372
0.00120738
-0.00400658
0.00420495
0.00120822
0.0012011
0.00430261
0.00110397
-0.00420548
0.00108591
0.00438327
0.000995506
-0.00429287
0.00447268
0.00096871
0.00455927
0.000932945
0.000887859
-0.00452662
0.000813916
-0.00444759
0.00085391
-0.00436515
0.000886269
-0.00428215
0.000912503
-0.00101401
-0.00419847
0.000930328
-0.00420291
-0.00111299
-0.00411446
0.00102454
-0.00411025
0.00111583
-0.0040187
0.00102955
-0.00402818
0.00411556
0.000948042
-0.00403405
0.00094163
0.00419284
0.000863615
-0.00411483
0.00427108
0.000852087
0.00434868
0.000834901
0.00442449
0.000810466
0.004497
0.000781395
0.00456598
0.00074493
0.00462883
0.000703002
0.00468465
0.000655955
0.00473247
0.000604982
0.0047718
0.000551651
0.00480282
0.000497761
0.00482649
0.000444862
0.00484327
0.000395042
0.00485472
0.000348728
0.00486213
0.000306185
0.00486641
0.000268196
0.00486778
0.000234538
0.00486666
0.000205463
0.00486625
0.000180235
0.00486645
0.000158506
0.00486551
0.000139729
0.000123007
-0.0048557
0.000122578
-0.00485469
0.000138723
0.000157102
-0.00485329
0.00484309
0.000153489
-0.00483948
0.00484599
0.000135823
0.000120303
-0.00483689
0.000116428
-0.00483228
0.000131206
-0.00482667
0.00014788
-0.000173335
-0.00482003
0.000166695
-0.000178022
-0.0048348
-0.00485108
-0.0048476
0.000201987
-0.00484263
0.000229565
0.000260703
-0.00483514
0.00482106
0.000250331
-0.00481069
0.00482892
0.000221708
0.00019611
-0.00481175
0.000187831
-0.00480148
0.000211427
0.000237537
-0.00478868
0.00478357
0.000222703
-0.00476874
0.00479592
0.00019908
0.0048062
0.000177546
0.0048148
0.000158089
0.00482206
0.000140629
0.00482823
0.000125034
0.000111136
-0.0048198
0.000104585
-0.00481224
0.00011747
0.00013185
-0.00480346
0.00480332
0.000121737
-0.00479321
0.00481211
0.000108675
9.69138e-05
-0.00480696
8.82384e-05
-0.00479707
9.87908e-05
-0.0047858
0.000110462
-0.000136186
-0.00477293
0.000123312
-0.000147844
-0.00478155
-0.00479322
-0.00478121
0.000165542
-0.00476712
0.000184989
0.000206169
-0.00475059
0.00475254
0.000188228
-0.0047346
0.00476809
0.000169437
0.000152079
-0.00475822
0.000137377
-0.00474145
0.000152659
-0.00472234
0.000169118
-0.000208363
-0.00470065
0.000186668
-0.000228998
-0.00471396
-0.000248344
-0.00473125
-0.000266108
-0.00475097
-0.000281945
-0.00477285
-0.00029546
-0.00479718
-0.00482442
-0.00480962
0.000333926
-0.00478971
0.000375135
0.000419576
-0.00476443
0.00475798
0.000392535
-0.00473094
0.00477983
0.000353285
0.000316575
-0.0047534
0.000297131
-0.00473
0.000329882
-0.0047016
0.000364131
-0.000432948
-0.00466834
0.000399688
-0.000465708
-0.00469818
-0.00473238
-0.00469329
0.000512563
-0.0046471
0.000558791
0.000603031
-0.00459418
0.00461455
0.000552441
-0.00456396
0.00465939
0.00051395
0.00047377
-0.00462984
0.000435272
-0.00458613
0.000470233
0.00050375
-0.00453744
0.00456117
0.000456628
-0.00451405
0.00460393
0.000427469
0.00464213
0.000397071
0.00467574
0.000366084
0.0047047
0.000335164
0.00472982
0.000304764
0.000275976
-0.00470858
0.000253314
-0.0046827
0.000278877
0.000305331
-0.00465287
0.00466346
0.000274977
-0.00463311
0.00469034
0.000251995
0.000229693
-0.00467613
0.000205172
-0.00464857
0.000224436
-0.0046178
0.000244214
-0.000298284
-0.00458374
0.000264215
-0.000332255
-0.00459914
-0.00461904
-0.00458113
0.000359159
-0.00453918
0.000385519
0.000410814
-0.00449337
0.00452024
0.00036609
-0.00447552
0.0045615
0.000344261
0.00032152
-0.00454633
0.000284116
-0.00450565
0.000303575
0.000322256
-0.00446182
0.00450157
0.00027895
-0.00445827
0.00454185
0.000263302
0.00457898
0.000246978
0.00461317
0.000230022
0.00464431
0.00021308
0.00467246
0.000196287
0.00469775
0.000179881
0.00472035
0.000164066
0.00474046
0.000149007
0.00475829
0.000134825
0.00477407
0.000121601
0.004788
0.000109377
0.0048003
9.81623e-05
0.00481115
8.79359e-05
7.86569e-05
-0.0048389
6.8231e-05
-0.00482715
7.61816e-05
8.49177e-05
-0.0048139
0.00488766
7.07568e-05
-0.0048735
0.00490029
6.35567e-05
5.69874e-05
-0.00495586
4.5018e-05
-0.00494249
5.01856e-05
-0.00492757
5.58422e-05
-7.86046e-05
-0.00491088
6.19047e-05
-9.44662e-05
-0.00485764
-0.00479899
-0.00478223
0.000104836
-0.00476342
0.000116015
0.00012796
-0.00474238
0.00482013
0.000105967
-0.00479814
0.00483991
9.62359e-05
8.71025e-05
-0.00489232
6.85477e-05
-0.00487172
7.56379e-05
8.31745e-05
-0.00484893
0.00479328
6.03277e-05
-0.00477044
0.00481403
5.48893e-05
0.00483274
4.98402e-05
0.00484959
4.50486e-05
0.0048648
4.063e-05
0.00487843
3.65614e-05
3.28346e-05
-0.00457351
2.11023e-05
-0.00456044
2.34873e-05
2.60889e-05
-0.0045459
0.00416078
-0.00414734
0.00417287
-2.88952e-05
-0.00413246
-0.00452975
-0.00451187
3.19647e-05
-0.00449217
3.51826e-05
3.86212e-05
-0.00447046
0.00409787
-0.00407794
0.00411601
-4.23069e-05
-0.00405611
-6.60514e-05
-0.00444672
-9.11584e-05
-0.00474533
-0.000116237
-0.00482386
-0.000140602
-0.00477378
-0.00471891
-0.00469287
0.000153834
-0.0046641
0.00016752
0.000181495
-0.00463252
0.0047174
0.000149294
-0.0046852
0.0047469
0.00013802
0.000126958
-0.00479623
9.9332e-05
-0.00476611
0.000107896
-0.00473337
0.000116561
-0.000160628
-0.00469807
0.000125322
-0.000195566
-0.00465027
-0.00459806
-0.00456072
0.00020963
-0.00452046
0.000223046
0.000236246
-0.00447776
0.00457226
0.000193347
-0.00452936
0.00461258
0.000182729
0.000171941
-0.00465993
0.000133803
-0.00461948
0.000142275
0.000150348
-0.00457648
0.00454388
0.000108257
-0.00450179
0.00458355
0.000102605
0.00462083
9.65151e-05
0.00465574
9.04203e-05
0.00468808
8.42184e-05
0.0047179
7.80678e-05
7.19039e-05
-0.00442082
4.60016e-05
-0.00439266
4.99131e-05
5.3813e-05
-0.00436226
0.00400661
-0.00397885
0.00403237
-5.77155e-05
-0.00394902
-0.00432955
-0.00429471
6.16692e-05
-0.0042575
6.53998e-05
6.91144e-05
-0.00421836
0.0038834
-0.00384768
0.00391716
-7.24908e-05
-0.00381019
-0.000113748
-0.00417711
-0.000157974
-0.00445756
-0.00020329
-0.00453117
-0.000248602
-0.00448405
-0.000293975
-0.00443239
-0.000339854
-0.00441239
-0.000386624
-0.00441505
-0.000434568
-0.00442758
-0.000483951
-0.00444399
-0.00053535
-0.00446265
-0.000588302
-0.00448449
-0.000644079
-0.00450818
-0.00453525
-0.00447131
0.000680985
-0.00440302
0.000713105
0.000740106
-0.00433266
0.00438417
0.000673575
-0.00431764
0.00444797
0.000649301
0.00062077
-0.00442705
0.00056333
-0.00436661
0.000588866
-0.00430361
0.000610572
-0.0006938
-0.0042387
0.000628892
-0.000762256
-0.00424918
-0.00426002
-0.00418645
0.000778521
-0.00411273
0.000789893
-0.000870857
-0.0040398
0.000797931
-0.00403764
-0.000948837
-0.00396184
0.000873036
-0.00102839
-0.0039545
-0.001112
-0.00394456
-0.00119942
-0.00393128
-0.00129261
-0.00391339
-0.00138871
-0.00389264
-0.00148877
-0.00386551
-0.0038289
-0.00373147
0.00146106
-0.00151729
-0.00364193
0.00142775
-0.0035955
-0.0015579
-0.0035125
0.0014749
-0.00345954
-0.00158457
-0.00338342
0.00150845
-0.00165826
-0.00332574
-0.00173198
-0.00326207
-0.00319519
0.00166522
-0.00313047
-0.00319501
0.00159816
-0.00159986
-0.0031344
0.00153926
-0.00166005
-0.00307028
-0.00171808
-0.00300383
-0.00177813
-0.00293505
-0.00184367
-0.00286854
-0.0028076
0.00174865
-0.00275081
0.00169604
-0.00281593
0.00164533
-0.00288434
0.00159269
-0.00295119
0.00153889
-0.00301648
0.00148191
-0.00307743
0.00319308
0.00142277
-0.00313394
0.00325694
0.0014754
0.00152936
-0.00331292
0.00145885
-0.00324756
0.00141004
0.00136178
-0.00318657
0.00329654
0.00129961
-0.00323437
0.00336384
0.00134274
0.00343532
0.00138737
0.00143127
0.00355883
0.00135411
-0.00348167
0.00139179
0.00368161
0.00130896
-0.00359879
0.00376957
0.00133979
0.00136511
-0.00380171
0.00127418
-0.00371446
0.00125254
-0.00363445
0.00122895
-0.00127727
-0.00355861
0.00120142
-0.00352195
-0.0013147
-0.00345072
0.00124347
-0.003409
-0.00334241
0.00127615
0.00123667
-0.00327946
0.00338329
0.00117335
-0.00331997
0.00120871
0.00348726
0.00114151
-0.00342005
0.00117212
0.00359007
0.00110166
-0.00351961
0.00366458
0.00112691
0.00374347
0.00115007
0.00382648
0.00116953
0.00118726
-0.00384708
0.00110306
-0.00376735
0.0010898
0.001073
-0.00369029
0.00378657
0.000998574
-0.00371215
0.00386392
0.00101246
0.00102241
-0.00387726
0.000945167
-0.00380247
0.000937669
-0.00373072
0.000926826
-0.000982862
-0.00366128
0.000913423
-0.00105401
-0.003641
-0.00361739
-0.00354808
0.00103235
-0.00107484
-0.0034822
0.00100896
-0.00345295
-0.00111
-0.00338985
0.0010469
-0.00335671
-0.00113774
-0.00329691
0.00107794
-0.0011973
-0.00326041
-0.00125631
-0.00322045
-0.00131377
-0.00317692
-0.0013706
-0.00312974
-0.00142634
-0.0030782
-0.00147948
-0.00302429
-0.00152982
-0.00296615
-0.00157659
-0.00290442
-0.0016223
-0.00283863
-0.00166583
-0.0027724
-0.00171091
-0.00270573
-0.00264508
-0.00167024
-0.00260519
0.00163035
-0.00255114
-0.00163307
-0.00251205
0.00159398
-0.00168598
-0.00245897
-0.00241894
-0.001638
-0.0023717
0.00159075
-0.00233282
-0.00158479
-0.00228973
0.00154171
-0.00225323
-0.00152413
-0.00221695
0.00148784
-0.00153121
-0.00218468
-0.000466301
-0.00109562
0.000823165
0.00133777
-0.00213023
-0.000786059
0.000605641
0.00080552
-0.00214297
0.00145804
-0.00140999
-0.00210832
0.00137534
-0.000403524
-0.00101802
-0.00205535
-0.000633357
-0.000755816
0.000985649
-0.000897362
-0.000643859
-0.000781039
0.000527536
-0.000631966
-0.000943383
-0.000207213
-0.000466655
-0.000907657
0.000358225
0.000591334
-0.000293077
-0.00033404
0.000419903
-0.00041133
0.000340148
-0.000436438
-0.000460547
-0.00030923
-0.000352185
0.000200868
-0.00032166
-0.000424009
-0.000430535
-0.000302737
-0.000439292
0.000311495
-0.000413999
-0.000276814
-0.000412734
0.000275549
-0.000417484
-0.000433662
0.00027879
-0.000258102
0.000165455
-0.000341015
-0.000395039
-0.000269211
-0.000354452
0.000228624
-0.00041531
0.000168073
-0.00032368
-0.000425457
-0.000876453
0.000547703
0.000567828
-0.00030718
-0.000441957
-0.000408337
-0.000271645
-0.000408579
0.000271887
-0.000418845
-0.000430601
0.000267138
-0.000247527
-0.000339305
0.000156231
-0.000393625
-0.000253725
-0.000356221
0.000216321
-0.000406927
0.000153632
-0.000315668
0.00054662
0.000530708
-0.000871871
-0.000408047
0.000423637
0.000363219
0.000527083
0.000561569
-0.000872003
0.000221778
0.000411689
0.000337172
-0.000167101
0.000346622
-0.000644284
-0.000842248
-0.00192746
0.00118789
0.000756547
0.00117189
-0.000924963
-0.000515149
-0.000710443
0.000300629
-0.000856444
-0.000532491
-0.000760103
0.000436149
-0.000151819
-0.000396622
-0.000855921
-0.000252757
-0.000333979
0.000434917
-0.000249465
-0.000398624
0.000395332
-0.000399398
0.000242145
-0.000411614
-0.000362323
0.000205844
0.000524757
-0.000130238
0.000444934
-0.000817349
-0.000384427
-0.000220256
-0.000321596
-0.000369999
-0.00022189
-0.000342933
0.000194825
-0.000382422
0.000116505
-0.000300654
-0.000359317
-0.000848843
0.000470533
0.000511198
-0.000241117
-0.000418854
-0.000386001
-0.000381431
0.000220096
-0.000230693
-0.000339498
0.000188759
-0.000378102
-0.000202019
-0.000298665
0.000122583
-0.000353185
0.000235497
-0.000383505
0.000356723
-0.000419891
0.000491775
0.000472245
-0.000824212
0.000360662
0.000319872
-0.000121113
0.000258071
-0.000625139
-0.000750832
-0.00188356
0.00102345
0.00111384
0.00075517
-0.000903725
-0.000443484
-0.000691203
0.000230962
-0.000113668
-0.000357878
-0.000796151
-0.000209061
-0.000324497
-0.000204458
-0.000388108
-0.000384789
-0.000402012
0.000205379
-0.000187512
-0.000310209
9.571e-05
-0.000372016
0.000223531
-0.000394933
0.000338883
-0.000425562
0.000361321
0.000503783
-0.000848655
0.000418144
0.000178592
-9.76657e-05
-0.000337218
-0.000626015
0.000212244
-0.000199139
-0.000324088
-0.000200375
-0.000393697
-0.000392714
-0.000405941
0.00020114
-0.000186814
-0.000314033
9.49055e-05
-0.000376676
0.000224376
-0.000399904
0.00034226
-0.000431918
0.000362861
0.000491003
0.000426841
-0.000843539
0.000170304
0.000710622
-0.000909796
0.00075846
0.00110111
0.000947159
-0.00188386
0.000380453
0.000790362
-0.00188548
0.00102325
0.000986276
-0.0019246
0.00192196
0.000979333
-0.00191502
0.00193372
0.00101149
0.00189828
0.00105889
0.0011484
0.00110099
-0.000280303
-0.000830905
0.000874104
0.00117039
-0.00192312
0.00198552
0.0011505
-0.00196563
0.00195652
0.00121689
-0.000354114
0.000758025
0.00120295
0.00127801
-0.000928348
-0.000527127
0.000892776
-0.000719763
-0.000435311
0.000368928
0.000552869
-0.000848158
0.000234984
0.000441939
0.000345914
-0.00018217
0.000365493
0.000561314
0.000590078
0.000252979
0.000462108
-0.000841702
0.000597021
0.000506401
0.000976762
0.000732583
0.0012463
-0.00038622
-0.00200347
0.00133912
0.00128002
-0.00200548
0.00205163
0.00125861
-0.00203023
0.0013354
-0.00208161
0.00130869
0.0012454
-0.0020684
0.00212274
0.00123674
-0.00211409
0.00213769
0.00129374
0.00215663
0.0013564
0.00143
-0.00219572
0.00140877
0.00134148
-0.00218081
0.00224487
0.00132893
-0.00223231
0.00226291
0.00139072
0.00146101
0.0023395
0.00143824
-0.00231673
0.0015095
0.00242242
0.00148257
-0.00239549
0.0015542
0.00152333
-0.00248118
0.00257107
0.00149406
-0.0025418
0.00155986
0.00266842
0.00152584
-0.00263441
0.00159304
-0.00273325
0.00155389
-0.00269835
0.00149094
-0.00146325
-0.00266503
0.00142992
-0.00260361
-0.00143071
-0.00257592
0.00140302
-0.00145704
-0.00251548
-0.00245565
-0.00141752
-0.0024332
0.00139506
-0.00237477
-0.00137427
-0.00235667
0.00135617
-0.00230028
0.00131497
-0.00228632
0.00129992
-0.00234162
0.00241421
0.00128158
-0.00239588
0.00133718
0.00249217
0.0013149
-0.00246989
0.00137175
0.0013451
-0.00254926
0.00263368
0.00131582
-0.00260439
0.00137167
0.00272366
0.00133781
-0.00268981
0.00275967
0.00139391
0.00279829
0.00145232
0.00151355
-0.00286009
0.00146921
-0.0028188
0.00141103
-0.00278006
0.00135517
-0.00274299
0.00130073
-0.00128392
-0.00270942
0.00125035
-0.00265791
-0.0012616
-0.00262793
0.00123161
-0.00128974
-0.00257625
-0.00252411
-0.00126051
-0.00250054
0.00123695
-0.00244882
-0.00122857
-0.00242892
0.00120868
-0.00124599
-0.00237847
-0.00126055
-0.00232706
-0.0012722
-0.00227467
-0.00128293
-0.00222158
-0.00217
0.00122895
-0.00216221
-0.00221245
0.00121982
-0.00117749
-0.00220473
0.00116977
-0.00118369
-0.00215601
-0.00118911
-0.00210867
-0.00119493
-0.00206259
-0.00120318
-0.00202198
-0.00199177
0.00114415
-0.00198542
-0.0020188
0.00114098
-0.00109534
-0.00201782
0.00109436
-0.00109926
-0.00198151
-0.00111283
-0.00195207
-0.00193496
0.0010539
-0.00192997
-0.00194994
0.00105177
-0.00101069
-0.00195174
0.00101249
-0.00192917
0.000978
-0.00192784
0.000978065
-0.0019518
0.00198245
0.00097831
-0.00198269
0.00198174
0.0010132
0.001052
-0.00201827
0.00105244
-0.00201822
0.00101315
0.000976965
-0.00201688
0.00205594
0.000973151
-0.00205213
0.00205772
0.00101137
0.00205907
0.00105109
0.00206056
0.00109287
0.00113895
0.00113507
-0.00210479
0.00113004
-0.00215099
-0.0021966
0.00112192
-0.00108463
-0.00218835
0.00107638
-0.00109031
-0.00214531
-0.00210223
-0.00209856
0.00104742
-0.00209386
0.00100667
0.000967409
-0.00208812
0.00213248
0.000959886
-0.00212496
0.0021392
0.000999946
0.00104131
-0.00218002
0.00103298
-0.0021708
0.000990722
0.000950867
-0.00216178
0.00221034
0.000940866
-0.00220034
0.00222082
0.000980241
0.0022313
0.0010225
0.00224172
0.00106595
0.00225232
0.00111132
0.00226336
0.00115873
0.0012085
-0.00231303
0.00119447
-0.00229963
0.00114533
0.00109776
-0.00228607
0.00234556
0.00108312
-0.00233092
0.00236196
0.00112893
0.00117796
-0.00240937
0.00115842
-0.0023919
0.00111145
-0.00237467
0.00106589
-0.00103868
-0.00235817
0.00102218
-0.00105332
-0.00231629
-0.00227343
-0.00226108
0.00101015
-0.00224947
0.000968624
0.000928561
-0.00223716
0.00228846
0.000915349
-0.00227525
0.00230214
0.000954943
0.000996006
-0.00234234
0.000980175
-0.00232715
0.000939749
-0.00231258
0.000900784
-0.000877106
-0.00229866
0.000863181
-0.000889805
-0.00226255
-0.000901282
-0.00222568
-0.00091163
-0.00218999
-0.000920812
-0.0021526
-0.000928904
-0.00211686
-0.000935747
-0.00208128
-0.000941432
-0.00204644
-0.00094551
-0.0020128
-0.000948187
-0.00198001
-0.000949682
-0.00195031
-0.000951829
-0.00192569
-0.000957278
-0.00190957
-0.000972817
-0.00190906
-0.000203937
-0.000772116
-0.00188063
-0.000417395
-0.000696338
-0.000101454
-0.000351999
-0.000807481
-0.000201044
-0.000332328
-0.000200761
-0.000400187
-0.000397063
-0.000411568
0.000201716
-0.000184639
-0.000316347
8.9418e-05
-0.000377003
0.000223206
-0.000399033
0.000339656
-0.000432798
0.000371737
0.000511061
-0.000859437
0.000405715
0.000173266
-9.56044e-05
-0.000342498
-0.000630419
0.000209084
-0.000199458
-0.000328945
-0.000201664
-0.000396826
-0.000395753
-0.000410826
0.000206443
-0.000193348
-0.000318353
0.000100877
-0.000380395
0.000238634
-0.000405184
0.000356303
-0.000436023
0.000364588
0.000497238
0.000442317
-0.000846963
0.000174205
0.00071874
-0.000906842
0.000770255
0.00109996
0.000932707
-0.0018751
0.000368489
-0.00190602
0.000958101
-0.000983315
-0.00186533
0.000942619
-0.000226239
-0.0007964
-0.00183578
-0.000446055
-0.000687025
-0.000117936
-0.000375683
-0.000799399
-0.000218921
-0.000335038
-0.000220337
-0.000403768
-0.000407473
-0.00041934
0.000231666
-0.00023711
-0.000317545
0.000135314
-0.000392632
0.000294807
-0.000397827
0.000390981
-0.000413719
0.000365675
0.000517148
-0.00081979
0.000463263
0.000193573
-0.000163719
-0.000377379
-0.000594325
0.000315633
-0.000276331
-0.000301106
-0.000301939
-0.00037222
-0.000379267
0.000298496
-0.000296314
0.00022259
0.000455895
-0.000606582
0.000405846
0.000988835
0.00101995
-0.00155036
0.000800357
0.0007344
0.00108516
-0.00172119
0.00101762
0.000398264
-0.00166089
0.000959648
-0.000869406
-0.00163899
0.000847515
-0.000874588
-0.00154517
-0.00078574
-0.00141187
-0.000617954
-0.00130978
-0.000480115
-0.00127595
-0.000380528
0.00117452
-0.00127411
0.00121399
-0.00128283
0.000322056
-0.00134729
0.000397938
0.00039605
-0.00140529
0.00135317
0.000461272
-0.00141838
0.000477
-0.00137046
0.00057152
0.000531626
-0.00144081
0.00140946
0.000599886
-0.00147772
0.000671204
-0.00147872
0.000738051
0.000651163
-0.00152999
0.00156378
0.000678771
-0.00159138
0.000756656
-0.00164075
0.000758414
-0.00165174
0.000689763
-0.000617335
-0.00166822
0.000633815
-0.000588988
-0.00161973
-0.000547225
-0.00157175
-0.0004958
-0.00152914
-0.000440232
-0.00149638
-0.000385834
-0.00147278
-0.00145641
-0.00150153
0.000370006
-0.00154163
0.000352829
0.00033482
-0.00157751
0.00155929
0.000370165
-0.00159464
0.00151912
0.000393011
0.000416347
-0.00154217
0.000462139
-0.00158106
0.00043191
-0.00161487
0.000403982
-0.0003482
-0.00164478
0.000378105
-0.000316712
-0.00162612
-0.00160986
-0.00163921
0.000298941
-0.00166601
0.000281753
0.000265282
-0.0016906
0.00168018
0.000288801
-0.0017037
0.00165446
0.000307482
0.000327283
-0.00167157
0.000354083
-0.00169584
0.000331752
0.000310959
-0.00171799
0.001713
0.000331486
-0.00173352
0.00169058
0.000354177
0.00166588
0.000378785
0.00163838
0.000405612
0.00160731
0.000435055
0.0015715
0.000467722
0.000504499
-0.00160706
0.000539805
-0.00163767
0.000498344
0.000462218
-0.00166483
0.0016709
0.000484811
-0.00169349
0.00164633
0.00052292
0.000566413
-0.00168682
0.00058502
-0.00170544
0.000541541
-0.00172352
0.000502896
-0.000450838
-0.00174084
0.000468161
-0.000429992
-0.00171434
-0.00168921
-0.00171134
0.000400921
-0.00173161
0.000374451
0.000350179
-0.0017503
0.00175161
0.000366942
-0.00176837
0.00173365
0.000392413
0.000420234
-0.00175733
0.000436728
-0.00177299
0.000408073
0.000381793
-0.00178783
0.00179578
0.000394825
-0.00180881
0.0017823
0.000421563
0.00176843
0.000450604
0.0017543
0.00048229
0.00174016
0.000517038
0.00172645
0.000555259
0.00171431
0.000597154
0.00170521
0.000642922
0.00169997
0.000695007
0.00170313
0.000755254
0.001726
0.000824646
0.00178468
0.000900975
0.000966517
0.000914309
-0.00181312
0.00186822
0.000885019
-0.00183893
0.00189145
0.000919384
0.000940494
-0.00189922
0.000930151
-0.00188346
0.000903625
-0.00186552
0.00086708
-0.000839457
-0.0018504
0.00082433
-0.000863481
-0.0018149
-0.00177562
-0.00175571
0.000804739
-0.00174942
0.000748968
0.000697112
-0.00175153
0.00179398
0.000696233
-0.0017931
0.00180059
0.000742363
0.000790428
-0.00184009
0.000780123
-0.00183443
0.000736709
0.000694203
-0.0018324
0.00187171
0.000691796
-0.0018693
0.00187663
0.000731793
0.00188437
0.000772385
0.0018949
0.000813797
0.00190736
0.000854626
0.00191837
0.000892609
0.000922835
-0.00194466
0.00091719
-0.00193554
0.000883483
0.000845319
-0.00192623
0.00196676
0.000837028
-0.00195847
0.00197461
0.00087563
0.000911788
-0.00200633
0.000905322
-0.00199875
0.000868051
-0.00199144
0.000829716
-0.00079851
-0.00198499
0.000792061
-0.000805597
-0.00195138
-0.00191803
-0.00191162
0.000765977
-0.00190708
0.000727261
0.000689339
-0.00190463
0.00194156
0.00068655
-0.00193877
0.00194579
0.000723031
0.00076039
-0.00197957
0.000754969
-0.00197528
0.000718742
-0.00197214
0.000683418
-0.000651092
-0.00197014
0.000649093
-0.000652463
-0.0019374
-0.00065323
-0.00190386
-0.000653192
-0.00186934
-0.000652224
-0.00183337
-0.000648758
-0.00179657
-0.00175736
-0.00176501
0.000604805
-0.00177458
0.000564832
0.000527946
-0.00178549
0.00180885
0.000535979
-0.00181688
0.00180207
0.000571607
0.000610317
-0.00183726
0.000614216
-0.00184256
0.000576907
-0.00184857
0.000541991
-0.000502785
-0.00185544
0.000509654
-0.000493683
-0.00182597
-0.00179688
-0.00180843
0.000462158
-0.00181993
0.000433072
0.000406158
-0.00183126
0.00184521
0.000415901
-0.00185495
0.0018355
0.000442786
0.000471683
-0.00186318
0.000479429
-0.00187125
0.000450855
0.000424138
-0.00187948
0.00189764
0.00043095
-0.00190445
0.00189112
0.00045738
0.00188532
0.00048523
0.00187995
0.000515028
0.00187495
0.000546992
0.00187118
0.000580676
0.000616063
-0.00190469
0.000616895
-0.00190681
0.0005828
0.000550286
-0.0019101
0.00193837
0.000552288
-0.00194037
0.00193732
0.000583853
0.000616818
-0.0019692
0.000615879
-0.00196922
0.000583869
-0.00197006
0.000553135
-0.000522178
-0.0019716
0.000523719
-0.000519439
-0.00194311
-0.00191451
-0.0019193
0.000490024
-0.00192419
0.000462267
0.000436269
-0.0019295
0.00195064
0.000440342
-0.00195472
0.00194662
0.000466293
0.000493538
-0.00197369
0.000495628
-0.00197625
0.000468853
0.000443389
-0.00197929
0.00200191
0.00044514
-0.00200366
0.00200052
0.000470248
0.00199958
0.000496569
0.00199918
0.000524117
0.00199942
0.000552894
0.0020004
0.000582892
0.0020022
0.000614079
0.00200489
0.000646402
0.00200852
0.000679793
0.00201308
0.000714177
0.00201856
0.00074949
0.00202491
0.000785714
0.00203202
0.000822611
0.0020395
0.000860566
0.000898384
-0.00207321
0.000890318
-0.00206598
0.000853332
0.000815395
-0.00205876
0.00210045
0.000807771
-0.00209282
0.00210899
0.000844786
0.000882447
-0.00214351
0.000873357
-0.00213476
0.000836038
-0.00212692
0.000799927
-0.000772144
-0.00211924
0.000764467
-0.000779162
-0.0020858
-0.00205221
-0.00204639
0.000743673
-0.00204134
0.000709131
0.000675546
-0.00203709
0.00207376
0.000670573
-0.00206878
0.00207944
0.000703451
0.000737308
-0.00211217
0.000730242
-0.00210574
0.000697023
0.0006648
-0.00209997
0.00213728
0.000658174
-0.00213066
0.00214454
0.000689767
0.00215241
0.000722369
0.00216089
0.000755994
0.00217034
0.000790473
0.00217994
0.000826437
0.000863309
-0.00221466
0.00085228
-0.00220415
0.000815931
0.000780922
-0.0021946
0.00223927
0.000769593
-0.00222794
0.00225083
0.000804371
0.000840554
-0.00228538
0.000827276
-0.00227277
0.000791757
-0.00226081
0.000757641
-0.000736322
-0.00224952
0.000725026
-0.000746634
-0.00221763
-0.00218524
-0.00217648
0.000713613
-0.00216834
0.000681629
0.00065066
-0.00216083
0.00219889
0.000642236
-0.00219047
0.00220794
0.000672575
0.000703929
-0.00223888
0.000693288
-0.00222889
0.000662586
-0.00221955
0.000632894
-0.000612897
-0.00221084
0.000604192
-0.000620696
-0.00218267
-0.000627588
-0.00215394
-0.000633581
-0.00212466
-0.000638694
-0.00209486
-0.000642954
-0.00206452
-0.00203364
-0.00203097
0.000611406
-0.00202902
0.000580948
0.000551617
-0.00202775
0.00205806
0.000549341
-0.00205578
0.00206096
0.000578052
0.000607844
-0.00209039
0.000603381
-0.00208656
0.000574215
-0.00208331
0.000546096
-0.000521727
-0.00208061
0.000519031
-0.000523436
-0.00205407
-0.00202706
-0.00202691
0.000496412
-0.0020272
0.000470544
0.000445818
-0.00202788
0.00205213
0.000445468
-0.00205178
0.00205287
0.000469798
0.000495214
-0.00207842
0.000493022
-0.00207668
0.000468062
0.00044414
-0.00207536
0.00210085
0.000441876
-0.00209859
0.00210354
0.000465378
0.00210669
0.000489876
0.00211033
0.000515383
0.00211453
0.000541906
0.00211929
0.000569448
0.00059801
-0.00214766
0.000591731
-0.00214197
0.000563765
0.000536792
-0.00213686
0.00216889
0.000530777
-0.00216288
0.00217548
0.000557176
0.000584547
-0.00220276
0.000576464
-0.00219528
0.000549697
-0.00218838
0.000523878
-0.000505339
-0.00218204
0.000498995
-0.00051081
-0.00215741
-0.00213229
-0.00212822
0.00048581
-0.00212462
0.000461783
0.000438714
-0.00212146
0.00214797
0.000434686
-0.00214395
0.00215245
0.000457308
0.000480854
-0.00217622
0.000475035
-0.00217089
0.000451984
-0.00216603
0.000429824
-0.000412971
-0.0021616
0.00040854
-0.000416585
-0.00214033
-0.000419352
-0.00211869
-0.000421238
-0.0020967
-0.000422205
-0.00207439
-0.000422212
-0.00205177
-0.000421212
-0.00202887
-0.000419163
-0.00200571
-0.000415825
-0.00198263
-0.000411673
-0.00195886
-0.000406037
-0.00193514
-0.000399111
-0.00191137
-0.000390835
-0.00188775
-0.000381178
-0.0018646
-0.000370108
-0.00184233
-0.000357571
-0.00182135
-0.000343492
-0.00180191
-0.000327803
-0.00178405
-0.000310479
-0.00176762
-0.000291571
-0.00175243
-0.000271212
-0.00173834
-0.000249592
-0.00172531
-0.000226921
-0.00171327
-0.000203403
-0.00170211
-0.000179193
-0.00169336
-0.00015441
-0.00168589
-0.000128986
-0.00168686
-0.00170124
0.000122341
-0.001726
-0.00171071
0.000146197
-0.000115807
-0.00173308
0.000138181
-0.00174929
0.000109448
-0.00177117
0.000130431
-0.00175406
0.00173073
0.000150718
-0.00175101
0.00170906
0.000159856
0.000169367
-0.0017159
0.000191915
-0.00173693
0.000180884
-0.00175655
0.000170349
-0.000141989
-0.00177489
0.000160327
-0.000122992
-0.00177
-0.000103314
-0.00177373
-0.0017917
9.74364e-05
-0.00181095
-0.00179218
0.000115892
-9.18349e-05
-0.00180949
0.000109151
-0.001829
8.6531e-05
-0.00184595
0.000102776
-0.00182573
0.00180445
0.000118361
-0.00182003
0.00178779
0.000125812
0.000133685
-0.00179202
0.000150822
-0.00180803
0.000141823
-0.00182297
0.000133312
-0.000111306
-0.00183692
0.000125264
-9.67434e-05
-0.00183459
-8.15145e-05
-0.00184096
-0.00186189
7.67551e-05
-0.00187687
-0.00185521
9.10168e-05
-7.22451e-05
-0.00186854
8.55792e-05
-0.00189091
6.79768e-05
-0.00190403
8.04245e-05
-0.00188098
0.00186088
9.2274e-05
-0.00187272
0.00184818
9.82801e-05
0.000104619
-0.00184995
0.000117649
-0.00186211
0.000110442
-0.00187345
0.000103619
-8.65846e-05
-0.00188402
9.716e-05
-7.55414e-05
-0.00188376
-6.39383e-05
-0.00189258
-0.00191628
6.01164e-05
-0.00192769
-0.00190338
7.09148e-05
-5.64978e-05
-0.0019134
6.65287e-05
-0.00193832
5.30702e-05
-0.00194818
6.23654e-05
-0.00192269
0.00190359
7.12328e-05
-0.00191245
0.00189404
7.60828e-05
8.11939e-05
-0.00189386
9.10413e-05
-0.00190302
8.52412e-05
7.97384e-05
-0.00191152
0.00190335
8.78601e-05
-0.00191147
0.0018946
9.39973e-05
0.00188519
0.000100461
0.00187507
0.000107278
0.00186422
0.000114475
0.00185259
0.000122079
0.00184012
0.000130118
0.00182677
0.000138622
0.00181246
0.000147624
0.00179713
0.000157157
0.00178071
0.000167253
0.0017631
0.000177941
0.00174421
0.000189243
0.00172392
0.000201173
0.000213737
-0.00173423
0.000234708
-0.00175368
0.000220625
0.000207325
-0.00177176
0.00176376
0.000224504
-0.00178093
0.00174527
0.000239119
0.000254669
-0.00175714
0.000273467
-0.00177455
0.000256541
-0.00179074
0.000240698
-0.000210768
-0.00180582
0.000225852
-0.000194777
-0.00179692
-0.00178859
-0.00180428
0.000182947
-0.00181891
0.000171796
0.000161286
-0.00183257
0.00182572
0.000174269
-0.0018387
0.00181182
0.000185703
0.000197852
-0.00181989
0.000211925
-0.00183303
0.000198845
0.000186548
-0.00184531
0.00184103
0.000198127
-0.0018526
0.00182867
0.000211212
0.00181545
0.000225142
0.00180132
0.00023999
0.00178618
0.000255844
0.00176992
0.0002728
0.000290968
-0.00178374
0.000307088
-0.00179878
0.000287844
0.000269917
-0.00181285
0.00181259
0.000282936
-0.00182561
0.00179877
0.000301676
0.000321805
-0.00181525
0.000335152
-0.00182791
0.000314333
-0.00183991
0.000294943
-0.000265445
-0.0018513
0.000276839
-0.000253177
-0.00183787
-0.00182603
-0.0018384
0.000237514
-0.00185001
0.000222831
0.000209045
-0.00186093
0.00186036
0.000219361
-0.00187067
0.00184944
0.000233753
0.000249085
-0.00186211
0.000259901
-0.00187238
0.000244024
-0.00188213
0.000229117
-0.000205831
-0.0018914
0.000215102
-0.000196081
-0.00188042
-0.000185817
-0.00187119
-0.000174973
-0.00186344
-0.000163497
-0.00185678
-0.000151375
-0.00185082
-0.00184532
-0.00185722
0.000142022
-0.00186832
0.000133188
0.000124836
-0.00187868
0.00187269
0.000134687
-0.00188254
0.00186213
0.000143751
0.00015334
-0.0018675
0.000164064
-0.00187751
0.000153769
-0.00188686
0.000144039
-0.000126109
-0.00189558
0.000134833
-0.000116932
-0.00189171
-0.00188833
-0.00189731
0.000109443
-0.00190564
0.000102337
9.55851e-05
-0.00191337
0.00190817
0.00010293
-0.00191551
0.00190025
0.000110264
0.00011798
-0.0019037
0.000126109
-0.00191127
0.000117832
0.000109968
-0.0019183
0.00191546
0.000116822
-0.00192231
0.00190815
0.000125146
0.00190034
0.000133919
0.00189201
0.000143173
0.0018831
0.000152947
0.0018736
0.000163281
0.000174221
-0.00188083
0.000183874
-0.00188991
0.000172364
0.000161498
-0.00189846
0.00189836
0.000169762
-0.00190662
0.00188964
0.00018109
0.000193095
-0.00190021
0.000201907
-0.00190858
0.00018947
-0.00191655
0.000177734
-0.000159063
-0.00192413
0.000166648
-0.000151229
-0.00191445
-0.00190651
-0.0019141
0.000141514
-0.00192127
0.000132315
0.000123599
-0.00192804
0.00192893
0.000130307
-0.00193564
0.00192188
0.000139374
0.000148946
-0.00193135
0.000156165
-0.00193821
0.000146242
-0.00194474
0.000136841
-0.000121714
-0.00195095
0.000127924
-0.000115334
-0.00194201
-0.000108918
-0.00193446
-0.000102488
-0.00192874
-9.59461e-05
-0.00192484
-8.91567e-05
-0.0019223
-8.20237e-05
-0.0019205
-7.45131e-05
-0.00191898
-6.66291e-05
-0.0019194
-5.84074e-05
-0.00192067
-4.98212e-05
-0.00193128
-0.00195732
4.67283e-05
-0.00196579
-0.0019392
5.46563e-05
-4.37628e-05
-0.00194653
5.11008e-05
-0.00197361
4.09298e-05
-0.00198081
4.77041e-05
-0.00195331
0.00193529
5.41556e-05
-0.00194174
0.00192827
5.81208e-05
6.22631e-05
-0.00192668
6.95457e-05
-0.00193336
6.4811e-05
-0.00193948
6.02727e-05
-5.03374e-05
-0.00194504
5.59025e-05
-4.44446e-05
-0.00194763
-3.82318e-05
-0.00195952
-0.00198742
3.56534e-05
-0.00199346
-0.00196517
4.13093e-05
-3.31754e-05
-0.00197027
3.8284e-05
-0.00199894
3.07785e-05
-0.00200389
3.53533e-05
-0.00197485
0.00195776
3.96207e-05
-0.00196203
0.00195297
4.30844e-05
4.66516e-05
-0.00195007
5.16817e-05
-0.00195458
4.7596e-05
-0.00195859
4.36333e-05
-3.62487e-05
-0.00196212
3.97868e-05
-3.24995e-05
-0.00196577
-2.84398e-05
-0.0019789
-0.00200832
2.61268e-05
-0.00201225
-0.00198247
2.96953e-05
-2.38027e-05
-0.00198557
2.69049e-05
-0.00201567
2.14802e-05
-0.0020186
2.41335e-05
-0.00198822
0.00197189
2.65806e-05
-0.00197434
0.00196904
2.97547e-05
3.29651e-05
-0.00196521
3.60558e-05
-0.00196788
3.24297e-05
-0.00197017
2.88703e-05
-2.34342e-05
-0.00197211
2.53722e-05
-2.13801e-05
-0.00197639
-1.91603e-05
-0.00199044
-0.00202104
1.68367e-05
-0.00202301
-0.00199224
1.86393e-05
-1.55052e-05
-0.00199364
1.69088e-05
-0.00202354
1.71691e-05
-0.00202462
1.72095e-05
-0.00199368
0.00197941
1.72526e-05
-0.00197945
0.00197905
1.72614e-05
2.13068e-05
-0.00197275
2.19497e-05
-0.00197412
1.86356e-05
1.7449e-05
-0.00197432
0.00197275
1.80356e-05
-0.00197334
0.00197109
2.0301e-05
0.00196928
2.37616e-05
0.00196726
2.73895e-05
0.00196498
3.11507e-05
0.00196238
3.5029e-05
0.00195942
3.90255e-05
0.00195605
4.31579e-05
0.00195225
4.74337e-05
0.00194799
5.18543e-05
0.00194325
5.64243e-05
0.00193801
6.11532e-05
0.00193223
6.60551e-05
0.00192589
7.11496e-05
7.64627e-05
-0.00192705
8.30249e-05
-0.00193306
7.71633e-05
7.15464e-05
-0.00193855
0.00193431
7.6844e-05
-0.00193961
0.00192855
8.29268e-05
8.92867e-05
-0.00193092
9.5366e-05
-0.00193657
8.8579e-05
-0.00194183
8.21069e-05
-7.10186e-05
-0.00194674
7.59318e-05
-6.61512e-05
-0.00194447
-0.00194355
-0.00194808
6.09593e-05
-0.00195218
5.59585e-05
5.11417e-05
-0.00195589
0.00195307
5.4956e-05
-0.00195688
0.00194895
6.00828e-05
6.5435e-05
-0.00195134
7.00388e-05
-0.00195567
6.44162e-05
5.90549e-05
-0.00195977
0.00196034
6.34377e-05
-0.00196473
0.00195575
6.90158e-05
0.00195092
7.48707e-05
0.00194583
8.10193e-05
0.00194046
8.74792e-05
0.00193478
9.42689e-05
0.000101408
-0.00194054
0.000107493
-0.00194631
0.000100048
9.2975e-05
-0.00195181
0.00195385
9.8457e-05
-0.00195933
0.00194808
0.000105818
0.000113561
-0.00195684
0.000119456
-0.00196243
0.000111406
-0.00196771
0.000103741
-9.14484e-05
-0.00197269
9.64333e-05
-8.62492e-05
-0.00196452
-0.00195703
-0.00196201
7.98463e-05
-0.00196673
7.37428e-05
6.7916e-05
-0.00197121
0.00197408
7.22724e-05
-0.00197843
0.00196944
7.83812e-05
8.47651e-05
-0.00197738
8.94541e-05
-0.00198177
8.27778e-05
-0.00198588
7.63804e-05
-6.64161e-05
-0.0019897
7.02398e-05
-6.23439e-05
-0.0019825
-5.81196e-05
-0.00197543
-5.39468e-05
-0.0019689
-5.00528e-05
-0.00196366
-4.65063e-05
-0.00196042
-0.00195923
-0.00196226
4.20534e-05
-0.00196501
3.77812e-05
3.36827e-05
-0.00196754
0.00196687
3.66594e-05
-0.00196985
0.00196374
4.09122e-05
4.53728e-05
-0.00196737
4.90829e-05
-0.0019709
4.4449e-05
-0.00197426
4.00233e-05
-3.26002e-05
-0.00197744
3.5783e-05
-2.97552e-05
-0.00197269
-0.0019699
-0.00197215
2.60057e-05
-0.0019743
2.24541e-05
1.91284e-05
-0.00197539
0.001978
2.15809e-05
-0.00198045
0.00197541
2.50474e-05
2.8727e-05
-0.00198043
3.17149e-05
-0.00198321
2.78262e-05
2.4141e-05
-0.00198577
0.00198906
2.66015e-05
-0.00199152
0.00198633
3.05526e-05
0.00198334
3.47067e-05
0.00198009
3.90344e-05
0.00197659
4.35241e-05
0.00197285
4.81862e-05
5.30429e-05
-0.00197939
5.70047e-05
-0.00198308
5.18761e-05
4.69347e-05
-0.00198649
0.00198978
5.01497e-05
-0.001993
0.00198629
5.53757e-05
6.07908e-05
-0.00199324
6.43353e-05
-0.00199651
5.86464e-05
-0.00199952
5.31528e-05
-4.50974e-05
-0.00200226
4.78396e-05
-4.21623e-05
-0.00199593
-0.00198962
-0.00199246
3.75528e-05
-0.00199503
3.31211e-05
2.89029e-05
-0.00199733
0.00200099
3.10464e-05
-0.00200313
0.00199859
3.5517e-05
4.02144e-05
-0.00200474
4.27024e-05
-0.00200698
3.77577e-05
3.3052e-05
-0.00200899
0.0020131
3.49337e-05
-0.00201498
0.002011
3.98593e-05
0.00200867
4.5034e-05
0.0020061
5.04061e-05
0.0020033
5.59586e-05
0.00200025
6.16968e-05
0.00199695
6.76364e-05
0.00199339
7.37983e-05
0.00198957
8.02036e-05
0.00198548
8.68734e-05
0.00198111
9.38302e-05
0.00197644
0.000101098
0.00197149
0.000108701
0.00196623
0.000116668
0.00196066
0.000125027
0.00195478
0.00013381
0.00194857
0.000143049
0.00194203
0.000152781
0.00193516
0.000163042
0.00192794
0.000173875
0.00192035
0.000185322
0.00191239
0.000197432
0.00190404
0.000210258
0.00189529
0.000223857
0.00188612
0.000238293
0.00187651
0.000253637
0.00186645
0.000269968
0.00185591
0.000287377
0.00184489
0.000305967
0.00183337
0.000325856
0.000347182
-0.00185308
0.000357935
-0.00186348
0.000336258
0.000316
-0.00187351
0.00188335
0.000324999
-0.00189234
0.00187409
0.000345521
0.000367423
-0.00189597
0.000375641
-0.00190406
0.000353613
-0.00191197
0.000332914
-0.000305741
-0.00191967
0.000313442
-0.000297032
-0.00190105
-0.00188316
-0.00189243
0.000279241
-0.00190132
0.00026253
0.000246811
-0.00190983
0.00191753
0.000254574
-0.00192529
0.00190945
0.000270616
0.000287644
-0.00192713
0.000295106
-0.00193433
0.000277821
0.00026151
-0.00194126
0.00195145
0.000267585
-0.00195752
0.00194516
0.000284108
0.00193868
0.00030159
0.00193202
0.000320101
0.00192522
0.000339716
0.00191832
0.000360518
0.000382592
-0.00194084
0.000388299
-0.00194657
0.000366247
0.000345409
-0.00195226
0.00196795
0.00035002
-0.00197256
0.00196334
0.000370859
0.000392774
-0.00198595
0.000396094
-0.00198929
0.000374203
-0.00199283
0.000353569
-0.000330312
-0.00199646
0.000333939
-0.000325716
-0.00197715
-0.00195787
-0.00196337
0.000307094
-0.00196874
0.000289477
0.000272801
-0.00197395
0.00198616
0.000277173
-0.00199053
0.00198169
0.000293947
0.00031164
-0.00200008
0.000315262
-0.00200367
0.000297543
-0.00200723
0.000280726
-0.000261265
-0.00201071
0.000264753
-0.000257007
-0.00199479
-0.000251958
-0.001979
-0.000246104
-0.00196337
-0.000239444
-0.00194792
-0.000232005
-0.00193273
-0.00191798
-0.00192576
0.000218043
-0.00193319
0.000204862
0.000192404
-0.00194027
0.00194663
0.000198882
-0.00195311
0.00193984
0.000211657
0.000225159
-0.0019543
0.000231541
-0.0019604
0.00021776
-0.00196623
0.000204709
-0.000186784
-0.00197178
0.000192339
-0.000180616
-0.00195927
-0.001947
-0.00195341
0.000169452
-0.00195949
0.000158866
0.000148818
-0.00196526
0.00197069
0.000154095
-0.00197597
0.00196513
0.000164432
0.000175315
-0.00197706
0.000180603
-0.00198209
0.000169459
0.000158868
-0.00198686
0.00199368
0.000163144
-0.00199796
0.00198919
0.000173951
0.00198448
0.000185315
0.00197955
0.000197276
0.00197439
0.000209875
0.00196899
0.000223156
0.000237167
-0.00198387
0.000242041
-0.00198856
0.00022785
0.000214386
-0.00199307
0.00200292
0.000218251
-0.00200679
0.00199892
0.000231854
0.000246176
-0.00201412
0.000249588
-0.00201744
0.000235179
-0.00202067
0.000221479
-0.000205326
-0.0020238
0.000208452
-0.000201603
-0.00201051
-0.0019974
-0.00200154
0.000189459
-0.0020055
0.000177913
0.000166927
-0.00200928
0.00201752
0.000170217
-0.00202081
0.00201409
0.000181348
0.000193039
-0.00202681
0.000196058
-0.00202972
0.000184258
0.000173014
-0.00203252
0.00204206
0.000175318
-0.00204436
0.00203968
0.000186643
0.00203722
0.00019852
0.00203469
0.000210984
0.00203209
0.000224078
0.00202943
0.000237836
0.00202673
0.000252289
0.002024
0.000267487
0.00202124
0.000283492
0.00201849
0.000300293
0.00201581
0.00031794
0.00201322
0.00033653
0.00201064
0.000356158
0.00200805
0.000376794
0.000398437
-0.00203014
0.000399702
-0.00203159
0.000378252
0.000357815
-0.00203325
0.00205258
0.000358548
-0.00205331
0.00205205
0.000378779
0.000399985
-0.00207373
0.000399334
-0.00207335
0.0003784
-0.00207321
0.000358406
-0.000339263
-0.00207327
0.00033932
-0.000338372
-0.0020542
-0.00203509
-0.002037
0.000319853
-0.00203891
0.000302203
0.000285412
-0.00204083
0.00205637
0.000286668
-0.00205763
0.00205522
0.000303355
0.000320879
-0.00207349
0.000321105
-0.00207386
0.000303726
0.000287156
-0.00207435
0.00209123
0.000286928
-0.00209101
0.00209161
0.000303349
0.00209216
0.000320552
0.00209292
0.000338566
0.00209391
0.000357421
0.00209515
0.000377151
0.000397786
-0.00211628
0.000395377
-0.0021142
0.000375066
0.000355626
-0.0021124
0.00213421
0.000353051
-0.00213163
0.0021371
0.000372177
0.000392142
-0.00215757
0.000388109
-0.0021539
0.000368512
-0.00215057
0.000349724
-0.000334739
-0.00214756
0.000331721
-0.000337029
-0.00212934
-0.00211087
-0.00210956
0.000319247
-0.00210846
0.000302249
0.000286007
-0.00210754
0.00212551
0.000284413
-0.00212391
0.00212731
0.000300448
0.000317214
-0.00214482
0.000314478
-0.00214234
0.00029797
-0.0021401
0.000282168
-0.000269079
-0.00213807
0.000267047
-0.000270487
-0.0021225
-0.000271252
-0.00210677
-0.000271354
-0.0020909
-0.00027078
-0.00207492
-0.000269463
-0.00205894
-0.0020428
-0.00204481
0.000254293
-0.00204681
0.000239841
0.000226058
-0.00204879
0.00206159
0.000227408
-0.00206294
0.00206026
0.000241165
0.000255614
-0.00207558
0.000256275
-0.00207631
0.000241893
-0.00207708
0.000228182
-0.000214288
-0.0020779
0.000215106
-0.000212929
-0.00206429
-0.00205073
-0.00205264
0.000200427
-0.0020545
0.000188506
0.00017713
-0.00205631
0.002067
0.000178454
-0.00206832
0.00206565
0.000189854
0.000201785
-0.00207872
0.000202607
-0.00207954
0.000190673
0.000179283
-0.00208037
0.00209205
0.000179648
-0.00209241
0.00209171
0.000191008
0.00209142
0.000202896
0.00209119
0.000215339
0.00209101
0.000228359
0.00209091
0.000241995
0.000256283
-0.00210615
0.000255658
-0.00210564
0.000241492
0.00022796
-0.00210524
0.00212017
0.000226998
-0.00211921
0.00212126
0.0002404
0.000254417
-0.00213623
0.000252577
-0.00213456
0.000238734
-0.00213305
0.00022549
-0.000214183
-0.00213169
0.000212816
-0.000215028
-0.00211836
-0.00210493
-0.0021047
0.000202665
-0.00210454
0.000190845
0.000179542
-0.00210443
0.00211698
0.000178976
-0.00211641
0.00211762
0.000190197
0.000201925
-0.00213045
0.000200687
-0.00212933
0.000189076
-0.00212831
0.000177959
-0.000168232
-0.00212739
0.000167309
-0.000168727
-0.00211592
-0.000168785
-0.00210438
-0.000168397
-0.0020928
-0.000167562
-0.0020812
-0.000166268
-0.00206961
-0.000164513
-0.00205806
-0.000162294
-0.00204658
-0.000159611
-0.0020352
-0.000156465
-0.00202395
-0.000152859
-0.00201288
-0.000148793
-0.00200202
-0.000144266
-0.00199139
-0.00013927
-0.00198096
-0.00197072
-0.00197588
0.000130187
-0.00198074
0.000121536
0.000113286
-0.00198532
0.00199014
0.000117493
-0.00199435
0.00198568
0.000125997
0.000134911
-0.00199567
0.0001392
-0.00199973
0.000130055
-0.00200356
0.000121329
-0.000109371
-0.00200718
0.000112991
-0.000105409
-0.00199831
-0.00198963
-0.00199368
9.7877e-05
-0.00199747
9.06646e-05
8.37476e-05
-0.00200101
0.00200553
8.70235e-05
-0.0020088
0.00200203
9.41617e-05
0.000101602
-0.00201059
0.000105014
-0.0020138
9.73701e-05
9.00343e-05
-0.00201681
0.00202229
9.27751e-05
-0.00202503
0.00201938
0.000100287
0.00201628
0.00010811
0.00201301
0.000116271
0.00200954
0.000124797
0.00200588
0.000133717
0.000143061
-0.00201631
0.000146494
-0.00201958
0.000136981
0.000127895
-0.00202267
0.00202981
0.000130616
-0.00203253
0.00202695
0.000139842
0.000149497
-0.00203777
0.000152066
-0.00204022
0.000142297
-0.00204256
0.000132956
-0.000121789
-0.00204478
0.000124014
-0.000119206
-0.00203512
-0.00202561
-0.00202838
0.000110885
-0.002031
0.000102904
9.52379e-05
-0.00203346
0.00203987
9.74152e-05
-0.00204205
0.00203756
0.000105216
0.000113331
-0.00204689
0.000115443
-0.00204889
0.000107214
-0.00205078
9.93013e-05
-8.99029e-05
-0.00205255
9.16764e-05
-8.78585e-05
-0.00204409
-8.55488e-05
-0.00203577
-8.29811e-05
-0.0020276
-8.01637e-05
-0.00201962
-7.71029e-05
-0.00201186
-0.00200431
-0.00200738
7.07082e-05
-0.00201023
6.45413e-05
5.85798e-05
-0.00201285
0.00201735
6.10191e-05
-0.00201979
0.00201471
6.71849e-05
7.35587e-05
-0.00202225
7.61859e-05
-0.00202469
6.96239e-05
-0.00202694
6.3271e-05
-5.50433e-05
-0.002029
5.71082e-05
-5.28073e-05
-0.00202203
-0.00201525
-0.00201743
4.72171e-05
-0.0020194
4.18274e-05
3.66946e-05
-0.00202116
0.00202589
3.83315e-05
-0.00202753
0.00202406
4.36596e-05
4.92504e-05
-0.00203088
5.11275e-05
-0.00203257
4.53497e-05
3.9839e-05
-0.00203408
0.00203942
4.12118e-05
-0.00204079
0.00203788
4.68916e-05
0.00203616
5.28414e-05
0.00203428
5.89941e-05
0.00203222
6.53276e-05
0.00203
7.18505e-05
7.85825e-05
-0.00203792
8.07401e-05
-0.00203993
7.38564e-05
6.71813e-05
-0.00204178
0.00204778
6.88263e-05
-0.00204943
0.002046
7.56352e-05
8.26518e-05
-0.00205421
8.43125e-05
-0.00205576
7.71822e-05
-0.00205719
7.02582e-05
-6.22036e-05
-0.0020585
6.35184e-05
-6.06943e-05
-0.00205093
-0.00204348
-0.00204503
5.43863e-05
-0.00204641
4.82806e-05
4.24464e-05
-0.00204765
0.00205354
4.35404e-05
-0.00205463
0.00205231
4.95132e-05
5.57579e-05
-0.0020597
5.69532e-05
-0.00206077
5.05874e-05
4.44926e-05
-0.00206172
0.0020681
4.53026e-05
-0.00206891
0.00206719
5.15019e-05
0.00206617
5.79705e-05
0.00206505
6.46362e-05
0.00206384
7.14743e-05
0.00206252
7.84944e-05
0.00206112
8.57187e-05
0.00205962
9.31755e-05
0.00205803
0.000100892
0.00205635
0.000108897
0.00205457
0.000117217
0.00205271
0.000125879
0.00205076
0.000134911
0.00204871
0.000144341
0.000154197
-0.00205976
0.000155893
-0.00206139
0.000145973
0.00013648
-0.00206296
0.0020721
0.000137663
-0.00207328
0.00207087
0.000147196
0.000157152
-0.00208203
0.000157979
-0.00208284
0.000148011
-0.00208364
0.000138464
-0.000128522
-0.00208442
0.000129303
-0.000127382
-0.00207442
-0.00206446
-0.00206589
0.000118651
-0.00206726
0.000110262
0.000102187
-0.00206855
0.00207656
0.000103184
-0.00207756
0.00207551
0.000111309
0.000119746
-0.00208518
0.000120501
-0.00208591
0.000112038
0.000103884
-0.00208661
0.00209529
0.000104287
-0.00209569
0.00209487
0.00011245
0.00209446
0.000120918
0.00209404
0.000129717
0.00209363
0.000138879
0.00209321
0.00014843
0.00015839
-0.00210436
0.000158371
-0.00210437
0.000148445
0.000138925
-0.00210442
0.00211511
0.000138599
-0.00211478
0.00211548
0.000148069
0.000157939
-0.00212655
0.000157101
-0.00212579
0.000147309
-0.0021251
0.00013791
-0.000129505
-0.00212448
0.000128879
-0.000129786
-0.0021145
-0.00210449
-0.00210457
0.000121004
-0.00210467
0.00011255
0.000104399
-0.00210479
0.00211405
0.000104219
-0.00211387
0.00211426
0.00011234
0.000120761
-0.00212391
0.000120192
-0.0021234
0.000111825
-0.00212293
0.000103752
-9.63706e-05
-0.00212251
9.59489e-05
-9.65249e-05
-0.00211372
-9.64032e-05
-0.00210491
-9.60119e-05
-0.00209608
-9.53437e-05
-0.00208728
-9.43982e-05
-0.0020785
-0.00206978
-0.00207092
8.68685e-05
-0.002072
7.95696e-05
7.24728e-05
-0.002073
0.00208023
7.32529e-05
-0.00208101
0.00207939
8.04071e-05
8.7761e-05
-0.00208791
8.83959e-05
-0.00208851
8.10067e-05
-0.00208907
7.38144e-05
-6.62757e-05
-0.00208959
6.67964e-05
-6.55556e-05
-0.00208173
-0.00207392
-0.00207476
5.88085e-05
-0.00207551
5.22564e-05
4.59708e-05
-0.00207618
0.00208298
4.64976e-05
-0.00208351
0.00208239
5.28509e-05
5.94667e-05
-0.00209007
5.9945e-05
-0.00209051
5.3286e-05
4.68874e-05
-0.0020909
0.00209806
4.71379e-05
-0.00209832
0.00209779
5.35613e-05
0.00209749
6.02435e-05
0.00209717
6.7118e-05
0.00209682
7.41585e-05
0.00209646
8.13694e-05
8.87738e-05
-0.00210503
8.88984e-05
-0.00210516
8.14932e-05
7.42819e-05
-0.00210528
0.00211348
7.4195e-05
-0.00211339
0.00211359
8.13857e-05
8.87684e-05
-0.00212213
8.83888e-05
-0.00212179
8.10459e-05
-0.00212149
7.3893e-05
-6.71729e-05
-0.00212123
6.69066e-05
-6.72401e-05
-0.00211333
-0.0021054
-0.00210552
6.03626e-05
-0.00210564
5.36777e-05
4.7249e-05
-0.00210575
0.00211322
4.72186e-05
-0.00211319
0.00211327
5.36301e-05
6.03046e-05
-0.002121
6.00763e-05
-0.0021208
5.34318e-05
-0.00212063
4.7051e-05
-4.097e-05
-0.0021205
4.0834e-05
-4.0986e-05
-0.00211318
-4.08865e-05
-0.00210585
-4.06688e-05
-0.00209853
-4.03351e-05
-0.00209123
-3.98809e-05
-0.00208396
-3.93041e-05
-0.00207676
-3.86036e-05
-0.00206961
-3.77782e-05
-0.00206255
-3.68273e-05
-0.00205558
-3.57507e-05
-0.00204872
-3.45494e-05
-0.00204199
-3.32251e-05
-0.0020354
-3.17815e-05
-0.00202897
-3.0223e-05
-0.00202272
-2.8553e-05
-0.00201665
-2.677e-05
-0.00201077
-2.48637e-05
-0.00200504
-2.28146e-05
-0.00199938
-2.06109e-05
-0.00199372
-1.8293e-05
-0.00198809
-1.69935e-05
-0.00198175
-1.59781e-05
-0.00197641
-1.54489e-05
-0.00197387
-1.83442e-05
-0.00197142
-2.25149e-05
-0.00197528
-2.578e-05
-0.00199042
-0.0020253
4.91664e-05
-0.00201969
-0.00197797
3.67171e-05
-0.000102116
7.07232e-05
0.001965
4.2546e-05
2.64404e-05
-0.00196348
1.85018e-05
2.65963e-05
0.00197037
1.70319e-05
1.50117e-05
-0.00197631
1.49197e-05
1.27527e-05
0.00198285
1.25447e-05
1.60163e-05
-0.00198915
1.70827e-05
1.42555e-05
0.00199565
1.48337e-05
1.90128e-05
-0.00200116
2.07923e-05
1.62659e-05
0.00200668
1.75789e-05
2.24399e-05
-0.0020123
2.39739e-05
1.879e-05
0.00201808
1.99082e-05
2.54032e-05
-0.00202404
2.67293e-05
2.09367e-05
0.00203019
2.18759e-05
2.795e-05
-0.00203651
2.90632e-05
2.27261e-05
0.002043
2.34883e-05
3.00676e-05
-0.00204962
3.09629e-05
2.41643e-05
0.00205637
2.48592e-05
3.17503e-05
-0.00206323
3.24313e-05
2.53699e-05
0.00207019
2.58013e-05
3.30079e-05
-0.00207723
3.34818e-05
2.61557e-05
0.00208434
2.64358e-05
3.38548e-05
-0.0020915
3.4126e-05
2.6639e-05
0.00209871
2.6769e-05
3.4302e-05
-0.00210593
3.43837e-05
2.68296e-05
0.00211317
2.68212e-05
3.4372e-05
-0.00212039
3.4268e-05
2.67445e-05
0.0021276
2.65999e-05
0.0021278
3.40704e-05
0.00212805
4.05851e-05
0.00212835
4.67504e-05
0.0021287
5.30795e-05
0.0021291
5.9672e-05
0.00212956
6.64485e-05
0.00213007
7.33805e-05
0.00213064
8.04777e-05
0.00213126
8.77629e-05
0.00213195
9.5263e-05
0.0021327
0.000103003
0.00213351
0.000111009
0.0021344
0.000119305
0.00213536
0.000127915
0.00213641
0.000136863
0.00213754
0.000146172
0.00213878
0.000155866
0.00214012
0.000165968
0.00214157
0.000176502
0.00214315
0.000187492
0.00214488
0.000198964
0.00214675
0.000210942
0.00214879
0.000223449
0.00215101
0.000236513
0.00215343
0.000250157
0.00215607
0.000264409
0.00215894
0.000279294
0.00216207
0.000294837
0.00216549
0.000311065
0.00216921
0.000328001
0.00217326
0.000345671
0.00217767
0.000364099
0.00218247
0.000383309
0.00218769
0.000403321
0.00219336
0.000424157
0.0021995
0.000445837
0.00220616
0.00046838
0.00221335
0.000491801
0.00222111
0.000516117
0.00222947
0.000541343
0.00223844
0.000567494
0.00224804
0.000594585
0.0022583
0.000622633
0.00226923
0.000651656
0.00228084
0.000681678
0.00229314
0.000712726
0.00230614
0.000744645
0.00231985
0.000778047
0.00233428
0.000812837
0.00234945
0.000848018
0.00236535
0.000884878
0.00238201
0.000923087
0.00239946
0.000962733
0.00241772
0.00100391
0.00243687
0.00104674
0.00245698
0.00109134
0.00247758
0.00113782
0.00118571
0.00255023
0.00116172
-0.00252624
0.00121092
0.00118266
-0.00259967
0.00267727
0.00115235
-0.00264696
0.00119946
0.00275895
0.00116531
-0.0027248
0.00279527
0.00121403
0.00283392
0.00126209
0.00287516
0.00131393
0.00291909
0.0013671
0.00142216
-0.00297421
0.00137209
-0.0029286
0.00132148
0.00127059
-0.00288526
0.00297915
0.0012254
-0.00293397
0.00302738
0.00127325
0.00132126
-0.00307658
0.0012681
-0.00302613
0.00122281
-0.00297996
0.00117923
-0.00117902
-0.002936
0.00113505
-0.00122144
-0.00289154
-0.00284461
-0.00280637
0.00117578
-0.00277039
0.00112933
-0.00112013
-0.00273644
0.00108618
-0.00269258
-0.00110644
-0.00266217
0.00107602
-0.00113505
-0.00261835
-0.002573
-0.00111455
-0.00254777
0.00108932
-0.00250297
-0.0024809
0.00106927
0.00102578
-0.00245994
0.00252388
0.00100311
-0.0025012
0.00104537
0.00259129
0.00101975
-0.00256568
0.00106227
0.00103351
-0.00263342
0.00270438
0.00100319
-0.00267405
0.00104396
0.00277845
0.00101039
-0.00274488
0.00281397
0.00105066
0.00285159
0.00109171
0.00113582
-0.00289454
0.00109437
-0.00285547
0.00105263
-0.00281854
0.00101373
-0.0027836
0.00097545
-0.000971418
-0.00275052
0.000938334
-0.00271311
-0.000963817
-0.00268302
0.000933721
-0.000992532
-0.00264534
-0.0026062
-0.00097882
-0.0025804
0.000953019
-0.00254139
-0.000962435
-0.00251834
0.000939386
-0.000983972
-0.00247967
-0.00244
-0.00242101
0.000943742
-0.00240292
0.000904998
0.00086765
-0.00238569
0.00243972
0.000849129
-0.0024212
0.0024592
0.000885525
0.000923269
-0.00249645
0.000901377
-0.00247565
0.000864721
0.000829352
-0.00245587
0.00251059
0.000808366
-0.00248961
0.00253267
0.000842639
0.00255592
0.000878133
0.000914907
0.00261812
0.000889081
-0.00259229
0.000925799
0.00089726
-0.00265448
0.00271916
0.000867503
-0.0026894
0.000902359
0.00278622
0.000869843
-0.0027537
0.00282049
0.000904061
0.00285664
0.000939293
0.00289482
0.000975543
0.00293517
0.00101229
0.00297793
0.00105161
0.0030232
0.00108978
0.00307131
0.00113112
0.00312245
0.00117167
0.00121362
-0.003165
0.00115817
-0.0031134
0.00112006
0.00108138
-0.00306367
0.00315084
0.00103192
-0.00310138
0.00320431
0.00106659
0.00110207
-0.00324041
0.00104557
-0.00318747
0.00101365
-0.00313635
0.000980798
-0.000996672
-0.0030884
0.000948721
-0.00104394
-0.00305411
-0.00301782
-0.00297345
0.00100724
-0.002932
0.000970837
0.000936265
-0.00289273
0.00296698
0.000896045
-0.00292676
0.00300936
0.000928456
0.000962488
-0.00304291
0.000917005
-0.00299976
0.000885302
0.000855025
-0.00295874
0.00303034
0.000813339
-0.00298865
0.00307412
0.00084152
0.00312017
0.000870948
0.00316817
0.000900722
0.00321917
0.000929794
0.00327342
0.0009594
0.00333007
0.000988918
0.00101816
0.00341958
0.000958627
-0.00336005
0.00098428
0.00350808
0.000922321
-0.00344612
0.003573
0.000944045
0.000964355
-0.00359469
0.000897764
-0.00353085
0.000880203
0.000861151
-0.00346968
0.00355075
0.000800859
-0.00349046
0.00361343
0.000817524
0.00367849
0.000832707
0.00374613
0.000845781
0.00381579
0.000857159
0.0038878
0.000865659
0.000871126
0.00396701
0.000800055
-0.00389594
0.000800243
0.00403973
0.000730958
-0.00397045
0.00410966
0.000727996
0.00417963
0.000719922
0.000708973
-0.0041726
0.000642873
-0.0041059
0.000653216
0.000661092
-0.00403899
0.00410165
0.000596844
-0.0040374
0.00416553
0.000589336
0.00422868
0.000579723
0.00429059
0.000566985
0.00435063
0.000550525
0.00440827
0.000531227
0.000508949
-0.00439141
0.000456378
-0.00433611
0.000475917
0.000492959
-0.00427854
0.00432336
0.000437467
-0.00426787
0.00437673
0.000422545
0.000405532
-0.00436561
0.000356099
-0.00431384
0.000370766
-0.00426006
0.00038369
-0.000450399
-0.00420462
0.000394959
-0.000507621
-0.00421065
-0.00421918
-0.00415855
0.000519096
-0.00409712
0.000527902
0.000534916
-0.00403519
0.00409306
0.000474749
-0.00403289
0.00415193
0.000469024
0.000460382
-0.00414797
0.000403727
-0.00409033
0.000411384
-0.00403192
0.000416339
-0.000478346
-0.00397368
0.000420105
-0.000538404
-0.00397283
-0.000600642
-0.00397295
-0.000664431
-0.00397362
-0.00397247
-0.000732061
-0.00390621
0.000665802
-0.00390245
-0.000796199
-0.00383498
0.000728729
-0.00382648
0.000789514
-0.00375884
0.000723856
-0.00376933
0.00384164
0.000660129
-0.00377792
0.000664162
0.00390994
0.000601208
-0.00384698
0.000602122
-0.00391124
0.000540408
-0.00385006
0.000540027
-0.000598138
-0.00378964
0.000537718
-0.00378499
-0.000653985
-0.00372417
0.00059316
-0.000716646
-0.00371525
-0.000780124
-0.00370585
-0.00369318
-0.00362954
0.000769069
-0.00356803
0.000756007
0.000741484
-0.00350865
0.00358289
0.000683038
-0.00352444
0.00364324
0.00069565
0.000706464
-0.00365474
0.00064595
-0.00359553
0.000636443
0.000625517
-0.00353801
0.00360617
0.000568893
-0.00354955
0.00366429
0.000578324
0.000586073
0.00373015
0.000528074
-0.00367215
0.000533675
0.00379448
0.000475218
-0.00373603
0.00385349
0.00047871
0.0039131
0.000480423
0.000480671
-0.00391495
0.000421946
-0.00385692
0.000422391
-0.00379893
0.000420723
-0.00374205
0.000418338
-0.000470833
-0.00368576
0.000414535
-0.00367878
-0.00052119
-0.0036226
0.000465007
-0.00361502
0.000513108
-0.00355923
0.000458115
-0.00356761
0.0036304
0.000403833
-0.00357612
0.000409656
0.00369843
0.000354945
-0.00364372
0.00375397
0.00035899
0.00381041
0.000361903
0.003867
0.000364132
0.00392418
0.000365206
0.00398148
0.000364648
0.00403868
0.000362901
0.0040955
0.000359516
0.00415175
0.000355138
0.004207
0.000348478
0.00426105
0.000340911
0.00431349
0.000331246
0.00436404
0.000320217
0.000307747
-0.00438469
0.000260047
-0.00433491
0.000270436
0.00027965
-0.00428331
0.00438709
0.000228242
-0.00433569
0.00443652
0.000221009
0.000212514
-0.00448379
0.000165141
-0.0044342
0.000171417
-0.00438321
0.00017725
-0.000234936
-0.00433052
0.000182243
-0.000287758
-0.00428286
-0.00423016
-0.00417582
0.000294139
-0.00412047
0.00029979
0.000303705
-0.00406466
0.00417373
0.000248127
-0.00411815
0.00422887
0.000244649
0.000240139
-0.00427684
0.000186458
-0.00422207
0.000189877
0.0001925
-0.00416644
0.00415677
0.000138487
-0.00410276
0.00421006
0.000136588
0.0042624
0.000134123
0.00431354
0.000131097
0.00436321
0.000127583
0.00441128
0.000123345
0.000118859
-0.00413401
7.57649e-05
-0.00408928
7.86113e-05
8.13009e-05
-0.004043
0.00373039
-0.00368836
0.00377103
-8.3492e-05
-0.0036452
-0.00399539
-0.00394673
8.54615e-05
-0.00389718
8.70342e-05
8.8249e-05
-0.00384694
0.00355604
-0.00351044
0.00360104
-8.91152e-05
-0.00346435
-0.000139836
-0.00379622
-0.000194352
-0.00404825
-0.00025022
-0.00411057
-0.000306501
-0.00406187
-0.00400826
-0.0039517
0.000308086
-0.00389501
0.000308523
0.000307747
-0.00383863
0.00394912
0.000251736
-0.00389311
0.00400562
0.000252026
0.000251836
-0.00405419
0.000195455
-0.00399801
0.00019585
-0.00394186
0.000195582
-0.000250527
-0.00388603
0.000194698
-0.00030631
-0.00383733
-0.00378304
-0.00372788
0.000303834
-0.00367348
0.000300543
-0.000350093
-0.00361995
0.000296569
-0.00358998
-0.000397384
-0.00353727
0.000344675
-0.000450536
-0.00352297
-0.000504025
-0.00351412
-0.000558393
-0.00350487
-0.000613456
-0.00349448
-0.000669241
-0.00348223
-0.000725758
-0.00346793
-0.000783
-0.00345141
-0.000840935
-0.00343252
-0.000899508
-0.00341111
-0.00338701
-0.000932302
-0.0033306
0.000875896
-0.00330343
-0.00324957
0.000905538
0.000878538
-0.00319832
0.00327678
0.000827184
-0.00322543
0.00085172
0.00335505
0.000798069
-0.0033014
0.00081983
0.000764199
-0.00337689
-0.00339628
0.000709068
-0.000744679
-0.00334322
0.000691623
-0.0033235
-0.000775851
-0.00327229
0.000724632
-0.00325006
-0.000802854
-0.00320055
0.000753342
-0.000851896
-0.00317639
-0.00314949
-0.003103
0.00082446
-0.00305873
0.000797242
0.000771106
-0.00301649
0.00308494
0.000728437
-0.00304227
0.00312959
0.000752586
0.000777666
-0.00315357
0.000730685
-0.003109
0.000708013
-0.00306598
0.000685422
-0.000704147
-0.00302483
0.000662988
-0.000744908
-0.00300151
-0.000785184
-0.00297622
-0.000824877
-0.00294896
-0.000863874
-0.00291974
-0.000902056
-0.00288858
-0.00285549
-0.00282016
0.000868726
-0.0027866
0.000836286
-0.000836628
-0.00275471
0.000804737
-0.00272283
-0.000833739
-0.00269349
0.000804402
-0.000861995
-0.00266114
-0.00262739
-0.000853612
-0.00260167
0.000827888
-0.00256777
-0.00254448
0.000819343
0.000786226
-0.00252234
0.00257723
0.000762989
-0.00255399
0.000794898
0.0026343
0.000769375
-0.00260877
0.000801039
0.000773148
-0.0026656
0.00272439
0.000744295
-0.00269553
0.000774076
0.00278501
0.00074285
-0.00275379
0.00281782
0.00077193
0.00285231
0.000801799
0.000832451
-0.00288265
0.000795353
-0.00284733
0.000766487
-0.00281371
0.000738301
-0.00278167
0.000710812
-0.000714562
-0.00275114
0.000684027
-0.00272406
-0.000715383
-0.00269573
0.00068706
-0.000742846
-0.00266807
-0.00263907
-0.000738716
-0.00261383
0.000713473
-0.0025845
-0.000732488
-0.0025614
0.000709387
-0.000754594
-0.00253188
-0.000775649
-0.00250128
-0.000795212
-0.00247005
-0.000814008
-0.00243708
-0.000831622
-0.00240359
-0.0023693
-0.00235331
0.000796845
-0.00233889
0.000763628
0.000730601
-0.00232484
0.00237094
0.000715516
-0.00235586
0.00238723
0.00074734
0.000780486
-0.00241883
0.000762237
-0.00240223
0.000730743
-0.00238613
0.000699411
-0.000685121
-0.00237085
0.000669842
-0.000699422
-0.00234156
-0.00231154
-0.00229896
0.000669101
-0.0022871
0.000639789
0.00061146
-0.00227592
0.00231523
0.000599388
-0.00230316
0.00232802
0.000626996
0.000655564
-0.00235637
0.000641087
-0.00234267
0.000613293
0.000586435
-0.00232972
0.00236938
0.000572623
-0.00235557
0.00238397
0.000598704
0.00239936
0.00062569
0.00241559
0.000653608
0.00243269
0.000682312
0.00245071
0.000712724
0.0007429
-0.00248129
0.000722903
-0.00246226
0.0006937
0.00066425
-0.0024442
0.0024909
0.000645264
-0.00247191
0.00251089
0.000673712
0.000701904
-0.00253979
0.000680286
-0.00251822
0.00065215
-0.00249867
0.000625713
-0.000618401
-0.00247977
0.0005995
-0.00063645
-0.00245386
-0.00242705
-0.00241076
0.000609404
-0.00239531
0.000583255
0.000557979
-0.00238067
0.00242044
0.000542531
-0.00240499
0.00243672
0.000566976
0.000592258
-0.00246181
0.000574289
-0.00244473
0.0005499
-0.00242851
0.000526311
-0.000518902
-0.00241311
0.000503503
-0.000533552
-0.00239035
-0.000547423
-0.0023668
-0.000560485
-0.0023425
-0.000572715
-0.00231749
-0.000584088
-0.00229179
-0.00226543
-0.00225558
0.000557652
-0.00224637
0.000532133
0.000507515
-0.00223777
0.00227105
0.000498095
-0.00226162
0.00228109
0.000522087
0.000546954
-0.00230596
0.000535423
-0.0022951
0.000511227
-0.00228488
0.000487879
-0.000474959
-0.00227529
0.000465359
-0.000483781
-0.0022528
-0.00222975
-0.00222229
0.000460914
-0.00221535
0.000438897
0.000417713
-0.0022089
0.00223684
0.000410517
-0.00222965
0.00224455
0.000431188
0.000452662
-0.00226628
0.000443651
-0.00225782
0.000422736
0.000402597
-0.00224991
0.00227827
0.000393979
-0.00226965
0.00228743
0.000413569
0.00229718
0.000433906
0.00230753
0.000455008
0.00231851
0.000476892
0.00233016
0.000499577
0.000523081
-0.00235367
0.000509954
-0.00234126
0.000487163
0.000465161
-0.00232953
0.00236331
0.000452713
-0.00235087
0.00237646
0.000474012
0.000496069
-0.0023985
0.000481456
-0.00238464
0.000460153
-0.00237151
0.000439577
-0.000432156
-0.00235906
0.00041971
-0.000443931
-0.00233909
-0.00231845
-0.002308
0.000423454
-0.00229815
0.000403713
0.00038469
-0.00228886
0.00231744
0.000374755
-0.00230751
0.00232796
0.000393194
0.000412321
-0.00234728
0.000400536
-0.00233613
0.00038204
0.000364203
-0.00232558
0.00235418
0.000353061
-0.00234304
0.00236594
0.000370278
0.00237834
0.000388127
0.00239143
0.000406623
0.00240522
0.000425781
0.00241976
0.000445616
0.00243507
0.000466146
0.00245119
0.000487385
0.00246814
0.000509351
0.00248598
0.000532061
0.00250474
0.000555533
0.00252445
0.000579785
0.00254517
0.000604992
0.00256693
0.000630391
0.00258979
0.00065742
0.000685349
0.00264193
0.000660109
-0.00261669
0.000687326
0.00066034
-0.00266875
0.00272203
0.000632583
-0.00269427
0.000657951
0.00277673
0.000628125
-0.00274691
0.00280799
0.000652768
0.00284076
0.000678044
0.00287511
0.000703944
0.00291115
0.00073045
0.000757541
-0.00293779
0.000719117
-0.00290113
0.000693782
0.000668942
-0.00286613
0.00292535
0.000633375
-0.00288979
0.00296257
0.000656567
0.000680172
-0.00298544
0.000640788
-0.00294776
0.00061888
-0.00291169
0.00059731
-0.00061063
-0.00287718
0.000576119
-0.000644627
-0.00285579
-0.00283271
-0.0028008
0.000620857
-0.00277032
0.000597649
-0.000604121
-0.00274122
0.000575013
-0.00271844
-0.000607922
-0.00269128
0.000580758
-0.000634392
-0.0026678
-0.00264303
-0.000634027
-0.00261851
0.000609507
-0.0025933
-0.00257072
0.000607816
0.000583474
-0.0025492
0.00259546
0.00056092
-0.0025729
0.000584757
0.00264255
0.000560681
-0.00261847
0.000584251
0.000558313
-0.00266534
0.00271342
0.000531747
-0.00268685
0.000552957
0.00276253
0.000524571
-0.00273415
0.00279223
0.000545317
0.00282329
0.000566583
0.000588359
-0.00284416
0.000555335
-0.00281256
0.000534984
-0.00278233
0.000515084
-0.00275341
0.000495649
-0.0005046
-0.0027255
0.000476686
-0.002707
-0.000510328
-0.00268133
0.000484649
-0.000535938
-0.00266124
-0.0026406
-0.000537964
-0.002617
0.000514357
-0.00259552
-0.000538086
-0.00257362
0.000516191
-0.000559299
-0.00255169
-0.00252872
-0.00250922
0.000536029
-0.00249065
0.000513497
0.000491687
-0.00247299
0.00251223
0.000473354
-0.0024939
0.00253148
0.000494246
0.000515818
-0.00255275
0.000494944
-0.00253285
0.000474348
0.000454393
-0.00251389
0.00255247
0.000434842
-0.00253292
0.00257297
0.000453846
0.00259447
0.000473449
0.000493661
0.00263729
0.00047054
-0.00261417
0.000490398
0.000465379
-0.00265631
0.00269905
0.000440313
-0.00267398
0.0004582
0.0027432
0.000431033
-0.00271603
0.00277137
0.000448519
0.00280055
0.000466461
0.00283128
0.000484361
0.00286336
0.000502901
0.00289685
0.000521838
0.00293182
0.000541151
0.00296832
0.000560812
0.00300641
0.000580787
0.00304616
0.000601036
0.00308764
0.000621508
0.00313092
0.000642142
0.00317607
0.000662864
0.00322316
0.00068359
0.000704221
0.0032922
0.00065517
-0.00324315
0.000673603
0.00336066
0.00062282
-0.00330988
0.00341334
0.000638949
0.00065448
-0.0034282
0.000600453
-0.00337594
0.000586689
-0.00332544
0.00057232
-0.000606244
-0.00327669
0.000557486
-0.00326096
-0.000636459
-0.00321385
0.000589351
-0.00319602
-0.00315074
0.000617592
0.000598667
-0.00310727
0.00316851
0.000555057
-0.0031249
0.000572256
0.00322965
0.000526905
-0.0031843
0.000542312
0.00329044
0.000495379
-0.00324351
0.003339
0.000508928
0.00338919
0.000522126
0.00344103
0.000534857
0.000546994
-0.00345196
0.000494092
-0.00340056
0.000483457
0.000472252
-0.00335069
0.00341055
0.000422696
-0.00336099
0.00346153
0.000432477
0.0004415
-0.0034713
0.000389829
-0.00342051
0.000381686
-0.00337125
0.000373433
-0.000412483
-0.00332335
0.000364586
-0.000460591
-0.00331289
-0.00330235
-0.00325556
0.000448581
-0.00048158
-0.00321029
0.000436312
-0.00319819
-0.000511359
-0.00315444
0.000467617
-0.0031406
-0.000537837
-0.00309852
0.000495755
-0.000579772
-0.00308297
-0.00306553
-0.00302548
0.000560978
-0.00298704
0.000542349
0.000523935
-0.00295016
0.00300393
0.000486733
-0.00296673
0.00304266
0.000503619
0.000520671
-0.00305801
0.000480165
-0.00301904
0.000464647
-0.00298156
0.000449252
-0.000470056
-0.00294553
0.000434025
-0.00050578
-0.00293101
-0.00291479
-0.00288088
0.00048792
-0.00284836
0.000470382
0.000453415
-0.00281741
0.0028638
0.000421616
-0.00283201
0.00289671
0.000437471
0.000453626
-0.00291091
0.000419002
-0.00287765
0.000404212
0.00038968
-0.00284571
0.00288996
0.000357426
-0.0028577
0.00292352
0.000370649
0.00295843
0.000384093
0.00299472
0.000397733
0.00303243
0.00041154
0.0030716
0.000425478
0.00311226
0.000439504
0.00045357
0.00316654
0.000411319
-0.00312429
0.000423868
0.00322105
0.000380135
-0.00317731
0.00326624
0.000391123
0.000401931
-0.00327684
0.00035542
-0.00323173
0.000346009
-0.00318801
0.000336421
-0.000369032
-0.0031457
0.000326715
-0.00313503
-0.00039873
-0.00309417
0.000357872
-0.00308351
-0.00304419
0.000386153
0.000373637
-0.00300629
0.00305472
0.000335579
-0.00301667
0.000346707
0.00310477
0.000307153
-0.00306521
0.000316944
0.00316084
0.000275893
-0.00311979
0.00320325
0.000284312
0.00324701
0.000292663
0.00329212
0.000300899
0.00333857
0.000308967
0.00338634
0.00031681
0.00343542
0.000324361
0.00348573
0.000331378
0.000338285
0.00356738
0.000286666
-0.00351576
0.000292105
0.00367394
0.000239141
-0.00362098
0.00372768
0.000242828
0.00378223
0.000245996
0.000248734
-0.00383055
0.000193249
-0.00377584
0.000191292
0.000188881
-0.0037219
0.0037217
0.000136086
-0.0036689
0.00377519
0.0001378
0.00382926
0.000139177
0.00388377
0.000140189
0.00393856
0.000140797
0.00399344
0.000140962
0.000140652
-0.00374521
8.96443e-05
-0.0036941
8.98523e-05
8.97584e-05
-0.00364307
0.00337157
-0.00332518
0.00341801
-8.93835e-05
-0.00327898
-0.00359226
-0.00354183
8.87509e-05
-0.00349192
8.78846e-05
8.68072e-05
-0.00344264
0.0031877
-0.00314285
0.00323312
-8.55455e-05
-0.00309865
-0.000134096
-0.00339409
-0.00018607
-0.00361693
-0.00366882
-0.000234876
-0.00361686
0.000182912
-0.00356919
-0.00028121
-0.00351848
0.000230504
-0.0034656
0.000275224
-0.00341646
0.000225668
-0.00346892
0.00356581
0.000175731
-0.00351587
0.000179452
0.00356586
0.000129378
-0.00351579
0.000131845
-0.00334636
8.41203e-05
-0.00329958
8.2598e-05
-0.000126657
-0.00325376
8.08323e-05
-0.00346671
-0.0001718
-0.00341889
0.000123971
-0.00022058
-0.00346709
-0.000268915
-0.00342059
-0.00336857
-0.00332195
0.000262349
-0.00327663
0.00025558
0.000248661
-0.00323263
0.00332763
0.000204119
-0.00328309
0.00337348
0.000209728
0.00021524
-0.00341954
0.000167692
-0.00337326
0.000163447
0.000159098
-0.00332824
0.00332658
0.00011486
-0.00328234
0.0033721
0.000117925
0.000120906
0.00320892
7.71794e-05
-0.00316519
7.91268e-05
0.00297074
-0.00292988
0.00301251
0.00305517
-0.00289
-7.53236e-05
-0.0028511
-0.00312259
7.32609e-05
-0.00308099
-0.00281326
-7.13113e-05
-0.00277643
-0.000111569
-0.00304073
-0.000154669
-0.00323924
-0.000198399
-0.00328451
-0.000241634
-0.00323985
-0.00318995
-0.0031486
0.000234541
-0.000267446
-0.00310857
0.000227416
-0.00308009
-0.000297383
-0.00304171
0.000259006
-0.00302702
-0.000324526
-0.00299016
0.000287667
-0.000361221
-0.00297997
-0.00296978
-0.00293463
0.00034894
-0.0029008
0.000336823
0.000324893
-0.00286827
0.00291056
0.000292118
-0.00287779
0.00294461
0.000302771
0.000313581
-0.00295462
0.000278036
-0.00292036
0.000268515
0.000259124
-0.00288737
0.0029344
0.000225884
-0.00290116
0.00296889
0.000234024
0.00300465
0.000242271
0.000250606
0.00306985
0.000213191
-0.00303244
0.00022029
0.00315732
0.000180989
-0.00311802
0.00319793
0.000186806
0.000192618
-0.00324208
0.00015019
-0.00320096
0.000145683
-0.00316114
0.000141169
-0.000175188
-0.00312262
0.000136665
-0.00308002
-0.000206141
-0.0030433
0.000169424
-0.00299631
-0.00296145
0.000199161
0.000192268
-0.00292784
0.00300786
0.000158071
-0.00297366
0.000163714
0.00308538
0.000127748
-0.00304942
0.000132187
0.00307971
9.54573e-05
-0.00304299
0.0031177
9.86805e-05
0.00315694
0.000101922
0.00319746
0.000105168
0.000108408
-0.00300155
6.92272e-05
-0.00296355
6.71627e-05
6.50958e-05
-0.00292672
0.00270598
-0.00267238
0.00274067
-6.30299e-05
-0.00263982
-0.00289107
-0.00285659
6.09754e-05
-9.22608e-05
-0.00282327
5.8937e-05
-0.0030075
-0.000123361
-0.00297328
8.9143e-05
-0.00301471
-0.000152508
-0.00298124
0.000119034
-0.000185476
-0.00294069
-0.000217869
-0.00289544
-0.000249884
-0.00286914
-0.000281642
-0.00285561
-0.00031317
-0.00284626
-0.000344444
-0.002837
-0.000375427
-0.00282672
-0.000406078
-0.00281506
-0.000436139
-0.00280195
-0.00278709
-0.00275849
0.000419911
-0.0027313
0.00040385
-0.000414523
-0.00270506
0.000388281
-0.00269025
-0.000422688
-0.00266559
0.000398027
-0.00044687
-0.0026498
-0.00263264
-0.000451378
-0.00261003
0.00042877
-0.0025921
-0.00257103
0.000432781
0.000414742
-0.00255094
0.00258845
0.000394132
-0.00256784
0.000411192
0.00262669
0.000389113
-0.00260462
0.000405659
0.000382078
-0.00264201
0.00267995
0.000358054
-0.00265593
0.000372916
0.00271844
0.000347387
-0.00269291
0.00274528
0.000361433
0.00277311
0.000376022
0.000391073
-0.00278564
0.000361648
-0.00275744
0.000347815
-0.0027304
0.000334398
-0.00270449
0.000321475
-0.000333615
-0.00267967
0.000308795
-0.00266847
-0.000343596
-0.00264509
0.000320211
-0.000366572
-0.00263296
-0.00261947
-0.000373044
-0.00259793
0.000351505
-0.00258353
-0.000377583
-0.0025634
0.000357448
-0.000397253
-0.00254817
-0.000416427
-0.00253176
-0.000435066
-0.00251429
-0.000453131
-0.00249583
-0.000470583
-0.00247645
-0.00245619
-0.00244022
0.00045017
-0.00242503
0.000430432
0.000411354
-0.00241061
0.00244405
0.000396329
-0.00242902
0.00245984
0.000414632
0.000433561
-0.00247863
0.000416356
-0.00246225
0.00039825
-0.00244666
0.000380736
-0.000378639
-0.00243182
0.000363803
-0.000392922
-0.00241474
-0.00239691
-0.00238391
0.000375121
-0.00237157
0.000357937
0.000341354
-0.00235986
0.00238828
0.000329111
-0.00237604
0.00240117
0.000345043
0.000361548
-0.00241771
0.000347437
-0.0024043
0.000331626
0.000316358
-0.00239155
0.00241961
0.000303128
-0.00240638
0.00243352
0.000317719
0.00244813
0.000332823
0.00246348
0.00034845
0.0024796
0.000364614
0.00249652
0.000381323
0.000398591
-0.00251348
0.000380306
-0.00249605
0.000363891
0.000347998
-0.00247944
0.0025115
0.000330929
-0.00249444
0.0025294
0.00034599
0.000361538
-0.00254418
0.00034232
-0.00252585
0.000327652
-0.00250836
0.000313438
-0.000316347
-0.00249168
0.000299669
-0.000332619
-0.00247817
-0.00246361
-0.00244853
0.000317742
-0.00243417
0.000303358
0.000289457
-0.0024205
0.00244789
0.000275385
-0.00243383
0.00246266
0.000288585
0.000302236
-0.00247579
0.000286338
-0.00246064
0.000273436
0.000260953
-0.00244621
0.00247227
0.000246189
-0.00245751
0.00248777
0.000257937
0.00250403
0.000270075
0.00252109
0.00028261
0.00253897
0.00029555
0.00255772
0.000308903
0.00257736
0.000322676
0.000336875
0.00261099
0.000315885
-0.00259001
0.00032954
0.000307173
-0.00262273
0.00265591
0.000284431
-0.00263317
0.000296446
0.0026896
0.000272334
-0.00266549
0.00271477
0.000283624
0.00274103
0.000295212
0.00276841
0.000307016
0.0027968
0.000319426
0.00033172
-0.00280695
0.000301671
-0.00277808
0.000290555
0.000279322
-0.00275039
0.00278681
0.000251353
-0.00275884
0.00281595
0.000261412
0.000271359
-0.00282506
0.000240807
-0.00279567
0.000232022
-0.00276745
0.000223132
-0.00024178
-0.00274034
0.000214669
-0.000268636
-0.00273199
-0.00272381
-0.00269833
0.000258139
-0.00267391
0.000247907
-0.000261343
-0.00265051
0.000237943
-0.0026424
-0.000272747
-0.00262031
0.000250652
-0.000294501
-0.00261142
-0.00260134
-0.000302627
-0.00258091
0.000282192
-0.00256996
-0.00255082
0.000289761
0.000277282
-0.00253256
0.0025614
0.00025865
-0.00254277
0.000270244
0.00259062
0.00025037
-0.00257075
0.000261395
0.000240261
-0.00259918
0.0026281
0.000218819
-0.00260667
0.000228247
0.00265784
0.000205561
-0.00263516
0.00268152
0.000214261
0.00270623
0.000223198
0.000232372
-0.00271432
0.000206348
-0.00268935
0.000198231
-0.00266542
0.00019032
-0.00264248
0.000182618
-0.0001971
-0.0026205
0.000175125
-0.00261344
-0.000209659
-0.00259266
0.000188877
-0.000230166
-0.00258616
-0.00257898
-0.000239671
-0.00255968
0.000220366
-0.00255178
-0.000247407
-0.00253366
0.000229291
-0.000265185
-0.00252499
-0.00251513
-0.00249852
0.000253461
-0.00248269
0.000242105
0.000231108
-0.00246762
0.00249189
0.000215716
-0.0024765
0.00250804
0.000225947
0.000236508
-0.00251639
0.000219227
-0.00249991
0.000209472
0.00020002
-0.00248422
0.00250688
0.000184029
-0.00249089
0.00252366
0.000192694
0.00254124
0.000201635
0.000210857
0.00256656
0.00019213
-0.00254784
0.000200764
0.000180889
-0.00257279
0.00259947
0.000160764
-0.00257935
0.000167841
0.00263161
0.000146543
-0.00261032
0.00265385
0.000152884
0.00267706
0.000159407
0.00270127
0.000166109
0.00272651
0.000172991
0.0027528
0.000180051
0.00278018
0.000187285
0.00280867
0.00019464
0.00283833
0.000202364
0.000209992
-0.00286425
0.000178799
-0.00283421
0.000172326
0.000165772
-0.00280535
0.00287827
0.000136426
-0.00284893
0.00290901
0.000141588
0.000147109
-0.0029489
0.000114773
-0.00291791
0.000110589
-0.00288799
0.000106513
-0.000131236
-0.00285923
0.000102469
-0.000159528
-0.00282064
-0.00277759
-0.00275093
0.000153385
-0.00272533
0.000147388
0.000141541
-0.00270076
0.00276733
0.000116473
-0.00274227
0.00279345
0.000121273
0.000126195
-0.00283158
9.8542e-05
-0.00280502
9.47069e-05
9.09655e-05
-0.00277951
0.00276604
6.57353e-05
-0.00274082
0.00279231
6.84383e-05
0.00281965
7.12054e-05
0.00284807
7.40384e-05
0.00287767
7.69158e-05
0.00290836
7.98928e-05
0.00294023
8.29087e-05
8.59786e-05
0.00279102
5.4931e-05
-0.00275997
5.68924e-05
0.00257792
-0.00254856
0.00260835
-0.00252019
-5.29731e-05
-0.00249285
-0.00273004
-0.00270119
5.10481e-05
4.91701e-05
-0.00267345
0.0024665
-0.00244111
-4.7314e-05
-0.00241668
-0.00264673
-0.00262103
4.5503e-05
-0.00259633
4.37362e-05
4.20125e-05
-0.00257261
0.00237061
-0.00234894
0.00239319
-4.03303e-05
-0.00232812
-6.31104e-05
-0.00254983
-8.73195e-05
-0.00271661
-0.000111796
-0.00275504
-0.000135844
-0.00271822
-0.0026772
-0.00265462
0.0001303
-0.00263299
0.000124908
-0.00014038
-0.00261228
0.000119668
-0.00258994
-0.000153893
-0.00257045
0.000134396
-0.000173135
-0.00256011
-0.0025538
-0.000183755
-0.00253566
0.000165612
-0.00252996
-0.00251291
0.000175634
0.000167763
-0.00249664
0.00251834
0.000151243
-0.00250183
0.000158316
0.00254173
0.000140758
-0.00252417
0.000147225
0.000128588
-0.00255181
0.00259247
0.000109638
-0.00257352
0.000114578
0.00265193
9.43285e-05
-0.00263168
0.00267308
9.85099e-05
0.00269517
0.000102815
0.000107243
-0.00273157
8.37696e-05
-0.00270907
8.03162e-05
-0.00268752
7.69592e-05
-0.0026669
7.36978e-05
-9.02692e-05
-0.00264716
7.05314e-05
-0.00261231
-0.000104845
-0.0025938
8.63305e-05
-0.000122954
-0.00255542
-0.00253401
-0.000134487
-0.00251702
0.00011749
-0.00250742
-0.000144388
-0.00249144
0.000128409
-0.000160136
-0.00248608
-0.000175634
-0.00248115
-0.000190864
-0.00247567
-0.00020581
-0.00246928
-0.000220463
-0.00246185
-0.000234822
-0.00245326
-0.000248882
-0.00244346
-0.000262627
-0.00243247
-0.000276026
-0.00242043
-0.000289038
-0.0024075
-0.00030162
-0.0023938
-0.000313737
-0.00237943
-0.000325359
-0.00236442
-0.000336459
-0.00234876
-0.000347011
-0.00233249
-0.00035699
-0.0023156
-0.000366368
-0.00229813
-0.000375118
-0.00228011
-0.000383215
-0.00226155
-0.000390632
-0.00224249
-0.000397343
-0.00222294
-0.00220292
-0.00219738
0.000377768
-0.00219225
0.000358967
0.00034092
-0.0021875
0.00221086
0.000335495
-0.00220544
0.00221668
0.000353141
0.000371513
-0.00223555
0.000364571
-0.00222906
0.000346647
-0.00222298
0.000329422
-0.000318554
-0.00221731
0.000312876
-0.000323604
-0.00220039
-0.00218311
-0.00217904
0.000306996
-0.00217527
0.000291073
0.000275812
-0.00217179
0.00219132
0.000271742
-0.00218725
0.00219569
0.0002867
0.000302297
-0.002212
0.000296989
-0.00220704
0.000281739
0.000267105
-0.0022024
0.00222242
0.000261923
-0.00221724
0.00222795
0.000276213
0.00223384
0.000291096
0.00224012
0.000306594
0.00224682
0.000322725
0.00225395
0.00033951
0.000356968
-0.00227187
0.000348729
-0.00226412
0.000331755
0.000315429
-0.00225682
0.00228094
0.000307558
-0.00227307
0.00228929
0.000323408
0.00033988
-0.00230617
0.000330447
-0.00229726
0.000314495
-0.00228884
0.000299137
-0.00029231
-0.00228089
0.000284358
-0.00029973
-0.00226565
-0.00224996
-0.00224351
0.000284642
-0.00223744
0.000270144
0.000256217
-0.00223174
0.00225207
0.000250008
-0.00224587
0.00225866
0.000263554
0.000277648
-0.00227338
0.00027014
-0.0022663
0.000256465
-0.00225961
0.000243317
-0.000236993
-0.0022533
0.000230679
-0.000242843
-0.00224002
-0.000248207
-0.00222637
-0.000253066
-0.00221239
-0.000257399
-0.00219807
-0.000261187
-0.00218346
-0.00216857
-0.00216559
0.000247175
-0.00216283
0.000233752
0.000220893
-0.00216027
0.00217665
0.000217837
-0.0021736
0.00217994
0.00023047
0.00024365
-0.00219402
0.000239599
-0.00219024
0.000226683
-0.0021867
0.000214297
-0.000205727
-0.00218339
0.000202417
-0.000208574
-0.00217075
-0.00215791
-0.00215571
0.00019677
-0.00215368
0.000185459
0.000174616
-0.0021518
0.00216563
0.000172313
-0.00216333
0.0021681
0.000182988
0.000194118
-0.0021803
0.000191023
-0.00217741
0.000180093
0.000169606
-0.0021747
0.00218898
0.000166508
-0.00218588
0.00219228
0.000176789
0.0021958
0.0001875
0.00219955
0.00019866
0.00220356
0.00021029
0.00220783
0.000222411
0.000235043
-0.00222133
0.00023
-0.00221659
0.000217671
0.000205834
-0.00221214
0.00222932
0.000200947
-0.00222444
0.00223451
0.000212481
0.00022449
-0.00224734
0.000218532
-0.00224172
0.00020686
-0.00223642
0.000195645
-0.000189869
-0.00223143
0.000184869
-0.000194472
-0.00221984
-0.00220795
-0.00220402
0.000183563
-0.00220032
0.00017309
0.000163032
-0.00219685
0.00221143
0.000159192
-0.00220759
0.00221551
0.00016901
0.000179229
-0.00222671
0.000174515
-0.00222227
0.000164565
0.000155002
-0.00221808
0.00223283
0.000150479
-0.00222831
0.00223763
0.000159771
0.0022427
0.000169435
0.00224808
0.000179489
0.00225377
0.000189948
0.0022598
0.000200829
0.00226618
0.000212148
0.00227294
0.000223922
0.00228008
0.000236168
0.00228765
0.000248901
0.00229564
0.000262139
0.0023041
0.000275897
0.00231305
0.000290192
0.0023225
0.00030504
0.000320457
-0.00233824
0.000309936
-0.00232828
0.00029507
0.000280748
-0.00231883
0.00234293
0.000270827
-0.00233301
0.00235339
0.000284609
0.000298908
-0.00236793
0.000287398
-0.002357
0.000273681
-0.00234663
0.000260454
-0.000257548
-0.00233679
0.000247704
-0.000266953
-0.00232361
-0.00230989
-0.00230143
0.00025367
-0.00229341
0.000240885
0.000228582
-0.00228583
0.00230626
0.000220581
-0.00229826
0.0023147
0.000232439
0.000244756
-0.00232745
0.000235418
-0.0023186
0.000223583
0.000212184
-0.00231021
0.00233044
0.000203411
-0.00232167
0.00233969
0.000214337
0.00234942
0.000225677
0.00235968
0.000237445
0.00237048
0.000249652
0.00238184
0.000262312
0.000275436
-0.00239512
0.000263056
-0.00238335
0.000250536
0.000238454
-0.00237215
0.00239554
0.000226902
-0.00238399
0.00240768
0.000238395
0.000250301
-0.00241939
0.000237212
-0.00240693
0.000225935
-0.00239507
0.000215042
-0.000215809
-0.00238379
0.000204522
-0.0002268
-0.002373
-0.00236151
-0.0023514
0.000215561
-0.00234179
0.000204726
0.000194284
-0.00233267
0.00235262
0.000184835
-0.00234317
0.00236255
0.000194786
0.000205108
-0.00237305
0.000194367
-0.00236284
0.000184567
-0.00235312
0.000175114
-0.000175243
-0.00234388
0.000165997
-0.000184222
-0.0023342
-0.000192887
-0.002324
-0.000201209
-0.00231336
-0.000209167
-0.00230225
-0.000216744
-0.00229068
-0.00227865
-0.00227187
0.000205358
-0.00226545
0.000194407
0.000183876
-0.00225938
0.00227672
0.000177447
-0.0022703
0.00228351
0.000187615
0.000198183
-0.00229472
0.000190642
-0.00228758
0.000180471
-0.00228081
0.000170682
-0.000167666
-0.00227441
0.000161261
-0.000173748
-0.00226422
-0.00225364
-0.00224822
0.00016401
-0.0022431
0.000154645
0.000145638
-0.00223826
0.00225303
0.000140496
-0.00224789
0.00225847
0.000149205
0.000158257
-0.00226835
0.000152195
-0.00226262
0.000143469
0.000135071
-0.0022572
0.00227184
0.000129379
-0.00226615
0.00227785
0.000137453
0.0022842
0.000145838
0.00229091
0.000154548
0.00229799
0.000163595
0.00230547
0.000172992
0.000182752
-0.00231579
0.000174529
-0.00230799
0.000165193
0.0001562
-0.0023006
0.00231758
0.000148515
-0.00230989
0.00232567
0.000157094
0.000166
-0.00233509
0.000157207
-0.00232673
0.000148736
-0.0023188
0.000140573
-0.000140251
-0.00231126
0.000132708
-0.00014754
-0.00230261
-0.00229359
-0.00228696
0.0001392
-0.00228068
0.000131168
0.000123432
-0.00227473
0.00228916
0.000117237
-0.00228297
0.0022957
0.000124623
0.00013229
-0.0023041
0.000125132
-0.00229732
0.000117835
-0.00229089
0.000110805
-0.000110121
-0.00228481
0.000104033
-0.000115981
-0.00227712
-0.000121606
-0.00226911
-0.000126988
-0.00226077
-0.000132116
-0.00225207
-0.000136974
-0.00224304
-0.000141544
-0.00223369
-0.00014581
-0.00222405
-0.000149757
-0.00221414
-0.00015337
-0.00220398
-0.000156635
-0.00219359
-0.000159541
-0.00218298
-0.000162072
-0.00217217
-0.000164219
-0.00216119
-0.00215005
-0.00214843
0.000154243
-0.00214692
0.000144667
0.000135467
-0.00214553
0.00215732
0.00013373
-0.00215559
0.00215919
0.000142802
0.000152243
-0.0021698
0.000149875
-0.00216759
0.000140589
-0.00216553
0.000131662
-0.000125004
-0.0021636
0.000123072
-0.000126621
-0.00215397
-0.00214423
-0.00214304
0.000118106
-0.00214193
0.000109899
0.000101978
-0.0021409
0.00215107
0.000100681
-0.00214978
0.00215247
0.000108501
0.000116601
-0.0021618
0.0001148
-0.00216012
0.000106823
9.91209e-05
-0.00215856
0.00216904
9.73036e-05
-0.00216723
0.00217099
0.000104872
0.00217308
0.000112709
0.00217532
0.000120836
0.0021777
0.000129272
0.00218025
0.000138037
0.000147152
-0.00219052
0.000144085
-0.00218764
0.000135158
0.000126571
-0.00218494
0.00219739
0.000123571
-0.00219439
0.00220058
0.000131964
0.000140687
-0.00221043
0.00013697
-0.00220693
0.000128466
-0.00220364
0.000120281
-0.000115489
-0.00220056
0.000112398
-0.000118305
-0.00219158
-0.00218242
-0.00218005
0.00011034
-0.00217783
0.000102657
9.52373e-05
-0.00217577
0.00218647
9.29303e-05
-0.00218417
0.00218894
0.000100186
0.0001077
-0.00219766
0.0001048
-0.00219495
9.74704e-05
-0.00219241
9.03915e-05
-8.59129e-05
-0.00219004
8.35462e-05
-8.80614e-05
-0.00218202
-8.99835e-05
-0.00217385
-9.16717e-05
-0.00216554
-9.31186e-05
-0.00215711
-9.43177e-05
-0.00214858
-0.00213996
-0.00213909
8.6895e-05
-0.0021383
7.96848e-05
7.26607e-05
-0.00213758
0.00214647
7.17373e-05
-0.00214554
0.00214748
7.86714e-05
8.579e-05
-0.00215578
8.44532e-05
-0.00215455
7.74424e-05
-0.00215343
7.06148e-05
-6.49665e-05
-0.00215241
6.39498e-05
-6.58007e-05
-0.00214471
-0.00213693
-0.00213636
5.90956e-05
-0.00213585
5.2575e-05
4.63171e-05
-0.00213542
0.00214331
4.57521e-05
-0.00214275
0.00214397
5.19204e-05
5.83503e-05
-0.00215151
5.74399e-05
-0.0021507
5.11171e-05
4.50562e-05
-0.00215001
0.00215801
4.4231e-05
-0.00215719
0.00215896
5.01677e-05
0.00216003
5.63673e-05
0.00216123
6.27548e-05
0.00216254
6.92978e-05
0.00216398
7.60033e-05
8.28907e-05
-0.00217207
8.11091e-05
-0.00217043
7.43598e-05
6.77915e-05
-0.00216892
0.00217819
6.61015e-05
-0.0021765
0.00218003
7.25184e-05
7.91153e-05
-0.00218785
7.6917e-05
-0.00218582
7.04859e-05
-0.00218395
6.42339e-05
-5.98475e-05
-0.00218225
5.81453e-05
-6.13858e-05
-0.00217497
-0.00216756
-0.00216633
5.51362e-05
-0.00216523
4.90751e-05
4.3278e-05
-0.00216428
0.00217235
4.21991e-05
-0.00217127
0.00217358
4.78421e-05
5.37503e-05
-0.00218072
5.22142e-05
-0.00217935
4.64722e-05
4.09965e-05
-0.00217815
0.00218622
3.96727e-05
-0.0021849
0.00218772
4.49692e-05
0.0021894
5.05324e-05
0.00219126
5.62846e-05
0.0021933
6.21951e-05
0.00219551
6.82694e-05
0.0021979
7.45218e-05
0.00220048
8.09699e-05
0.00220324
8.763e-05
0.00220619
9.45186e-05
0.00220933
0.000101652
0.00221268
0.000109045
0.00221625
0.000116716
0.00222003
0.000124678
0.000132949
-0.00222938
0.000128637
-0.00222532
0.000120613
0.000112886
-0.00222149
0.00223413
0.000108807
-0.00223006
0.00223846
0.000116285
0.00012405
-0.00224723
0.000119206
-0.00224266
0.000111712
-0.00223835
0.000104493
-0.0001016
-0.00223429
9.75359e-05
-0.000105442
-0.00222622
-0.00221789
-0.00221451
9.82653e-05
-0.00221133
9.13416e-05
8.46558e-05
-0.00220836
0.00221922
8.14794e-05
-0.00221605
0.00222261
8.79506e-05
9.46531e-05
-0.00223047
9.08288e-05
-0.00222688
8.43585e-05
7.81125e-05
-0.00222352
0.00223429
7.45684e-05
-0.00223075
0.00223807
8.05791e-05
0.00224209
8.6807e-05
0.00224636
9.32634e-05
0.00225089
9.99597e-05
0.00225569
0.000106908
0.000114119
-0.0022638
0.000108803
-0.00225878
0.000101887
9.52217e-05
-0.00225405
0.00226635
9.0287e-05
-0.00226142
0.00227158
9.66563e-05
0.000103264
-0.00227906
9.75078e-05
-0.00227362
9.12195e-05
-0.0022685
8.5158e-05
-8.41462e-05
-0.00226367
7.93139e-05
-8.8797e-05
-0.00225678
-0.00224959
-0.00224539
8.2602e-05
-0.00224144
7.66266e-05
7.08607e-05
-0.00223773
0.00224829
6.70016e-05
-0.00224444
0.0022524
7.25126e-05
7.82245e-05
-0.00225913
7.36781e-05
-0.00225486
6.8242e-05
-0.00225086
6.29978e-05
-6.16829e-05
-0.00224712
5.79378e-05
-6.52942e-05
-0.00224083
-6.87635e-05
-0.00223427
-7.20784e-05
-0.00222744
-7.52257e-05
-0.00222037
-7.81931e-05
-0.00221308
-0.00220559
-0.00220301
7.19384e-05
-0.00220062
6.58765e-05
5.99919e-05
-0.00219842
0.00220776
5.76316e-05
-0.00220541
0.00221032
6.33156e-05
6.91756e-05
-0.00221744
6.62435e-05
-0.00221473
6.05955e-05
-0.00221222
5.51224e-05
-5.21124e-05
-0.00220992
4.98144e-05
-5.42715e-05
-0.00220325
-0.0021964
-0.00219458
4.87101e-05
-0.00219295
4.33371e-05
3.82306e-05
-0.00219151
0.00219954
3.66738e-05
-0.00219798
0.00220129
4.15807e-05
4.67529e-05
-0.00220784
4.46669e-05
-0.00220597
3.97053e-05
3.50062e-05
-0.0022043
0.00221222
3.32329e-05
-0.00221045
0.00221421
3.7717e-05
0.00221641
4.24593e-05
0.00221884
4.73857e-05
0.00222149
5.24735e-05
0.00222435
5.77267e-05
6.31532e-05
-0.00223103
5.99173e-05
-0.00222803
5.47207e-05
4.96955e-05
-0.00222525
0.00223434
4.67999e-05
-0.00223144
0.00223746
5.15896e-05
5.65483e-05
-0.00224363
5.30553e-05
-0.00224039
4.83435e-05
-0.00223739
4.37971e-05
-4.21753e-05
-0.00223463
3.94144e-05
-4.48358e-05
-0.00222878
-0.00222271
-0.00222039
4.01386e-05
-0.0022183
3.56233e-05
3.13605e-05
-0.00221643
0.00222417
2.93965e-05
-0.00222221
0.00222636
3.3433e-05
3.77142e-05
-0.00223211
3.51959e-05
-0.00222984
3.11554e-05
2.73497e-05
-0.00222779
0.00223528
2.52286e-05
-0.00223316
0.00223763
2.87993e-05
0.00224024
3.25916e-05
0.00224309
3.65602e-05
0.00224619
4.06929e-05
0.00224954
4.49864e-05
0.00225315
4.94404e-05
0.00225703
5.40592e-05
0.00226117
5.8848e-05
0.0022656
6.3813e-05
0.00227031
6.89612e-05
0.00227532
7.43003e-05
0.00228064
7.98386e-05
0.00228627
8.55851e-05
0.00229222
9.15494e-05
0.00229851
9.77409e-05
0.00230514
0.000104169
0.00231213
0.000110844
0.00231948
0.000117774
0.00232722
0.000124967
0.00233535
0.000132433
0.0023439
0.000140179
0.00235289
0.000148214
0.00236234
0.000156544
0.00237227
0.000165179
0.00238271
0.000174125
0.00239368
0.000183391
0.00240521
0.000192986
0.00241734
0.000202917
0.00243007
0.000213195
0.000223826
-0.0024396
0.000210161
-0.0024266
0.000200193
0.000190552
-0.00241424
0.00243465
0.00017795
-0.00242206
0.00244791
0.000186935
0.000196218
-0.00245506
0.000181998
-0.00244154
0.000173414
-0.0024287
0.000165103
-0.000169257
-0.00241651
0.000157059
-0.000181229
-0.00241009
-0.00240249
-0.00239131
0.000172215
-0.0023807
0.000163501
0.00015508
-0.0023706
0.00238794
0.000144837
-0.0023777
0.00239872
0.000152709
0.000160846
-0.00240494
0.000149272
-0.00239397
0.000141734
0.000134437
-0.00238357
0.00239891
0.000123853
-0.00238833
0.00241008
0.000130555
0.00242187
0.000137476
0.0024343
0.000144623
0.0024474
0.000152005
0.00246118
0.000159629
0.000167503
-0.0024664
0.000152747
-0.00245236
0.000145591
0.000138661
-0.00243902
0.00245682
0.000125085
-0.00244324
0.00247109
0.000131315
0.000137747
-0.00247622
0.00012252
-0.00246173
0.000116816
-0.00244794
0.000111291
-0.000119052
-0.00243483
0.00010594
-0.000131951
-0.00243035
-0.00242635
-0.00241434
0.000125453
-0.00240295
0.00011916
0.000113065
-0.00239216
0.00240651
0.000102071
-0.00239552
0.00241811
0.000107551
0.000113209
-0.00242238
0.000100758
-0.00241058
9.57389e-05
-0.00239939
9.08776e-05
-9.67608e-05
-0.0023888
8.61678e-05
-0.00010716
-0.00238512
-0.000117361
-0.00238197
-0.000127373
-0.00237832
-0.000137224
-0.00237373
-0.000146944
-0.00236798
-0.00236101
-0.00235188
0.000139085
-0.0023432
0.000131497
0.000124173
-0.00233495
0.00235001
0.000115855
-0.0023417
0.00235876
0.000122739
0.00012986
-0.0023644
0.000120533
-0.00235558
0.00011391
-0.00234723
0.000107496
-0.000109202
-0.00233931
0.000101286
-0.000117107
-0.0023338
-0.00232709
-0.00231961
0.000110293
-0.0023125
0.000103725
9.73969e-05
-0.00230573
0.00231914
9.05867e-05
-0.00231233
0.00232628
9.65717e-05
0.000102776
-0.00233182
9.52729e-05
-0.0023247
8.9454e-05
8.38261e-05
-0.00231795
0.00232898
7.71382e-05
-0.00232229
0.00233605
8.23729e-05
0.00234355
8.77688e-05
0.0023515
9.33303e-05
0.00235993
9.90631e-05
0.00236886
0.000104974
0.00011107
-0.00237234
0.000101437
-0.00236326
9.58874e-05
9.0504e-05
-0.0023547
0.00236605
8.1782e-05
-0.00235733
0.00237531
8.66239e-05
9.16143e-05
-0.00237879
8.16031e-05
-0.00236935
7.71771e-05
-0.00236046
7.28832e-05
-7.70807e-05
-0.0023521
6.87143e-05
-8.52783e-05
-0.00234914
-0.00234666
-0.00233909
8.02024e-05
-0.002332
7.52688e-05
7.04711e-05
-0.00232533
0.00233426
6.37416e-05
-0.00232754
0.00234146
6.80684e-05
7.25122e-05
-0.00234425
6.46634e-05
-0.00233691
6.07228e-05
5.68851e-05
-0.00233006
0.00234348
4.98658e-05
-0.00233646
0.00235099
5.32072e-05
0.00235901
5.66389e-05
0.00236755
6.01676e-05
0.00237663
6.37998e-05
0.00238626
6.75416e-05
0.00239645
7.13989e-05
0.00240724
7.53774e-05
0.00241863
7.94827e-05
0.00243064
8.37201e-05
0.0024433
8.80947e-05
0.00245662
9.26116e-05
0.00247063
9.72755e-05
0.00248536
0.000102091
0.00250081
0.000107063
0.000112194
0.00253813
9.56905e-05
-0.00252163
0.000100197
8.25104e-05
-0.00257612
0.00262829
6.44784e-05
-0.00261027
6.74587e-05
0.00260984
4.87693e-05
-0.00259116
0.00262938
5.0988e-05
0.0026498
5.32743e-05
0.00267113
5.56288e-05
0.00269339
5.80552e-05
6.05419e-05
-0.00252797
3.8683e-05
-0.00250704
3.71194e-05
3.55565e-05
-0.00248697
0.00228899
-0.00227064
0.00230815
-3.40544e-05
-0.00225306
-0.00246775
-0.00244936
3.25908e-05
-0.00243177
3.11753e-05
-4.66172e-05
-0.00241496
2.98007e-05
-0.0025733
-6.15889e-05
-0.00255625
4.45306e-05
-7.88069e-05
-0.00259305
-0.00255924
-9.13236e-05
-0.00254314
7.52176e-05
-0.00250589
-0.0024909
8.70928e-05
8.29945e-05
-0.00247662
0.00252779
6.8371e-05
-0.00251317
7.17399e-05
0.00257663
5.60747e-05
-0.00256097
5.87883e-05
4.25081e-05
-0.00253997
0.0023989
2.71759e-05
-0.00238357
2.84678e-05
0.00220477
-0.00219008
0.00222015
0.00223624
-0.00217606
-2.59239e-05
-0.00216269
-4.05484e-05
-0.00236895
-0.00252445
-5.34458e-05
-0.00250966
3.86498e-05
-0.00254605
-6.51079e-05
-0.00253184
5.08994e-05
-7.90251e-05
-0.00249926
-0.00246304
-0.00245013
7.51808e-05
-0.00243787
7.14574e-05
6.78509e-05
-0.00242625
0.00247347
5.59217e-05
-0.00246154
0.00248603
5.88866e-05
6.19476e-05
-0.00251833
4.84332e-05
-0.0025055
4.60445e-05
4.37307e-05
-0.00249331
0.00246944
3.16331e-05
-0.00245735
0.00248217
3.33042e-05
0.00249557
3.50295e-05
3.68107e-05
0.00235502
2.35362e-05
-0.00234175
2.47111e-05
-0.00214994
-0.00213779
-2.23983e-05
-0.00212624
-0.00232912
-0.00231712
2.12961e-05
2.02285e-05
-0.00230572
0.00211525
-0.00210482
-1.91942e-05
-0.00209493
-3.00141e-05
-0.0022949
-4.14892e-05
-0.00244588
-5.30494e-05
-0.00248176
-6.43569e-05
-0.00245024
-0.00241523
-0.00240481
6.09709e-05
-0.00239496
5.76883e-05
5.45043e-05
-0.00238567
0.00242943
4.49504e-05
-0.00241988
0.00243954
4.75675e-05
5.02658e-05
-0.00247082
3.9317e-05
-0.00246047
3.72113e-05
-0.00245069
3.51693e-05
-4.24107e-05
-0.00244147
3.31878e-05
-5.14141e-05
-0.00241088
-0.00237692
-0.0023687
4.84125e-05
-0.002361
4.54942e-05
4.26538e-05
-0.00235379
0.00239448
3.52139e-05
-0.00238704
0.00240242
3.75467e-05
3.99442e-05
-0.0024328
3.12636e-05
-0.00242465
2.93935e-05
2.75743e-05
-0.00241702
0.00238912
1.99668e-05
-0.00238152
0.00239723
2.12781e-05
0.00240586
2.26294e-05
0.00241502
2.40176e-05
0.00242473
2.54523e-05
0.00243501
2.69246e-05
2.84439e-05
-0.00228466
1.81911e-05
-0.00227495
1.72087e-05
1.62801e-05
-0.00226578
0.00207666
-0.00206827
0.00208554
-1.53761e-05
-0.00206034
-0.00225714
-0.002249
1.44753e-05
-0.00224134
1.36151e-05
1.27756e-05
-0.00223415
0.00204585
-0.00203926
0.00205288
-1.19589e-05
-0.0020331
-1.8687e-05
-0.00222743
-2.58026e-05
-0.00237441
-3.29413e-05
-0.00240989
-3.98854e-05
-0.00238011
-4.66078e-05
-0.00234707
-5.31425e-05
-0.00232993
-5.95247e-05
-0.00232369
-6.58042e-05
-0.00232126
-7.20623e-05
-0.00231908
-7.83877e-05
-0.00231597
-8.48175e-05
-0.00231152
-9.13031e-05
-0.00230585
-0.0022993
-0.00229319
8.54363e-05
-0.0022874
7.97889e-05
7.43527e-05
-0.00228192
0.00229381
6.87693e-05
-0.00228823
0.00229968
7.3913e-05
7.92609e-05
-0.0023054
7.31383e-05
-0.00229957
6.8078e-05
-0.00229402
6.32071e-05
-6.3824e-05
-0.00228872
5.8525e-05
-6.91191e-05
-0.00228294
-0.00227674
-0.00227186
6.40794e-05
-0.00226728
5.92251e-05
5.45481e-05
-0.00226298
0.00227321
5.0109e-05
-0.00226878
0.00227793
5.45015e-05
5.90706e-05
-0.00228369
5.40302e-05
-0.00227891
4.97194e-05
4.55879e-05
-0.00227439
0.0022841
4.11087e-05
-0.00227963
0.0022888
4.50163e-05
0.00229372
4.91006e-05
0.00229888
5.33596e-05
0.0023043
5.77894e-05
0.00230998
6.23857e-05
6.71443e-05
-0.00231321
6.12645e-05
-0.00230768
5.68513e-05
5.25662e-05
-0.00230246
0.00230996
4.74797e-05
-0.00230488
0.00231541
5.13971e-05
5.54113e-05
-0.00231777
4.94874e-05
-0.00231229
4.59129e-05
-0.00230723
4.24134e-05
-4.36602e-05
-0.00230256
3.89851e-05
-4.84137e-05
-0.00230014
-0.00229752
-0.00229282
4.4401e-05
-0.00228835
4.05368e-05
3.68305e-05
-0.00228407
0.00229149
3.28531e-05
-0.00228751
0.00229568
3.63368e-05
3.99431e-05
-0.00229825
3.56276e-05
-0.00229426
3.23444e-05
-0.00229056
2.91439e-05
-2.95061e-05
-0.00228709
2.60392e-05
-3.32907e-05
-0.00228373
-3.73776e-05
-0.00227999
-4.16295e-05
-0.00227538
-4.58853e-05
-0.00227014
-5.00411e-05
-0.00226463
-0.00225897
-0.00225523
4.56981e-05
-0.00225176
4.15138e-05
3.74849e-05
-0.00224856
0.00225716
3.41639e-05
-0.00225385
0.00226076
3.79177e-05
4.18235e-05
-0.00226616
3.78376e-05
-0.00226245
3.42054e-05
-0.00225902
3.07276e-05
-3.05628e-05
-0.00225586
2.74031e-05
-3.36126e-05
-0.0022508
-0.00224561
-0.00224292
2.99016e-05
-0.00224049
2.63638e-05
2.30372e-05
-0.0022383
0.0022455
2.07772e-05
-0.00224324
0.00224802
2.38433e-05
2.71189e-05
-0.00225298
2.42346e-05
-0.00225037
2.1232e-05
1.84366e-05
-0.00224803
0.00225515
1.60043e-05
-0.00225272
0.00225786
1.85272e-05
0.00226083
2.12539e-05
0.00226408
2.41507e-05
0.0022676
2.72108e-05
0.00227136
3.04334e-05
3.38206e-05
-0.0022761
2.99238e-05
-0.0022724
2.67332e-05
2.37197e-05
-0.00226891
0.00227668
2.04267e-05
-0.00227339
0.00228012
2.32803e-05
2.63106e-05
-0.00228383
2.30477e-05
-0.00228075
2.0189e-05
-0.00227781
1.74842e-05
-1.77606e-05
-0.00227501
1.4955e-05
-2.08845e-05
-0.00227027
-0.00226565
-0.00226263
1.82291e-05
-0.00225986
1.57571e-05
1.36071e-05
-0.00225747
0.00226471
1.12042e-05
-0.00226231
0.00226733
1.31361e-05
1.52907e-05
-0.00227245
1.2735e-05
-0.00226993
1.06119e-05
9.17632e-06
-0.00226791
0.00227857
8.04645e-06
-0.00227744
0.00228038
8.799e-06
0.00228265
1.04596e-05
0.00228506
1.25446e-05
0.00228762
1.49147e-05
0.00229038
1.74287e-05
0.00229336
2.00577e-05
0.00229662
2.27774e-05
0.00230019
2.55685e-05
0.00230411
2.84173e-05
0.00230842
3.13163e-05
0.00231314
3.42634e-05
0.00231828
3.72604e-05
0.00232388
4.03124e-05
4.34258e-05
-0.00234084
3.71828e-05
-0.00233507
3.45395e-05
3.19486e-05
-0.00232976
0.00236768
2.64334e-05
-0.00236217
0.00237365
2.85564e-05
3.07238e-05
-0.00240324
2.40746e-05
-0.00239708
2.23867e-05
-0.00239139
2.07346e-05
-2.43486e-05
-0.00238616
1.91137e-05
-2.94029e-05
-0.00235712
-0.00232491
-0.00232049
2.68957e-05
-0.0023165
2.44211e-05
2.19761e-05
-0.00231291
0.00234837
1.82572e-05
-0.00234466
0.00235252
2.0267e-05
2.22954e-05
-0.00238139
1.7519e-05
-0.00237707
1.59444e-05
1.43836e-05
-0.0023732
0.00234153
1.04651e-05
-0.00233761
0.00234588
1.15853e-05
0.00235068
1.27167e-05
0.00235592
1.38642e-05
0.00236162
1.50316e-05
0.00236778
1.62226e-05
1.74401e-05
-0.00222116
1.11628e-05
-0.00221533
1.03855e-05
9.62543e-06
-0.00220993
0.002022
-0.00201704
0.00202735
-8.88072e-06
-0.00201246
-0.00220495
-0.00220039
8.14938e-06
-0.00219624
7.42912e-06
6.71711e-06
-0.00219249
0.00200444
-0.00200098
0.00200826
-5.99825e-06
-0.00199791
-9.35031e-06
-0.00218914
-1.28302e-05
-0.00233414
-1.6262e-05
-0.00236977
-1.95615e-05
-0.00234136
-0.0023097
-0.00230683
1.7184e-05
-0.00230427
1.48578e-05
1.26051e-05
-0.00230196
0.00233593
1.0387e-05
-0.00233372
0.00233847
1.23213e-05
1.42813e-05
-0.00236678
1.12795e-05
-0.00236418
9.71985e-06
-0.00236194
8.14521e-06
-8.5712e-06
-0.00236003
6.65554e-06
-1.0454e-05
-0.00233184
-0.00229987
-0.00229809
8.66735e-06
-0.00229691
7.61503e-06
8.0145e-06
-0.00229688
0.00232955
8.92667e-06
-0.00233046
0.00233033
6.83151e-06
7.14704e-06
-0.00235844
5.55192e-06
-0.00235733
5.71345e-06
8.73075e-06
-0.00235713
0.00232001
5.96223e-06
-0.00231725
0.00232224
3.48837e-06
0.00232419
3.59527e-06
0.00232621
4.63192e-06
0.00232846
5.88338e-06
0.0023311
7.07995e-06
8.23509e-06
-0.00218622
5.30246e-06
-0.00218369
4.54417e-06
3.71823e-06
-0.00218152
0.00199284
-0.00199094
0.00199518
-2.7569e-06
-0.00198942
-0.00217965
-0.00217784
1.78113e-06
-0.00217552
1.16617e-06
2.26298e-06
-0.00217183
0.00198725
-0.00198551
0.00198844
-7.80124e-06
-0.00198037
-1.36284e-05
-0.002166
-1.64361e-05
-0.00231445
-1.45496e-05
-0.00235902
-1.10508e-05
-0.00233396
-8.7016e-06
-0.00229923
-8.58073e-06
-0.00227756
-9.63889e-06
-0.00226685
-1.15782e-05
-0.00226037
-1.3822e-05
-0.00225523
-1.58732e-05
-0.00225068
-1.79553e-05
-0.00224595
-1.99671e-05
-0.00224123
-2.19166e-05
-0.00223635
-2.3802e-05
-0.00223128
-2.56139e-05
-0.00222598
-2.73446e-05
-0.00222048
-2.89871e-05
-0.00221479
-3.05352e-05
-0.0022089
-3.19844e-05
-0.00220285
-3.33312e-05
-0.00219664
-3.45733e-05
-0.00219027
-3.57088e-05
-0.00218376
-3.67363e-05
-0.00217712
-3.76548e-05
-0.00217035
-3.84634e-05
-0.00216347
-3.91614e-05
-0.00215649
-3.9748e-05
-0.00214942
-4.02228e-05
-0.00214227
-0.00213506
-0.00213477
3.3781e-05
2.6388e-05
0.00214189
2.6109e-05
3.34003e-05
-0.00214895
3.29288e-05
2.56557e-05
0.00215593
2.52428e-05
3.23667e-05
-0.00216282
3.17139e-05
2.4763e-05
0.00216961
2.42156e-05
3.09705e-05
-0.00217629
3.01361e-05
2.36001e-05
0.00218284
2.29154e-05
2.92106e-05
-0.00218926
2.81938e-05
2.21605e-05
0.00219553
2.13343e-05
2.70858e-05
-0.00220165
2.58872e-05
2.04357e-05
0.00220762
1.9464e-05
2.45991e-05
-0.00221341
2.32239e-05
1.84194e-05
0.00221903
1.73035e-05
2.17654e-05
-0.00222445
2.02288e-05
1.61191e-05
0.00222967
1.48717e-05
1.86186e-05
-0.00223468
1.69473e-05
1.35633e-05
0.0022395
1.21969e-05
1.52162e-05
-0.00224427
1.35333e-05
1.08824e-05
0.00224881
9.61441e-06
1.16647e-05
-0.00225362
1.00572e-05
8.83874e-06
0.00225928
8.90978e-06
8.96367e-06
-0.00226682
8.92953e-06
1.07979e-05
0.00227989
1.54344e-05
1.12574e-05
-0.00230421
1.62338e-05
2.24201e-05
0.00234073
3.01324e-05
2.3001e-05
-0.00236403
2.8008e-05
3.46591e-05
0.0023138
3.54615e-05
2.73733e-05
-0.00215924
2.059e-05
2.98498e-05
0.00197022
0.000476216
-0.00069129
-0.000408354
0.000288798
0.000321346
0.000415091
0.000264479
0.000301255
-0.000360168
0.000640672
2.31763e-05
1.04859e-05
-0.0007671
4.86824e-05
-0.000837144
-0.00100177
-1.62968e-06
-0.000747055
-0.000253082
-9.19226e-06
-0.000829581
-0.000773448
-0.000793271
3.32179e-05
5.23741e-05
0.000890339
6.87982e-05
9.39757e-05
0.000403441
-0.00105652
-0.00126326
-0.00138013
0.000472631
-8.74806e-05
-4.43656e-05
0.000384343
0.000235874
0.000138026
7.39998e-05
3.89087e-05
1.98869e-05
1.08766e-05
6.78623e-06
5.56894e-06
6.23561e-06
6.8148e-06
7.32778e-06
7.68859e-06
8.2079e-06
8.58723e-06
8.92965e-06
9.23678e-06
9.51017e-06
9.75141e-06
9.962e-06
1.01432e-05
1.02961e-05
1.04215e-05
1.05202e-05
1.05931e-05
1.06392e-05
1.06605e-05
1.06566e-05
1.06281e-05
1.05754e-05
1.0499e-05
1.03991e-05
1.02761e-05
1.01304e-05
9.96212e-06
9.77144e-06
9.55824e-06
9.32245e-06
9.06353e-06
8.78072e-06
8.47299e-06
8.13914e-06
7.77772e-06
7.38758e-06
6.96778e-06
6.5179e-06
5.92569e-06
5.52504e-06
5.08917e-06
4.83621e-06
5.32162e-06
8.68726e-06
1.45065e-05
2.67977e-05
3.07044e-05
3.67537e-05
2.95555e-07
-1.56177e-05
)
;
boundaryField
{
bottomEmptyFaces
{
type empty;
value nonuniform List<scalar> 0();
}
topEmptyFaces
{
type empty;
value nonuniform List<scalar> 0();
}
inlet
{
type calculated;
value nonuniform List<scalar>
70
(
-0.00207363
-0.00197758
-0.00235477
-0.00221615
-0.00241586
-0.00230439
-0.00233296
-0.00227814
-0.00226942
-0.00225223
-0.00224694
-0.00224113
-0.00223652
-0.00223185
-0.00222699
-0.00222192
-0.00221665
-0.0022112
-0.00220557
-0.00219976
-0.00219379
-0.00218767
-0.00218139
-0.00217499
-0.00216845
-0.0021618
-0.00215505
-0.00214821
-0.00214129
-0.00213432
-0.00212729
-0.00212023
-0.00211315
-0.00210606
-0.00209899
-0.00209194
-0.00208493
-0.00207799
-0.00207111
-0.00206432
-0.00205764
-0.00205107
-0.00204463
-0.00203835
-0.00203222
-0.00202628
-0.00202053
-0.00201497
-0.0020096
-0.00200438
-0.00199726
-0.00198922
-0.00197332
-0.00195485
-0.00190267
-0.00186892
-0.00174077
-0.00169951
-0.00150608
-0.00147683
-0.00127218
-0.00127211
-0.00105511
-0.001081
-0.000849299
-0.000874866
-0.00186159
-0.000204121
-0.000248969
-0.000300246
)
;
}
outlet
{
type calculated;
value nonuniform List<scalar>
35
(
0.00445116
0.00424492
0.00505448
0.00475741
0.0051885
0.00495388
0.00502199
0.00491141
0.00490012
0.00487022
0.00486564
0.00485846
0.00485113
0.00483824
0.00480455
0.00476209
0.00462016
0.00452704
0.00415415
0.00402644
0.00342168
0.00330589
0.00257129
0.00264203
0.00199386
0.00175102
0.00140107
0.00173086
0.00119573
0.00101048
0.000907261
0.000149177
0.000223786
0.000296364
0.00399607
)
;
}
walls
{
type calculated;
value uniform 0;
}
rightWall
{
type calculated;
value nonuniform List<scalar>
30
(
0.000316235
0.000322285
0.000405851
0.000410823
0.000488427
0.000495146
0.000552612
0.000560279
0.000595194
0.000600695
0.000612855
0.000615141
0.000614824
0.000613345
0.000609866
0.000608689
0.000604853
0.000608147
0.000593508
0.000604342
0.000548637
0.000564012
0.000463633
0.000462933
5.98891e-05
8.30454e-05
0.000105298
8.50145e-05
0.000121335
0.000155023
)
;
}
symmetryLine
{
type symmetryPlane;
value uniform 0;
}
}
// ************************************************************************* //
| |
50b56a5d007235c561d5a93eca8382c504384fd0 | fb8951a40e10680c0cc244e55365bf0252800e4b | /Cpp/engine3d/physics/body.h | 6fa94424b1e8f190ede8e3a6949b30793f3f8eae | [] | no_license | nigulo/dev | 386732de673c8091dda3845044d0a6ef68c17462 | 2fcaa319fbaa95e5f8c9019b685322f756eb8646 | refs/heads/master | 2016-09-05T19:03:54.902425 | 2015-09-01T10:13:29 | 2015-09-01T10:13:29 | 29,144,798 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,745 | h | body.h | #ifndef BODY_H
#define BODY_H
#include "engine3d/scenegraph/node.h"
#include "engine3d/scenegraph/collisionlistener.h"
#include "engine3d/geometry/vector.h"
namespace engine3d {
/**
* Class containing physical properties of body
*/
class Body : public Object, CollisionListener
{
public:
Body(Node& rNode, float mass = 0, const Vector& rVelocity = Vector());
~Body();
/**
* Applies an external force to body
**/
void SetForce(const Vector& rForce);
const Vector& GetForce() const {
return mForce;
}
void SetVelocity(const Vector& rVelocity) {
mVelocity = rVelocity;
}
const Vector& GetVelocity() const {
return mVelocity;
}
/**
* Moves the body according to external
* forces during the given time span.
**/
void Move(float dt);
// @Override
void Collision(const Node& rNode1, const Node& rNode2, const unique_ptr<Vector>& rPoint);
const Vector& GetPosition() const {
return mrNode.GetPosition();
}
float GetMass() const {
return mMass;
}
//Vector GetForceBetweenBodies() const;
protected:
Node& mrNode;
/**
* Mass of the body
**/
float mMass;
/**
* Velocity of the body
**/
Vector mVelocity;
/**
* External forces applied to body
**/
Vector mForce;
};
}
#endif // BODY_H
|
0bf07366c7f1c6f990133659422e6e5553c492f7 | 5a1ea304e98c78f730e0a6b37a5aa4413822bec8 | /Searching 10.cpp | 1fd65239d08983f0796cef1c038c34738e4c8536 | [] | no_license | minhduc462001/languageC | 367ed779543dd0e2c12c670ffd5f6d77ab86af90 | 1d1929ec5cffc28e567c1d1ab42598192531a8e4 | refs/heads/main | 2023-07-11T12:48:33.575956 | 2021-08-18T09:11:54 | 2021-08-18T09:11:54 | 397,538,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | cpp | Searching 10.cpp | #include<bits/stdc++.h>
using namespace std;
bool snt(int n){
if(n<2) return false;
if(n==2||n==3) return true;
if(n%2==0) return false;
for(int i = 3;i<= sqrt(n);i+=2)
if( n%i==0) return false;
return true;
}
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
// vector<int> v;
// bool breakWhile = false;
// for(int i = 2;i<=n;i++){
// if(snt(i)) v.push_back(i);
// }
// for(int i = 0;i<v.size();i++){
// cout<<v[i]<<" ";
// }
// cout<<endl;
// int size = v.size();
// for(int i = 0;i<size;i++){
// if(n==v[i]*v[i]){
// breakFor = true;
// cout<<v[i]<<" "<<v[i]<<endl;
// break;
// }
// if (n==v[i]+v[n+1]){
// breakFor = true;
// cout<<v[i]<<" "<<v[i+1]<<endl;
// break;
// }
// }
// int l = 0, r = v.size()-1;
// while(l<=r){
// if(n==v[l]*v[l]){
// breakWhile = true;
// cout<<v[l]<<" "<<v[l]<<endl;
// break;
// }
// if(v[l]+v[r]>n){
// r--;
// continue;
// }
// if(v[l]+v[r]<n){
// l++;
// continue;
// }
// if(v[l]+v[r]==n){
// breakWhile = true;
// cout<<v[l]<<" "<<v[r]<<endl;
// break;
// }
// }
bool check = true;
for(int i = 2;i<=n;i++){
if(snt(i)&&snt(n-i)){
check = false;
cout<<i<<" "<<n-i<<endl;
break;
}
}
if(check) cout<<"-1"<<endl;
}
return 0;
}
|
e3c2b115f5f3f1c9db556166ed5de1b29b6aafd5 | cf31c6ba9897752d7004bf6c606f3bc937e5848d | /cudaTimer.cpp | ac546bad5dedd6aa9403642b203e42a0eab0ada9 | [] | no_license | TheAIBot/CudaBasicClasses | ff3b89bf1934c0dc6f99ab26d07a721c47efb269 | c25f52dc3877a36fc41224d3effe3b97fe8bcf9b | refs/heads/master | 2022-12-30T12:08:00.345106 | 2020-10-24T09:40:11 | 2020-10-24T09:40:11 | 286,736,432 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,166 | cpp | cudaTimer.cpp | #include <stdexcept>
#include "cudaTimer.h"
namespace cudabasic
{
cudaTimer::cudaTimer()
{
cudaError_t cudaStatus = cudaEventCreate(&startTime);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
cudaStatus = cudaEventCreate(&endTime);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
}
cudaTimer::~cudaTimer() noexcept(false)
{
cudaError_t cudaStatus = cudaEventDestroy(startTime);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
cudaStatus = cudaEventDestroy(endTime);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
}
void cudaTimer::startTimer()
{
startTimer(0);
}
void cudaTimer::startTimer(cudaStream_t stream)
{
const cudaError_t cudaStatus = cudaEventRecord(startTime, stream);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
}
void cudaTimer::stopTimer()
{
stopTimer(0);
}
void cudaTimer::stopTimer(cudaStream_t stream)
{
cudaError_t cudaStatus = cudaEventRecord(endTime, stream);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
cudaStatus = cudaEventSynchronize(endTime);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
}
float cudaTimer::getElapsedMiliseconds()
{
float time;
const cudaError_t cudaStatus = cudaEventElapsedTime(&time, startTime, endTime);
if (cudaStatus != cudaError::cudaSuccess)
{
throw std::runtime_error("Cuda error code: " + cudaStatus);
}
return time;
}
} |
fe0bdc8039ca6fc67ff03bb13d04dcfaf81d75a4 | 59d855c355b1032204efcc67f0491b0708c18bad | /Balloon.h | d71e8fc674d01c04a830948263e1c4809f1621f0 | [] | no_license | alviano/AllegroWrapper | 6b0941dee03c73948d4b681eaf73b8f5ac146d87 | 88e742e9375d25d415dfd72d4740af1cdda5a472 | refs/heads/master | 2020-04-06T07:06:40.624722 | 2014-10-13T13:19:24 | 2014-10-13T13:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,368 | h | Balloon.h | /*
BlowUpTheBalloons - A simple game powered by Allegro Wrapper
Copyright (C) 2013, Mario Alviano
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef BALLOON_H
#define BALLOON_H
#include "Allegro.h"
class BlowUpTheBalloons;
class Balloon : public Sprite {
public:
Balloon(BlowUpTheBalloons& game, const Point& center);
bool update();
bool checkHit(int x, int y);
virtual Drawable* clone() const { return new Balloon(*this); }
virtual void onTick();
virtual bool alive() const;
virtual void onMouseButtonPressed(const Mouse& mouse, Mouse::Button button);
private:
BlowUpTheBalloons& game;
int level;
bool hit;
int ticks;
string imageName(int level) const;
};
#endif
|
064ad2681babecb0405053ede53a56d787773bad | 5823d1e8d579d0d6d4e830794a68c61096c52367 | /src/std-indices/context.h | f13140a303377c9f2a0ed420fa6b21763fad1da3 | [] | no_license | UoB-HPC/CloverLeaf | 74a1ab7748be406641f35fb0ddd5f3ae9ce07a92 | 4306b008eb21b0dbdad7bd241dfb6a5a337609ca | refs/heads/main | 2023-08-21T13:32:13.089304 | 2023-08-13T06:34:39 | 2023-08-13T06:34:39 | 61,378,073 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,809 | h | context.h | /*
Crown Copyright 2012 AWE.
This file is part of CloverLeaf.
CloverLeaf is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your option)
any later version.
CloverLeaf is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
You should have received a copy of the GNU General Public License along with
CloverLeaf. If not, see http://www.gnu.org/licenses/.
*/
#pragma once
#include <algorithm>
#include <iostream>
#include <memory>
#include <utility>
#include <vector>
#include "dpl_shim.h"
#include "shared.h"
namespace clover {
struct chunk_context {};
struct context {};
template <typename T> struct Buffer1D {
size_t size;
T *data;
Buffer1D(context &, size_t size) : size(size), data(alloc_raw<T>(size)) {}
// XXX the following ctors break oneDPL, making this class not device_copyable
// Buffer1D(Buffer1D &&other) noexcept : size(other.size), data(std::exchange(other.data, nullptr)) {}
// Buffer1D(const Buffer1D<T> &that) : size(that.size), data(that.data) {}
// XXX this model captures this class by value, the dtor is called for each lambda scope which is wrong!
// ~Buffer1D() { std::free(data); }
void release() { dealloc_raw(data); }
T &operator[](size_t i) const { return data[i]; }
T *actual() { return data; }
template <size_t D> [[nodiscard]] size_t extent() const {
static_assert(D < 1);
return size;
}
std::vector<T> mirrored() const {
std::vector<T> buffer(size);
std::copy(data, data + buffer.size(), buffer.begin());
return buffer;
}
};
template <typename T> struct Buffer2D {
size_t sizeX, sizeY;
T *data;
Buffer2D(context &, size_t sizeX, size_t sizeY) : sizeX(sizeX), sizeY(sizeY), data(alloc_raw<T>(sizeX * sizeY)) {}
// XXX the following ctors break oneDPL, making this class not device_copyable
// Buffer2D(Buffer2D &&other) noexcept : sizeX(other.sizeX), sizeY(other.sizeY), data(std::exchange(other.data, nullptr)) {}
// Buffer2D(const Buffer2D<T> &that) : sizeX(that.sizeX), sizeY(that.sizeY), data(that.data) {}
// XXX this model captures this class by value, the dtor is called for each lambda scope which is wrong!
// ~Buffer2D() { std::free(data); }
void release() { dealloc_raw(data); }
T &operator()(size_t i, size_t j) const { return data[i + j * sizeX]; }
T *actual() { return data; }
template <size_t D> [[nodiscard]] size_t extent() const {
if constexpr (D == 0) {
return sizeX;
} else if (D == 1) {
return sizeY;
} else {
static_assert(D < 2);
return 0;
}
}
std::vector<T> mirrored() const {
std::vector<T> buffer(sizeX * sizeY);
std::copy(data, data + buffer.size(), buffer.begin());
return buffer;
}
clover::BufferMirror2D<T> mirrored2() { return {mirrored(), extent<0>(), extent<1>()}; }
};
template <typename T> using StagingBuffer1D = Buffer1D<T> &;
template <typename N> class range {
public:
class iterator {
friend class range;
public:
using difference_type = typename std::make_signed_t<N>;
using value_type = N;
using pointer = const N *;
using reference = N;
using iterator_category = std::random_access_iterator_tag;
// XXX This is not part of the iterator spec, it gets picked up by oneDPL if enabled.
// Without this, the DPL SYCL backend collects the iterator data on the host and copies to the device.
// This type is unused for any other STL impl.
using is_passed_directly = std::true_type;
reference operator*() const { return i_; }
iterator &operator++() {
++i_;
return *this;
}
iterator operator++(int) {
iterator copy(*this);
++i_;
return copy;
}
iterator &operator--() {
--i_;
return *this;
}
iterator operator--(int) {
iterator copy(*this);
--i_;
return copy;
}
iterator &operator+=(N by) {
i_ += by;
return *this;
}
value_type operator[](const difference_type &i) const { return i_ + i; }
difference_type operator-(const iterator &it) const { return i_ - it.i_; }
iterator operator+(const value_type v) const { return iterator(i_ + v); }
bool operator==(const iterator &other) const { return i_ == other.i_; }
bool operator!=(const iterator &other) const { return i_ != other.i_; }
bool operator<(const iterator &other) const { return i_ < other.i_; }
protected:
explicit iterator(N start) : i_(start) {}
private:
N i_;
};
[[nodiscard]] iterator begin() const { return begin_; }
[[nodiscard]] iterator end() const { return end_; }
range(N begin, N end) : begin_(begin), end_(end) {}
private:
iterator begin_;
iterator end_;
};
template <typename F> static void par_ranged1(const Range1d &r, const F &functor) {
auto groups = range<int>(r.from, r.to);
std::for_each(EXEC_POLICY, groups.begin(), groups.end(), [functor](int i) { functor(i); });
// for (size_t i = r.from; i < r.to; i++) {
// functor(i);
// }
}
template <typename F> static void par_ranged2(const Range2d &r, const F &functor) {
auto xy = range<int>(0, r.sizeX * r.sizeY);
std::for_each(EXEC_POLICY, xy.begin(), xy.end(), [=](int v) {
const auto x = r.fromX + (v % r.sizeX);
const auto y = r.fromY + (v / r.sizeX);
functor(x, y);
});
// for (size_t j = r.fromY; j < r.toY; j++) {
// for (size_t i = r.fromX; i < r.toX; i++) {
// functor(i, j);
// }
// }
}
} // namespace clover
using clover::Range1d;
using clover::Range2d;
|
a46cd3a32047685b3ad4ebb73d44536a0a6fd9f5 | 01eef489b10bf76a920b0227a1ded1c7cb1e2cce | /New_Game_3D_2/Stage.cpp | d8744925002150bdee9f8db7d9e417928038e97b | [] | no_license | syogo1903x/Protect-The-Tower | 295beba154a8abe7053d2f8afe67353f617ab32c | a0559a128e59b0ea44ebff801469d0d00c9b8b04 | refs/heads/master | 2020-05-21T13:26:29.319076 | 2019-05-11T01:18:25 | 2019-05-11T01:18:25 | 182,363,239 | 0 | 0 | null | 2019-04-20T07:17:21 | 2019-04-20T05:14:09 | RPC | SHIFT_JIS | C++ | false | false | 2,592 | cpp | Stage.cpp | #include "Common.h"
float Stage::dangerModelTransmission[4];
Stage::Stage()
{
}
Stage::~Stage()
{
//Release();
}
void Stage::Init(char *_stage)
{
isFailure = false;
// ステージの生成
modelHandle = MV1DuplicateModel(NowLoad::GetModelHandle(MODEL_HANDLE::GAMESTAGE));
// スカイドームの読み込み
skydomeModelHandle = MV1DuplicateModel(NowLoad::GetModelHandle(MODEL_HANDLE::SKYDOOM));
if (modelHandle < 0)
{
isFailure = true;
// printfDx("ステージモデル読み込みエラー\n");
}
pos = VGet(0, 0, 0);
// ステージでサイズの変更
if (_stage == "stage/白玉楼ver0.93/白玉楼.pmx") { MV1SetScale(modelHandle, VGet(2, 2, 2)); }
if (_stage == "stage/ラグビーグラウンド1.05/ラグビーグラウンド(芝生).pmx") { MV1SetScale(modelHandle, VGet(1, 1, 1)); }
if (_stage == "stage/月の都風弾幕ステージ/月の都風弾幕ステージ.pmx") { MV1SetScale(modelHandle, VGet(4, 2, 1)); }
// 範囲外に出ないようにする壁のモデル
for (int i = 0; i < 4; i++)
{
dangerModelHandle[i] = MV1DuplicateModel(NowLoad::GetModelHandle(MODEL_HANDLE::GAMESTAGE_OUT));
MV1SetScale(dangerModelHandle[i], VGet(4.25f, 5, 6));
dangerModelTransmission[i] = 0.0f;
}
// 壁モデルの位置設定
MV1SetPosition(dangerModelHandle[0], VGet(320, 0, 0));
MV1SetRotationXYZ(dangerModelHandle[0], VGet(0, 1.57f, 0));
MV1SetPosition(dangerModelHandle[1], VGet(0, 0, 260));
MV1SetPosition(dangerModelHandle[2], VGet(-320, 0, 0));
MV1SetRotationXYZ(dangerModelHandle[2], VGet(0, 1.57f, 0));
MV1SetPosition(dangerModelHandle[3], VGet(0, 0, -430));
MV1SetScale(skydomeModelHandle, VGet(2, 2, 2));
count = 0;
}
// 更新
void Stage::Update()
{
// 回転
count += 0.0005f;
MV1SetRotationXYZ(skydomeModelHandle, VGet(0, count, 0));
// ステージの位置設定
MV1SetPosition(modelHandle, pos);
MV1SetPosition(skydomeModelHandle, pos);
}
// 描画
void Stage::Draw()
{
MV1DrawModel(modelHandle);
MV1DrawModel(skydomeModelHandle);
for (int i = 0; i < 4; i++)
{
if (dangerModelTransmission[i] > 1.0f) { dangerModelTransmission[i] = 1.0f; }
if (dangerModelTransmission[i] < 0.0f) { dangerModelTransmission[i] = 0.0f; }
MV1SetOpacityRate(dangerModelHandle[i], dangerModelTransmission[i]);
MV1DrawModel(dangerModelHandle[i]);
}
}
// 解放
void Stage::Release()
{
MV1DeleteModel(modelHandle);
modelHandle = NULL;
MV1DeleteModel(skydomeModelHandle);
skydomeModelHandle = NULL;
for (int i = 0; i < 4; i++)
{
MV1DeleteModel(dangerModelHandle[i]);
dangerModelHandle[i] = NULL;
}
}
|
5ee03f4051d3d4fd047394009b3dceccc9414131 | d367e7ceb45fbf9f7525f361dc3f935a336b89a8 | /OOP/과제/Assignment1-10/Assingment_1_10/main.cpp | eb08cdeafa9a0e1e77fd43d0a5ab01e799acb0c2 | [] | no_license | edoll1843/sophomoreProject | 36ce93ba7525d46f6991fb31d05ebc36742853ce | a29c56622eb78e6e57e0fb7267dec14dff63b8c8 | refs/heads/master | 2023-01-23T20:48:00.777851 | 2020-11-03T12:24:35 | 2020-11-03T12:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,369 | cpp | main.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdlib>
#include <time.h>
using namespace std;
int main()
{
int r_num[5] = { -1 ,};//declare
int temp = 0;//declare
char my_num[5] = {NULL,};//declare
int game = 0;//declare
srand((unsigned int)time(NULL));//get diffrent num each compile
for (int a = 0; a < 4; a++)
{
again:;
temp = rand() % 10;//get random num
for (int b = 0; b < 4; b++)
{
if (temp == r_num[b])//if num is same as prior num
goto again; //get random num again
}
r_num[a] = temp;// no duplicate num put num in arr
}
cout << "Random numbers: " << endl;
while (1)
{
if (game == 10)
{//if game is 10
cout << "Lose" << endl;
break;
}
game++;
int hit = 0;
int blow = 0;
cout << "Your number: ";
scanf("%s", my_num);//get num
for (int a = 0; a < 4; a++)
{
if (r_num[a] == my_num[a] - '0')//my num is char so -0 to make int
hit++;//if num is just fit, pluzs hit
else
{
for (int b = 0; b < 4; b++)
{
if (r_num[a] == my_num[b]- '0')
{//if num is fit but no same place
blow++;//blow ++
}
}
}
if (hit == 4)
{//if hit is 4
cout << ">>" << "HIT: " << hit << "," <<"BLOW: "<<blow<< endl;
cout << "Win";//win
break;
}
}
if (hit == 4)
break;
cout << ">>" << "HIT: " << hit << "," <<"BLOW: "<<blow<< endl;
}
} |
816cac1bb39aeb85d6a7927e7945460fde2f150e | 99c966e47cfcef66e2ff31124010ee184bf71f69 | /warcaby/Okno.hpp | 5862f6efac5d8b4c0e7586f34921eddb73e731e6 | [] | no_license | karbawona/warcaby | 219a58eaf76664ff3747ac45db79d2d42ca9be39 | 52b23eb4279ff9a780357f3873fc3e8e94daa450 | refs/heads/master | 2020-03-13T15:46:15.102818 | 2018-04-26T18:18:06 | 2018-04-26T18:18:06 | 131,183,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 838 | hpp | Okno.hpp | //
// Okno.hpp
// warcaby
//
// Created by Ola on 01.12.2017.
// Copyright © 2017 Ola. All rights reserved.
//
/*
Klasa, po której dziedziczą klasy Menu i Glowna_gra.
Klasa odpowiedzialna za stworzenie samego okna, bez wypełniania go danym tłem.
*/
#ifndef Okno_hpp
#define Okno_hpp
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include "ResourcePath.hpp"
class Okno {
public:
Okno() {
petlaGry = true;
}
~Okno() {}
void zaladuj_plansze() {}
void rysuj_plansze() {}
void utworz_okno();
void wyczysc_okno();
void wyswietl_plansze();
void sprawdzaj_zamkniecie();
void zaladuj_obrazki();
//dodac ikone :D
bool petlaGry;
sf::RenderWindow* oknoAplikacji;
sf::Event zdarzenie;
};
#endif /* Okno_hpp */
|
1c111b59fbb5b1f545583834db7502cae1cb1844 | a9a69d75423576d42cdb995a8a320c1a423e0130 | /2015-CaroloCup/sources/OpenDaVINCI-msv/hesperia/cockpit/src/MdiPlugIn.cpp | 0a37a30dedc21a58dd5faae2c763c9eb0f682f8f | [
"AFL-3.0"
] | permissive | Pedram87/CaroloCup | df23bd4dd57ff5eab8f8232f0f7e4aa7500c3215 | d97dd565acd4f11412032a9cf5c174d82b2ae285 | refs/heads/master | 2021-03-15T04:19:23.393383 | 2016-03-10T22:49:16 | 2016-03-10T22:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | MdiPlugIn.cpp | /*
* OpenDaVINCI.
*
* This software is open source. Please see COPYING and AUTHORS for further information.
*/
#ifdef PANDABOARD
#include <stdc-predef.h>
#endif
#include <iostream>
#include "MdiPlugIn.h"
namespace cockpit {
using namespace std;
MdiPlugIn::MdiPlugIn(plugins::PlugIn &plugIn, QWidget *prnt, Qt::WindowFlags flags) :
QMdiSubWindow(prnt, flags),
m_plugIn(plugIn) {}
MdiPlugIn::~MdiPlugIn() {}
void MdiPlugIn::closeEvent(QCloseEvent *evt) {
// Stop plugin.
if ( (evt != NULL) && (evt->type() == QEvent::Close) ) {
m_plugIn.stopPlugin();
}
// Call closeEvent from upper class.
QMdiSubWindow::closeEvent(evt);
}
} // cockpit
|
b56160eb67b9261dad93347ab686efdac9b06f99 | 4c5ef8fef7b3c8dbacff874e094076d0d161ccbd | /src/archlib/include/archlib/target_system/Probe.hpp | b42b973ba94a99cfb8b52776838fec8acacedf2e | [
"MIT"
] | permissive | lesunb/bsn | 8dee1f60420350b485847558a077b138b81b1fdd | 6e392dc9e546ce1a22a6bfa3899ecc8644404ed0 | refs/heads/master | 2023-06-01T14:32:14.287910 | 2023-05-31T08:59:36 | 2023-05-31T08:59:36 | 233,956,479 | 14 | 8 | MIT | 2023-05-31T08:57:29 | 2020-01-14T23:29:42 | C++ | UTF-8 | C++ | false | false | 1,295 | hpp | Probe.hpp | #ifndef PROBE_HPP
#define PROBE_HPP
#include "ros/ros.h"
#include "archlib/Event.h"
#include "archlib/Status.h"
#include "archlib/EnergyStatus.h"
#include "archlib/ROSComponent.hpp"
namespace arch {
namespace target_system {
class Probe : public ROSComponent {
public:
Probe(int &argc, char **argv, const std::string &name);
virtual ~Probe();
private:
Probe(const Probe &);
Probe &operator=(const Probe &);
public:
virtual void setUp();
virtual void tearDown();
virtual void body();
void collectEvent(const archlib::Event::ConstPtr& /*msg*/);
void collectStatus(const archlib::Status::ConstPtr& /*msg*/);
void collectEnergyStatus(const archlib::EnergyStatus::ConstPtr& /*msg*/);
protected:
ros::NodeHandle handle;
private:
ros::Subscriber collect_event;
ros::Subscriber collect_status;
ros::Subscriber collect_energy_status;
ros::Publisher log_event;
ros::Publisher log_status;
ros::Publisher log_energy_status;
};
}
}
#endif |
f3a4fa97a583fe33f1402ac8bbf3da5da5639b68 | 027b3f6774e9ef58bdccba1e311ab2337a67195a | /WCuda/Student_Cuda_Image/INC_SYMLINK/EXT/GLImage_I.h | 566c0d8ebd4c866f58a097bb86356cf29172f29c | [] | no_license | Globaxe/CUDALOL | 6b1cb552dbaca112fffa8bb6be796fed63b50362 | 5f2cd4ccdbcb11fd8abf8bd8d62d0666d87634f8 | refs/heads/master | 2020-03-15T12:08:32.539414 | 2018-05-04T14:37:34 | 2018-05-04T14:37:34 | 132,137,704 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | h | GLImage_I.h | #ifndef GLIMAGE_I_H_
#define GLIMAGE_I_H_
#include "Image_I.h"
/*----------------------------------------------------------------------*\
|* Declaration *|
\*---------------------------------------------------------------------*/
/*--------------------------------------*\
|* Public *|
\*-------------------------------------*/
class CBI_GLIMAGE GLImage_I
{
public:
virtual ~GLImage_I()
{
// Nothing
}
virtual void init(Image_I* ptrImage)=0;
virtual void update(Image_I* ptrImage)=0;
virtual void draw(Image_I* ptrImage)=0;
virtual void release()=0;
};
#endif
/*----------------------------------------------------------------------*\
|* End *|
\*---------------------------------------------------------------------*/
|
64b0252c807f622d930b66371e2011fd3688b138 | e9daaf072f2a36173d53b3b0558b7127ef8ddc26 | /11559.cpp | 07fe177459bbeca5dc2ff71dfa6d74510dc3d675 | [] | no_license | Abdur-Rahman123/Uva-solution | 9c19223c1a9c84d74512fe1c3b4e2826655e8afa | 9e459952d5aa52c4da44518a76caa6ef8cd0e320 | refs/heads/master | 2021-06-26T23:34:57.963430 | 2020-10-07T13:01:24 | 2020-10-07T13:01:24 | 155,670,102 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | cpp | 11559.cpp | #include<iostream>
using namespace std;
int main()
{
int par,bug,hote,we,pri,bed,mini;
while(cin>>par>>bug>>hote>>we)
{
while(hote--)
{
cin>>pri;
for(int i=0;i<we;i++)
{
cin>>bed;
if(bed>=par)
{
mini=min(mini,pri*par);
}
}
}
if(mini<=bug)
{
cout<<mini<<endl;
}
else
{
cout<<"Stay home"<<endl;
}
}
return 0;
}
|
257f515e30298246eeb4893f13f5f95f6b78b3be | 165be8367f5753b03fae11430b1c3ebf48aa834a | /source/backend/cpu/compute/DeconvolutionWithStride.cpp | 5dc7718adba8e80243754cdffa64ea2e0aaf43ea | [
"Apache-2.0"
] | permissive | alibaba/MNN | f21b31e3c62d9ba1070c2e4e931fd9220611307c | c442ff39ec9a6a99c28bddd465d8074a7b5c1cca | refs/heads/master | 2023-09-01T18:26:42.533902 | 2023-08-22T11:16:44 | 2023-08-22T11:16:44 | 181,436,799 | 8,383 | 1,789 | null | 2023-09-07T02:01:43 | 2019-04-15T07:40:18 | C++ | UTF-8 | C++ | false | false | 24,691 | cpp | DeconvolutionWithStride.cpp | //
// DeconvolutionWithStride.cpp
// MNN
//
// Created by MNN on 2018/10/08.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "backend/cpu/compute/DeconvolutionWithStride.hpp"
#include "backend/cpu/CPUBackend.hpp"
#include "CommonOptFunction.h"
#include "core/Concurrency.h"
#include "ConvOpt.h"
#include "core/Macro.h"
#include "math/WingoradGenerater.hpp"
#include "backend/cpu/compute/WinogradOptFunction.hpp"
#ifdef MNN_USE_NEON
#include <arm_neon.h>
#endif
#define OPEN_WINOGRAD
using namespace MNN::Math;
namespace MNN {
static const int gDefaultUnit = 3;
static void _winograd(const DeconvolutionWithStride::ComputeUnit& unit, int threadId, int strideX, int strideY,
const Tensor* src, const Tensor* dst, std::map<int, std::shared_ptr<Tensor>>& sourceTransformMap,
std::map<int, bool>& sourceTransformed, float* cachePackBuffer, int ic, int oc) {
int eP, lP, hP;
MNNGetMatMulPackMode(&eP, &lP, &hP);
auto srcUnit = unit.winogradInfo.srcUnitX;
auto buffer = sourceTransformMap[srcUnit];
// We allocated the buffer with 2*numberThread
int numberThread = buffer->length(0) / 2;
auto dstUnit = gDefaultUnit;
int dc_4 = dst->length(3) / 4 / eP;
int srcCount = src->stride(2);
int totalCount = dst->stride(2);
int ic_4 = srcCount / eP / 4;
auto dstTotal = dst->host<float>() + threadId * dst->stride(0);
auto srcTotal = src->host<float>() + threadId * src->stride(0);
if (!sourceTransformed[srcUnit]) {
auto A = unit.winogradInfo.A.get();
auto midAddr = buffer->host<float>() + (threadId + numberThread) * buffer->stride(0);
auto destAddr = buffer->host<float>() + (threadId)*buffer->stride(0);
WinogradFunction::productLeft(srcTotal, A->host<float>(), midAddr, dstUnit, srcUnit, dstUnit,
ic_4 * eP);
WinogradFunction::productRight(midAddr, A->host<float>(), destAddr, srcUnit, srcUnit, dstUnit,
ic_4 * eP);
sourceTransformed[srcUnit] = true;
}
auto sourceAddr = buffer->host<float>() + (threadId)*buffer->stride(0);
auto destAddr = unit.dstBuffer->host<float>() + threadId * unit.dstBuffer->stride(0);
int32_t info[4];
info[0] = 1;
info[1] = eP;
info[2] = eP;
info[3] = 1;
int32_t el[4];
el[0] = eP;
el[1] = ic;
el[2] = 0;
el[3] = 0;
size_t parameters[6];
parameters[0] = eP * sizeof(float);
parameters[1] = ic;
parameters[2] = oc;
parameters[3] = eP * 4 * sizeof(float);
parameters[4] = 0;
parameters[5] = 0;
for (int i = 0; i < srcUnit * srcUnit; ++i) {
const float* tempSourceAddr = sourceAddr + i * buffer->stride(2);
auto tempColAddr = destAddr + i * unit.dstBuffer->stride(1);
auto weightAddr = unit.weight->host<float>() + unit.weight->stride(0) * i;
MNNPackC4ForMatMul_A(cachePackBuffer, &tempSourceAddr, info, el);
MNNPackedMatMul(tempColAddr, cachePackBuffer,weightAddr, parameters, nullptr, nullptr, nullptr, nullptr);
}
auto B = unit.winogradInfo.B.get();
auto midAddr = unit.winogradInfo.dstTransformedBuffer->host<float>() +
threadId * unit.winogradInfo.dstTransformedBuffer->stride(0);
WinogradFunction::productLeft(destAddr, B->host<float>(), midAddr, srcUnit, srcUnit, srcUnit,
dc_4 * eP);
WinogradFunction::productRight(midAddr, B->host<float>(), destAddr, srcUnit, srcUnit, srcUnit,
dc_4 * eP);
// Add to dest
for (int fy = 0; fy < srcUnit; ++fy) {
int sy = fy * strideY + unit.yOffset;
for (int fx = 0; fx < srcUnit; ++fx) {
int sx = fx * strideX + unit.xOffset;
auto dest = dstTotal + sx * dst->stride(2) + sy * dst->stride(1);
auto source = destAddr + (fx + fy * srcUnit) * totalCount;
MNNAddC4WithStride(source, dest, 4, 4, totalCount / 4);
}
}
}
static void _gemmAndIm2col(const DeconvolutionWithStride::ComputeUnit& unit, int threadId, int strideX, int strideY,
const Tensor* src, const Tensor* dst, float* cachePackBuffer, int ic, int oc) {
auto tempColAddr = unit.dstBuffer->host<float>() + unit.dstBuffer->stride(0) * threadId;
int eP, lP, hP;
MNNGetMatMulPackMode(&eP, &lP, &hP);
int ocDiv4 = dst->length(3) / 4 / eP;
int count = ocDiv4 * unit.xUnit * unit.yUnit;
auto weightAddr = unit.weight->host<float>();
auto dstTotal = dst->host<float>() + threadId * dst->stride(0);
auto srcTotal = src->host<float>() + threadId * src->stride(0);
int srcCount = src->stride(2);
int totalCount = dst->stride(2);
int ic_4 = srcCount / eP / 4;
int dc_4 = ocDiv4;
int32_t info[4];
info[0] = 1;
info[1] = eP;
info[2] = eP;
info[3] = 1;
int32_t el[4];
el[0] = eP;
el[1] = ic;
el[2] = 0;
el[3] = 0;
size_t parameters[6];
parameters[0] = eP * sizeof(float);
parameters[1] = ic;
parameters[2] = oc;
parameters[3] = eP * 4 * sizeof(float);
parameters[4] = 0;
parameters[5] = 0;
for (int dy = 0; dy < gDefaultUnit; ++dy) {
for (int dx = 0; dx < gDefaultUnit; ++dx) {
const float* tempSourceAddr = srcTotal + (dx + dy * gDefaultUnit) * srcCount;
MNNPackC4ForMatMul_A(cachePackBuffer, &tempSourceAddr, info, el);
for (int fy = 0; fy < unit.yUnit; ++fy) {
for (int fx = 0; fx < unit.xUnit; ++fx) {
auto ucolAddr = tempColAddr + dc_4 * eP * 4 * (fx + fy * unit.xUnit);
auto uwAddr = weightAddr + unit.weight->stride(0) * (fx + fy * unit.xUnit);
MNNPackedMatMul(ucolAddr, cachePackBuffer, uwAddr, parameters, nullptr, nullptr, nullptr, nullptr);
}
}
// FUNC_PRINT_ALL(tempColAddr[0], f);
for (int fy = 0; fy < unit.yUnit; ++fy) {
for (int fx = 0; fx < unit.xUnit; ++fx) {
int sx = (dx + fx) * strideX + unit.xOffset;
int sy = (dy + fy) * strideY + unit.yOffset;
auto dest = dstTotal + sx * dst->stride(2) + sy * dst->stride(1);
auto source = tempColAddr + (fx + fy * unit.xUnit) * totalCount;
MNNAddC4WithStride(source, dest, 4, 4, totalCount / 4);
}
}
}
}
}
DeconvolutionWithStride::DeconvolutionWithStride(const Tensor* input, const Op* convOp, Backend* b)
: CPUDeconvolutionCommon(input, convOp, b) {
auto conv2D = convOp->main_as_Convolution2D();
MNN_ASSERT(nullptr != conv2D->bias());
auto common = conv2D->common();
int outputCount = common->outputCount();
int kx = common->kernelX();
int ky = common->kernelY();
int eP, lP, hP;
MNNGetMatMulPackMode(&eP, &lP, &hP);
const float* tempWeight = nullptr;
int tempWeightSize = 0;
int srcCount = 0;
std::shared_ptr<ConvolutionCommon::Int8Common> quanCommon;
ConvolutionCommon::getConvParameters(&quanCommon, conv2D, &tempWeight, &tempWeightSize);
srcCount = tempWeightSize / kx / ky / outputCount;
int sy = common->strideY();
int sx = common->strideX();
for (int y = 0; y < sy; ++y) {
if (y >= ky) {
continue;
}
int subKY = 1 + (ky - y - 1) / sy;
for (int x = 0; x < sx; ++x) {
if (x >= kx) {
continue;
}
int subKx = 1 + (kx - x - 1) / sx;
ComputeUnit unit;
unit.xOffset = x;
unit.yOffset = y;
unit.xUnit = subKx;
unit.yUnit = subKY;
#ifdef OPEN_WINOGRAD
if (subKx == subKY) {
// Open Winograd
int sourceUnitX = subKx + gDefaultUnit - 1;
int sourceUnitY = subKY + gDefaultUnit - 1;
unit.winogradInfo.open = true;
unit.winogradInfo.srcUnitX = sourceUnitX;
unit.winogradInfo.srcUnitY = sourceUnitY;
Math::WinogradGenerater generater(gDefaultUnit, subKx);
// Transpose A, B
auto A = generater.A();
unit.winogradInfo.A.reset(Matrix::create(A->length(0), A->length(1)));
Matrix::transpose(unit.winogradInfo.A.get(), A.get());
auto B = generater.B();
unit.winogradInfo.B.reset(Matrix::create(B->length(0), B->length(1)));
Matrix::transpose(unit.winogradInfo.B.get(), B.get());
unit.winogradInfo.G = generater.G();
unit.weight.reset(Tensor::createDevice<float>(
std::vector<int>{sourceUnitX * sourceUnitY, UP_DIV(outputCount, hP), UP_DIV(srcCount, lP), lP * hP}));
} else
#endif
{
unit.weight.reset(Tensor::createDevice<float>(
std::vector<int>{unit.yUnit * unit.xUnit, UP_DIV(outputCount, hP), UP_DIV(srcCount, lP), lP * hP}));
}
mComputeUnits.emplace_back(unit);
}
}
bool res = _alloc(Backend::STATIC);
if (!res) {
MNN_ERROR("Not Enought Memory for DeconvolutionWithStride\n");
mValid = false;
return;
}
_extract(convOp);
mPostParameters = getPostParameters();
}
bool DeconvolutionWithStride::_alloc(Backend::StorageType type) {
auto b = backend();
for (auto& unit : mComputeUnits) {
bool success = b->onAcquireBuffer(unit.weight.get(), type);
if (!success) {
return false;
}
}
return true;
}
void DeconvolutionWithStride::_release(Backend::StorageType type) {
for (auto& unit : mComputeUnits) {
backend()->onReleaseBuffer(unit.weight.get(), type);
}
}
void DeconvolutionWithStride::_extract(const Op* convOp) {
auto conv2D = convOp->main_as_Convolution2D();
MNN_ASSERT(nullptr != conv2D->bias());
auto common = conv2D->common();
int outputCount = common->outputCount();
int kx = common->kernelX();
int ky = common->kernelY();
int eP, lP, hP;
MNNGetMatMulPackMode(&eP, &lP, &hP);
const float* tempWeight = nullptr;
int tempWeightSize = 0;
int srcCount = 0;
std::shared_ptr<ConvolutionCommon::Int8Common> quanCommon;
ConvolutionCommon::getConvParameters(&quanCommon, conv2D, &tempWeight, &tempWeightSize);
srcCount = tempWeightSize / kx / ky / outputCount;
std::shared_ptr<Tensor> weightWrap(
Tensor::create<float>(std::vector<int>{srcCount, outputCount, ky * kx}, (void*)tempWeight));
int sy = common->strideY();
int sx = common->strideX();
for (auto& unit : mComputeUnits) {
int y = unit.yOffset;
int x = unit.xOffset;
int subKy = unit.yUnit;
int subKx = unit.xUnit;
// Crop
std::shared_ptr<Tensor> tempWeight(
Tensor::create<float>(std::vector<int>{srcCount, outputCount, subKy, subKx}));
for (int sz = 0; sz < srcCount; ++sz) {
for (int oz = 0; oz < outputCount; ++oz) {
auto dst = tempWeight->host<float>() + tempWeight->stride(0) * sz + tempWeight->stride(1) * oz;
auto src = weightWrap->host<float>() + weightWrap->stride(0) * sz + weightWrap->stride(1) * oz;
for (int fy = 0; fy < subKy; ++fy) {
auto oriFy = y + fy * sy;
for (int fx = 0; fx < subKx; ++fx) {
auto oriFx = x + fx * sx;
dst[fx + fy * subKx] = src[oriFy * kx + oriFx];
}
}
}
}
// Winograd Transform
if (unit.winogradInfo.open) {
std::shared_ptr<Tensor> K(Matrix::createShape(unit.xUnit, unit.yUnit));
std::shared_ptr<Tensor> K_Transform(
Matrix::createShape(unit.winogradInfo.srcUnitX, unit.winogradInfo.srcUnitY));
std::shared_ptr<Tensor> M(Matrix::create(unit.xUnit, unit.winogradInfo.srcUnitX));
std::shared_ptr<Tensor> tempWeightDst(Tensor::create<float>(
std::vector<int>{srcCount, outputCount, unit.winogradInfo.srcUnitX, unit.winogradInfo.srcUnitY}));
auto G = unit.winogradInfo.G;
std::shared_ptr<Tensor> GT(Matrix::create(G->length(0), G->length(1)));
Matrix::transpose(GT.get(), G.get());
for (int sz = 0; sz < srcCount; ++sz) {
for (int oz = 0; oz < outputCount; ++oz) {
auto src = tempWeight->host<float>() + tempWeight->stride(0) * sz + tempWeight->stride(1) * oz;
auto dst =
tempWeightDst->host<float>() + tempWeightDst->stride(0) * sz + tempWeightDst->stride(1) * oz;
// M=G*K
K->buffer().host = (uint8_t*)(src);
Matrix::multi(M.get(), G.get(), K.get());
// K_Transform = M*GT
K_Transform->buffer().host = (uint8_t*)(dst);
Matrix::multi(K_Transform.get(), M.get(), GT.get());
}
}
subKx = unit.winogradInfo.srcUnitX;
subKy = unit.winogradInfo.srcUnitY;
tempWeight = tempWeightDst;
}
// Reorder
auto weighStrideK = unit.weight->stride(0);
::memset(unit.weight->host<float>(), 0, unit.weight->size());
for (int sz = 0; sz < srcCount; ++sz) {
int sz4 = sz / lP;
int my = sz % lP;
auto dstS = unit.weight->host<float>() + hP * lP * sz4;
for (int oz = 0; oz < outputCount; ++oz) {
int oz4 = oz / hP;
int mx = oz % hP;
auto dstO = dstS + unit.weight->stride(1) * oz4;
auto src = tempWeight->host<float>() + tempWeight->stride(0) * sz + tempWeight->stride(1) * oz;
for (int fy = 0; fy < subKy; ++fy) {
for (int fx = 0; fx < subKx; ++fx) {
dstO[weighStrideK * (fy * subKx + fx) + my + lP * mx] = src[fy * subKx + fx];
}
}
}
}
}
}
DeconvolutionWithStride::~DeconvolutionWithStride() {
_release(Backend::STATIC);
}
ErrorCode DeconvolutionWithStride::onResize(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs) {
CPUDeconvolutionCommon::onResize(inputs, outputs);
auto input = inputs[0];
auto output = outputs[0];
auto ic = input->channel();
auto oc = output->channel();
int eP, lP, hP;
MNNGetMatMulPackMode(&eP, &lP, &hP);
int numThread = std::max(1, ((CPUBackend*)backend())->threadNumber());
mSrcBuffer.reset(Tensor::createDevice<float>(
std::vector<int>{numThread, gDefaultUnit, gDefaultUnit, eP * ALIGN_UP4(ic)}));
int dstXUnit = (gDefaultUnit - 1) * mCommon->strideX() + (mCommon->kernelX() - 1) * mCommon->dilateX() + 1;
int dstYUnit = (gDefaultUnit - 1) * mCommon->strideY() + (mCommon->kernelY() - 1) * mCommon->dilateY() + 1;
mMatMulPackBuffer.reset(Tensor::createDevice<float>(std::vector<int>{numThread, eP * ALIGN_UP4(ic)}));
mDestBuffer.reset(Tensor::createDevice<float>(
std::vector<int>{numThread, dstYUnit, dstXUnit, eP * ALIGN_UP4(oc)}));
bool res = backend()->onAcquireBuffer(mSrcBuffer.get(), Backend::DYNAMIC);
res &= backend()->onAcquireBuffer(mDestBuffer.get(), Backend::DYNAMIC);
res &= backend()->onAcquireBuffer(mMatMulPackBuffer.get(), Backend::DYNAMIC);
mTransformedBuffer.clear();
for (auto& unit : mComputeUnits) {
auto kxky = unit.yUnit * unit.xUnit;
if (!unit.winogradInfo.open) {
unit.dstBuffer.reset(Tensor::createDevice<float>(
std::vector<int>{numThread, UP_DIV(oc, 4) * kxky, eP, 4}));
res &= backend()->onAcquireBuffer(unit.dstBuffer.get(), Backend::DYNAMIC);
continue;
}
auto srcUnit = unit.winogradInfo.srcUnitX;
unit.dstBuffer.reset(Tensor::createDevice<float>(
std::vector<int>{numThread, srcUnit * srcUnit, UP_DIV(oc, 4), eP * 4}));
res &= backend()->onAcquireBuffer(unit.dstBuffer.get(), Backend::DYNAMIC);
unit.winogradInfo.dstTransformedBuffer.reset(Tensor::createDevice<float>(
std::vector<int>{numThread, srcUnit * srcUnit, UP_DIV(oc, 4), eP * 4}));
res &= backend()->onAcquireBuffer(unit.winogradInfo.dstTransformedBuffer.get(), Backend::DYNAMIC);
if (mTransformedBuffer.find(srcUnit) == mTransformedBuffer.end()) {
// We Need 2 buffer for transform, one for mid buffer and one for dest
std::shared_ptr<Tensor> transformBuffer = std::shared_ptr<Tensor>(Tensor::createDevice<float>(
std::vector<int>{2 * numThread, srcUnit, srcUnit, eP * ALIGN_UP4(ic)}));
mTransformedBuffer[srcUnit] = transformBuffer;
}
}
for (auto& iter : mTransformedBuffer) {
res &= backend()->onAcquireBuffer(iter.second.get(), Backend::DYNAMIC);
}
if (!res) {
return OUT_OF_MEMORY;
}
::memset(mSrcBuffer->host<float>(), 0, mSrcBuffer->size());
for (auto& unit : mComputeUnits) {
backend()->onReleaseBuffer(unit.dstBuffer.get(), Backend::DYNAMIC);
if (unit.winogradInfo.open) {
backend()->onReleaseBuffer(unit.winogradInfo.dstTransformedBuffer.get(), Backend::DYNAMIC);
}
}
backend()->onReleaseBuffer(mSrcBuffer.get(), Backend::DYNAMIC);
backend()->onReleaseBuffer(mDestBuffer.get(), Backend::DYNAMIC);
backend()->onReleaseBuffer(mMatMulPackBuffer.get(), Backend::DYNAMIC);
for (auto& iter : mTransformedBuffer) {
backend()->onReleaseBuffer(iter.second.get(), Backend::DYNAMIC);
}
mStrideY = mCommon->strideY();
mStrideX = mCommon->strideX();
return NO_ERROR;
}
ErrorCode DeconvolutionWithStride::onExecute(const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs) {
auto input = inputs[0];
auto output = outputs[0];
int batchSize = input->batch();
MNN_ASSERT(batchSize == output->batch());
int oc = output->channel();
int ow = output->width();
int oh = output->height();
int ocDiv4 = UP_DIV(oc, 4);
int oZstep = ow * oh * 4 * batchSize;
int ic = input->channel();
int iw = input->width();
int ih = input->height();
int icDiv4 = UP_DIV(ic, 4);
int iZstep = iw * ih * 4 * batchSize;
int strideX = mStrideX;
int strideY = mStrideY;
int eP, lP, hP;
MNNGetMatMulPackMode(&eP, &lP, &hP);
// FUNC_PRINT(mPadX);
// FUNC_PRINT(mPadY);
int wUnit = UP_DIV(iw, gDefaultUnit);
int hUnit = UP_DIV(ih, gDefaultUnit);
int total = wUnit * hUnit * batchSize;
int tileCount = UP_DIV(total, eP);
int numThread = std::max(1, ((CPUBackend*)backend())->threadNumber());
numThread = std::min(numThread, tileCount);
auto srcOrigin = input->host<float>();
auto dstOrigin = output->host<float>();
::memset(dstOrigin, 0, ow * oh * ocDiv4 * 4 * batchSize * sizeof(float));
auto threadFunction = [&](int threadId) {
auto srcTotal = mSrcBuffer->host<float>() + threadId * mSrcBuffer->stride(0);
auto dstTotal = mDestBuffer->host<float>() + threadId * mDestBuffer->stride(0);
auto packBuffer = mMatMulPackBuffer->host<float>() + threadId * mMatMulPackBuffer->stride(0);
for (int tIndex = (int)threadId; tIndex < tileCount; tIndex += numThread) {
// Move Source to tile Source
int xIndex = tIndex * eP;
int xCount = std::min(eP, total - xIndex);
{
int destUnitStride = icDiv4 * eP * 4;
for (int index = 0; index < xCount; ++index) {
int whIndex = xIndex + index;
int wIndex = whIndex % wUnit;
int hbIndex = whIndex / wUnit;
int hIndex = hbIndex % hUnit;
int bIndex = hbIndex / hUnit;
auto dstStart = srcTotal + index * 4;
auto sx = wIndex * gDefaultUnit;
auto sy = hIndex * gDefaultUnit;
auto srcStart = 4 * (sx + sy * iw) + srcOrigin + bIndex * iw * ih * 4;
for (int subY = 0; subY < gDefaultUnit; ++subY) {
for (int subX = 0; subX < gDefaultUnit; ++subX) {
auto dstUnit = dstStart + (subX + subY * gDefaultUnit) * destUnitStride;
int x = sx + subX;
int y = sy + subY;
if (x < 0 || x >= iw || y < 0 || y >= ih) {
#ifdef MNN_USE_NEON
auto zero = vdupq_n_f32(0.0f);
#endif
for (int z = 0; z < icDiv4; ++z) {
#ifdef MNN_USE_NEON
vst1q_f32(dstUnit + 4 * eP * z, zero);
#else
for (int j = 0; j < 4; ++j) {
dstUnit[4 * eP * z + j] = 0;
}
#endif
}
continue;
}
auto srcUnit = srcStart + (subX + subY * iw) * 4;
MNNCopyC4WithStride(srcUnit, dstUnit, iZstep, eP * 4, icDiv4);
}
}
}
}
// Compute to tile Dest
::memset(dstTotal, 0, mDestBuffer->stride(0) * sizeof(float));
std::map<int, bool> transformed;
for (auto& iter : mTransformedBuffer) {
transformed[iter.first] = false;
}
for (auto& unit : mComputeUnits) {
if (unit.winogradInfo.open) {
_winograd(unit, (int)threadId, strideX, strideY, mSrcBuffer.get(), mDestBuffer.get(),
mTransformedBuffer, transformed, packBuffer, ic, oc);
} else {
_gemmAndIm2col(unit, (int)threadId, strideX, strideY, mSrcBuffer.get(), mDestBuffer.get(), packBuffer, ic, oc);
}
}
// Merge to Dest
{
std::unique_lock<std::mutex> __l(mLock);
int srcUnitStride = ocDiv4 * eP * 4;
int destXUnit = mDestBuffer->length(2);
int destYUnit = mDestBuffer->length(1);
for (int index = 0; index < xCount; ++index) {
int whIndex = xIndex + index;
int wIndex = whIndex % wUnit;
int hbIndex = whIndex / wUnit;
int hIndex = hbIndex % hUnit;
int bIndex = hbIndex / hUnit;
auto srcStart = dstTotal + index * 4;
auto sx = wIndex * gDefaultUnit * strideX - mPadX;
auto sy = hIndex * gDefaultUnit * strideY - mPadY;
// MNN_PRINT("%d, %d\n", sx, sy);
auto dstStart = dstOrigin + 4 * (sx + sy * ow) + bIndex * ow * oh * 4;
int yEnd = std::min(destYUnit, oh - sy);
int xEnd = std::min(destXUnit, ow - sx);
int xStart = std::max(-sx, 0);
int yStart = std::max(-sy, 0);
for (int subY = yStart; subY < yEnd; ++subY) {
for (int subX = xStart; subX < xEnd; ++subX) {
auto srcUnit = srcStart + (subX + subY * destXUnit) * srcUnitStride;
auto dstUnit = dstStart + (subX + subY * ow) * 4;
MNNAddC4WithStride(srcUnit, dstUnit, 4 * eP, oZstep, ocDiv4);
}
}
}
}
}
};
MNN_CONCURRENCY_BEGIN(threadId, numThread) {
threadFunction((int)threadId);
}
MNN_CONCURRENCY_END();
MNNAxByClampBroadcastUnit(dstOrigin, dstOrigin, mBias->host<float>(), ow * oh * batchSize, ow * oh * 4 * batchSize, ow * oh * 4 * batchSize, ocDiv4, mPostParameters.data());
return NO_ERROR;
}
} // namespace MNN
|
7189f753f702700a32191c920b9e04ae217ba467 | fd8738aeefa917c42a8834c5f5ba00fcbd8d56c0 | /include/asteroid.h | da2da251343a720482d5340e77efc2bc41cda8bd | [] | no_license | TomBecque/AsteroidsPPP2 | 0915b27909346776af9273211550e80ffbf5606f | 75f9d1b2e14bd391a0065503126d848901829f91 | refs/heads/master | 2021-01-20T01:03:32.932850 | 2014-04-04T09:42:52 | 2014-04-04T09:42:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | h | asteroid.h | #ifndef ASTEROID_H
#define ASTEROID_H
#include "rigidbodies.h"
class Asteroid : public RigidBodies
{
public:
Asteroid(const Vec4& _pos,
const Vec4& _colour,
const Vec4& _size,
Vec4 _direction,
float _radius)
: RigidBodies(_pos, _colour, _size, BT_ASTEROID), m_radius(_radius), m_direction(_direction)
{
//sets the bbox max and min vector to be the radius or -radius of the asteroid
m_bodyBox.m_vecMax = m_radius;
m_bodyBox.m_vecMin = Vec4(-m_radius,-m_radius,-m_radius);
}
~Asteroid();
void draw();
void update();
private:
float m_radius;
Vec4 m_dest;
Vec4 m_direction;
};
#endif // ASTEROID_H
|
bf44b45ccf8529de197e505b6fd066d3676e4de2 | df16bef23a9686800433f45a030adc3ed2f233a6 | /src/processData.cpp | 2fb9bd78136bb4bc3b45859e5c75fd3df2db0c3d | [] | no_license | nganhkhoa/CTDL-ASS2 | 76ba3d2a75074b020cf152ddbea1c8a5e143d008 | 581d7a0296a1b12394c2fc11fb9f8a3b2014b5d0 | refs/heads/master | 2021-03-24T13:11:47.022862 | 2018-02-10T07:31:20 | 2018-02-10T07:31:20 | 114,268,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,825 | cpp | processData.cpp | /*
* ==========================================================================================
* Name : processData.cpp
* Description : student code for Assignment 2 - Data structures and Algorithms
* - Fall 2017
* ==========================================================================================
*/
/**
* This is done by nguyen anh khoa - 1611617
*
* Github repository will be public after online judge closes
* Github: https://github.com/nganhkhoa/CTDL-ASS2.git
* Docker:
* https://cloud.docker.com/swarm/luibo/repository/docker/luibo/ctdl-ass2/general
*
* Libraries are used with define so no affect on building online
*
* Libraries used:
* Spdlog: https://github.com/gabime/spdlog
* Googletest: https://github.com/google/googletest
*
* This is only in case teacher want to interview me
*/
#include <iostream>
#include <vector>
#include <functional>
#include <math.h>
#include <requestLib.h>
#include <dbLib.h>
#ifdef DEBUGGING
#include <spdlog/spdlog.h>
#endif
using namespace std;
#define GPS_DISTANCE_ERROR 0.005
bool initVMGlobalData(void** pGData) {
auto vehicles = new AVLTree<string>();
auto records = new AVLTree<VM_Record>();
auto restriction = new AVLTree<VM_Record>();
auto rList = (L1List<VM_Record>*) *pGData;
for (auto& vmr : *rList) {
string id(vmr.id);
vehicles->insert(
id, [](string& Old, string& New) { return Old == New; });
VM_Record r = vmr;
records->insert(r);
}
auto data = new void*[3];
data[0] = vehicles;
data[1] = records;
data[2] = restriction;
*pGData = data;
#ifdef DEBUGGING
auto console = spdlog::get("console.log");
auto file = spdlog::get("file.log");
console->info("{} vehicles", vehicles->getSize());
file->info("{} vehicles", vehicles->getSize());
string str;
for (auto& s : *vehicles) {
str += " " + s;
}
file->info("vehicles:\n{}", str);
#endif
return true;
}
void releaseVMGlobalData(void* pGData) {
auto data = (void**) pGData;
auto vehicles = (AVLTree<string>*) data[0];
auto records = (AVLTree<VM_Record>*) data[1];
auto restriction = (AVLTree<string>*) data[2];
delete restriction;
delete vehicles;
delete records;
delete data;
restriction = nullptr;
vehicles = nullptr;
records = nullptr;
data = nullptr;
pGData = nullptr;
}
bool print(ReturnType*, VM_Request&, AVLTree<string>&);
bool processRequest(
VM_Request& request,
L1List<VM_Record>& recordList,
void* pGData) {
// TODO: Your code goes here
// return false for invlaid events
#ifdef DEBUGGING
auto console = spdlog::get("console.log");
auto file = spdlog::get("file.log");
console->info("processing request {}", request.code);
file->info("processing request {}", request.code);
#endif
auto data = (void**) pGData;
auto vehicles = (AVLTree<string>*) data[0];
auto records = (AVLTree<VM_Record>*) data[1];
auto& restriction = (AVLTree<string>*&) data[2];
size_t vehicles_size = vehicles->getSize();
ReturnType* r = nullptr;
switch (request.code[0] - '0') {
case 1:
r = request1(request, *records, *restriction);
break;
case 2:
r = request2(request, *records, vehicles_size, *restriction);
break;
case 3:
r = request3(request, *records, vehicles_size, *restriction);
break;
case 4:
r = request4(request, *records, vehicles_size, *restriction);
break;
case 5:
r = request5(request, *records, *vehicles, *restriction);
break;
case 6:
r = request6(request, *records, *restriction);
break;
case 7:
r = request7(request, *records, *restriction);
break;
case 8:
r = request8(request, *records, *restriction);
break;
case 9:
r = request9(request, *records, restriction);
break;
default:
break;
}
return print(r, request, *restriction);
}
ReturnType* request1(
VM_Request& req,
AVLTree<VM_Record>& records,
AVLTree<string>& restriction) {
if (records.isEmpty())
return new ReturnType((int) -1);
auto sample = *(records.begin());
auto thisTime = gmtime(&sample.timestamp);
VM_Record car_1, car_2;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(
s,
"_%16[a-zA-Z0-9]_%16[a-zA-Z0-9]_%2d%2d%2d",
car_1.id, // id of vehicle number 1
car_2.id, // id of vehicle number 2
&thisTime->tm_hour, // hour
&thisTime->tm_min, // minute
&thisTime->tm_sec) // second
!= 5)
return new ReturnType(false);
car_1.timestamp = timegm(thisTime);
car_2.timestamp = timegm(thisTime);
// check in restriction
string* found = nullptr;
string id_1(car_1.id);
string id_2(car_2.id);
if (restriction.find(id_1, found) || restriction.find(id_2, found))
return new ReturnType((int) -1);
// check in records
VM_Record* ret_1 = nullptr;
VM_Record* ret_2 = nullptr;
if (!records.find(car_1, ret_1) || !records.find(car_2, ret_2))
return new ReturnType((int) -1);
string relative_lat = ret_1->RelativeLatitudeTo(*ret_2);
string relative_lon = ret_1->RelativeLongitudeTo(*ret_2);
double relative_dis = ret_1->DistanceTo(*ret_2);
ReturnType* lat = new ReturnType(relative_lat);
ReturnType* lon = new ReturnType(relative_lon);
ReturnType* distance = new ReturnType(relative_dis);
auto ret = new L1List<ReturnType*>();
ret->insertHead(distance);
ret->insertHead(lat);
ret->insertHead(lon);
return new ReturnType(ret);
}
ReturnType* request2(
VM_Request& req,
AVLTree<VM_Record>& records,
const size_t& vehicles_size,
AVLTree<string>& restriction) {
if (records.isEmpty())
return new ReturnType((int) 0);
char direction;
double lon;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(s, "_%lf_%1[EW]", &lon, &direction) != 2)
return new ReturnType(false);
AVLTree<string> result;
for (auto& r : records) {
string relative_lon = r.RelativeLongitudeTo(lon);
if (relative_lon[0] != direction && relative_lon[0] != '?') {
string id(r.id);
string* found = nullptr;
// check in restriction
if (restriction.find(id, found)) {
continue;
}
result.insert(id, [](string& Old, string& New) {
return Old == New;
});
if (result.getSize() == vehicles_size - restriction.getSize())
break;
}
}
return new ReturnType(
(int) (vehicles_size - result.getSize() - restriction.getSize()));
}
ReturnType* request3(
VM_Request& req,
AVLTree<VM_Record>& records,
const size_t& vehicles_size,
AVLTree<string>& restriction) {
if (records.isEmpty())
return new ReturnType((int) 0);
char direction;
double lat;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(s, "_%lf_%1[NS]", &lat, &direction) != 2)
return new ReturnType(false);
AVLTree<string> result;
for (auto& r : records) {
string relative_lat = r.RelativeLatitudeTo(lat);
if (relative_lat[0] != direction && relative_lat[0] != '?') {
string id(r.id);
string* found = nullptr;
// check in restriction
if (restriction.find(id, found)) {
continue;
}
result.insert(id, [](string& Old, string& New) {
return Old == New;
});
if (result.getSize() == vehicles_size - restriction.getSize())
break;
}
}
return new ReturnType(
(int) (vehicles_size - result.getSize() - restriction.getSize()));
}
ReturnType* request4(
VM_Request& req,
AVLTree<VM_Record>& records,
const size_t& vehicles_size,
AVLTree<string>& restriction) {
if (records.isEmpty())
return new ReturnType((int) 0);
double lon;
double lat;
double radius;
int start;
int end;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(s, "_%lf_%lf_%lf_%d_%d", &lon, &lat, &radius, &start, &end) !=
5)
return new ReturnType(false);
AVLTree<string> result;
for (auto& r : records) {
int hour = gmtime(&r.timestamp)->tm_hour;
if (hour < start)
continue;
if (hour >= end)
// our tree is build with time order
// if time is bigger then we need a
break;
double distance = r.DistanceTo(lat, lon);
if (distance <= radius) {
string id(r.id);
string* found = nullptr;
// check in restriction
if (restriction.find(id, found)) {
continue;
}
result.insert(id, [](string& Old, string& New) {
return Old == New;
});
if (result.getSize() == vehicles_size - restriction.getSize())
break;
}
}
return new ReturnType((int) result.getSize());
}
ReturnType* request5(
VM_Request& req,
AVLTree<VM_Record>& records,
AVLTree<string>& vehicles,
AVLTree<string>& restriction) {
if (records.isEmpty())
return new ReturnType((int) 0);
char char_id[ID_MAX_LENGTH];
double lat;
double lon;
double radius;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(
s,
"_%16[A-Za-z0-9]_%lf_%lf_%lf",
char_id,
&lon,
&lat,
&radius) != 4)
return new ReturnType(false);
string id(char_id);
string* ret = nullptr;
if (!vehicles.find(id, ret) || restriction.find(id, ret)) {
ret = nullptr;
return new ReturnType(int(-1));
}
ret = nullptr;
int occurence = 0;
bool isIn = false;
for (auto& r : records) {
if (strcmp(r.id, char_id) != 0)
continue;
double distance = r.DistanceTo(lat, lon);
if (isIn && distance > radius) {
isIn = false;
}
else if (!isIn && distance <= radius) {
isIn = true;
occurence++;
}
else {
continue;
}
}
return new ReturnType(occurence);
}
ReturnType* request6(
VM_Request& req,
AVLTree<VM_Record>& records,
AVLTree<string>& restriction) {
if (records.isEmpty()) {
string ret = "-1 - -1";
return new ReturnType(ret);
}
double lon;
double lat;
int vehicles_inside;
int hour;
int minute;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(
s,
"_%lf_%lf_%d_%2d%2d",
&lon,
&lat,
&vehicles_inside,
&hour,
&minute) != 5)
return new ReturnType(false);
auto under_2km = new AVLTree<string>();
auto under_300m = new AVLTree<string>();
auto over_500m = new AVLTree<string>();
auto under_500m = new AVLTree<string>();
for (auto& r : records) {
auto open_time_tm = gmtime(&r.timestamp);
open_time_tm->tm_hour = hour;
open_time_tm->tm_min = minute;
open_time_tm->tm_sec = 0;
auto open_time = timegm(open_time_tm);
if (r.timestamp > open_time)
break;
if (open_time - r.timestamp > 60 * 15)
continue;
auto distance = r.DistanceTo(lat, lon);
string id(r.id);
string* found = nullptr;
if (restriction.find(id, found))
continue;
auto cmp = [](string& Old, string& New) { return Old == New; };
if (distance <= 0.3) {
under_300m->insert(id, cmp);
under_500m->insert(id, cmp);
under_2km->insert(id, cmp);
}
else if (distance <= 0.5) {
under_500m->insert(id, cmp);
under_2km->insert(id, cmp);
}
else if (distance <= 2) {
over_500m->insert(id, cmp);
under_2km->insert(id, cmp);
}
else {
continue;
}
}
ReturnType* rt_out = nullptr;
ReturnType* rt_in = nullptr;
auto list = new L1List<ReturnType*>();
if ((int) under_2km->getSize() < vehicles_inside) {
// all in
if (under_2km->isEmpty())
rt_in = new ReturnType("");
else
rt_in = new ReturnType(under_2km);
rt_out = new ReturnType("-1");
delete under_300m;
delete under_500m;
delete over_500m;
under_300m = nullptr;
under_500m = nullptr;
over_500m = nullptr;
}
else if ((int) under_300m->getSize() > 0.75 * vehicles_inside) {
// all out
if (under_2km->isEmpty())
rt_out = new ReturnType("");
else
rt_out = new ReturnType(under_2km);
rt_in = new ReturnType("-1");
delete under_300m;
delete under_500m;
delete over_500m;
under_300m = nullptr;
under_500m = nullptr;
over_500m = nullptr;
}
else {
// if any vehicle in both 500 above and below, choose 500 in
// that gives us a full in with 500 below
rt_in = new ReturnType(under_500m);
// besides, delete is odd, so we create new tree to make it easier
// if it's slower, than we will delete
auto out = new AVLTree<string>();
string* found = nullptr;
for (auto& v : *over_500m) {
if (under_500m->find(v, found))
continue;
out->insert(v);
}
found = nullptr;
rt_out = new ReturnType(out);
delete under_300m;
delete under_2km;
delete over_500m;
under_300m = nullptr;
under_2km = nullptr;
over_500m = nullptr;
}
list->insertHead(rt_out);
list->insertHead(rt_in);
// don't forget to delete unused data
return new ReturnType(list);
}
ReturnType* request7(
VM_Request& req,
AVLTree<VM_Record>& records,
AVLTree<string>& restriction) {
if (records.isEmpty()) {
string ret = "-1 - -1";
return new ReturnType(ret);
}
double lon;
double lat;
int vehicles_inside;
double radius;
int hour;
int minute;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(
s,
"_%lf_%lf_%d_%lf_%2d%2d",
&lon,
&lat,
&vehicles_inside,
&radius,
&hour,
&minute) != 6)
return new ReturnType(false);
struct id_distance
{
string id;
double distance;
bool operator<(id_distance idis) {
return id < idis.id;
}
bool operator==(id_distance idis) {
return id == idis.id;
}
};
AVLTree<id_distance> min_distance;
AVLTree<id_distance> max_distance;
for (auto& r : records) {
auto open_time_tm = gmtime(&r.timestamp);
open_time_tm->tm_hour = hour;
open_time_tm->tm_min = minute;
open_time_tm->tm_sec = 0;
auto open_time = timegm(open_time_tm);
if (r.timestamp > open_time + 60 * 30)
break;
if (r.timestamp < open_time)
continue;
id_distance idis;
idis.distance = r.DistanceTo(lat, lon);
idis.id = r.id;
string* found = nullptr;
if (idis.distance > 2)
continue;
if (restriction.find(idis.id, found))
continue;
id_distance* found_re = nullptr;
if (min_distance.find(idis, found_re)) {
if (idis.distance < found_re->distance)
found_re->distance = idis.distance;
}
else {
min_distance.insert(
idis, [](id_distance& Old, id_distance& New) {
return Old == New;
});
}
if (idis.distance < 1)
continue;
if (max_distance.find(idis, found_re)) {
if (idis.distance > found_re->distance)
found_re->distance = idis.distance;
}
else {
max_distance.insert(
idis, [](id_distance& Old, id_distance& New) {
return Old == New;
});
}
}
auto under_500m = new AVLTree<string>();
auto under_1km = new AVLTree<string>();
for (auto& idis : min_distance) {
if (idis.distance <= 0.5)
under_500m->insert(idis.id);
if (idis.distance <= 1)
under_1km->insert(idis.id);
}
AVLTree<string>* in = nullptr;
AVLTree<string>* out = nullptr;
auto make_string_tree =
[](AVLTree<id_distance>* tree) -> AVLTree<string>* {
if (tree == nullptr)
return nullptr;
auto ret = new AVLTree<string>();
for (auto& t : *tree)
ret->insert(t.id);
return ret;
};
if (under_500m->getSize() < 0.7 * vehicles_inside) {
out = make_string_tree(&min_distance);
in = nullptr;
delete under_500m;
delete under_1km;
under_500m = nullptr;
under_1km = nullptr;
}
else {
in = under_1km; // and 25% of 1-2km
out = new AVLTree<string>();
struct distance_id
{
string id;
double distance;
bool operator<(distance_id disid) {
// because we want max -> min
// in LNR order
return distance > disid.distance;
}
bool operator==(distance_id disid) {
return distance == disid.distance;
}
};
// get list id by distance order LNR max->min
// only id with distance > 1 and <= 2
// because we add all <= 1 in IN list already
AVLTree<distance_id> distance_order;
for (auto& idis : max_distance) {
if (idis.distance < 1)
continue;
if (idis.distance > 2)
continue;
string* found = nullptr;
if (in->find(idis.id, found))
continue;
distance_id disid;
disid.id = idis.id;
disid.distance = idis.distance;
distance_order.insert(disid);
}
int size = distance_order.getSize();
int count = 1;
for (auto& disid : distance_order) {
if (count++ <= (double) (0.75 * size)) {
out->insert(disid.id);
}
else {
in->insert(disid.id);
}
}
delete under_500m;
under_500m = nullptr;
under_1km = nullptr;
}
auto rt_out = new ReturnType(out);
auto rt_in = new ReturnType(in);
auto list = new L1List<ReturnType*>();
list->insertHead(rt_out);
list->insertHead(rt_in);
// don't forget to delete unused data
return new ReturnType(list);
}
ReturnType* request8(
VM_Request& req,
AVLTree<VM_Record>& records,
AVLTree<string>& restriction) {
if (records.isEmpty()) {
string ret = "-1";
return new ReturnType(ret);
}
double lon;
double lat;
double radius;
int hour;
int minute;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(
s,
"_%lf_%lf_%lf_%2d%2d",
&lon,
&lat,
&radius,
&hour,
&minute) != 5)
return new ReturnType(false);
auto this_restriction = new AVLTree<string>();
string* found = nullptr;
for (auto& r : records) {
struct tm* tm = gmtime(&r.timestamp);
if (tm->tm_hour > hour)
break;
if (tm->tm_hour < hour)
continue;
if (tm->tm_min != minute)
continue;
if (r.DistanceTo(lat, lon) > radius)
continue;
string id(r.id);
if (restriction.find(id, found))
continue;
this_restriction->insert(
id, [](string& Old, string& New) { return Old == New; });
restriction.insert(
id, [](string& Old, string& New) { return Old == New; });
}
found = nullptr;
// this_restriction is for print out and stuff
// restriction is for checking with other request
// thus we need restriction to be avaiable all the time
return new ReturnType(this_restriction);
}
ReturnType* request9(
VM_Request& req,
AVLTree<VM_Record>& records,
AVLTree<string>*& restriction) {
if (records.isEmpty()) {
string ret = "-1";
return new ReturnType(ret);
}
double lon;
double lat;
double radius;
int hour;
int minute;
auto s = strstr(req.code, "_");
if (s == nullptr)
return new ReturnType(false);
if (sscanf(
s,
"_%lf_%lf_%lf_%2d%2d",
&lon,
&lat,
&radius,
&hour,
&minute) != 5)
return new ReturnType(false);
auto resurrect = new AVLTree<string>();
for (auto& r : records) {
struct tm* tm = gmtime(&r.timestamp);
if (tm->tm_hour > hour)
break;
if (tm->tm_hour < hour)
continue;
if (tm->tm_min != minute)
continue;
if (r.DistanceTo(lat, lon) > radius)
continue;
string id(r.id);
resurrect->insert(
id, [](string& Old, string& New) { return Old == New; });
}
auto new_restriction = new AVLTree<string>();
auto PrintList = new AVLTree<string>();
string* found = nullptr;
for (auto& r : *restriction) {
if (resurrect->find(r, found)) {
PrintList->insert(
r, [](string& Old, string& New) { return Old == New; });
}
else {
new_restriction->insert(
r, [](string& Old, string& New) { return Old == New; });
}
}
delete restriction;
restriction = new_restriction;
return new ReturnType(PrintList);
}
bool print(ReturnType* r, VM_Request& req, AVLTree<string>& restriction) {
if (r == nullptr)
return false;
auto PrintRequestCode = [](VM_Request& req) {
for (size_t i = 0; req.code[i] != '_'; i++)
cout << req.code[i];
cout << ":";
};
switch (r->t) {
case ReturnType::type::empty:
delete r;
return false;
case ReturnType::type::boolean:
delete r;
return false;
case ReturnType::type::error:
cout << *r;
delete r;
return false;
case ReturnType::type::list:
PrintRequestCode(req);
if (r->l->isEmpty())
cout << " -1";
else if (req.code[0] == '1')
// list of request 1
for (auto& x : *(r->l))
cout << *x;
else {
// list of tree ids
// <tree 1> - <tree 2>
// check in restriction
auto it = r->l->begin();
// *it ---- ReturnType*
// *(*it) ---- ReturnType
cout << *(*(it++));
cout << " -";
cout << *(*it);
}
cout << "\n";
delete r;
return true;
default:
// int
// double
// tree as list
if ((req.code[0] == '8' || req.code[0] == '9') &&
r->tr->isEmpty()) {
PrintRequestCode(req);
cout << " 0\n";
}
else {
PrintRequestCode(req);
cout << *r << "\n";
}
delete r;
return true;
}
return false;
}
|
abbf8957385af40b25a8ccbf2265020fb0881df0 | 84646675f3780cfc0b806502cf2ec234d493b9a6 | /api/http/cpp/example/example.cpp | 381fc6ff65bc6abd32e5803a14328815dafbf4b5 | [
"BSD-3-Clause"
] | permissive | molamolaxxx/gStore | b0eaed3d59bc40e679255e1763e5a74933f0b6f7 | 0317606791dd867a305e4f6577289edee6d5f013 | refs/heads/master | 2020-04-08T01:47:16.070083 | 2018-11-19T07:16:40 | 2018-11-19T07:16:40 | 158,909,279 | 1 | 0 | BSD-3-Clause | 2018-11-24T06:31:27 | 2018-11-24T06:31:26 | null | UTF-8 | C++ | false | false | 3,210 | cpp | example.cpp | //NOTICE: you need to use libcurl-devel for C++ to use HTTP client, please read client.cpp and client.h seriously
#include <stdio.h>
#include <iostream>
#include <string>
#include "client.h"
using namespace std;
// before you run this example, make sure that you have started up ghttp service (using bin/ghttp db_name port)
int main()
{
CHttpClient hc;
string res;
int ret;
//ret = hc.Get("http://172.31.222.94:9000/?operation=build&db_name=lubm&ds_path=data/LUBM_10.n3", res);
//cout<<res<<endl;
//ret = hc.Get("http://172.31.222.94:9000/?operation=load&db_name=lubm", res);
//cout<<res<<endl;
int result[6] = {10, 14, 14, 199424, 33910, 1039};
string* sparql = new string[6];
sparql[0] = "select ?v0 where\
{\
?v0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/class/yago/LanguagesOfBotswana> .\
?v0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/class/yago/LanguagesOfNamibia> .\
?v0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Language> .\
}";
sparql[1] = "select ?v0 where\
{\
?v0 <http://dbpedia.org/ontology/associatedBand> <http://dbpedia.org/resource/LCD_Soundsystem> .\
}";
sparql[2] = "select ?v2 where\
{\
<http://dbpedia.org/resource/!!Destroy-Oh-Boy!!> <http://dbpedia.org/property/title> ?v2 .\
}";
sparql[3] = "select ?v0 ?v2 where\
{\
?v0 <http://dbpedia.org/ontology/activeYearsStartYear> ?v2 .\
}";
sparql[4] = "select ?v0 ?v1 ?v2 where\
{\
?v0 <http://dbpedia.org/property/dateOfBirth> ?v2 .\
?v1 <http://dbpedia.org/property/genre> ?v2 .\
}";
sparql[5] = "select ?v0 ?v1 ?v2 ?v3 where\
{\
?v0 <http://dbpedia.org/property/familycolor> ?v1 .\
?v0 <http://dbpedia.org/property/glotto> ?v2 .\
?v0 <http://dbpedia.org/property/lc> ?v3 .\
}";
int tnum = 6;
tnum = 3000;
bool correctness = true;
for(int i = 0; i < tnum; ++i)
{
ret = hc.Get("http://172.31.222.94:9000/?operation=query&format=json&sparql="+sparql[i%6],res);
cout<< i <<endl;
int m = 0;
for(int ii = 0; ii<sparql[i%6].length(); ++ii)
{
if(sparql[i%6][ii] == '?')
++m;
if(sparql[i%6][ii] == '{')
break;
}
int n = 0;
for(int ii = 0; ii<res.length(); ++ii)
{
if(res[ii] == '{')
++n;
}
int Num = (n-3)/(m+1);
if(Num!=result[i%6])
correctness =false;
}
if (correctness == true)
cout<< "The answers are correct!" <<endl;
else
cout<< "The answers exist errors!" <<endl;
//ret = hc.Get("127.0.0.1:8080/query/data/ex0.sql", res);
//cout<<res<<endl;
//ret = hc.Get("http://172.31.222.94:9000/?operation=monitor", res);
//cout<<res<<endl;
//ret = hc.Get("http://172.31.222.94:9000/?operation=unload&db_name=lubm", res);
//cout<<res<<endl;
return 0;
}
|
1db587ed9472ab121c4686ba72adaeec03df9dd3 | 02a0fa53f309937a4d2fa25473d4cc522f6daec0 | /CutyCapt.hpp | 2ef9729c78eb44f9a78cb450994b9c1fd8e3b805 | [] | no_license | Crystalix007/CutyCapt | ef87e4cae24d9b11e3d8737bf44bfa59ad4e5d3d | eceddbfe3aeaed9a300fcc5ae30901988b92343d | refs/heads/master | 2022-11-24T12:25:56.915705 | 2020-06-23T16:21:04 | 2020-06-23T16:21:04 | 274,112,968 | 0 | 0 | null | 2020-06-22T10:58:28 | 2020-06-22T10:58:27 | null | UTF-8 | C++ | false | false | 2,312 | hpp | CutyCapt.hpp | #include <QtWebEngine>
#if QT_VERSION >= 0x050000
# include <QtWebEngineWidgets>
#endif
class CutyCapt;
class CutyPage : public QWebEngineView {
Q_OBJECT
public:
void setAttribute(QWebEngineSettings::WebAttribute option, const QString& value);
void setAttribute(Qt::WidgetAttribute option, const bool value);
void setUserAgent(const QString& userAgent);
void setAlertString(const QString& alertString);
void setPrintAlerts(bool printAlerts);
void setCutyCapt(CutyCapt* cutyCapt);
QString getAlertString();
protected:
QString chooseFile(QWebEnginePage* frame, const QString& suggestedFile);
void javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID);
bool javaScriptPrompt(QWebEnginePage* frame, const QString& msg, const QString& defaultValue,
QString* result);
void javaScriptAlert(QWebEnginePage* frame, const QString& msg);
bool javaScriptConfirm(QWebEnginePage* frame, const QString& msg);
QString userAgentForUrl(/* const QUrl& url */) const;
QString mUserAgent;
QString mAlertString;
bool mPrintAlerts;
CutyCapt* mCutyCapt;
};
class CutyCapt : public QObject {
Q_OBJECT
public:
// TODO: This should really be elsewhere and be named differently
enum OutputFormat {
SvgFormat,
PdfFormat,
PsFormat,
InnerTextFormat,
HtmlFormat,
PngFormat,
JpegFormat,
MngFormat,
TiffFormat,
GifFormat,
BmpFormat,
PpmFormat,
XbmFormat,
XpmFormat,
OtherFormat
};
CutyCapt(CutyPage* page, const QString& output, int delay, OutputFormat format,
const QString& scriptProp, const QString& scriptCode, bool insecure, bool smooth,
bool silent);
private slots:
void DocumentComplete(bool ok);
void InitialLayoutCompleted();
void JavaScriptWindowObjectCleared();
void Delayed();
void onSizeChanged(const QSizeF& size);
public slots:
void Timeout();
void pdfPrintFinish(const QString&, bool success);
private:
void TryDelayedRender();
void saveSnapshot();
bool mSawInitialLayout;
bool mSawDocumentComplete;
bool mSawGeometryChange;
QSize mViewSize;
protected:
QString mOutput;
int mDelay;
CutyPage* mPage;
OutputFormat mFormat;
QObject* mScriptObj;
QString mScriptProp;
QString mScriptCode;
bool mInsecure;
bool mSmooth;
bool mSilent;
public:
QTimer mTimeoutTimer;
};
|
28689f08b7f4fb0c659cbd9594f48a24c18ab657 | 47558f2ee578bf9ffccac7a23d0a8398e93345c3 | /Clouded/Clouded/Source/Graphics/DebugRenderer.h | 13f4d1fdd49a5de2b475ea8761b63de9ba570a7b | [] | no_license | StanPepels/Clouded-C- | 9c08c989cf0c7a27dd18fd43e11afb57334df24d | 219026690a068f4e7900c30d90876497848d4bda | refs/heads/master | 2018-09-19T20:24:28.174454 | 2018-06-29T17:27:08 | 2018-06-29T17:27:08 | 111,549,236 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 293 | h | DebugRenderer.h | #pragma once
#include "stdafx.h"
class D3D11Renderer;
class DebugRenderer
{
public:
DebugRenderer() = default;
static void DrawLine(const Vec3& from, const Vec3& to, const Vec4u8& color);
void set_renderer(D3D11Renderer* const renderer);
private:
static D3D11Renderer* renderer_;
}; |
095630e99ea4817e6a4a2f2a271c51f9afd55808 | d9701c4a9db7899a5f4ab8e476e81b7841b35c8b | /qtClient/studentGrid/DataStore.cpp | 87ade316fea71346ea0908ebd8511fe1c8ee1f95 | [] | no_license | tsvari/StudentJS | 53fe77ca5764baabb8e0b44dedb7f26f6665cdf0 | 489a34ccc30759f6227bb4b5c9396ab956351ce8 | refs/heads/master | 2022-12-18T15:18:28.338462 | 2020-06-18T17:53:24 | 2020-06-18T17:53:24 | 262,878,904 | 1 | 1 | null | 2020-08-01T02:32:35 | 2020-05-10T21:30:03 | JavaScript | UTF-8 | C++ | false | false | 867 | cpp | DataStore.cpp | #include "DataStore.h"
#include "mainwindow.h"
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QJsonDocument>
DataStore* DataStore::m_instance = nullptr;
DataStore::DataStore(QObject* parent) : QObject(parent)
{
m_instance = this;
}
DataStore *DataStore::instance()
{
return m_instance;
}
void DataStore::replyToSelectFinished(QNetworkReply *reply)
{
QString str = reply->readAll();
qDebug() << str;
QJsonDocument loadDoc(QJsonDocument::fromJson(str.toUtf8()));
QJsonArray jsonObjectArray = loadDoc.array();
for(QJsonValue jsonValue: jsonObjectArray) {
QJsonObject js = jsonValue.toObject();
m_jsonStudentArray.push_back(Student(js));
}
//Student st2(178, "New", "neImage.png");
//QJsonObject newJson;
//st2.write(newJson);
//jsonObjectArray.append(newJson);
//qDebug() << jsonObjectArray;
}
|
9b15490cfbdfdc28c4e5ffee9d4c75629f0731a9 | b771b54b2186263770066aab1ab474b945640033 | /src/apps/csv_info/include/test_date.h | b6b2fcb5d35a4c85863eeefda827f7dc7577e3fc | [
"MIT"
] | permissive | boazsade/machine_learinig_models | d13228ac64ab5547c312505be6147d41a81e6523 | eb1f9eda0e4e25a6d028b25682dfb20628a20624 | refs/heads/master | 2020-04-13T01:36:08.251215 | 2018-12-23T12:37:55 | 2018-12-23T12:37:55 | 162,878,744 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 65 | h | test_date.h | #pragma once
#include <string>
bool is_date(std::string input);
|
da3e62e4a2242cd0e75342bb9d901c13757e8dcb | 8fe18f1f13586a7bb17e5e56a9655bf97ddbc2ad | /src/tokenizer.cpp | 4263b4cd441b48952bf1fd319da7819804720be4 | [] | no_license | marc-lopez/clausewitz-parser | bdd207e7b131d57265887b2eb20f598ba79a6b07 | 8a92e577151e381ec5d14cabff74637bd0bdd907 | refs/heads/master | 2016-09-05T17:54:16.722565 | 2015-07-20T00:49:09 | 2015-07-20T00:49:09 | 39,317,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,174 | cpp | tokenizer.cpp | #include <algorithm>
#include <numeric>
#include <sstream>
#include <string>
#include "tokens.hpp"
#include "tokenizer.hpp"
using namespace std::placeholders;
namespace libparser
{
const std::list<std::string> Tokenizer::kReservedTokens
{
tokens::kEquals,
tokens::kComment
};
Tokenizer::Tokenizer(std::shared_ptr<IFileOperations> fileOperations) :
filename_(), tokens_(), contents_(), file_operations_(fileOperations)
{
}
void Tokenizer::Read(std::string filename)
{
filename_ = filename;
GetTokens();
}
std::string Tokenizer::GetNext()
{
return PopFrontToken();
}
std::string Tokenizer::PopFrontToken()
{
auto token_to_retrieve = tokens_.empty() ? tokens::kEmpty : tokens_.front();
if (!tokens_.empty())
{
tokens_.pop();
}
return token_to_retrieve;
}
void Tokenizer::GetTokens()
{
contents_ = file_operations_->Read(filename_);
std::string segment;
std::string partial_token;
while (std::getline(*contents_, segment))
{
auto last_token_in_segment = std::accumulate(segment.begin(), segment.end(), std::string(),
[this](std::string partial_token, char ch) {
return this->AccumulateLineCharacters(partial_token, ch);});
partial_token += (partial_token.empty() ? last_token_in_segment : " " + last_token_in_segment);
TryFlushTokens(&partial_token);
tokens_.push("\n");
}
}
void Tokenizer::TryFlushTokens(std::string * partial_token)
{
if(!XorOfEnds(partial_token, [this](const char &ch){return this->IsQuotes(ch);}) &&
(!partial_token->empty()))
{
FlushToTokens(partial_token);
}
}
void Tokenizer::FlushToTokens(std::string * partial_token)
{
tokens_.push(*partial_token);
partial_token->clear();
}
bool Tokenizer::IsQuotes(const char &ch)
{
return IsToken(ch, tokens::kQuotes);
}
bool Tokenizer::IsReservedToken(std::string partial_token)
{
return (std::find(
Tokenizer::kReservedTokens.begin(),
Tokenizer::kReservedTokens.end(),
partial_token) !=
Tokenizer::kReservedTokens.end());
}
inline bool Tokenizer::IsToken(const char& ch, const std::string& token)
{
return (ch == token.front());
}
inline bool Tokenizer::XorOfEnds(std::string * str, std::function<bool(const char &)> predicate)
{
return (predicate(str->front()) ^ predicate(str->back()));
}
std::string Tokenizer::AccumulateLineCharacters(std::string partial_token, char ch)
{
PushTokenIfValid(partial_token, ch);
if (IsToken(ch, tokens::kEmpty) ||
ch == '\r' ||
!IsPartOfQuotedToken(ch, partial_token))
{
return partial_token;
}
return partial_token + ch;
}
void Tokenizer::PushTokenIfValid(std::string& partial_token, const char& ch)
{
if (IsToken(ch, tokens::kEquals) ||
IsReservedToken(partial_token))
{
FlushToTokens(&partial_token);
}
}
inline bool Tokenizer::IsPartOfQuotedToken(const char& ch, const std::string& partial_token)
{
return ((ch != ' ') || IsQuotes(partial_token.front()));
}
}
|
44fc6cb2da18b09cd9b71480c272269e41ecd087 | 15c678df9475d7dc3ea9f83e4f9491ba67178223 | /class_boss.cpp | f5fff06161f007d2265ab02e9bb1ca2bdc512344 | [] | no_license | evoup/mySkyWar1.0 | 6fc8e2700d957514557180a66dc5890f3db190c7 | e308cf293dc45d512091be23021965446299ee25 | refs/heads/master | 2021-03-12T19:48:36.706126 | 2013-12-06T14:32:21 | 2013-12-06T14:32:21 | 7,393,764 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 5,974 | cpp | class_boss.cpp | // cls_boss.cpp: implementation of the cls_boss class.
//
//////////////////////////////////////////////////////////////////////
#include "class_boss.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
//##ModelId=4A3353910251
cls_boss::cls_boss()
{
}
//##ModelId=4A3353910252
cls_boss::~cls_boss()
{
}
//##ModelId=4A335455035B
cls_boss::FireLaser()
{
}
//##ModelId=4B02B4E9005D
void cls_boss::SetState(int s)
{
this->state=s;
}
//##ModelId=4B02B4E9004E
int cls_boss::GetState()
{
return this->state;
}
//************************************
// Method: normal_attack
// FullName: cls_boss::normal_attack
// Access: public
// Returns: int
// Qualifier:/迎面6定向发散弹
//************************************
//##ModelId=4B02B4E9001F
int cls_boss::normal_attack(int sfid)
{
floatpoint pt;
//++angle;
if (++this->b_counter<80)
{
}
else{
pt.x=this->GetPos().x+43;
pt.y=this->GetPos().y+109;
this->AddBullet(pt,14,1,sfid,255);
this->AddBullet(pt,14,1,sfid,270);
this->AddBullet(pt,14,1,sfid,315);
pt.x=this->GetPos().x+143;
pt.y=this->GetPos().y+109;
this->AddBullet(pt,14,1,sfid,255);
this->AddBullet(pt,14,1,sfid,270);
this->AddBullet(pt,14,1,sfid,315);
this->b_counter=0;
SetState(boss_normalattack1);
return 1;
}
return 0;
}
//************************************
// Method: normal_attack1
// FullName: cls_boss::normal_attack1
// Access: public
// Returns: int
// Qualifier:迎面4发子弹
//************************************
//##ModelId=4B02B4E803C8
int cls_boss::normal_attack1(int sfid)
{
floatpoint pt;
//++angle;
if (++b_counter<80 )
{
}
else if (b_counter>=80 && b_counter<200)
{
//pt.x=this->GetPos().x+43;
//pt.y=this->GetPos().y+109;
//this->AddBullet(pt,6,270);
pt.x=this->GetPos().x+33;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
// pt.x=this->GetPos().x+143;
// pt.y=this->GetPos().y+109;
// this->AddBullet(pt,6,270);
pt.x=this->GetPos().x+153;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
this->b_counter=200;
}
if (b_counter>=200 && b_counter<206){
//停几帧再发第二击
}
else if (b_counter>=206)
{
pt.x=this->GetPos().x+33;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
pt.x=this->GetPos().x+153;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
this->b_counter=0;
SetState(boss_normalattack2);
return 1;
}
return 0;
}
//************************************
// Method: normal_attack2
// FullName: cls_boss::normal_attack2
// Access: public
// Returns: int
// Qualifier: 可以被打掉的散弹
// Parameter: int sfid
//************************************
//##ModelId=4B02B4E80399
int cls_boss::normal_attack2(int sfid)
{
floatpoint pt;
//++angle;
if (++this->b_counter<40)
{
}
else{
pt.x=this->GetPos().x+43;
pt.y=this->GetPos().y+109;
this->AddBullet(pt,4,2,sfid,255);
this->AddBullet(pt,4,2,sfid,270);
this->AddBullet(pt,4,2,sfid,315);
this->AddBullet(pt,4,2,sfid,252);
this->AddBullet(pt,4,2,sfid,263);
this->AddBullet(pt,4,2,sfid,307);
this->AddBullet(pt,4,2,sfid,227);
pt.x=this->GetPos().x+143;
pt.y=this->GetPos().y+109;
this->AddBullet(pt,4,2,sfid,255);
this->AddBullet(pt,4,2,sfid,270);
this->AddBullet(pt,4,2,sfid,315);
this->AddBullet(pt,4,2,sfid,258);
this->AddBullet(pt,4,2,sfid,278);
this->AddBullet(pt,4,2,sfid,327);
this->AddBullet(pt,4,2,sfid,207);
this->b_counter=0;
SetState(boss_normalattack);
return 1;
}
return 0;
}
//************************************
// Method: normal_attack3
// FullName: cls_boss::normal_attack3
// Access: public
// Returns: int
// Qualifier: 快速一般的散弹
// Parameter: int sfid
//************************************
//##ModelId=4B02B4E80399
int cls_boss::normal_attack3(int sfid)
{
floatpoint pt;
//++angle;
if (++this->b_counter<40)
{
}
else{
pt.x=this->GetPos().x+43;
pt.y=this->GetPos().y+109;
this->AddBullet(pt,8,2,sfid,255);
this->AddBullet(pt,8,2,sfid,270);
this->AddBullet(pt,8,2,sfid,315);
this->AddBullet(pt,8,2,sfid,252);
this->AddBullet(pt,8,2,sfid,263);
this->AddBullet(pt,8,2,sfid,307);
this->AddBullet(pt,8,2,sfid,227);
pt.x=this->GetPos().x+143;
pt.y=this->GetPos().y+109;
this->AddBullet(pt,8,2,sfid,255);
this->AddBullet(pt,8,2,sfid,270);
this->AddBullet(pt,8,2,sfid,315);
this->AddBullet(pt,8,2,sfid,258);
this->AddBullet(pt,8,2,sfid,278);
this->AddBullet(pt,8,2,sfid,327);
this->AddBullet(pt,8,2,sfid,207);
this->b_counter=0;
SetState(boss_normalattack4);
return 1;
}
return 0;
}
//************************************
// Method: normal_attack1
// FullName: cls_boss::normal_attack1
// Access: public
// Returns: int
// Qualifier:迎面4发子弹
//************************************
//##ModelId=4B02B4E803C8
int cls_boss::normal_attack4(int sfid)
{
floatpoint pt;
//++angle;
if (++b_counter<80 )
{
}
else if (b_counter>=80 && b_counter<200)
{
//pt.x=this->GetPos().x+43;
//pt.y=this->GetPos().y+109;
//this->AddBullet(pt,6,270);
pt.x=this->GetPos().x+33;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
// pt.x=this->GetPos().x+143;
// pt.y=this->GetPos().y+109;
// this->AddBullet(pt,6,270);
pt.x=this->GetPos().x+153;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
this->b_counter=200;
}
if (b_counter>=200 && b_counter<206){
//停几帧再发第二击
}
else if (b_counter>=206)
{
pt.x=this->GetPos().x+33;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
pt.x=this->GetPos().x+153;
pt.y=this->GetPos().y+69;
this->AddBullet(pt,15,1,sfid,270);
this->b_counter=0;
SetState(boss_normalattack3);
return 1;
}
return 0;
}
//DEL void cls_boss::SetMoveState(int s)
//DEL {
//DEL
//DEL }
|
03db89a5e7b7e35a7a3c3f8fba8cc417497f3068 | eb7e8c655bd03bdfae4581aa700a5213ca3107ea | /OpenGL/main.cpp | 16768c20529c133c697bb2206a69b4bb4e9e0ca1 | [] | no_license | echeverrimontes/Navier-Stokeish-Mac | 09c977c8bc5aac18a9b692c31f919280d163b16b | ae9d8df41932b04bf54224eed88d92aacd0918d3 | refs/heads/master | 2020-04-19T13:42:11.196636 | 2018-11-23T21:57:22 | 2018-11-23T21:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,697 | cpp | main.cpp | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <glm.hpp>
#include "Shader.h"
#include <time.h>
#include <iostream>
#include <string>
#include <vector>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include <boost/filesystem.hpp>
#if defined(_WIN32)
#include <windows.h>
#elif defined(__linux__)
#include <sstream>
#include <unistd.h>
#elif defined(__APPLE__)
#include <mach-o/dyld.h>
#endif
boost::filesystem::path find_executable()
{
unsigned int bufferSize = 512;
std::vector<char> buffer(bufferSize + 1);
#if defined(_WIN32)
::GetModuleFileName(NULL, &buffer[0], bufferSize);
#elif defined(__linux__)
// Get the process ID.
int pid = getpid();
// Construct a path to the symbolic link pointing to the process executable.
// This is at /proc/<pid>/exe on Linux systems (we hope).
std::ostringstream oss;
oss << "/proc/" << pid << "/exe";
std::string link = oss.str();
// Read the contents of the link.
int count = readlink(link.c_str(), &buffer[0], bufferSize);
if(count == -1) throw std::runtime_error("Could not read symbolic link");
buffer[count] = '\0';
#elif defined(__APPLE__)
if(_NSGetExecutablePath(&buffer[0], &bufferSize))
{
buffer.resize(bufferSize);
_NSGetExecutablePath(&buffer[0], &bufferSize);
}
#else
#error Cannot yet find the executable on this platform
#endif
std::string s = &buffer[0];
return s;
}
// FPS, iFrame counter.
int initialTime = time( NULL ), finalTime, frameCount, frames, FPS;
const char* title;
// Mouse.
static double xPre, yPre;
double xPos, yPos, xDif, yDif, xAce, yAce, vX, vY;
// timing
float deltaTime = 0.0f;
float lastFrame = 0.0f;
// Our image size.
unsigned int SRC_WIDTH;
unsigned int SRC_HEIGHT;
int WIDTH, HEIGHT;
// We need this to be able to resize our window.
void framebuffer_size_callback( GLFWwindow* window, int width, int height );
// We need this to be able to close our window when pressing a key.
void processInput( GLFWwindow* window );
// We need this to be able to call our load image function from below main.
unsigned int loadTexture( const char *path );
// Our mouse button click flag.
float pressed = 0.0, right_pressed = 0.0;
// Our mouse.
static void cursorPositionCallback( GLFWwindow *window, double xPos, double yPos );
// Our mouse button press.
static void mouseButtonCallback( GLFWwindow *window, int button, int action, int mods );
int main()
{
std::cout << "Type yes if you have a retina display otherwise type no: ";
std::string retina;
std::cin >> retina;
std::cout << "Type the desired width of the window: " << std::endl;
std::cin >> SRC_WIDTH;
std::cout << "Type the desired height of the window: " << std::endl;
std::cin >> SRC_HEIGHT;
std::cout << "Specify the path to the texture you want to use to initialize the simulation (no double quotes please!): " << std::endl;
std::string texturePathString = "Wind.png";
std::cin >> texturePathString;
const char* texturePath = &texturePathString[0];
// We initialize glfw and specify which versions of OpenGL to target.
const char* glsl_version = "#version 150";
glfwInit();
glfwWindowHint( GLFW_CONTEXT_VERSION_MAJOR, 3 );
glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 );
glfwWindowHint( GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE );
glfwWindowHint( GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE );
// Our window object.
GLFWwindow* window = glfwCreateWindow( SRC_WIDTH, SRC_HEIGHT, "NavierStokeish", NULL, NULL );
if ( window == NULL )
{
std::cout << "Failed to create GLFW window" << std::endl;
glfwTerminate();
return -1;
}
glfwMakeContextCurrent( window );
glfwSetFramebufferSizeCallback( window, framebuffer_size_callback );
// Initialize the mouse.
glfwSetCursorPosCallback( window, cursorPositionCallback );
// Initialize the mouse button.
glfwSetMouseButtonCallback( window, mouseButtonCallback );
// Load glad, we need this library to specify system specific functions.
if( !gladLoadGLLoader( ( GLADloadproc ) glfwGetProcAddress ) )
{
std::cout << "Failed to initialize GLAD" << std::endl;
return -1;
}
// Setup Dear ImGui context
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO(); (void)io;
//io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
//io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
// Setup Platform/Renderer bindings
ImGui_ImplGlfw_InitForOpenGL(window, true);
ImGui_ImplOpenGL3_Init(glsl_version);
// Setup Style
ImGui::StyleColorsDark();
boost::filesystem::path path = find_executable().parent_path();
std::string vertexShaderString = path.string() + "/Resources/Shaders/vertex.glsl";
char *vertexShader = &vertexShaderString[0u];
std::string vertexShaderStringOne = path.string() + "/Resources/Shaders/BufferDVertex.glsl";
char *vertexShaderOne = &vertexShaderStringOne[0];
std::string imageString = path.string() + "/Resources/Shaders/Image.glsl";
char *image = &imageString[0];
std::string bufferAString = path.string() + "/Resources/Shaders/BufferA.glsl";
char *bufferA = &bufferAString[0];
std::string bufferBString = path.string() + "/Resources/Shaders/BufferB.glsl";
char *bufferB = &bufferBString[0];
std::string bufferCString = path.string() + "/Resources/Shaders/BufferC.glsl";
char *bufferC = &bufferCString[0];
std::string bufferDString = path.string() + "/Resources/Shaders/BufferD.glsl";
char *bufferD = &bufferDString[0];
std::string imagePathString = path.string() + "/Resources/Wind.png";
char *imagePath = &imagePathString[0];
// We build and compile our shader program.
Shader Image( vertexShader, image );
Shader BufferA( vertexShader, bufferA );
Shader BufferB( vertexShader, bufferB );
Shader BufferC( vertexShader, bufferC );
Shader BufferD( vertexShaderOne, bufferD );
// This is for our screen quad.
// We define the points in space that we want to render.
float vertices[] =
{
// Positions. // TextureCoordinates.
-1.0f, -1.0f, 0.0f, //-1.0f, 1.0f,
-1.0f, 1.0f, 0.0f, //1.0f, 1.0f,
1.0f, 1.0f, 0.0f, //1.0f, -1.0f,
1.0f, -1.0f, 0.0f, //-1.0f, -1.0f
};
// We define our Element Buffer Object indices so that if we have vertices that overlap,
// we dont have to render twice, 50% overhead.
unsigned int indices[] =
{
0, 1, 3,
1, 2, 3
};
// We create a buffer ID so that we can later assign it to our buffers.
unsigned int VBO, VAO, EBO;
glGenVertexArrays( 1, &VAO );
glGenBuffers( 1, &VBO );
glGenBuffers( 1, &EBO );
// Bind Vertex Array Object.
glBindVertexArray( VAO );
// Copy our vertices array in a buffer for OpenGL to use.
// We assign our buffer ID to our new buffer and we overload it with our triangles array.
glBindBuffer( GL_ARRAY_BUFFER, VBO );
glBufferData( GL_ARRAY_BUFFER, sizeof( vertices ), vertices, GL_STATIC_DRAW );
// Copy our indices in an array for OpenGL to use.
glBindBuffer( GL_ELEMENT_ARRAY_BUFFER, EBO );
glBufferData( GL_ELEMENT_ARRAY_BUFFER, sizeof( indices ), indices, GL_STATIC_DRAW );
// Set our vertex attributes pointers.
glVertexAttribPointer( 0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof( float ), ( void* ) 0 );
glEnableVertexAttribArray( 0 );
// Unbind the VBO.
glBindBuffer( GL_ARRAY_BUFFER, 0 );
// Unbind the VAO.
glBindVertexArray( 0 );
const int siz = 600;
std::vector<glm::vec3> points;
std::vector<int> ind;
int counter = 0;
float dis = 0.003;
for ( int i = -siz; i < siz; ++i )
{
for ( int j = -siz; j < siz; ++j )
{
float x = i * dis;
float y = j * dis;
float z = 0;
points.push_back( glm::vec3( x, y, z ) );
ind.push_back( counter );
counter++;
}
}
// We create a buffer ID so that we can later assign it to our buffers.
unsigned int VBOO, VAOO, EBOO;
glGenVertexArrays( 1, &VAOO );
glGenBuffers( 1, &VBOO );
glGenBuffers( 1, &EBOO );
// Bind Vertex Array Object.
glBindVertexArray( VAOO );
// Copy our vertices array in a buffer for OpenGL to use.
// We assign our buffer ID to our new buffer and we overload it with our triangles array.
glBindBuffer( GL_ARRAY_BUFFER, VBOO );
//glBufferData( GL_ARRAY_BUFFER, points.size() * sizeof( Points ), passPoints, GL_STATIC_DRAW );
glBufferData( GL_ARRAY_BUFFER, points.size() * sizeof( glm::vec3 ), &points.front(), GL_STATIC_DRAW );
// Copy our indices in an array for OpenGL to use.
glBindBuffer( GL_ELEMENT_ARRAY_BUFFER, EBOO );
//glBufferData( GL_ELEMENT_ARRAY_BUFFER, ind.size() * sizeof( GLint ), passIndex, GL_STATIC_DRAW );
glBufferData( GL_ELEMENT_ARRAY_BUFFER, ind.size() * sizeof( int ), &ind.front(), GL_STATIC_DRAW );
// Set our vertex attributes pointers.
glVertexAttribPointer( 0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof( float ), ( void* ) 0 );
glEnableVertexAttribArray( 0 );
// Unbind the VBO.
glBindBuffer( GL_ARRAY_BUFFER, 0 );
// Unbind the VAO.
glBindVertexArray( 0 );
// Load them textures.
//unsigned int tex = loadTexture( "Cassini-Projection-2.jpg" );
BufferA.use();
BufferA.setInt( "iChannel0", 0 );
BufferA.setInt( "iChannel1", 1 );
BufferB.use();
BufferB.setInt( "iChannel0", 1 );
BufferB.setInt( "iChannel1", 0 );
BufferB.setInt( "iChannel2", 2 );
BufferC.use();
BufferC.setInt( "iChannel0", 0 );
BufferC.setInt( "iChannel1", 1 );
BufferD.use();
BufferD.setInt( "iChannel0", 0 );
BufferD.setInt( "iChannel1", 1 );
BufferD.setInt( "iChannel2", 2 );
Image.use();
Image.setInt( "iChannel0", 0 );
Image.setInt( "iChannel1", 1 );
Image.setInt( "iChannel2", 2 );
Image.setInt( "iChannel3", 3 );
Image.setInt( "iChannel4", 4 );
// BufferA Ping Pong FrameBuffers
// Framebuffer configuration.
unsigned int frameBuffer;
glGenFramebuffers( 1, &frameBuffer );
glBindFramebuffer( GL_FRAMEBUFFER, frameBuffer );
glfwGetFramebufferSize( window, &WIDTH, &HEIGHT );
// Create a colour attachment texture.
unsigned int textureColourBuffer;
glGenTextures( 1, &textureColourBuffer );
glBindTexture( GL_TEXTURE_2D, textureColourBuffer );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBuffer, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER ) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// BufferA frameBuffer configuration.
// Framebuffer configuration.
unsigned int frameBufferOne;
glGenFramebuffers( 1, &frameBufferOne );
glBindFramebuffer( GL_FRAMEBUFFER, frameBufferOne );
// Create a colour attachment texture.
unsigned int textureColourBufferOne;
glGenTextures( 1, &textureColourBufferOne );
glBindTexture( GL_TEXTURE_2D, textureColourBufferOne);
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferOne, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER ) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// BufferB frameBuffer configurations.
// Framebuffer configuration.
unsigned int frameBufferTwo;
glGenFramebuffers( 1, &frameBufferTwo );
glBindFramebuffer( GL_FRAMEBUFFER, frameBufferTwo );
// Create a colour attachment texture.
unsigned int textureColourBufferTwo;
glGenTextures( 1, &textureColourBufferTwo );
glBindTexture( GL_TEXTURE_2D, textureColourBufferTwo );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferTwo, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER ) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer(GL_FRAMEBUFFER, 0);
// Framebuffer configuration.
unsigned int frameBufferThree;
glGenFramebuffers( 1, &frameBufferThree );
glBindFramebuffer( GL_FRAMEBUFFER, frameBufferThree );
// Create a colour attachment texture.
unsigned int textureColourBufferThree;
glGenTextures( 1, &textureColourBufferThree );
glBindTexture( GL_TEXTURE_2D, textureColourBufferThree );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferThree, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// BufferC frameBuffer configurations.
// Framebuffer configuration.
unsigned int frameBufferFour;
glGenFramebuffers(1, &frameBufferFour);
glBindFramebuffer(GL_FRAMEBUFFER, frameBufferFour);
// Create a colour attachment texture.
unsigned int textureColourBufferFour;
glGenTextures( 1, &textureColourBufferFour );
glBindTexture( GL_TEXTURE_2D, textureColourBufferFour );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferFour, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER ) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// Framebuffer configuration.
unsigned int frameBufferFive;
glGenFramebuffers( 1, &frameBufferFive );
glBindFramebuffer( GL_FRAMEBUFFER, frameBufferFive );
// Create a colour attachment texture.
unsigned int textureColourBufferFive;
glGenTextures( 1, &textureColourBufferFive );
glBindTexture( GL_TEXTURE_2D, textureColourBufferFive );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferFive, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER ) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// BufferD frameBuffer configurations.
// Framebuffer configuration.
unsigned int frameBufferSix;
glGenFramebuffers( 1, &frameBufferSix );
glBindFramebuffer( GL_FRAMEBUFFER, frameBufferSix );
// Create a colour attachment texture.
unsigned int textureColourBufferSix;
glGenTextures( 1, &textureColourBufferSix );
glBindTexture( GL_TEXTURE_2D, textureColourBufferSix );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferSix, 0 );
if ( glCheckFramebufferStatus( GL_FRAMEBUFFER ) != GL_FRAMEBUFFER_COMPLETE )
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// Framebuffer configuration.
unsigned int frameBufferSeven;
glGenFramebuffers( 1, &frameBufferSeven );
glBindFramebuffer( GL_FRAMEBUFFER, frameBufferSeven );
// Create a colour attachment texture.
unsigned int textureColourBufferSeven;
glGenTextures( 1, &textureColourBufferSeven );
glBindTexture( GL_TEXTURE_2D, textureColourBufferSeven );
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA16F, WIDTH, HEIGHT, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, textureColourBufferSeven, 0 );
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
std::cout << "ERROR::FRAMEBUFFER:: Framebuffer is not complete!" << std::endl;
glBindFramebuffer(GL_FRAMEBUFFER, 0);
// Add an image.
unsigned int tex = loadTexture( texturePath );
// We want to know if the frame we are rendering is even or odd.
bool even = true;
// Setup input for GUI.
ImVec4 leftMouseColour = ImVec4( 0.45f, 0.55f, 0.60f, 1.00f );
ImVec4 rightMouseColour = ImVec4( 0.45f, 0.55f, 0.60f, 1.00f );
std::string randomOrNot = "Random Colours!";
std::string negativeOrNot = "Negative Colours!";
static float diffusionRate = 0.25f;
static float sizeOfPainter = 0.05f;
static float damping = 1.0f;
static float vorticity = 12.0f;
static int randomColours = 1;
static int negativeColours = 1;
static int reloadTexture = 0;
// Render Loop.
while( !glfwWindowShouldClose( window ) )
{
glfwGetFramebufferSize( window, &WIDTH, &HEIGHT );
//glfwGetCursorPos( window, &xPos, &yPos );
// Input.
processInput( window );
// Start the Dear ImGui frame
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
ImGui::Begin( "Graphical User Interface" ); // Pass a pointer to our bool variable (the window will have a closing button that will clear the bool when clicked)
ImGui::Text( "Pick your weapons! You can paint with right and left click" );
ImGui::SliderFloat( "Size of Mouse Painter", &sizeOfPainter, 0.0f, 1.0f ); // Edit 1 float using a slider from 0.0f to 1.0f
if( ImGui::Button( "Reload Texture" ) )
reloadTexture = 1;
else
{
reloadTexture = 0;
}
ImGui::SliderFloat( "Diffusion Rate", &diffusionRate, 0.0f, 1.0f );
ImGui::SliderFloat( "Vorticity Confinement", &vorticity, 1.0f, 20.0f );
ImGui::SliderFloat( "Damping factor", &damping, 0.0f, 1.0f );
if( ImGui::Button( "Left-Click Random Colours" ) )
if( randomColours == 0 )
{
randomColours = 1;
randomOrNot = "Random Colours!";
}
else
{
randomColours = 0;
randomOrNot = "Not Random Colours";
}
ImGui::Text( randomOrNot.c_str() );
ImGui::ColorEdit3( "Left-Click Colour", ( float* ) &leftMouseColour );
if( ImGui::Button( "Right-Click Negative Colours" ) )
if( negativeColours == 0 )
{
negativeColours = 1;
negativeOrNot = "Negative Colours!";
}
else
{
negativeColours = 0;
negativeOrNot = "Not Negative Colours";
}
ImGui::Text( negativeOrNot.c_str() );
ImGui::ColorEdit3( "Right-Click Colour", ( float* ) &rightMouseColour ); // Edit 3 floats representing a color
ImGui::End();
// Render.
// Bind to frameBuffer and draw scene as normally would to colour texture.
glBindFramebuffer( GL_FRAMEBUFFER, even ? frameBuffer : frameBufferOne );
glClearColor( 0.2f, 0.3f, 0.1f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
BufferA.use();
float currentFrame = glfwGetTime();
//Set the iTimeDelta uniform.
float deltaTime = currentFrame - lastFrame;
lastFrame = currentFrame;
BufferA.setFloat( "iTimeDelta", deltaTime );
// Set the iTime uniform.
float timeValue = currentFrame;
BufferA.setFloat( "iTime", timeValue );
// Set the iResolution uniform.
BufferA.setVec2( "iResolution", WIDTH, HEIGHT );
// Input the size of the Mouse Painter.
BufferA.setFloat( "siz", sizeOfPainter );
// Input iMouse.
glfwGetCursorPos( window, &xPos, &yPos );
if( retina == "yes" )
{
xPos *= 2.0;
yPos *= 2.0;
}
if( ImGui::IsMouseHoveringAnyWindow() == 1 || ImGui::IsAnyItemHovered() == 1 )
{
pressed = 0;
right_pressed = 0;
}
yPos = HEIGHT - yPos;
xDif = xPos - xPre;
yDif = yPos - yPre;
const float dx = 0.5;
const float dt = dx * dx * 0.5;
if( xDif != 0 && pressed > 0.5 )
{
if( deltaTime == 0 ) deltaTime = 1;
vX = xDif / deltaTime;
}
if( yDif != 0 && pressed > 0.5 )
{
if( deltaTime == 0 ) deltaTime = 1;
vY = yDif / deltaTime;
}
// BufferA
BufferA.setVec3( "iMouse", xPos, yPos, pressed );
glBindVertexArray( VAO );
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferOne : textureColourBuffer );
glActiveTexture( GL_TEXTURE1 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferThree : textureColourBufferTwo );
glDrawElements( GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0 );
glBindVertexArray( 0 );
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
// BufferB
glBindFramebuffer( GL_FRAMEBUFFER, even ? frameBufferTwo : frameBufferThree );
glClearColor( 0.2f, 0.3f, 0.1f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
BufferB.use();
BufferB.setInt( "iFrame", frames );
//Set the iTimeDelta uniform.
BufferB.setFloat( "iTimeDelta", deltaTime );
// Set the iTime uniform.
BufferB.setFloat( "iTime", timeValue );
// Set the iResolution uniform.
BufferB.setVec2( "iResolution", WIDTH, HEIGHT );
// Input iMouse.
BufferB.setVec4( "iMouse", xPos, yPos, pressed, right_pressed );
// Input mouse iVel.
BufferB.setVec2( "iVel", vX, vY );
// Input colour from GUI.
BufferB.setVec4( "iColour", leftMouseColour.x, leftMouseColour.y, leftMouseColour.z, leftMouseColour.w );
BufferB.setVec4( "iColourOne", rightMouseColour.x, rightMouseColour.y, rightMouseColour.z, rightMouseColour.w );
// Input the size of the Mouse Painter.
BufferB.setFloat( "siz", sizeOfPainter );
// Input the damping factor.
BufferB.setFloat( "iDamping", damping );
// Input the colour flag.
BufferB.setInt( "iColourFlag", randomColours );
// Input the negative flag.
BufferB.setInt( "iNegativeFlag", negativeColours );
// Input the diffusion rate float.
BufferB.setFloat( "iDiffusion", diffusionRate );
// Input the vorticity confinement float.
BufferB.setFloat( "iVorticity", vorticity );
// Input the reload texture flag.
BufferB.setInt( "iReload", reloadTexture );
glBindVertexArray( VAO );
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferOne : textureColourBuffer );
glActiveTexture( GL_TEXTURE1 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferThree : textureColourBufferTwo );
glActiveTexture( GL_TEXTURE2 );
glBindTexture( GL_TEXTURE_2D, tex );
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
glBindVertexArray( 0 );
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
glClearColor( 1.0f, 1.0f, 1.0f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
// BufferC
glBindFramebuffer( GL_FRAMEBUFFER, even ? frameBufferFour : frameBufferFive );
glClearColor( 0.2f, 0.3f, 0.1f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
BufferC.use();
//Set the iTimeDelta uniform.
BufferC.setFloat( "iTimeDelta", deltaTime );
// Set the iTime uniform.
BufferC.setFloat( "iTime", timeValue );
// Set the iResolution uniform.
BufferC.setVec2( "iResolution", WIDTH, HEIGHT );
// Input iMouse.
BufferC.setVec3( "iMouse", xPos, yPos, pressed );
glBindVertexArray( VAO );
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferFive : textureColourBufferFour );
glActiveTexture( GL_TEXTURE1 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferThree : textureColourBufferTwo );
glDrawElements( GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0 );
glBindVertexArray( 0 );
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
glClearColor( 1.0f, 1.0f, 1.0f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
// BufferD
glBindFramebuffer( GL_FRAMEBUFFER, even ? textureColourBufferSix : textureColourBufferSeven );
glClearColor( 0.2f, 0.3f, 0.1f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
BufferD.use();
//Set the iTimeDelta uniform.
BufferD.setFloat( "iTimeDelta", deltaTime );
// Set the iTime uniform.
BufferD.setFloat( "iTime", timeValue );
// Set the iResolution uniform.
BufferD.setVec2( "iResolution", WIDTH, HEIGHT );
// Input iMouse.
BufferD.setVec3( "iMouse", xPos, yPos, pressed );
glBindVertexArray( VAOO );
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferOne : textureColourBuffer );
glActiveTexture( GL_TEXTURE1 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferSeven : textureColourBufferSix );
glActiveTexture( GL_TEXTURE2 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferThree : textureColourBufferTwo );
glDrawElements( GL_POINTS, ind.size(), GL_UNSIGNED_INT, 0 );
glEnable( GL_PROGRAM_POINT_SIZE );
glBindVertexArray( 0 );
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
glClearColor( 0.0f, 0.0f, 0.0f, 1.0f );
glClear( GL_COLOR_BUFFER_BIT );
// Our last stage for our colour Navier-Stokes and mixing it with the Wave Equation.
Image.use();
// Set the iResolution uniform.
Image.setVec2( "iResolution", WIDTH, HEIGHT );
// Set the iTime uniform.
Image.setFloat( "iTime", timeValue );
glBindVertexArray( VAO );
glActiveTexture( GL_TEXTURE0 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferOne : textureColourBuffer );
glActiveTexture( GL_TEXTURE1 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferThree : textureColourBufferTwo );
glActiveTexture( GL_TEXTURE2 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferFive : textureColourBufferFour );
glActiveTexture( GL_TEXTURE3 );
glBindTexture( GL_TEXTURE_2D, even ? textureColourBufferSeven : textureColourBufferSix );
glActiveTexture( GL_TEXTURE4 );
glBindTexture( GL_TEXTURE_2D, tex );
glDrawElements( GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0 );
glBindVertexArray( 0 );
glBindFramebuffer( GL_FRAMEBUFFER, 0 );
ImGui::Render();
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
glfwSwapBuffers( window );
glfwPollEvents();
xPre = xPos;
yPre = yPos;
even = !even;
frameCount++;
frames++;
finalTime = time( NULL );
if( finalTime - initialTime > 0 )
{
FPS = frameCount / ( finalTime - initialTime );
std::stringstream title;
title << "Navier-Stokes Simulation, FPS : " << FPS;
frameCount = 0;
initialTime = finalTime;
glfwSetWindowTitle( window, title.str().c_str() );
}
}
// De-allocate all resources once they've outlived their purpose.
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui::DestroyContext();
glDeleteVertexArrays( 1, &VAO );
glDeleteVertexArrays( 1, &VAOO );
glDeleteBuffers( 1, &VBO );
glDeleteBuffers( 1, &VBOO );
glDeleteBuffers( 1, &EBO );
glDeleteBuffers( 1, &EBOO );
glfwTerminate();
return 0;
}
void processInput( GLFWwindow *window )
{
if ( glfwGetKey( window, GLFW_KEY_ESCAPE) == GLFW_PRESS )
glfwSetWindowShouldClose( window, true );
}
void framebuffer_size_callback( GLFWwindow* window, int width, int height )
{
glViewport( 0, 0, width, height );
}
static void cursorPositionCallback( GLFWwindow *window, double xPos, double yPos )
{
xPos = 2.0 * xPos / WIDTH - 1;
yPos = -2.0 * yPos / HEIGHT + 1;
}
static void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods)
{
if( button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_PRESS )
{
if( pressed == 0.0 )
{
pressed = 1.0;
}
}
if ( button == GLFW_MOUSE_BUTTON_LEFT && action == GLFW_RELEASE )
{
if ( pressed == 1.0 )
{
pressed = 0.0;
}
}
//std::cout << std::boolalpha << pressed << std::endl;
}
// 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;
stbi_set_flip_vertically_on_load(true);
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, GL_RGBA32F, 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;
}
|
532e82cf27a9c78cd41c8deb6f4104797980d235 | 0256224cd6dfedc1f74fa7adb0d159c91d56de31 | /day02_2018/Reader.h | 6d3574466e3d971de13977aff28cb08a3679bb4c | [] | no_license | drewburton/Advent-of-Code | 49263059fde6df082a9e195e2ee4e20af9d4dcc4 | 714658ae6e21fa7dba98bf99663e95a85d596971 | refs/heads/master | 2021-07-11T08:44:36.294470 | 2020-12-16T00:34:15 | 2020-12-16T00:34:15 | 226,220,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | h | Reader.h | #ifndef READER_H
#define READER_H
#include <string>
#include <iostream>
#include <fstream>
#include <list>
#include <map>
using namespace std;
class Reader
{
public:
Reader(string fileName);
~Reader();
int Checksum() { return _twoSame * _threeSame; };
string SimilarCharacters() { return _similarCharacters; };
protected:
void ReadFile();
void CountSameLetters();
void FindSimilarID();
string _fileName;
ifstream reader;
list<string> *data;
int _twoSame = 0;
int _threeSame = 0;
string _similarCharacters;
enum parts { part1, part2 };
};
#endif |
a50c4c14d5b8ea3dbd75398ecf8313d23010e720 | 9b98af0d8281cb97c8e2dbb5930ce7caab39b231 | /src/c++/fcl_extended_api.h | a92126d06d5be39559aad791aedb57d63c0778fc | [] | no_license | domw117/fcl_fortran | 5c0546aedf27b0bcaf04c365b23682458eef5598 | 7a64fe5c5064cb1a3948c6cfed45b62599e04c6d | refs/heads/master | 2022-09-12T10:20:27.906948 | 2020-05-31T23:36:29 | 2020-05-31T23:36:29 | 263,516,966 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 555 | h | fcl_extended_api.h | #pragma once
extern "C" {
namespace fcl_fortran_inferface {
void add_fcl_surface(int num_verts,
int num_tris,
const double *vertices,
const int *triangles);
void calculate_fcl_contacts();
void get_num_fcl_contacts(int &num_contacts);
void get_fcl_contacts(int &num_contacts,
double &contact_coords,
int &object_pair,
int &surf_ids_slv,
int &surf_ids_mstr);
void clean_fcl_surfaces();
}
}
|
08a8c2108071f539e1cbe0e7ef2c4ba5e7c2a2ce | 1339673b62571bf502f6684f140ac9a7a95e9878 | /week-2/string/strcompare.cpp | 493902dd8d2d3cb77523d7cd5ea1df782979575a | [] | no_license | haribaz/IPMP1921 | 7bd02d27d3cbce40889bac49a083d119b79a2723 | a091da64797a72b1715d9711440fcb8a479dbc1c | refs/heads/master | 2023-06-13T02:29:42.315838 | 2021-07-10T04:26:37 | 2021-07-10T04:26:37 | 354,564,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | strcompare.cpp | #include<bits/stdc++.h>
using namespace std;
int strcompare(string s1, string s2) {
int i;
for(i=0; s1[i] && s2[i]; i++) {
if(s1[i] == s2[i] || (s1[i] ^ 32) == s2[i])
continue;
break;
}
if (s1[i] == s2[i])
return 0;
if ((s1[i] | 32) < (s2[i] | 32))
return -1;
return 1;
}
int main() {
string s1 = "Hello", s2= "HellO";
cout<<strcompare(s1, s2);
} |
65a96d4ff5c997f75c00657307ac27d8846a0bd0 | 0e6e1449640c6d1f85e18bd60026151e73bd1505 | /flamingoserver/chatserversrc/ChatSession.h | 2d78fb4d572dad0ed1e75f71917fdc1cf75a5f4c | [] | no_license | libaineu2004/flamingo | ca3f23c96452f3f6aaaab922e34b616a916232f1 | 4810d31c6544e28e46c2ae73200c0569a1ad5840 | refs/heads/master | 2023-04-17T21:18:26.353011 | 2021-05-06T05:41:37 | 2021-05-06T05:41:37 | 113,521,475 | 1 | 1 | null | 2021-05-06T05:41:38 | 2017-12-08T02:26:59 | C++ | GB18030 | C++ | false | false | 5,132 | h | ChatSession.h | /**
* ChatSession.h
* zhangyl, 2017.03.10
**/
#pragma once
#include "../net/Buffer.h"
#include "../net/TimerId.h"
#include "TcpSession.h"
using namespace net;
struct OnlineUserInfo
{
int32_t userid;
std::string username;
std::string nickname;
std::string password;
int32_t clienttype; //客户端类型, 0未知, pc=1, android/ios=2
int32_t status; //在线状态 0离线 1在线 2忙碌 3离开 4隐身
};
/**
* 聊天会话类
*/
class ChatSession : public TcpSession
{
public:
ChatSession(const std::shared_ptr<TcpConnection>& conn, int sessionid);
virtual ~ChatSession();
ChatSession(const ChatSession& rhs) = delete;
ChatSession& operator =(const ChatSession& rhs) = delete;
//有数据可读, 会被多个工作loop调用
void onRead(const std::shared_ptr<TcpConnection>& conn, Buffer* pBuffer, Timestamp receivTime);
int32_t getSessionId()
{
return m_id;
}
int32_t getUserId()
{
return m_userinfo.userid;
}
std::string getUsername()
{
return m_userinfo.username;
}
std::string getNickname()
{
return m_userinfo.nickname;
}
std::string getPassword()
{
return m_userinfo.password;
}
int32_t getClientType()
{
return m_userinfo.clienttype;
}
int32_t getUserStatus()
{
return m_userinfo.status;
}
int32_t getUserClientType()
{
return m_userinfo.clienttype;
}
/**
*@param type 取值: 1 用户上线; 2 用户下线; 3 个人昵称、头像、签名等信息更改
*/
void sendUserStatusChangeMsg(int32_t userid, int type, int status = 0);
//让Session失效,用于被踢下线的用户的session
void makeSessionInvalid();
bool isSessionValid();
void enableHearbeatCheck();
void disableHeartbeatCheck();
//检测心跳包,如果指定时间内(现在是30秒)未收到数据包,则主动断开于客户端的连接
void checkHeartbeat(const std::shared_ptr<TcpConnection>& conn);
private:
bool process(const std::shared_ptr<TcpConnection>& conn, const char* inbuf, size_t buflength);
void onHeartbeatResponse(const std::shared_ptr<TcpConnection>& conn);
void onRegisterResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onLoginResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onGetFriendListResponse(const std::shared_ptr<TcpConnection>& conn);
void onFindUserResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onChangeUserStatusResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onOperateFriendResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onAddGroupResponse(int32_t groupId, const std::shared_ptr<TcpConnection>& conn);
void onUpdateUserInfoResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onModifyPasswordResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onCreateGroupResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onGetGroupMembersResponse(const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onChatResponse(int32_t targetid, const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onMultiChatResponse(const std::string& targets, const std::string& data, const std::shared_ptr<TcpConnection>& conn);
void onScreenshotResponse(int32_t targetid, const std::string& bmpHeader, const std::string& bmpData, const std::shared_ptr<TcpConnection>& conn);
void onUpdateTeamInfoResponse(int32_t operationType, const std::string& newTeamName, const std::string& oldTeamName, const std::shared_ptr<TcpConnection>& con);
void onModifyMarknameResponse(int32_t friendid, const std::string& newmarkname, const std::shared_ptr<TcpConnection>& conn);
void onMoveFriendToOtherTeamResponse(int32_t friendid, const std::string& newteamname, const std::string& oldteamname, const std::shared_ptr<TcpConnection>& conn);
void deleteFriend(const std::shared_ptr<TcpConnection>& conn, int32_t friendid);
//根据用户分组信息组装应答给客户端的好友列表信息
void makeUpFriendListInfo(std::string& friendinfo, const std::shared_ptr<TcpConnection>& conn);
//将聊天消息的本地时间改成服务器时间,修改成功返回true,失败返回false。
bool modifyChatMsgLocalTimeToServerTime(const std::string& chatInputJson, std::string& chatOutputJson);
private:
int32_t m_id; //session id
OnlineUserInfo m_userinfo;
int32_t m_seq; //当前Session数据包序列号
bool m_isLogin; //当前Session对应的用户是否已经登录
time_t m_lastPackageTime; //上一次收发包的时间
TimerId m_checkOnlineTimerId; //检测是否在线的定时器id
}; |
47a690517757de130a176b5162c0e8b32b3a56dd | 6caed79e651cde9724ace67467b77a29bb552381 | /Classes/Unit.h | 5d519b3527185882c1e37e8c0617c2275ea707a2 | [] | no_license | Marckusha/MyGame | bd92f7c3eb4e49765bc44f00058e4c32daa1baf8 | fd0b912a0bd57a25ffc53066e6ae712a32024869 | refs/heads/master | 2022-01-14T08:02:05.592513 | 2019-06-10T17:09:18 | 2019-06-10T17:09:18 | 185,488,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | h | Unit.h | #pragma once
#include "cocos2d.h"
#include "Box2D/Box2D.h"
class Unit : public cocos2d::Sprite {
public:
/*static Unit* createSprite(const std::string& filaName) {
return new
//return Unit::create(filaName);
}*/
enum
{
kFilterCategoryLevel = 0x01,
kFilterCategorySolidObject = 0x02,
kFilterCategoryNonSolidObject = 0x04
};
Unit(){}
void addBodyToWorld(std::shared_ptr<b2World> world);
void createFixture(b2Shape* shape);
void addRectangularFixtureToBody(float width, float height);
void addCircularFixtureToBody(float radius);
void setProperties(int x, int y);
void addSprite(const std::string& fileName);
virtual ~Unit() {}
protected:
b2Body* body;
}; |
836485b581a7c7447c22eb31d5fdd1d99e7c7673 | 3c6108c78235c3eb1bd7faa23f659498913b5d71 | /15_07_30/perfectsqrfindr.cpp | 24576ae38982dee4fd1ac8cb4f4515770f30a0b0 | [] | no_license | atishay197/CompetitiveCoding | 82ce2868a247aa9f4a689f5c42af516cd079ac6d | 0e7946a61a55555e52255a6bc79e4e287277c25f | refs/heads/master | 2021-01-10T13:57:43.145797 | 2016-01-09T00:24:44 | 2016-01-09T00:24:44 | 48,296,779 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | perfectsqrfindr.cpp | #include<iostream>
using namespace std;
int main()
{
long long int a=0,i,b,c;
int count = 0;
int flag = 0;
for(i=0 ; a<10000000000 ; i++)
{
flag = 1;
a = i*i;
b = a;
while(b > 0)
{
c = b%10;
if(c != 0 && c != 1 && c != 4 && c != 9)
{
flag = 0;
}
b = b/10;
}
if(flag)
{
cout<<a<<" , ";
count++;
}
}
cout<<"\n"<<count<<"\n";
} |
098c84311c4bd044245b273fcda3dd0e7c958de1 | 2deb357c9708a98f629e356df640d1b9e812aa60 | /dobra dźwignia/main.cpp | 118aee60eb39113577efb1eac380d5363408d9f6 | [] | no_license | majkimge/CompetitiveProgrammingCode | 149f2eaae4763db16a6bef143ca037e46a5f3085 | d250be7703ad56072e914c2426f86b22305b3ac4 | refs/heads/main | 2023-01-20T07:30:36.769917 | 2020-11-24T16:51:07 | 2020-11-24T16:51:07 | 315,691,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,443 | cpp | main.cpp | #include <bits/stdc++.h>
#define MAX 200001
using namespace std;
int n, k;
long long tab[MAX][2];
char word[MAX];
long long literki[MAX][26];
long long all;
long long bad;
int main()
{
scanf("%lld",&n);
scanf("%lld",&k);
scanf("%s",word);
for(int i=0;i<k;i++){
for(int j=0;j<2;j++){
scanf("%lld",&tab[i][j]);
}
}
for(int i=0;i<n;i++){
if(i!=0){
for(int z=0;z<26;z++){
literki[i][z]=literki[i-1][z];
}
literki[i][word[i]-'a']++;
}else{
literki[i][word[i]-'a']++;
}
}
for(int i=0;i<k;i++){
bad=0;
all=0;
for(int j=0;j<26;j++){
if(tab[i][0]>1){
bad+=(literki[tab[i][1]-1][j]-literki[tab[i][0]-2][j])*(literki[tab[i][1]-1][j]-literki[tab[i][0]-2][j]-1)/2;
}else{
if((word[tab[i][0]-1]-'a')==j){
bad+=(literki[tab[i][1]-1][j]-literki[tab[i][0]-1][j]+1)*(literki[tab[i][1]-1][j]-literki[tab[i][0]-1][j])/2;
}else{
bad+=(literki[tab[i][1]-1][j]-literki[tab[i][0]-1][j]-1)*(literki[tab[i][1]-1][j]-literki[tab[i][0]-1][j])/2;
}
}
}
all=((tab[i][1]-1)-(tab[i][0]-1))*((tab[i][1]-1)-(tab[i][0]-1)+1)/2-bad+1;
printf("%lld\n",all);
}
return 0;
}
|
3e77e212eb567d3a699c2a5dac40910f1c29af4f | 2d639bec3bec55a477258a2e4a636871801d0279 | /10469_carry_not_carry.cpp | d33b233ab255b581ce1657fd4849032963492126 | [] | no_license | muskanmahajan37/uva | 06af32e04ff8ee0d44b8ac969182e969cb18ea32 | 2c8badb2159802c9b78fab963ae8a7c063b7c03e | refs/heads/master | 2021-10-16T00:36:28.651151 | 2019-02-07T14:15:39 | 2019-02-07T14:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | 10469_carry_not_carry.cpp | /*
* @Author: eleven
* @Date: 2018-01-29 18:06:16
* @Last Modified by: eleven
* @Last Modified time: 2018-01-29 18:17:00
*/
// Status : AC
#include <bits/stdc++.h>
using namespace std;
int main(){
unsigned int a , b ,c;
while(cin>>a>>b){
c = a^b;
cout<<c<<endl;
}
return 0 ;
} |
344571503ef2fc809a8f179fc92354427cbe5cdb | 2e484a189352449d2ea1b2b59df87dc660bdf842 | /include/cell.h | 01b2c9eb52d1610061a1bcc0210afac8df836a56 | [
"Apache-2.0"
] | permissive | blckbrd-dev/lightning-rager | 6d2c0ab52bcd4e5e2b8eae212aa4b25121a450d9 | 48dabe9538226df8a1a1c48134eaac486863679c | refs/heads/master | 2021-01-19T21:21:34.243516 | 2017-04-24T19:22:13 | 2017-04-24T19:22:13 | 88,647,223 | 0 | 0 | null | 2017-04-24T19:22:14 | 2017-04-18T16:31:13 | C++ | UTF-8 | C++ | false | false | 73 | h | cell.h | #pragma once
namespace vmonitor {
struct cell {
int x;
int y;
};
}
|
9dd87e8b8b994e95c93693b36a328f4d60d53d2d | b8592342d4af96ef9fe5364dd60b446481eba855 | /CallWidget.h | 6f2fd72b36fab58e79025a8ab2dd8eee6976e36d | [] | no_license | sarvex/Develop | a1f44d8f2e0602c38d55f7e77527442b97deed31 | 2c3a66e933a17c412c73975f64cab22a2835e0b2 | refs/heads/main | 2023-09-02T02:47:12.234862 | 2023-08-25T05:38:53 | 2023-08-25T05:38:53 | 32,200,714 | 0 | 0 | null | 2023-09-10T14:49:15 | 2015-03-14T07:27:43 | C++ | UTF-8 | C++ | false | false | 2,689 | h | CallWidget.h | #ifndef CALL_WIDGET
#define CALL_WIDGET
#include "Call.h"
#include <QtWidgets/QAction>
#include <QtGui/QKeySequence>
#include <QtCore/QList>
#include <QtWidgets/QMenu>
#include <QtCore/QPoint>
#include <QtWidgets/QSplitter>
#include <QtCore/QString>
#include <QtWidgets/QTableWidget>
#include <QtWidgets/QTableWidgetItem>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QTreeWidgetItem>
#include <QtWidgets/QVBoxLayout>
class CallWidget
: public QWidget
{
Q_OBJECT
public:
explicit CallWidget (QWidget *parent = 0);
bool updateTree ();
signals:
bool callAnnunciator (bool visible);
bool number (const QString& number);
bool save (QString number);
bool dial (QString number,
bool connect);
bool send (QString number,
QString content);
public slots:
bool onSelectUnread ();
bool add (Call call);
bool addUpdate (Call call);
bool name (QString number,
QString name);
bool onContextMenu (QPoint point);
bool onTableCurrentItemChanged (
QTableWidgetItem* current,
QTableWidgetItem* previous);
bool onTreeCurrentItemChanged (
QTreeWidgetItem* current,
QTreeWidgetItem* previous);
bool onCallNumberTriggered ();
bool onMessageNumberTriggered ();
bool onSaveNumberTriggered ();
bool onDeleteNumberTriggered ();
bool onClearNumberTriggered ();
bool onModemPlugged (bool status);
bool onModemConnected (bool status);
protected:
private:
bool createActions ();
bool createContextMenu ();
bool createTree ();
bool createTable ();
bool createLayout ();
bool initialize ();
bool load ();
bool connect ();
bool remove (int index);
bool edit (const Call& call);
bool callToRow (Call call);
Call rowToCall (int index);
bool updateTable ();
QTreeWidget * tree;
QList <QTreeWidgetItem*> item;
QTableWidget * table;
QMenu * menu;
QList <QAction*> action;
QList <QAction*> separator;
QSplitter * splitter;
QVBoxLayout * layout;
QList <QIcon> icon;
QStringList actionName;
QStringList actionTooltip;
QList <QIcon> actionIcon;
QList <QKeySequence> actionShortcut;
class Action
{
public:
enum
{
Call,
Message,
Save,
Delete,
Clear,
Count
};
};
class Separator
{
public:
enum
{
One,
Count
};
};
};
#endif // CALL_WIDGET
|
ba87fb5730f13073f70a569d1094f179c7f3ac7a | 00d92a35f03a672d0dbefbb382199c116e329d9c | /agendador.h | f80d6906b53b7bfb3ae22cdcac5c518543e5bf93 | [] | no_license | lds1804/SOProjeto | b9e372d251ea790ea57ace71fd1aff7de4486464 | 2aed1c576293daaa4b4686ca4fd14e07ecbec36b | refs/heads/master | 2021-01-02T08:40:47.197855 | 2013-06-21T21:48:46 | 2013-06-21T21:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 466 | h | agendador.h | #ifndef AGENDADOR_H_INCLUDED
#define AGENDADOR_H_INCLUDED
#include "cpu.h"
#include "memoria.h"
#include "disco.h"
#include "job.h"
class agendador
{
private:
cpu* processador;
memoria* mem;
disco* disc;
job* listajobsativos[20];
int tempototal;
int tempoatual;
int njobsativos;
public:
void criajobs();
agendador(int temptotal);
void imprimeagendador();
void iniciasimulacao();
};
#endif // AGENDADOR_H_INCLUDED
|
c4d262a43d9dd47603ec2fb50c449b01879c067d | 6bac07ceda232029b6a9ea0144ad261311348699 | /plugin_III/game_III/meta/meta.CAccidentManager.h | 63326917c2acc428f0aed146c7b8f9ddf6191842 | [
"Zlib"
] | permissive | DK22Pac/plugin-sdk | ced6dc734846f33113e3596045b58febb7eb083c | b0ebc6e4f44c2d5f768b36c6a7a2a688e7e2b9d3 | refs/heads/master | 2023-08-17T06:36:25.363361 | 2023-08-10T05:19:16 | 2023-08-10T05:19:20 | 17,803,683 | 445 | 221 | Zlib | 2023-08-13T04:34:28 | 2014-03-16T16:40:08 | C++ | UTF-8 | C++ | false | false | 8,320 | h | meta.CAccidentManager.h | /*
Plugin-SDK (Grand Theft Auto 3) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "PluginBase.h"
namespace plugin {
CTOR_META_BEGIN(CAccidentManager)
static int address;
static int global_address;
static const int id = 0x456560;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x456560, 0x456560, 0x456560>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x45690F,100,0,0x456900,1, 0x45690F,110,0,0x456900,1, 0x45690F,120,0,0x456900,1>;
using def_t = CAccidentManager *(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
DEL_DTOR_META_BEGIN(CAccidentManager)
static int address;
static int global_address;
static const int id = 0x456580;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x456580, 0x456580, 0x456580>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x45690B,100,2,0,1, 0x45690B,110,2,0,1, 0x45690B,120,2,0,1>;
using def_t = void(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
META_BEGIN(CAccidentManager::GetNextFreeAccident)
static int address;
static int global_address;
static const int id = 0x4565A0;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x4565A0, 0x4565A0, 0x4565A0>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x4566D2,100,0,0x4565D0,1, 0x4566D2,110,0,0x4565D0,1, 0x4566D2,120,0,0x4565D0,1>;
using def_t = CAccident *(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
META_BEGIN(CAccidentManager::ReportAccident)
static int address;
static int global_address;
static const int id = 0x4565D0;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x4565D0, 0x4565D0, 0x4565D0>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x456744,100,0,0x456710,1, 0x456744,110,0,0x456710,1, 0x456744,120,0,0x456710,1>;
using def_t = void(CAccidentManager *, CPed *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *,CPed *>, 0,1>;
META_END
META_BEGIN(CAccidentManager::Update)
static int address;
static int global_address;
static const int id = 0x456710;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x456710, 0x456710, 0x456710>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x48C984,100,0,0x48C850,1, 0x48CA84,110,0,0x48C950,1, 0x48CA14,120,0,0x48C8E0,1>;
using def_t = void(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
META_BEGIN(CAccidentManager::FindNearestAccident)
static int address;
static int global_address;
static const int id = 0x456760;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x456760, 0x456760, 0x456760>;
// total references count: 10en (5), 11en (5), steam (5)
using refs_t = RefList<0x414C45,100,0,0x413E50,1, 0x41FCEA,100,0,0x41FC50,1, 0x4C3192,100,0,0x4C30A0,1, 0x4C336C,100,0,0x4C30A0,2, 0x4C3545,100,0,0x4C30A0,3, 0x414C45,110,0,0x413E50,1, 0x41FCEA,110,0,0x41FC50,1, 0x4C3232,110,0,0x4C3140,1, 0x4C340C,110,0,0x4C3140,2, 0x4C35E5,110,0,0x4C3140,3, 0x414C45,120,0,0x413E50,1, 0x41FCEA,120,0,0x41FC50,1, 0x4C31C2,120,0,0x4C30D0,1, 0x4C339C,120,0,0x4C30D0,2, 0x4C3575,120,0,0x4C30D0,3>;
using def_t = CAccident *(CAccidentManager *, CVector, float *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *,CVector,float *>, 0,1,2>;
META_END
META_BEGIN(CAccidentManager::CountActiveAccidents)
static int address;
static int global_address;
static const int id = 0x456880;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x456880, 0x456880, 0x456880>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x41FCB2,100,0,0x41FC50,1, 0x41FCB2,110,0,0x41FC50,1, 0x41FCB2,120,0,0x41FC50,1>;
using def_t = unsigned short(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
META_BEGIN(CAccidentManager::WorkToDoForMedics)
static int address;
static int global_address;
static const int id = 0x4568A0;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x4568A0, 0x4568A0, 0x4568A0>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x4566FD,100,0,0x4565D0,1, 0x4566FD,110,0,0x4565D0,1, 0x4566FD,120,0,0x4565D0,1>;
using def_t = bool(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
META_BEGIN(CAccidentManager::UnattendedAccidents)
static int address;
static int global_address;
static const int id = 0x4568D0;
static const bool is_virtual = false;
static const int vtable_index = -1;
using mv_addresses_t = MvAddresses<0x4568D0, 0x4568D0, 0x4568D0>;
// total references count: 10en (1), 11en (1), steam (1)
using refs_t = RefList<0x4C3C22,100,0,0x4C30A0,1, 0x4C3CC2,110,0,0x4C3140,1, 0x4C3C52,120,0,0x4C30D0,1>;
using def_t = bool(CAccidentManager *);
static const int cb_priority = PRIORITY_BEFORE;
using calling_convention_t = CallingConventions::Thiscall;
using args_t = ArgPick<ArgTypes<CAccidentManager *>, 0>;
META_END
template<>
struct stack_object<CAccidentManager> : stack_object_no_default<CAccidentManager> {
SUPPORTED_10EN_11EN_STEAM stack_object() {
plugin::CallMethodDynGlobal<CAccidentManager *>(ctor_gaddr(CAccidentManager), reinterpret_cast<CAccidentManager *>(objBuff));
}
};
template <>
SUPPORTED_10EN_11EN_STEAM inline CAccidentManager *operator_new<CAccidentManager>() {
void *objData = operator new(sizeof(CAccidentManager));
CAccidentManager *obj = reinterpret_cast<CAccidentManager *>(objData);
plugin::CallMethodDynGlobal<CAccidentManager *>(ctor_gaddr(CAccidentManager), obj);
return obj;
}
template <>
SUPPORTED_10EN_11EN_STEAM inline CAccidentManager *operator_new_array<CAccidentManager>(unsigned int objCount) {
void *objData = operator new(sizeof(CAccidentManager) * objCount + 4);
*reinterpret_cast<unsigned int *>(objData) = objCount;
CAccidentManager *objArray = reinterpret_cast<CAccidentManager *>(reinterpret_cast<unsigned int>(objData) + 4);
for (unsigned int i = 0; i < objCount; i++)
plugin::CallMethodDynGlobal<CAccidentManager *>(ctor_gaddr(CAccidentManager), &objArray[i]);
return objArray;
}
template <>
SUPPORTED_10EN_11EN_STEAM inline void operator_delete<CAccidentManager>(CAccidentManager *obj) {
if (obj == nullptr) return;
plugin::CallMethodDynGlobal<CAccidentManager *>(del_dtor_gaddr(CAccidentManager), obj);
}
template <>
SUPPORTED_10EN_11EN_STEAM inline void operator_delete_array<CAccidentManager>(CAccidentManager *objArray) {
if (objArray == nullptr) return;
void *objData = reinterpret_cast<void *>(reinterpret_cast<char *>(objArray) - 4);
unsigned int arraySize = *reinterpret_cast<unsigned int *>(objData);
for (unsigned int i = 0; i < arraySize; i++)
plugin::CallMethodDynGlobal<CAccidentManager *>(del_dtor_gaddr(CAccidentManager), &objArray[i]);
operator delete(objData);
}
}
|
d641456aa233d4f861e9158d760b10aa387f2cec | 47b97a53203566b25c31cc05362411e523b8a507 | /UTProfiler.h | a1bcd3b9c542ab95cb9cde991ed7155dd0e202c9 | [] | no_license | ptroyard/LO21 | 42b02c7d1bf431fa0d4408cb18b27b3325d19490 | 718655c92572b1c7756019a856ba182a2b085f82 | refs/heads/master | 2021-01-01T18:23:42.428066 | 2014-05-25T17:03:59 | 2014-05-25T17:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,525 | h | UTProfiler.h |
class Dossier {
QString login[8];
QString nom;
QString prenom;
QString adresse;
QString nationalite;
QDate datenaissance;
Formation* cursus; // ACCESSEUR
QString semestre[5];
QString* UVvalide; //ou Inscription
QString* UVencours;
QString* credit;
QString** insert; //ou Inscription**
public :
QString getlogin() const {return login;}
QString getnom() const {return nom;}
QString getprenom() const {return prenom;}
QString getadresse() const {return adresse;}
QString getnationalite() const {return nationalite;}
QDate getdatenaissance() const {return datenaissance;}
void setadresseetu (const QString& adreetu) {adresse=adreetu;}
QString getsemestre() const {return semestre;}
void setsemestre (const QString& sem) {semestre=sem;}
void setresultat (const QString* tabres); //voir UML
Dossier(){}
~Dossier(){}
Inscription ajoutinscr(semestre s, const UV* uvs, Note res);
void ajoutequivalence (unsigned int credit, QString Categorie);
void complete(const UV& exige, const UV& rejet, const UV& pref);
void enregistre(UV** solution);
};
class DossierManager {
private:
Dossier** dos;
unsigned int nbDossier;
void addItem(Dossier* dossier);
//bool modification;
Dossier* trouverDossier(const QString& login) const;
DossierManager(const DossierManager& dm);
DossierManager& operator=(const DossierManager& dm);
DossierManager();
~DossierManager();
//QString file;
/*friend struct Handler;
struct Handler{
UVManager* instance;
Handler():instance(0){}
~Handler(){ if (instance) delete instance; instance=0; }
};
static Handler handler;*/
public:
void load(const QString& f);
void save(const QString& f);
static DossierManager& getInstance();
static void libererInstance();
void ajouterDossier(const QString& login, const QString& nom, const QString& prenom);
const Dossier& getDossier(const QString& login) const;
Dossier& getDossier(const QString& login);
/*class Iterator {
friend class UVManager;
UV** currentUV;
unsigned int nbRemain;
Iterator(UV** u, unsigned nb):currentUV(u),nbRemain(nb){}
public:
Iterator():nbRemain(0),currentUV(0){}
bool isDone() const { return nbRemain==0; }
void next() {
if (isDone())
throw UTProfilerException("error, next on an iterator which is done");
nbRemain--;
currentUV++;
}
UV& current() const {
if (isDone())
throw UTProfilerException("error, indirection on an iterator which is done");
return **currentUV;
}
};
Iterator getIterator() {
return Iterator(uvs,nbUV);
}
class iterator {
UV** current;
iterator(UV** u):current(u){}
friend class UVManager;
public:
iterator():current(0){};
UV& operator*() const { return **current; }
bool operator!=(iterator it) const { return current!=it.current; }
iterator& operator++(){ ++current; return *this; }
};
iterator begin() { return iterator(uvs); }
iterator end() { return iterator(uvs+nbUV); }
class FilterIterator {
friend class UVManager;
UV** currentUV;
unsigned int nbRemain;
Categorie categorie;
FilterIterator(UV** u, unsigned nb, Categorie c):currentUV(u),nbRemain(nb),categorie(c){
while(nbRemain>0 && (*currentUV)->getCategorie()!=categorie){
nbRemain--; currentUV++;
}
}
public:
FilterIterator():nbRemain(0),currentUV(0){}
bool isDone() const { return nbRemain==0; }
void next() {
if (isDone())
throw UTProfilerException("error, next on an iterator which is done");
do {
nbRemain--; currentUV++;
}while(nbRemain>0 && (*currentUV)->getCategorie()!=categorie);
}
UV& current() const {
if (isDone())
throw UTProfilerException("error, indirection on an iterator which is done");
return **currentUV;
}
};
FilterIterator getFilterIterator(Categorie c) {
return FilterIterator(uvs,nbUV,c);
}*/
};
class Formation{
};
#endif
|
b698c9cd14a8333a90ce1f98b9fb1affe731e14a | 7f0e0763845b21ab405d8874fbb70cc2e3308e70 | /src/runtime/c4g_glsl.hpp | f09a77ed465b33ff038f3f716365b8d3ffc690c0 | [
"MIT"
] | permissive | paladin-t/c4gpu | 07cb2918a7dfe21fc6c0beb31c4840c466359908 | 82dda2014fd2ae5c745ebdc6a797bb5f87793816 | refs/heads/master | 2021-09-19T17:06:09.171506 | 2018-07-30T02:02:03 | 2018-07-30T02:02:03 | 81,640,952 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,319 | hpp | c4g_glsl.hpp | /*
** C4GPU.
**
** For the latest info, see https://github.com/c4gpu/c4gpu_runtime/
**
** Copyright (C) 2017 Wang Renxin. All rights reserved.
*/
#ifndef __C4G_GLSL_H__
#define __C4G_GLSL_H__
#include "c4g_runtime.h"
#ifdef C4G_RUNTIME_OS_WIN
# include <GL/glew.h>
# include <GL/glut.h>
#elif defined C4G_RUNTIME_OS_APPLE
# if defined C4G_RUNTIME_OS_IOS || defined C4G_RUNTIME_OS_IOS_SIM
# include <OpenGLES/ES3/gl.h>
# else
# include <OpenGL/gl3.h>
# endif
#elif defined C4G_RUNTIME_OS_LINUX
# include <GL/glew.h>
# include <GL/glut.h>
# include <GL/gl.h>
# include <GL/glu.h>
# include <GL/glext.h>
#endif /* C4G_RUNTIME_OS_WIN */
#include <functional>
#include <vector>
#ifndef GL_INVALID_INDEX
# define GL_INVALID_INDEX -1
#endif /* GL_INVALID_INDEX */
namespace c4g {
namespace gl {
typedef std::vector<GLuint> GLuintArray;
typedef std::function<void (struct C4GRT_Runtime*, C4GRT_PassId, const char* const)> ErrorHandler;
typedef std::function<bool (const char* const)> SimpleErrorHandler;
enum ShaderTypes {
ST_NONE,
ST_VERT,
ST_FRAG
};
class C4G_RUNTIME_IMPL Shader final {
public:
Shader();
Shader(ShaderTypes type);
~Shader();
bool readFile(const char* const file);
bool readString(const char* const str);
bool compile(const SimpleErrorHandler &&callback);
GLuint object(void);
private:
ShaderTypes _type = ST_NONE;
GLchar* _code = nullptr;
GLuint _object = 0;
};
class C4G_RUNTIME_IMPL Program final {
public:
Program();
~Program();
bool link(Shader &&vert, Shader &&frag);
bool link(Shader &&vert, Shader &&frag, const char* const varyings[], size_t vs);
bool use(void);
GLint attributeLocation(const char* const name);
GLint uniformLocation(const char* const name);
void uniform(int loc, float f0);
void uniform(int loc, float f0, float f1);
void uniform(int loc, float f0, float f1, float f2);
void uniform(int loc, float f0, float f1, float f2, float f3);
void uniform(int loc, int i0);
void uniform(int loc, int i0, int i1);
void uniform(int loc, int i0, int i1, int i2);
void uniform(int loc, int i0, int i1, int i2, int i3);
GLuint object(void);
private:
Shader _vert;
Shader _frag;
GLuint _prog = 0;
};
}
}
#endif /* __C4G_GLSL_H__ */
|
76771424426bc726ea668bf0735b9ff7dca91be6 | 7966b8af2298832ebfc3916d93c2f8179111ac1c | /tags/exercice5/code/circumference_3p.cpp | addf1bed5dea70f5476e9389eae7cb8621a09c91 | [] | no_license | mvm9289/geoc-qp2010 | 44156e27c919fa8db144be8127092d5b89943b49 | bdbb4e89e288f9f65722525837737a5de503dbfe | refs/heads/master | 2021-01-13T02:02:56.485806 | 2010-11-01T19:50:25 | 2010-11-01T19:50:25 | 32,339,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,387 | cpp | circumference_3p.cpp | #include "circumference_3p.h"
#include <GL/glut.h>
#include <cmath>
using namespace std;
GLUquadricObj* disk = gluNewQuadric();
static coord_type determ(coord_type a11, coord_type a12, coord_type a13,
coord_type a21, coord_type a22, coord_type a23,
coord_type a31, coord_type a32, coord_type a33){
return a11 * a22 * a33 + a21 * a32 * a13 + a31 * a12 * a23
- a13 * a22 * a31 - a11 * a23 * a32 - a12 * a21 * a33;
}
Circum3P::Circum3P(Point p0, Point p1, Point p2, float cr, float cg, float cb, bool drawP)
: Options(cr, cg, cb, drawP), drawable(false)
{
points[0] = p0;
points[1] = p1;
points[2] = p2;
computeCircum();
}
void Circum3P::computeCircum(){
coord_type div = determ(2 * points[0].x, 2 * points[0].y, 1,
2 * points[1].x, 2 * points[1].y, 1,
2 * points[2].x, 2 * points[2].y, 1);
if(div == 0){
drawable = false;
}
else{
drawable = true;
coord_type a = determ(points[0].x * points[0].x + points[0].y * points[0].y,
2 * points[0].y,
1,
points[1].x * points[1].x + points[1].y * points[1].y,
2 * points[1].y,
1,
points[2].x * points[2].x + points[2].y * points[2].y,
2 * points[2].y,
1);
coord_type c = determ(2 * points[0].x,
points[0].x * points[0].x + points[0].y * points[0].y,
1,
2 * points[1].x,
points[1].x * points[1].x + points[1].y * points[1].y,
1,
2 * points[2].x,
points[2].x * points[2].x + points[2].y * points[2].y,
1);
coord_type d = determ(2 * points[0].x,
2 * points[0].y,
points[0].x * points[0].x + points[0].y * points[0].y,
2 * points[1].x,
2 * points[1].y,
points[1].x * points[1].x + points[1].y * points[1].y,
2 * points[2].x,
2 * points[2].y,
points[2].x * points[2].x + points[2].y * points[2].y);
center.x = a / div;
center.y = c / div;
center.z = 0;
radius = sqrt(d / div + center.x * center.x + center.y * center.y);
}
}
void Circum3P::draw() const{
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glTranslatef(center.x,center.y,center.z);
glColor3f(r, g, b);
gluQuadricDrawStyle(disk,GLU_LINE);
gluDisk(disk, radius, radius, 100,1);
glPopMatrix();
if (drawPoints){
points[0].draw(true);
points[1].draw(true);
points[2].draw(true);
}
}
ostream& operator<<(ostream &os, const Circum3P &c){
os << c.points[0] << c.points[1] << c.points[2];
//Only print color and drawPoints if they are different from default.
if (c.r != CIRCUM3P_RED || c.g != CIRCUM3P_GREEN || c.b != CIRCUM3P_BLUE
|| !c.drawPoints){
os << "o " << c.r << " " << c.g << " " << c.b << " " << c.drawPoints << endl;
}
return os;
}
|
1cbb6133e53a8b2d1e2e0327911988a882c41f97 | 8924ba7719164c962b49c36c05d81d393915d456 | /volumes/LogicalVolume.h | a028b3f547ce966ddc95274741ec536274a5fc1f | [] | no_license | carlosal1015/VecGeom | 23525ff91567d58cfde1aa7c66f9cc508a3b5bbf | 12512cd7f67b89f7619a64474080ad24077aba10 | refs/heads/master | 2020-09-13T17:16:12.770167 | 2015-06-02T07:26:54 | 2015-06-02T07:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,352 | h | LogicalVolume.h | /**
* @file logical_volume.h
* @author Johannes de Fine Licht (johannes.definelicht@cern.ch)
*/
#ifndef VECGEOM_VOLUMES_LOGICALVOLUME_H_
#define VECGEOM_VOLUMES_LOGICALVOLUME_H_
#include "base/Global.h"
#include "base/Vector.h"
#include "volumes/UnplacedVolume.h"
#include <string>
#include <list>
class TGeoShape;
class VUSolid;
namespace vecgeom {
VECGEOM_DEVICE_FORWARD_DECLARE( class LogicalVolume; )
VECGEOM_DEVICE_FORWARD_DECLARE( class VPlacedVolume; )
inline namespace VECGEOM_IMPL_NAMESPACE {
typedef VPlacedVolume const* Daughter;
/**
* @brief Class responsible for storing the unplaced volume, material and
* daughter volumes of a mother volume.
*/
class LogicalVolume {
private:
VUnplacedVolume const *unplaced_volume_;
using CudaDaughter_t = cuda::VPlacedVolume const*;
int id_;
std::string *label_;
static int g_id_count;
/** a pointer member to register arbitrary objects with logical volume;
included for the moment to model UserExtension like in TGeoVolume
*/
void * user_extension_;
Vector<Daughter> *daughters_;
friend class CudaManager;
public:
#ifndef VECGEOM_NVCC
/**
* Standard constructor when constructing geometries. Will initiate an empty
* daughter list which can be populated by placing daughters.
* \sa PlaceDaughter()
*/
LogicalVolume(char const *const label,
VUnplacedVolume const *const unplaced_vol);
LogicalVolume(VUnplacedVolume const *const unplaced_vol)
: LogicalVolume("", unplaced_vol) {}
/**
* copy operator since we have pointer data members
*/
LogicalVolume( LogicalVolume const & other );
LogicalVolume * operator=( LogicalVolume const & other );
#else
__device__
LogicalVolume(VUnplacedVolume const *const unplaced_vol,
Vector<Daughter> *daughters)
// Id for logical volumes is not needed on the device for CUDA
: unplaced_volume_(unplaced_vol), id_(-1), label_(NULL),
user_extension_(NULL), daughters_(daughters) {}
#endif
~LogicalVolume();
VECGEOM_CUDA_HEADER_BOTH
VECGEOM_INLINE
VUnplacedVolume const* unplaced_volume() const { return unplaced_volume_; }
VECGEOM_CUDA_HEADER_BOTH
VECGEOM_INLINE
Vector<Daughter> const& daughters() const { return *daughters_; }
VECGEOM_CUDA_HEADER_BOTH
VECGEOM_INLINE
Vector<Daughter> const * daughtersp() const { return daughters_; }
VECGEOM_INLINE
void * getUserExtensionPtr( ) const { return user_extension_; }
int id() const { return id_; }
std::string GetLabel() const { return *label_; }
void set_label(char const *const label) {
if(label_) delete label_;
label_ = new std::string(label);
}
VECGEOM_INLINE
void setUserExtensionPtr( void * userpointer ) { user_extension_ = userpointer; }
VECGEOM_CUDA_HEADER_BOTH
void Print(const int indent = 0) const;
VECGEOM_CUDA_HEADER_BOTH
void PrintContent(const int depth = 0) const;
VPlacedVolume* Place(char const *const label,
Transformation3D const *const transformation) const;
VPlacedVolume* Place(Transformation3D const *const transformation) const;
VPlacedVolume* Place(char const *const label) const;
VPlacedVolume* Place() const;
VPlacedVolume const* PlaceDaughter(char const *const label,
LogicalVolume const *const volume,
Transformation3D const *const transformation);
VPlacedVolume const* PlaceDaughter(LogicalVolume const *const volume,
Transformation3D const *const transformation);
void PlaceDaughter(VPlacedVolume const *const placed);
VECGEOM_CUDA_HEADER_BOTH
int CountVolumes() const;
friend std::ostream& operator<<(std::ostream& os, LogicalVolume const &vol);
#ifdef VECGEOM_CUDA_INTERFACE
DevicePtr<cuda::LogicalVolume> CopyToGpu(DevicePtr<cuda::VUnplacedVolume> const unplaced_vol,
DevicePtr<cuda::Vector<CudaDaughter_t>> daughters) const;
DevicePtr<cuda::LogicalVolume> CopyToGpu(DevicePtr<cuda::VUnplacedVolume> const unplaced_vol,
DevicePtr<cuda::Vector<CudaDaughter_t>> daughters,
DevicePtr<cuda::LogicalVolume> const gpu_ptr) const;
#endif
};
} } // End global namespace
#endif // VECGEOM_VOLUMES_LOGICALVOLUME_H_
|
213bd91a141c7a5c782838cbc7c38ac6b65276df | 2a18f7467fe3d7b9c28e2d93426e5bd4a75ed958 | /Rubik Pro/res/res.hpp | 00e9d82e0c88b86107ce96e50fd345bcce95f5aa | [] | no_license | TheWhiteUnicorn/rubikPro | 69020920dc13d7bd3d969ef76bd235a6048442e5 | c3eae7fc3bc887288bb08482431cfa3ea2aafc6a | refs/heads/master | 2021-01-22T20:26:44.690565 | 2017-08-19T10:49:25 | 2017-08-19T10:49:25 | 100,700,913 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 53 | hpp | res.hpp | enum color {WHITE, ORANGE, GREEN, RED, BLUE, YELLOW}; |
35a762f677690649da03d402b42842317ad58597 | 15f0514701a78e12750f68ba09d68095172493ee | /C++/643.cpp | 8aed8715a03156aba2586a4b9c4ca1f604a3c77f | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | C++ | false | false | 1,336 | cpp | 643.cpp | __________________________________________________________________________________________________
sample 60 ms submission
auto speedup =[]() {
std::ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
return nullptr;
}();
class Solution {
public:
double findMaxAverage(vector<int>& nums, int k) {
int sum = 0;
sum = accumulate(nums.begin(), nums.begin()+k, 0);
int max = sum;
for (auto it = nums.begin() + k; it < nums.end(); it++) {
sum += *it;
sum -= *(it - k);
max = std::max(max, sum);
}
return (double)max / k;
}
};
__________________________________________________________________________________________________
sample 16820 kb submission
class Solution {
public:
double findMaxAverage(vector<int>& nums, int k) {
double resultTemp=LONG_MIN;
for(int i=0;i<nums.size()-k+1;i++){
double temp=0;
for(int j=0;j<k;j++){
temp+=nums[i+j];
}
resultTemp=max(resultTemp,temp);
}
return resultTemp/k;
}
};
static auto speedup = [](){
ios::sync_with_stdio(false);
cin.tie(nullptr);
return nullptr;
}();
__________________________________________________________________________________________________
|
f600cb0f149dfadd71a5526f6afc30148f578212 | 4672eeb7ea8728d2115dac7a05e0715969821b3c | /Crio/LinkedList/6_MoveMiddleToHead/alternateSolution.cpp | 7d8ff0b37a66e530957f42dde81d9c02f1fcb3a5 | [] | no_license | adityasarvaiya/coding | 62e26954433032539bea51d8edf230eebc1a6076 | 6869c212c870985ff4ac8bd8c5cade8842d78a6c | refs/heads/master | 2021-07-11T18:47:08.940920 | 2020-07-09T10:28:24 | 2020-07-09T10:28:24 | 163,668,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 723 | cpp | alternateSolution.cpp | /*
class ListNode {
public:
int val;
ListNode* next;
ListNode() {}
ListNode(int x) {
val = x;
next = NULL;
}
};
*/
#include "../crio/cpp/ds/ListNode/ListNode.hpp"
ListNode * moveMiddleToHead(ListNode * head) {
if (head == NULL || head->next == NULL)
return head;
ListNode* one_node = head;
ListNode* two_node = head;
ListNode* prev = NULL;
while (two_node != NULL && two_node->next != NULL)
{
prev = one_node;
two_node = two_node->next->next;
one_node = one_node->next;
}
prev->next = prev->next->next;
one_node->next = head;
head = one_node;
return head;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.