• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ WeatherData类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中WeatherData的典型用法代码示例。如果您正苦于以下问题:C++ WeatherData类的具体用法?C++ WeatherData怎么用?C++ WeatherData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了WeatherData类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: main

int main(void)
{
    printf("Enter main...\n");
    WeatherData *wd = newWeatherData();
    CurrentConditionDisplay *displayForecast = newCurrentConditionDisplay(wd, 0);
    CurrentConditionDisplay *displayCurrentSituation = newCurrentConditionDisplay(wd, 1);

    //add displays to weather data
    ((WeatherData *)(displayForecast->weatherData))->registerConditionDisplay(wd, displayForecast);
    ((WeatherData *)(displayCurrentSituation->weatherData))->registerConditionDisplay(wd, displayCurrentSituation);

    //weather data changed
    wd->setMeasurements(wd, 35, 80.5f, 48.0f);
    wd->setMeasurements(wd, 55, 60.5f, 80);

    //display forecast cancle to observer weather data
    ((WeatherData *)(displayForecast->weatherData))->removeConditionDisplay(wd, displayForecast);
    wd->setMeasurements(wd, 25, 67, 90);

    deleteCurrentConditionDisplay(displayCurrentSituation);
    deleteCurrentConditionDisplay(displayForecast);
    deleteWeatherData(wd);
    printf("Exit main.\n");
    return 0;
}
开发者ID:libin89,项目名称:GOF,代码行数:25,代码来源:weather.c


示例2: main

int main()
{
	// subject
	WeatherData *weatherData = new WeatherData();

	// 초기값
	weatherData->setMeasurements(77, 88, 31.1f);

	// observers
	CurrentConditionsDisplay *currentDisplay = new CurrentConditionsDisplay(weatherData);
	StatisticDisplay *statisticDisplay = new StatisticDisplay(weatherData);
	ForecastDisplay *forecastDisplay = new ForecastDisplay(weatherData);

	// 기상대 시뮬레이션 - pull
	currentDisplay->pullState();

	// 기상대 시뮬레이션 - push
	weatherData->setMeasurements(80, 65, 30.4f);
	weatherData->setMeasurements(82, 70, 29.2f);
	weatherData->setMeasurements(78, 90, 29.2f);

	delete weatherData;
	delete currentDisplay;
	delete statisticDisplay;
	delete forecastDisplay;

	return 0;
}
开发者ID:Edunga1,项目名称:edunga1.github.com,代码行数:28,代码来源:WeatherStation.cpp


