首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 量化交易:Dual Thrust策略

    Dual Thrust策略起源于20世纪80年代,由美国著名交易员和金融作家Larry Williams首次提出。这一策略的核心思想是通过捕捉市场中的短期波动来实现盈利。 策略原理Dual Thrust策略的核心思想是利用市场的波动性来捕捉趋势。Dual Thrust策略主要依赖于两个关键参数:Range和ATR(平均真实波动范围)。 在聚宽平台运行Python代码选股方式在Dual Thrust策略中,选股方式相对简单。选择一个特定的合约作为交易标的,例如螺纹钢(SHFE.RB)。在策略初始化时,订阅该合约,并设置相关参数。<

    50710编辑于 2024-06-23
  • matlab模拟飞机3D飞行

    0 0]; % m/sstate.q = [1 0 0 0]; % [w x y z]state.omega = [0 0 0]; % [p q r] rad/s​state.thrust 实时动力学与姿态更新function updateState(dt)global state plane% 键盘输入[thrust,pitch,roll,yaw] = getInput();​% 推力state.thrust = max(0, state.thrust + thrust*dt*20);​% 空气动力(极简化)alpha = pitch; beta = roll;CL = 2*pi*alpha; CD = 0.02 读取键盘输入function [thrust,pitch,roll,yaw] = getInput()global statethrust = 0; pitch = 0; roll = 0; yaw = 0;if isKeyPressed('w'), thrust = 1; endif isKeyPressed('s'), thrust = -1; endif isKeyPressed('uparrow

    29510编辑于 2025-08-04
  • 来自专栏防止网络攻击

    基础的点云转换

    CUDA与Thrust 使用CUDA和Thrust进行点云基础转换可以大大提高处理效率,特别是当点云数据量较大时。 Thrust代码完成加速 这段代码实现了一个基于Thrust算法库的点云变换函数TransformPointCloud。该函数接受一个变换矩阵和一个原始的点云数据,返回经过变换后的点云数据。 这段代码没有使用CUDA,而是完全依赖于Thrust算法库实现的。 // 纯thrust算法,不使用cuda。 /device_vector.h> #include <thrust/host_vector.h> #include <thrust/random.h> #include <thrust/scan.h> #include <thrust/sequence.h> #include <thrust/transform.h> #include

    71910编辑于 2024-09-25
  • 来自专栏计算机视觉理论及其实现

    CUDA assertion error binary_cross_entropy loss

    lib/THCUNN/BCECriterion.cu:30: Acctype bce_functor<Dtype, Acctype>::operator()(Tuple) [with Tuple = thrust ::tuple<float, float, thrust::null_type, thrust::null_type, thrust::null_type, thrust::null_type, thrust ::null_type, thrust::null_type, thrust::null_type, thrust::null_type>, Dtype = float, Acctype = float

    1.2K20编辑于 2022-09-02
  • 来自专栏IT技术订阅

    英伟达CUDA高性能计算库详解

    Thrust Thrust 是一个用于 CUDA 和其他并行计算平台的 C++ 并行执行库,它设计得非常类似于 C++ 标准模板库(STL)。 容器:Thrust 包含了几种容器类型,如 thrust::device_vector,这是专门针对设备(通常是 GPU)内存优化的向量类型。 内存管理:Thrust 提供了内存管理工具,如 thrust::device_ptr,可以帮助开发者更好地管理设备内存。 Thrust 的优点 简化编程模型:通过提供高级抽象,Thrust 让开发者不必直接处理低级的并行细节,从而降低了编写并行代码的复杂性。 提高性能:Thrust 内部已经进行了大量的优化,因此开发者可以专注于算法逻辑而不是并行化细节。 易于调试和维护:由于代码更加清晰且结构化,使用 Thrust 编写的代码往往更容易理解和维护。

    2.1K10编辑于 2024-11-23
  • 来自专栏机器人课程与技术

    Webots中使用大疆“御”2专业版-DJI-Mavic 2 Pro进行无人机仿真实践

    const double k_vertical_thrust = 68.5; // with this thrust, the drone lifts. const double k_vertical_thrust = 68.5; // with this thrust, the drone lifts. const double front_left_motor_input = k_vertical_thrust + vertical_input - roll_input - pitch_input + yaw_input; const double front_right_motor_input = k_vertical_thrust + vertical_input + roll_input - roll_input + pitch_input - yaw_input; const double rear_right_motor_input = k_vertical_thrust

    2.2K20发布于 2019-08-29
  • 来自专栏菩提树下的杨过

    Flash/Flex学习笔记(25):摩擦力与屏幕环绕

    class ShipSim2 extends Sprite { private var ship:Ship; private var vr:Number=0; private var thrust vr=-5; break; case Keyboard.RIGHT : vr=5; break; case Keyboard.UP : thrust break; } } private function KeyUpHandler(event:KeyboardEvent):void { vr=0; thrust ship.rotation+=vr; var angle:Number=ship.rotation*Math.PI/180; var ax:Number=Math.cos(angle)*thrust ; var ay:Number=Math.sin(angle)*thrust; vx+=ax; vy+=ay; ship.x+=vx; ship.y+=vy; var

    65460发布于 2018-01-19
  • 来自专栏菩提树下的杨过

    pygame 笔记-10 摩擦力与屏幕环绕

    self.vy = 0 22 # 旋转角速度 23 self.vr = 0 24 # 推进力 25 self.thrust == pygame.KEYUP: 104 # KEYUP时,熄火,动力归0 105 ship.vr = 0 106 ship.thrust # 按向上键时,点火,动力为0.3 116 ship.set_flame(True) 117 ship.thrust HEIGHT), 1) 126 127 ship.angle += ship.vr 128 ax = math.cos(ship.angle * math.pi / 180) * ship.thrust 129 # 注:pygame中,角度是逆时针转的,所以垂直加速度要取反 130 ay = -1 * math.sin(ship.angle * math.pi / 180) * ship.thrust

    53710发布于 2019-09-12
  • 来自专栏菩提树下的杨过

    Flash/Flex学习笔记(23):运动学原理

    class ShipSim extends Sprite { private var ship:Ship; private var vr:Number=0; private var thrust vr=-5; break; case Keyboard.RIGHT : vr=5; break; case Keyboard.UP : thrust default : break; } } private function KeyUpHandler(event:KeyboardEvent):void { vr=0; thrust ship.rotation+=vr; var angle:Number=ship.rotation*Math.PI/180; var ax:Number=Math.cos(angle)*thrust ; var ay:Number=Math.sin(angle)*thrust; vx+=ax; vy+=ay; ship.x+=vx; ship.y+=vy;

    915100发布于 2018-01-19
  • 来自专栏小巫技术博客

    A012-Anim资源

    schemas.android.com/apk/res/android" android:oneshot="false"> <item android:drawable="@drawable/rocket_<em>thrust</em>1 " android:duration="200" /> <item android:drawable="@drawable/rocket_<em>thrust</em>2" android:duration="200 " /> <item android:drawable="@drawable/rocket_<em>thrust</em>3" android:duration="200" /></animation-list> = (ImageView) findViewById(R.id.rocket_image); rocketImage.setBackgroundResource(R.drawable.rocket_thrust

    37750发布于 2018-07-20
  • 来自专栏机器学习炼丹术

    DAY5 | Wyckoff 2.0

    DAY1 | Wyckoff 1.0 DAY2 | Wyckoff 1.0 DAY3 | Wyckoff 1.0、 DAY4 | Wyckoff 1.0 失败的结构 弱势 缩短的Thrust SOT 缩短的Thrust SOT 上斜的吸筹结构

    27920编辑于 2023-09-02
  • 来自专栏深度学习与计算机视觉

    px4官网调参指南 多旋翼无人机PID调参指南

    Then if gain for the inner loop MC_ROLLRATE_P is 0.1 then thrust control output for roll will be 3 * and copter will not flip on takeoff at near-zero thrust. Keep the multi rotor in your hand and increase the thrust to about 50%, so that the weight is virtually Set MC_YAWRATE_P to small value, e.g. 0.1 Keep the multi rotor in your hand and increase the thrust Set MC_YAW_P to a low value, e.g. 1 Keep the multi rotor in your hand and increase the thrust to about

    1.5K10编辑于 2022-05-07
  • 来自专栏学习之旅

    【教程】编译运行Gunrock

    /examples -type f -name "*.cuh" -o -name "*.cu" -o -name "*.hxx" | xargs sed -i 's/thrust::cuda::par_nosync /thrust::cuda::par/g'7、现在终于可以编译了。

    22810编辑于 2025-04-18
  • 来自专栏小锋学长生活大爆炸

    【教程】Ubuntu编译运行Gunrock

    /examples -type f -name "*.cuh" -o -name "*.cu" -o -name "*.hxx" | xargs sed -i 's/thrust::cuda::par_nosync /thrust::cuda::par/g' 7、现在终于可以编译了。

    21510编辑于 2025-05-24
  • 无人机飞行控制程序设计与运动参数求解(MATLAB实现)

    10;states = zeros(length(t), 12);states(1,:) = state;​for i = 1:length(t)-1 % 计算控制输入(示例:悬停控制) thrust = m*g; % 垂直推力平衡重力 tau = [0; 0; thrust*l - 0.1*state(9)]; % 力矩计算(l为力臂) % 数值积分(欧拉法) dstate state(10); q = state(11); r = state(12); % 平动方程 F_gravity = [0; 0; -m*g]; F_total = [0; 0; thrust

    72511编辑于 2025-10-17
  • 来自专栏Opensource翻译专栏

    如何使用Flask编写Python Web API【Programming(Python)】

    all,trust a few,do wrong to none', 'Some are born great, some achieve greatness, and some greatness thrust all,trust a few,do wrong to none", "Some are born great, some achieve greatness, and some greatness thrust

    2.3K00发布于 2019-12-01
  • 来自专栏tea9的博客

    android-drawable子类介绍

    schemas.android.com/apk/res/android" android:oneshot="true"> <item android:drawable="@drawable/rocket_<em>thrust</em>1 " android:duration="200" /> <item android:drawable="@drawable/rocket_<em>thrust</em>2" android:duration="200 " /> <item android:drawable="@drawable/rocket_<em>thrust</em>3" android:duration="200" /> </animation-list

    79610编辑于 2022-07-16
  • 来自专栏风吹杨柳

    AnimationDrawable 实现正在加载的旋转动画

    apk/res/android"     android:oneshot="true">       <item android:drawable="@drawable/rocket_<em>thrust</em>1 " android:duration="200" />       <item android:drawable="@drawable/rocket_<em>thrust</em>2" android:duration ="200" />       <item android:drawable="@drawable/rocket_<em>thrust</em>3" android:duration="200" />  

    2.5K80发布于 2019-07-05
  • 来自专栏用户10004205的专栏

    Unity & FACEGOOD Audio2Face 通过音频驱动面部BlendShape

    eyeSquintRight eye_shutTight_r eyeWideRight max(eye_downLidRaise_r,eye_upLidRaise_r) jawForward jaw_thrust_c eye_upperLidRaise_l eye_upperLidRaise_r eye_downLidRaise_l eye_downLidRaise_r jaw_sideways_l jaw_sideways_r jaw_thrust_c Remap(list[35])); //mouth_chew_c smr.SetBlendShapeWeight(40, Remap(list[34])); //jaw_thrust_c

    3.7K40编辑于 2022-08-29
  • 来自专栏xingoo, 一个梦想做发明家的程序员

    CUDA入门

    CUDA API包括三个,从低到高等级分别为 Thrust API  Runtime API   Driver API 用于CUDA的GPU是安装于主机系统中的独立设备 GPGPU运行在一个和主处理器相隔离的存储空间中

    79391发布于 2018-01-17
领券