我怎么样识破罗永浩的(锤子手机)业绩做假地?!--用C#与数据挖掘
//教 罗永浩的工程师,如何在业绩--销量(预售量)上面做假(才能不被群众识破)。 换个说法是:从算法(和数据挖掘)角度讲,怎样的业绩(销量)才是正常的……而怎样的数据形态,就是在业绩上做假…… using System; using System.Collections.Generic; us
//教 罗永浩的工程师,如何在业绩--销量(预售量)上面做假(才能不被群众识破)。
换个说法是:从算法(和数据挖掘)角度讲,怎样的业绩(销量)才是正常的……而怎样的数据形态,就是在业绩上做假……
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WinFA1LuoYongHao02
{//
public partial class Form1 : Form
{//
public Form1()
{
InitializeComponent();
}
//
protected override void OnPaint(PaintEventArgs e)
{//protected override void OnPaint(PaintEventArgs e
Graphics g = e.Graphics;
this.Width = 1224;// 1024;// 600; // 800;
this.Height = 700; // 800; //1024; // 800;
Pen pnBlue = new Pen(Color.Blue);
Pen pnG = new Pen(Color.Green);
Pen pnBlack = new Pen(Color.Black);
Pen pnR = new Pen(Color.Red);
int starx = 0;
int starxy = 0;
int endx = 1100;
int endy = 600;
int highY = 700;
//画 x轴
Point pt01x = new Point(100, endy-100);
Point pt02x = new Point(endx, endy-100);
g.DrawLine(pnBlue, pt01x, pt02x);
Font font01 = new Font("宋体", 10f);
Brush brush01 = Brushes.Blue;
for (int i = 0; i {
if (0 == (i % 50) ) {
Point pt001x = new Point(100 + i, endy - 100);
string istr = i.ToString();
g.DrawString(istr, font01, brush01, pt001x);
} //if11
}//for11
string str1 = "X坐标为时间轴";
Font font = new Font("宋体", 30f);
Brush brush = Brushes.Red;
PointF point = new PointF(100 +800, 100+400);
//横着写还是竖着写呢?
System.Drawing.StringFormat sf = new System.Drawing.StringFormat();
//还是竖着写吧
sf.FormatFlags = StringFormatFlags.DirectionVertical;
g.DrawString(str1, font, brush, point); //, sf);
//画 y轴
Point pt11y = new Point(100, 100);
Point pt12y = new Point(100, endy-100);
g.DrawLine(pnBlue, pt11y, pt12y);
font01 = new Font("宋体", 10f);
brush01 = Brushes.Blue;
for (int i = 0; i {
if (0 == (i % 20))
{
Point pt001x = new Point(100-30 , endy - (100 +i) );
string istr = i.ToString();
g.DrawString(istr, font01, brush01, pt001x);
} //if11
}//for11
str1 = "y轴-业绩(销量)";
font = new Font("宋体", 30f);
brush = Brushes.Red;
point = new PointF(100, 100);
//横着写还是竖着写呢?
sf = new System.Drawing.StringFormat();
//还是竖着写吧
sf.FormatFlags = StringFormatFlags.DirectionVertical;
g.DrawString(str1, font, brush, point, sf);
//模拟真实算法;
int trueY = 0;
Point pt1 = new Point(100 + 0, endy - (trueY + 100));
Point pt2 = pt1;
int trueXlast = 0;
int trueYlast = 0;
int gz = 2;// 5;// 10;
for (int i = 0; i {
int trueX = i ;
Random rd = new Random(Guid.NewGuid().GetHashCode());
int buyy = rd.Next(0, 10);
Point pt3;
if (buyy > 8) // 8/10的时间用户不买, 2/10的用户买,用随机数模仿 客户购买习惯
{
trueY += gz;
pt2 = new Point(100+trueXlast, endy - trueY - 100);
g.DrawLine(pnBlack, pt1, pt2); //从 ptt1上次点, 画到 上次的 x点不变,y轴点 变化(蜡烛图 画蜡烛)
//ptt2 = new Point(100 + trueX , endy - trueY - 100);
}
else { pt2 = new Point(100+trueXlast, endy - trueY - 100);
}
pt3 = new Point(100 + trueX, endy - trueY - 100);
g.DrawLine(pnBlack, pt2, pt3); //从 上支蜡烛的终点,画到 下支蜡烛的起点
pt1 = pt3;
trueXlast = trueX;
trueYlast = trueY;
}
string str12 = "模拟真实(正常)销售率的销售线";
font = new Font("宋体", 20f);
brush = Brushes.Red;
point = new PointF(trueXlast, trueYlast +100+100+ 150);
//横着写还是竖着写呢?
System.Drawing.StringFormat sf12 = new System.Drawing.StringFormat();
//还是横着写吧
sf.FormatFlags = StringFormatFlags.DirectionVertical;
g.DrawString(str12, font, brush, point); //, sf);
//高销售率算法
trueY = 0;
pt1 = new Point(100 + 0, endy - (trueY + 100));
pt2 = pt1;
for (int i = 0; i {//for22
int trueX = i ;
Random rd = new Random(Guid.NewGuid().GetHashCode());
int buyy = rd.Next(0, 900);
Point pt3;
if (buyy {
trueY += gz;
pt2 = new Point(100 + trueXlast, endy - trueY - 100);
g.DrawLine(pnR, pt1, pt2); //从 ptt1上次点, 画到 上次的 x点不变,y轴点 变化(蜡烛图 画蜡烛)
}
else
{
pt2 = new Point(100 + trueXlast, endy - trueY - 100);
}
pt3 = new Point(100 + trueX, endy - trueY - 100);
g.DrawLine(pnBlack, pt2, pt3); //从 上支蜡烛的终点,画到 下支蜡烛的起点
pt1 = pt3;
trueXlast = trueX;
trueYlast = trueY;
}//for22
str12 = "黑色为模拟正常的高销售率的销售线(业绩)";
font = new Font("宋体", 20f);
brush = Brushes.Red;
point = new PointF(trueXlast-100, trueYlast-100);
//横着写还是竖着写呢?
sf12 = new System.Drawing.StringFormat();
//还是横着写吧
sf.FormatFlags = StringFormatFlags.DirectionVertical;
g.DrawString(str12, font, brush, point); //, sf);
//
//------------------------------------------------------------------------------
//罗永浩算法
trueXlast = 0;
trueYlast = 0;
trueY = 0;
pt1 = new Point(100 + 0, endy - (trueY + 100));
pt2 = pt1;
for (int i = 0; i {//for22
int trueX = i;
Random rd = new Random(Guid.NewGuid().GetHashCode());
int buyy = rd.Next(0, 900);
Point pt3;
if (buyy {
trueY += 3* gz;
pt2 = new Point(100 + trueXlast, endy - trueY - 100);
g.DrawLine(pnR, pt1, pt2); //从 ptt1上次点, 画到 上次的 x点不变,y轴点 变化(蜡烛图 画蜡烛)
}
else
{
pt2 = new Point(100 + trueXlast, endy - trueY - 100);
}
pt3 = new Point(100 + trueX, endy - trueY - 100);
g.DrawLine(pnG, pt2, pt3); //从 上支蜡烛的终点,画到 下支蜡烛的起点
pt1 = pt3;
trueXlast = trueX;
trueYlast = trueY;
}//for22
str12 = "蓝色为“罗永浩”销售曲线:";
font = new Font("宋体", 20f);
brush = Brushes.Red;
point = new PointF(800, 400-100); //(trueXlast, trueYlast - 100);
//横着写还是竖着写呢?
sf12 = new System.Drawing.StringFormat();
//还是横着写吧
sf.FormatFlags = StringFormatFlags.DirectionVertical;
g.DrawString(str12, font, brush, point); //, sf);
//===========================================================
//------------------------------------------------------------------------------
//改进罗永浩算法!!
trueXlast = 0;
trueYlast = 0;
trueY = 0;
pt1 = new Point(100 + 0, endy - (trueY + 100));
pt2 = pt1;
for (int i = 0; i {//for22
int trueX = i;
Random rd = new Random(Guid.NewGuid().GetHashCode());
int buyy = rd.Next(0, 900);
Point pt3;
if (buyy {
Random rd01 = new Random(Guid.NewGuid().GetHashCode());
int buyy01 = rd01.Next(1,5);
trueY += buyy01 * gz;
pt2 = new Point(100 + trueXlast, endy - trueY - 100);
g.DrawLine(pnR, pt1, pt2); //从 ptt1上次点, 画到 上次的 x点不变,y轴点 变化(蜡烛图 画蜡烛)
}
else
{
pt2 = new Point(100 + trueXlast, endy - trueY - 100);
}
pt3 = new Point(100 + trueX, endy - trueY - 100);
g.DrawLine(pnBlue, pt2, pt3); //从 上支蜡烛的终点,画到 下支蜡烛的起点
pt1 = pt3;
trueXlast = trueX;
trueYlast = trueY;
}//for22
str12 = "绿色为“罗永浩”(放大3倍)销售曲线:";
font = new Font("宋体", 20f);
brush = Brushes.Red;
point = new PointF(300-100, 400 - 100); //(trueXlast, trueYlast - 100);
sf12 = new System.Drawing.StringFormat();
sf.FormatFlags = StringFormatFlags.DirectionVertical; //横着写
g.DrawString(str12, font, brush, point); //, sf);
//===========================================================
//
} //protected override void OnPaint(PaintEventArgs e
//
}//public partial class Form1 : Form
}//namespace WinFA1LuoYongHao02

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

According to news on August 17, the source @ibinguniverse posted on Weibo today, stating that the exact size of Apple iPhone 16 Pro Max is 6.88 inches, and the exact size of Galaxy S25 Ultra is 6.86 inches. Both can be regarded as 6.9 inches. Sources indicate that the Samsung Galaxy S25 Ultra has a narrower body and a wider screen than the S24 Ultra, with a horizontal screen-to-body ratio of 94.1%, while the S24 Ultra’s horizontal screen-to-body ratio is 91.5%. Fenye checked the relevant Weibo of the source. He also commented on the newly exposed photos of iPhone 16 Pro Max and believed that it was wrong to be close to a micro-curve. The phone is actually a straight screen + 2.5D glass.

Although Apple has been criticized for its lack of innovation in recent years, Apple has not always stood still. At least in terms of hardware design, with the support of the high unit prices of Apple products, its engineers can easily try some new technologies without having to consider too much cost issues. For example, iPad Pro, as Apple's favorite "display technology" test field, iPad Pro has been at the forefront of display technology for portable smart devices from miniLED in 2021 to tandem OLED in 2024. Although the iPad Pro is not the first portable smart device equipped with a miniLED screen (MSI released a miniLED laptop a year earlier than Apple), when you compare the parameters of the two, you will quickly realize that they are not the same

According to news on August 9, at the FMS2024 Summit, SK Hynix demonstrated its latest storage products, including UFS4.1 universal flash memory that has not yet officially released specifications. According to the official website of the JEDEC Solid State Technology Association, the latest UFS specification currently announced is UFS4.0 in August 2022. Its theoretical interface speed is as high as 46.4Gbps. It is expected that UFS4.1 will further improve the transmission rate. 1. Hynix demonstrated 512GB and 1TBUFS4.1 general-purpose flash memory products, based on 321-layer V91TbTLCNAND flash memory. SK Hynix also exhibited 3.2GbpsV92TbQLC and 3.6GbpsV9H1TbTLC particles. Hynix shows off V7-based

According to news on August 19, Nubia has been adhering to the true full-screen design since the release of Z50 Ultra, and has been continuously exploring the field of proactive photography under high-pixel screens. Today, digital blogger Wisdom Pikachu broke the news that the Nubia Z70 Ultra, which will be released in the second half of this year, will debut with 1.5K under-screen camera technology, which is the highest-resolution UDC solution in the industry so far. It is reported that ZTE’s under-screen proactive solution has advanced to the sixth generation. The latest under-screen proactive solution is available in the Nubia Z60 Ultra and Red Magic 9S Pro series. The screen resolution is 2480x1116, which is between 1080P and 1.5K resolution. This time Nubia will break through the limitations of existing resolutions and set a new benchmark in the industry.

According to news on July 31, the source @ibinguniverse posted a tweet on the Equipped with 16GB of memory. Samsung mobile phone memory capacity update Samsung has launched 16GB memory on Galaxy S20 Ultra and Galaxy S21 Ultra mobile phones. Starting from Galaxy S22 Ultra, including the latest flagship Galaxy S24 Ultra mobile phone, the memory capacity of Samsung mobile phones is capped at 12GB. It is reported that the upcoming Samsung Galaxy S25 and Galaxy S25+ will use 12GB LPDD

According to a report from Smartprix, Xiaomi is developing a buttonless mobile phone codenamed "Suzaku". According to this news, this mobile phone codenamed Zhuque will be designed with an integrated concept, use an under-screen camera, and be equipped with Qualcomm Snapdragon 8gen4 processor. If the plan does not change, we are likely to see its arrival in 2025. When I saw this news, I thought I was back in 2019 - at that time, Xiaomi released the Mi MIX Alpha concept phone, and the surround-screen button-less design was quite amazing. This is the first time I have seen the charm of a buttonless mobile phone. If you want a piece of "magic glass", you must first kill the buttons. In "The Biography of Steve Jobs", Jobs once expressed that he hoped that the mobile phone could be like a piece of "magic glass".

According to news on July 31, technology media SamMobile published a blog post yesterday (July 30) and found battery information suitable for Samsung Galaxy S25 Ultra mobile phones on the SafetyKorea certification website. According to the public information, the battery models exposed this time are EB-BS938ABY and EB-BS938ABE. It is not yet clear what the difference between the two models is. fenye Samsung Galaxy S25 Ultra mobile phone will not use the dual battery solution of Galaxy Z Fold6 and Galaxy Z Flip 6 folding mobile phones, but will adopt a single battery design. It has been previously reported that Samsung will not upgrade and optimize the battery specifications of the Galaxy S25 Ultra mobile phone, and will still use

According to news on August 8, the detailed configuration information of Huawei Mate70 series mobile phones has been recently exposed. This series of mobile phones is expected to be released in the fourth quarter of 2024. 1. According to reports, the entire Mate70 series will use customized top-level 1.5K resolution screens to meet users’ requirements for screen clarity. It is expected that Huawei Mate70Pro and the extra-large cup version will be equipped with fourth-depth screens, while the standard Mate70 may adopt a slightly smaller straight-screen design. In addition to screen upgrades, the Huawei Mate70 series will also be equipped with ultra-large-capacity batteries with new base materials, which heralds a breakthrough in the battery life of Huawei Mate series mobile phones. Although Huawei is developing ultrasonic fingerprint unlocking technology, this year’s Mate70 series will not be equipped with this feature. this