示例3: interval_

	ETCalcParameters::ETCalcParameters(pt::time_period interval, const WeatherData& data)
      : interval_(interval)
   {
      for(WeatherData::const_iterator i = data.AllSetValues();
         i < data.end(); ++i) {
         if ((*i).first == WeatherDataValue_t::MinTemp) {
            SetValue(ETCalcData_t::MinTemp, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::MaxTemp) {
            SetValue(ETCalcData_t::MaxTemp, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::AvgTemp) {
            SetValue(ETCalcData_t::AvgTemp, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::MinRH) {
            SetValue(ETCalcData_t::MinRH, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::MaxRH) {
            SetValue(ETCalcData_t::MaxRH, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::StartTemp) {
            SetValue(ETCalcData_t::StartTemp, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::EndTemp) {
            SetValue(ETCalcData_t::EndTemp, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::AvgPressure) {
            SetValue(ETCalcData_t::AvgPressure, (*i).second);
         } else if ((*i).first == WeatherDataValue_t::AvgWindSpeed) {
            SetValue(ETCalcData_t::AvgWindSpeed, (*i).second);
         }
      }

      SetLengthType();
   }
开发者ID:fgarsombke,项目名称:Mist,代码行数:28,代码来源:ETCalcParameters.cpp


示例4: qWarning

void AppModel::handleForecastNetworkData(QObject *replyObj)
{
    QNetworkReply *networkReply = qobject_cast<QNetworkReply*>(replyObj);
    if (!networkReply)
        return;

    if (!networkReply->error()) {
        QJsonDocument document = QJsonDocument::fromJson(networkReply->readAll());

        QJsonObject jo;
        QJsonValue jv;
        QJsonObject root = document.object();
        jv = root.value(QStringLiteral("list"));
        if (!jv.isArray())
            qWarning() << "Invalid forecast object";
        QJsonArray ja = jv.toArray();
        //we need 4 days of forecast -> first entry is today
        if (ja.count() != 5)
            qWarning() << "Invalid forecast object";

        QString data;
        for (int i = 1; i<ja.count(); i++) {
            WeatherData *forecastEntry = new WeatherData();

            //min/max temperature
            QJsonObject subtree = ja.at(i).toObject();
            jo = subtree.value(QStringLiteral("temp")).toObject();
            jv = jo.value(QStringLiteral("min"));
            data.clear();
            data += niceTemperatureString(jv.toDouble());
            data += QChar('/');
            jv = jo.value(QStringLiteral("max"));
            data += niceTemperatureString(jv.toDouble());
            forecastEntry->setTemperature(data);

            //get date
            jv = subtree.value(QStringLiteral("dt"));
            QDateTime dt = QDateTime::fromMSecsSinceEpoch((qint64)jv.toDouble()*1000);
            forecastEntry->setDayOfWeek(dt.date().toString(QStringLiteral("ddd")));

            //get icon
            QJsonArray weatherArray = subtree.value(QStringLiteral("weather")).toArray();
            jo = weatherArray.at(0).toObject();
            forecastEntry->setWeatherIcon(jo.value(QStringLiteral("icon")).toString());

            //get description
            forecastEntry->setWeatherDescription(jo.value(QStringLiteral("description")).toString());

            d->forecast.append(forecastEntry);
        }

        if (!(d->ready)) {
            d->ready = true;
            emit readyChanged();
        }

        emit weatherChanged();
    }
    networkReply->deleteLater();
}
开发者ID:lollinus,项目名称:qt-5.3-examples,代码行数:60,代码来源:appmodel.cpp


示例5: deleteCurrentConditionDisplay

void deleteCurrentConditionDisplay(struct CurrentConditionDisplay *ccd)
{
    WeatherData *wd = (WeatherData *)ccd->weatherData;
    if (ccd && wd) {
        wd->removeConditionDisplay(wd, ccd);
        free(ccd);
    }
}
开发者ID:libin89,项目名称:GOF,代码行数:8,代码来源:weather.c


示例6: updateV2

void updateV2(struct CurrentConditionDisplay *ccd)
{
    WeatherData *wd = (WeatherData *)ccd->weatherData;

    ccd->temperature = wd->getTemperature(wd);
    ccd->humidity = wd->getHumidity(wd);
    ccd->display(ccd);
}
开发者ID:libin89,项目名称:GOF,代码行数:8,代码来源:weather.c


示例7: main

int main()
{
        WeatherData* weatherData = new WeatherData();

		CurrentConditionsDisplay* currentDisplay = new CurrentConditionsDisplay(weatherData);

		weatherData->setMeasurements(80, 65);
		weatherData->setMeasurements(82, 70);
		weatherData->setMeasurements(78, 90);
}
开发者ID:Wajihulhassan,项目名称:DesignPattern,代码行数:10,代码来源:main.cpp


示例8: main

int main(void)
{
	WeatherData weather;
	currentweather current;
	forcastweather forcast;

	weather.registerobserver(&current);
	weather.registerobserver(&forcast);

	weather.setmeasurement(30,75,29);
	int i;
	cin >> i;
	return 0;
}
开发者ID:LanghuaYang,项目名称:origin,代码行数:14,代码来源:main.cpp


示例9: main

int main() {
    FirstDisplay fd;
    SecondDisplay sd;
    
    WeatherData data;
    data.RegisterObserver(&fd);
    data.RegisterObserver(&sd);
    
    data.RemoveObserver(&sd);
    
    data.Changed(2,1,0);
    
    system("pause");
    
    return 0;
}
开发者ID:familymrfan,项目名称:fanfei,代码行数:16,代码来源:observer.cpp


示例10: Q_UNUSED

void FakeWeatherService::getAdditionalItems( const GeoDataLatLonAltBox& box,
                         qint32 number )
{
    Q_UNUSED( box );
    Q_UNUSED( number );

    FakeWeatherItem *item = new FakeWeatherItem( this );
    item->setStationName( "Fake" );
    item->setPriority( 0 );
    item->setCoordinate( GeoDataCoordinates( 1, 1 ) );
    item->setId( "fake1" );
    
    WeatherData data;
    data.setCondition( WeatherData::ClearDay );
    data.setTemperature( 14.0, WeatherData::Celsius );
    item->setCurrentWeather( data );
        
    emit createdItems( QList<AbstractDataPluginItem*>() << item );
}
开发者ID:PayalPradhan,项目名称:marble,代码行数:19,代码来源:FakeWeatherService.cpp


示例11: main

int main()
{
    WeatherData *weatherData = new WeatherData();
    CurrentConditionsDisplay* currentDisplay = 
        new CurrentConditionsDisplay(weatherData);
    StatisticsDisplay* statisticsDisplay = new StatisticsDisplay(weatherData);
    ForecastDisplay* forecastDisplay = new ForecastDisplay(weatherData);

    weatherData->setMeasurements(80, 65, 30.4f);
    cout << endl;
    weatherData->setMeasurements(82, 70, 29.2f);
    cout << endl;

    weatherData->removeObserver(currentDisplay);
    weatherData->removeObserver(currentDisplay);
    weatherData->removeObserver(currentDisplay);
    weatherData->removeObserver(currentDisplay);
    weatherData->setMeasurements(78, 90, 29.2f);
    cout << endl;

    delete weatherData;
    delete currentDisplay;
    delete statisticsDisplay;
    delete forecastDisplay;

    return 0;
}
开发者ID:GangHoyong,项目名称:Head-First-Design-Patterns-1,代码行数:27,代码来源:main.cpp


示例12: main

int main()
{
    WeatherData w; // The Observable Subject.

    // Observer objects are created on heap in order to demonstrate
    // their ability to unsubscribe themselves from Subject
    // in their destructors.
    auto cond = new CurrentConditions(w);
    auto stats = new StatisticsDisplay(w);
    auto forecast = new ForecastDisplay(w);

    w.set_measurements(34, 50, 120); // Changes in the Subject are pushed as notifications to the Observers.
    w.set_measurements(12, 34, 126);
    w.set_measurements(-12, 60, 70);

    delete cond;
    delete stats;
    delete forecast;

    w.set_measurements(0,0,12);
    return 0;
}
开发者ID:lolportal,项目名称:ObserverDemo,代码行数:22,代码来源:main.cpp


示例13: collidesWithWeatherDataSet

/**
   \brief test if the radius r ball centered at current node conflict with the weatherdata

   This only does 2d testing if their z coordinates collide with each other

   This routine has been updated from treating weather data as the lower left corners
   of cellWidth*cellWidth squares.  Now they are circles of radius cellWidth.

   This returns true if any weather with a deviationProbability >= thresh is closer
   than r to any points in the weather ensemble wData.

   \param r Radius of node i.e. how far node must be from edge of weather.
   \param WeatherData A single weather ensemble.
   \param thresh Minimum deviationProbability for a weather cell to be dangerous
                        

*/
bool Node::collidesWithWeatherDataSet(double r, const WeatherData &wData, double thres)
{
    if(wData.size() == 0)
    {
        return false;                                   // if the weather data does not exist, then just return false
    }
    double x1;
    double y1;
    double z1;
    double cellWidth;
    double cellHeight;
    double deviationProbability;
    for(unsigned int i=0; i<wData.size() ; i++)
    {
        // if successfully read out all the cell data, the bottomleft corner of the cell is (x1, y1, z1)
        if(wData.getCellData(i, &x1, &y1, &z1, &deviationProbability, &cellWidth, &cellHeight)) 
        {
            if(deviationProbability <= thres)           // if the cell is not severe enough, simply skip
            {
                continue;                                               // test the next one                                                    
            }
            if(z < z1 || z > z1+cellHeight)             // if the ranges in z direction have no overlap, then skip
            {
                continue;
            }
            else
            {
                double distanceInPixels = sqrt( (x-x1)*(x-x1) + (y-y1)*(y-y1) );
                double distanceInNM = distanceInPixels*NMILESPERPIXEL;
                // If it intersects with the current cell
                if(distanceInNM < cellWidth+r ) 
                {
                    return true;        
                }
            }
        }
    }
    return false;                                                                                                       // all the cells are tested and free of intersection
}
开发者ID:herrGagen,项目名称:robustTreePlanner,代码行数:56,代码来源:NodeAndEdge.cpp


示例14: main

int main()
{
    Subject *s;
    WeatherData weather;
    s = &weather;
    CurrentConditionDisplay currentDisplay;
    CurrentConditionDisplay currentDisplay2;
    ForcastConditionDisplay forcastDisplay;

    weather.registerObserver(&currentDisplay);
    weather.registerObserver(&currentDisplay2);
    weather.registerObserver(&forcastDisplay);

    weather.setMeasurements(80,62,30.4);
    weather.removeObserver(&currentDisplay2);
    weather.setMeasurements(80,62,30.4);
    return 0;
}
开发者ID:gmyofustc,项目名称:CS-notes,代码行数:18,代码来源:observer.cpp


示例15: mDebug

AbstractDataPluginItem *GeoNamesWeatherService::parse( const QScriptValue &value )
{
    QString condition = value.property( "weatherCondition" ).toString();
    QString clouds = value.property( "clouds" ).toString();
    int windDirection = value.property( "windDirection" ).toInteger();
    QString id = value.property( "ICAO" ).toString();
    int temperature = value.property( "temperature" ).toInteger();
    int windSpeed = value.property( "windSpeed" ).toInteger();
    int humidity = value.property( "humidity" ).toInteger();
    double pressure = value.property( "seaLevelPressure" ).toNumber();
    QString name = value.property( "stationName" ).toString();
    QDateTime date = QDateTime::fromString(
                value.property( "datetime" ).toString(), "yyyy-MM-dd hh:mm:ss" );
    double longitude = value.property( "lng" ).toNumber();
    double latitude = value.property( "lat" ).toNumber();

    if ( !id.isEmpty() ) {
        WeatherData data;

        // Weather condition
        if ( clouds != "n/a" && condition != "n/a" ) {
            if ( dayConditions.contains( condition ) ) {
                data.setCondition( dayConditions[condition] );
            } else {
                mDebug() << "UNHANDLED GEONAMES WEATHER CONDITION, PLEASE REPORT: " << condition;
            }
        } else {
            if ( dayConditions.contains( clouds ) ) {
                data.setCondition( dayConditions[clouds] );
            } else {
                mDebug() << "UNHANDLED GEONAMES CLOUDS CONDITION, PLEASE REPORT: " << clouds;
            }
        }

        // Wind direction. Finds the closest direction from windDirections array.
        if ( windDirection >= 0 ) {
            double tickSpacing = 360.0 / windDirections.size();
            data.setWindDirection( windDirections[int(( windDirection / tickSpacing ) + 0.5)
                                   % windDirections.size()] );
        }

        // Wind speed
        if ( windSpeed != 0 ) {
            data.setWindSpeed( windSpeed, WeatherData::knots );
        }

        // Temperature
        data.setTemperature( temperature, WeatherData::Celsius );

        // Humidity
        data.setHumidity( humidity );

        // Pressure
        if ( pressure != 0.0 ) {
            data.setPressure( pressure, WeatherData::HectoPascal );
        }

        // Date
        data.setDataDate( date.date() );
        data.setPublishingTime( date );

        // ID
        id = "geonames_" + id;

        GeoDataCoordinates coordinates( longitude, latitude, 0.0, GeoDataCoordinates::Degree );
        GeoNamesWeatherItem *item = new GeoNamesWeatherItem( this );
        item->setMarbleWidget( marbleWidget() );
        item->setId( id );
        item->setCoordinate( coordinates );
        item->setPriority( 0 );
        item->setStationName( name );
        item->setCurrentWeather( data );
        return item;
    } else {
        return 0;
    }
}
开发者ID:calincru,项目名称:marble,代码行数:77,代码来源:GeoNamesWeatherService.cpp


示例16: foreach

void AppModel::handleWeatherNetworkData(QObject *replyObj)
{
    QNetworkReply *networkReply = qobject_cast<QNetworkReply*>(replyObj);
    if (!networkReply)
        return;

    if (!networkReply->error()) {
        QString xmlData = QString::fromUtf8(networkReply->readAll());

        foreach (WeatherData *inf, d->forecast)
            delete inf;
        d->forecast.clear();

        QXmlStreamReader xml(xmlData);
        while (!xml.atEnd()) {
            xml.readNext();

            if (xml.name() == "current_conditions") {
                while (!xml.atEnd()) {
                    xml.readNext();
                    if (xml.name() == "current_conditions")
                        break;
                    if (xml.tokenType() == QXmlStreamReader::StartElement) {
                        if (xml.name() == "condition") {
                            d->now.setWeatherDesc(GET_DATA_ATTR);
                        } else if (xml.name() == "icon") {
                            d->now.setWeather(google2name(GET_DATA_ATTR));
                        } else if (xml.name() == "temp_f") {
                            d->now.setTempString(GET_DATA_ATTR + QChar(176));
                        }
                    }
                }
            }

            if (xml.name() == "forecast_conditions") {
                WeatherData *cur = NULL;

                while (!xml.atEnd()) {
                    xml.readNext();

                    if (xml.name() == "forecast_conditions") {
                        if (cur) {
                            d->forecast.append(cur);
                        }
                        break;
                    } else if (xml.tokenType() == QXmlStreamReader::StartElement) {
                        if (!cur)
                            cur = new WeatherData();
                        if (xml.name() == "day_of_week") {
                            cur->setDayOfWeek(GET_DATA_ATTR);
                        } else if (xml.name() == "icon") {
                            cur->setWeather(google2name(GET_DATA_ATTR));
                        } else if (xml.name() == "low") {
                            QString v = cur->tempString();
                            QStringList parts = v.split("/");
                            if (parts.size() >= 1)
                                parts.replace(0, GET_DATA_ATTR + QChar(176));
                            if (parts.size() == 0)
                                parts.append(GET_DATA_ATTR + QChar(176));

                            cur->setTempString(parts.join("/"));
                        } else if (xml.name() == "high") {
                            QString v = cur->tempString();
                            QStringList parts = v.split("/");
                            if (parts.size() == 2)
                                parts.replace(1, GET_DATA_ATTR + QChar(176));
                            if (parts.size() == 0)
                                parts.append("");
                            if (parts.size() == 1)
                                parts.append(GET_DATA_ATTR + QChar(176));

                            cur->setTempString(parts.join("/"));
                        }
                    }
                }
            }
        }

        if (!(d->ready)) {
            d->ready = true;
            emit readyChanged();
        }

        emit weatherChanged();
    }
    networkReply->deleteLater();
}
开发者ID:amccarthy,项目名称:qtlocation,代码行数:87,代码来源:appmodel.cpp


示例17: TEST_F


//.........这里部分代码省略.........
  EXPECT_DOUBLE_EQ(0.49665000000000098, userModel.windowSHGCE());
  EXPECT_DOUBLE_EQ(0.5, userModel.windowSHGCNE());
  EXPECT_DOUBLE_EQ(0.49665000000000098, userModel.windowSHGCN());
  EXPECT_DOUBLE_EQ(0.5, userModel.windowSHGCNW());
  EXPECT_DOUBLE_EQ(0.49665000000000098, userModel.windowSHGCW());
  EXPECT_DOUBLE_EQ(0.5, userModel.windowSHGCSW());
  EXPECT_DOUBLE_EQ(0.5, userModel.skylightSHGC());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFS());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFSE());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFE());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFNE());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFN());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFNW());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFW());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSCFSW());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFS());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFSE());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFE());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFNE());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFN());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFNW());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFW());
  EXPECT_DOUBLE_EQ(1.0, userModel.windowSDFSW());
  EXPECT_DOUBLE_EQ(58083.259716774199, userModel.exteriorHeatCapacity());
  EXPECT_DOUBLE_EQ(0.139585598177502, userModel.infiltration());//unmodified by load
  EXPECT_DOUBLE_EQ(0.0, userModel.hvacWasteFactor());
  EXPECT_DOUBLE_EQ(0.25, userModel.hvacHeatingLossFactor());
  EXPECT_DOUBLE_EQ(0.0, userModel.hvacCoolingLossFactor());
  EXPECT_DOUBLE_EQ(0.59999999999999998, userModel.dhwDistributionEfficiency());
  EXPECT_DOUBLE_EQ(1.0, userModel.heatingPumpControl());
  EXPECT_DOUBLE_EQ(1.0, userModel.coolingPumpControl());
  EXPECT_DOUBLE_EQ(120.0, userModel.heatGainPerPerson());
  EXPECT_EQ(userModel.weatherFilePath(), openstudio::toPath("weather.epw"));
  WeatherData wd = *userModel.loadWeather();

  Matrix msolar = wd.msolar();
  Matrix mhdbt = wd.mhdbt();
  Matrix mhEgh = wd.mhEgh();
  Vector mEgh = wd.mEgh();
  Vector mdbt = wd.mdbt();
  Vector mwind = wd.mwind();

  double msolarExp[] = {
124.87691861424167, 87.212328068340284, 43.014836782652118, 23.680719044472859, 23.003593109413657, 26.323064923342631, 58.810694391713106, 107.06605138452912,
142.07941057145206, 104.95709459739395, 60.608055144743467, 34.877567375719927, 32.182031608720685, 40.512611857522195, 79.723263608096474, 126.46835992986829,
144.81173140370345, 121.04382781130641, 84.852874629300672, 52.049351968350102, 42.913180988385314, 59.348305824960811, 100.05608586406214, 135.11048082608818,
129.94968480601199, 124.13363336598071, 104.93046355448784, 71.268044990791324, 54.046841303275556, 84.431398040371022, 124.67206010895548, 138.56241960179872,
134.0014180459159, 144.89473278396255, 138.11786029337347, 101.92614956383538, 76.031248511462749, 119.2149118625866, 159.07727477837827, 156.85135911310419,
121.93695049006568, 143.70220697802986, 148.21175370167822, 115.96827063053348, 87.61144751228322, 131.92022292608829, 164.9103588838577, 151.11585933916228,
128.88622482148511, 141.90869550792021, 140.59660603297417, 109.80195970475256, 85.448986411059963, 129.8726077645062, 165.95390783999844, 157.49259907172015,
133.16815853745538, 137.05062177656148, 123.59932398291846, 88.888069887660137, 66.857752974728555, 104.26522936270008, 143.12511552825072, 148.93012554924269,
149.50709237426477, 134.27135584183861, 103.12341585193052, 63.438295552277509, 48.152741557586374, 73.529793646405821, 118.97619209349854, 146.30235058963021,
150.87461991730143, 118.71387095626463, 74.42960227453321, 40.084429290584538, 34.699028809006876, 45.845232466627536, 88.078612041360259, 132.20661705757985,
114.51887045855386, 84.335421131574847, 45.31958757330041, 26.623381849654656, 25.649335665397185, 28.832138655691839, 55.823463221613416, 97.159585442506852,
116.10847283220625, 82.709173830485668, 39.099086744447028, 19.790303276802067, 19.284962462870961, 21.366911924165972, 49.125234671137314, 95.455260385147113
  };


  double mhdbtExp[] = {
-6.283870967741934, -6.1806451612903217, -6.0870967741935464, -6.2741935483870952, -6.5225806451612884, -6.8064516129032233, -6.7806451612903214, -6.5580645161290327, -5.5516129032258075, -4.3612903225806479, -3.5451612903225809, -2.7903225806451619, -2.0290322580645159, -1.6838709677419355, -1.596774193548387, -1.8612903225806452, -2.9129032258064509, -3.8258064516129031, -4.5451612903225795, -4.5096774193548379, -4.7096774193548381, -4.9774193548387098, -5.2387096774193544,
-5.8838709677419354, -3.6571428571428575, -3.9285714285714297, -4.1464285714285714, -4.4642857142857153, -4.9071428571428566, -5.1214285714285728, -5.2642857142857151, -4.625, -3.2928571428571418, -2.0964285714285711, -1.0214285714285718, -0.24285714285714294, 0.25714285714285684, 0.39642857142857163, 0.49642857142857127, 0.26071428571428618, -0.46428571428571414, -1.4249999999999996, -2.346428571428572, -2.5821428571428577, -2.850000000000001, -2.9250000000000007, -3.1500000000000008,
-3.3857142857142852, 2.0225806451612902, 1.8161290322580645, 1.767741935483871, 1.2483870967741937, 1.1322580645161291, 0.91935483870967749, 1.4225806451612903, 2.7548387096774198, 3.9677419354838714, 5.0548387096774192, 5.9387096774193537, 6.8193548387096774, 7.187096774193547, 7.3258064516129036, 7.1935483870967731, 6.7677419354838708, 6.1354838709677404, 5.0387096774193543, 3.9419354838709673, 3.3000000000000003, 2.9419354838709681, 2.6096774193548393, 2.3741935483870966,
2.0935483870967744, 7.7933333333333339, 7.6133333333333342, 7.5633333333333344, 7.1933333333333342, 6.9566666666666652, 7.0366666666666662, 8.0933333333333319, 9.2566666666666642, 10.186666666666669, 10.946666666666662, 11.793333333333333, 12.276666666666671, 12.763333333333337, 13.120000000000001, 13.01333333333333, 12.840000000000002, 12.409999999999998, 11.503333333333336, 10.576666666666666, 9.8800000000000026, 9.4866666666666699, 9.1800000000000015, 8.9166666666666643,
8.4199999999999982, 10.70967741935484, 10.316129032258063, 10.167741935483871, 10.051612903225806, 9.8935483870967733, 11.225806451612904, 13.56774193548387, 15.474193548387097, 17.293548387096774, 18.696774193548386, 19.819354838709682, 20.580645161290324, 21.054838709677416, 20.945161290322581, 20.574193548387097, 19.987096774193549, 19.532258064516128, 18.096774193548384, 16.0741935483871, 14.487096774193549, 13.332258064516125, 12.454838709677418, 11.761290322580646,
11.351612903225806, 17.596666666666668, 17.25333333333333, 17.206666666666667, 16.863333333333333, 16.719999999999999, 17.593333333333327, 19.573333333333327, 21.283333333333339, 22.50333333333333, 23.589999999999993, 24.383333333333333, 24.829999999999995, 25.22666666666667, 25.466666666666672, 25.390000000000001, 25.133333333333333, 24.756666666666668, 23.95666666666666, 22.333333333333329, 20.68, 19.41, 18.790000000000003, 18.133333333333336, 17.946666666666662, 20.71290322580645,
20.341935483870962, 19.87096774193548, 19.732258064516127, 19.532258064516128, 20.706451612903233, 22.400000000000002, 23.732258064516124, 24.961290322580648, 26.077419354838707, 27.038709677419345, 27.832258064516129, 28.441935483870967, 28.577419354838703, 28.496774193548383, 27.98064516129033, 27.319354838709689, 26.516129032258068, 25.400000000000002, 24.048387096774189, 23.245161290322581, 22.648387096774197, 22.041935483870969, 21.580645161290324, 18.593548387096778,
开发者ID:jtanaa,项目名称:OpenStudio,代码行数:67,代码来源:UserModel_GTest.cpp



注:本文中的WeatherData类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ WebAccessibilityObject类代码示例发布时间:2022-05-31
下一篇:
C++ Weather类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap